Results of the modular analysis based solely on transition probability between HMM states. Each row represents the transition probability of the current HMM state (y-axis) to other states (x-axis). Twenty-one HMM states were categorized into five modules (black boxes): from left to right, light-N2 module (states 5, 7, 9, 14, 15, 18, 21), N3 module (states 4, 8, 10), deep-N2 module (states 1, 2, 3, 12, 17), REM module (states 6 and 19), and Wake module ( states 11, 13, 16, 20). The pie chart under each state represents the sleep stage distribution for the state.