### Related Work  
Historically, the data provided by patients during an outpatient consultation is based on subjective verbal reports from the patient's experience, memories, and knowledge, or, at best, from paper records. Nowadays, thanks to wearables and digital tools, we have clinically relevant information collected continuously during the time between hospital visits. Thus, we obtain an improved \"snapshot\" of what has happened since the last time we have seen the patient, be it days, weeks, or months [8]. In this way, clinical variables are monitored, allowing proactive anticipation and prevention of health problems that we previously could not previously detect. For example, according to a study by the Fitbit brand and the Scripps Research Translational Institute (USA), these devices would have close to 80% reliability in predicting if a person, who has previously reported symptoms, has Covid-19 [9]. Wearable sleep tracking products are establishing themselves as one of the most critical categories of commercial health products [10]. These can be a sensor placed directly on the body or a garment used when carrying out the action to be measured. Adopting this technology has caused an awareness about the importance of good sleep for health and the dangers of not doing so. These technologies are becoming more widely accepted and are used as self-diagnostic tools by many users worldwide [11]. Most smartwatches and fitness trackers have a three-axis accelerometer. It is a device made up of axis-based motion sensors and tracks movement in all directions. Some even come with a gyroscope to measure orientation and rotation. Through actigraphy, the smartwatch translates wrist movements into sleep patterns. Actigraphy monitors one of the parameters, movement. The data collected by wearables on heart rate or sleep could help predict the evolution of some minor diseases in real-time. Some studies show the impact of the heart rate and the activity of the person while sleeping in order to associate them with minor health conditions and to be able to detect them in advance. In work cited in [12], they calculated users' average resting heart rate, sleep duration, and deviations to help identify when these measurements were outside a person's typical range. During each week, abnormal behaviors were identified if the average weekly resting heart rate was above the overall average and the average weekly sleep rate was not below the overall average. Some apps enhance smartwatches' ability to monitor blood pressure by uploading data to wireless monitors connected via Bluetooth or WiFi. Related works, refs. [13; 14; 15], show monitors that stand out for their accuracy in measuring blood pressure, using advanced algorithms, and more remarkable ability to eliminate motion interference. In addition, they provide immediate device information and reading history through the app, allowing patients to share their data with healthcare professionals. _(A)_ Sleep study  
Not resting adequately implies a danger when driving vehicles, operating heavy machinery, or carrying out any activity that requires attention, concentration, and the ability to react. It is also reflected in the state of mind (bad mood, irritability, etc. ), increasing the level of stress and appearing early aging. The sleep study is the most powerful tool to diagnose disorders that are difficult to identify through regular medical consultations. Sleep apnea, periodic leg movement syndrome, narcolepsy, restless legs syndrome, and insomnia are among the most common disorders [16]. They are non-invasive and have the objective of gathering as much evidence as possible through monitoring brain and physical activity at the time of sleep. For this study, the patient must present himself(herself) in a laboratory equipped with a chamber where he will be connected to different sensors, which will take different measurements throughout the night [17].