Polysomnography, commonly known as a sleep study, is a comprehensive diagnostic procedure performed overnight. It employs specialized equipment to record various physiological parameters, aiming to assess sleep quality and identify the underlying causes of sleep disorders. The data collected typically includes brain activity (EEG), sleep stages and depth, respiratory rate and rhythm, snoring frequency and intensity, instances and duration of breathing pauses (apneas), blood oxygen saturation, body movements, changes in sleeping position, and heart rhythm (ECG).