Skip to main content


Log in

Bald Eagle Search Algorithm with Hierarchical Deep Learning for Internet of Things Assisted Sleep Quality Recognition

  • Original Research
  • Published:
SN Computer Science Aims and scope Submit manuscript


Sleep quality prediction in Internet of Things (IoT) involves leveraging a system of interrelated devices to gather as well as analyse related data. Smart devices like wearable devices or smart mattresses endlessly monitor many parameters such as body movement, heart rate, and environmental situations in bedroom. Real-time recommendations and feedback transported to consumers, allowing them to create informed lifestyle changes for superior sleep hygiene. As IoT ecosystem continues to develop, a combination of various data streams as well as classy analytics holds assurance for further refining sleep quality forecasts and improving overall well-being. The article designs a Bald Eagle Search Algorithm with Hierarchical Deep Learning for Internet of Things Assisted Sleep Quality Recognition (BESHDL-SQP) technique. The purpose of the BESHDL-SQP technique is to recognize and classify the quality of the sleep level in the IoT environment. In the presented BESHDL-SQP technique, the preliminary stage of data pre-processing using min–max normalization involved to normalize the input data. For predicting sleep quality, hierarchical long short-term memory (LSTM) technique exploited. Lastly, BES model utilized for optimal hyperparameter selection of LSTM method which helps in attaining enhanced results. To validate better performance of BESHDL-SQP technique, a huge range of simulation analysis is carried out. The extensive results stated that the BESHDL-SQP technique exhibits supreme performance over other models.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9

Similar content being viewed by others

Data availability

Data sharing not applicable to this article as no datasets were generated during the current study.

Code Availability

Not applicable.


  1. Gashi S, Alecci L, Di Lascio E, Debus ME, Gasparini F, Santini S. The role of model personalization for sleep stage and sleep quality recognition using wearables. IEEE Pervasive Comput. 2022;21:69–77.

    Article  Google Scholar 

  2. Sadeghi R. Banerjee T. Hughes, J. Predicting sleep quality in osteoporosis patients using electronic health records and heart rate variability. In Proceedings of the 2020 42nd Annual International Conference of the IEEE Engineering in Medicine & Biology Society (EMBC), Montreal, QC, Canada, 20-24 July 2020; pp. 5571-5574.

  3. Pardamean B, Budiarto A, Mahesworo B, Hidayat AA, Sudigyo D. Sleep Stage Classification for Medical Purposes: Machine Learning Evaluation for Imbalanced Data; Research Square: Durham. USA: NC; 2022.

  4. Phan DV, Chan, CL, Nguyen, DK. Applying deep learning for prediction sleep quality from wearable data. In Proceedings of the 4th International Conference on Medical and Health Informatics; Association for Computing Machinery: New York, NY, USA, 2020; pp. 51-55.

  5. Sadeghi R, Banerjee T, Hughes JC, Lawhorne LW. Sleep quality prediction in caregivers using physiological signals. Comput Biol Med. 2019;110:276–88.

    Article  Google Scholar 

  6. Palotti J, Mall R, Aupetit M, Rueschman M, Singh M, Sathyanarayana A, Taheri S, Fernandez-Luque L. Benchmark on a large cohort for sleep-wake classification with machine learning techniques. NPJ Digit Med. 2019;2:50.

    Article  Google Scholar 

  7. Liang Z, Chapa-Martell MA. A multi-Level classification approach for sleep stage prediction with processed data derived from consumer wearable activity trackers. Front Digit Health. 2021;3: 665946.

    Article  Google Scholar 

  8. Shen Q, Yang X, Zou L, Wei K, Wang C, Liu G. Multi-task multi-attention residual shrinkage convolutional neural network for sleep apnea detection based on wearable bracelet photoplethysmography. IEEE Internet Things J. 2022;9:25207–22.

    Article  Google Scholar 

  9. Ramachandran A, Karuppiah A. A survey on recent advances in machine learning based sleep apnea detection systems. Healthcare. 2021;9:914.

    Article  Google Scholar 

  10. Bahrami M, Forouzanfar M. Deep learning forecasts the occurrence of sleep apnea from single-lead ECG. Cardiovasc Eng Technol. 2022;13:809–15.

    Article  Google Scholar 

  11. Soman SP, Kumar GS, Abubeker KM. Internet of things assisted artificial intelligence enabled drowsiness detection framework. IEEE Sensors Letters. 2023.

  12. Li T, Zhang B, Lv H, Hu S, Xu Z, Tuergong Y. CAttSleepNet: automatic end-to-end sleep staging using attention-based deep neural networks on single-channel EEG. Int J Environ Res Public Health. 2022;19(9):5199.

    Article  Google Scholar 

  13. Fan J, Sun C, Long M, Chen C, Chen W. Eognet: A novel deep learning model for sleep stage classification based on single-channel eog signal. Front Neurosci. 2021;15: 573194.

    Article  Google Scholar 

  14. Shahid ZK, Saguna S, Åhlund C. September. Recognizing long-term sleep behaviour change using clustering for elderly in smart homes. In 2022 IEEE International Smart Cities Conference (ISC2) (pp. 1-7). IEEE. 2022.

  15. Zamani AS, Hashim AHA, Akhtar MM, Samdani F, Siddiqui AT, Alluhayb A, Hamza MA, Ahmad N. The prediction of sleep quality using wearable-assisted smart health monitoring systems based on statistical data. J King Saud Univ-Sci. 2023;35(9): 102927.

    Article  Google Scholar 

  16. Serpush F, Rezaei M. Complex human action recognition using a hierarchical feature reduction and deep learning-based method. SN Comput Sci. 2021;2(2):94.

    Article  Google Scholar 

  17. Zhang C, Liu S, Han F, Nie Z, Lo B, Zhang Y. Hybrid manifold-deep convolutional neural network for sleep staging. Methods. 2022;202:164–72.

    Article  Google Scholar 

  18. Khatri N, Lee S, Nam, SY. Transfer learning-based intrusion detection system for a controller area network. IEEE Access. 2023.

  19. Yu L, Qu J, Gao F, Tian Y. A novel hierarchical algorithm for bearing fault diagnosis based on stacked LSTM. Shock Vib 2019.

  20. Hassan MH, Kamel S, Domínguez–García JL, Molu RJJ. Integrating renewable energy and V2G uncertainty into optimal power flow: A gradient bald eagle search optimization algorithm with local escaping operator. IET Renew Power Gen. 2023.


  22. Hamza MA, Abdalla Hashim AH, Alsolai H, Gaddah A, Othman M, Yaseen I, Rizwanullah M, Zamani AS. Wearables-assisted smart health monitoring for sleep quality prediction using optimal deep learning. Sustainability. 2023;15(2):1084.

    Article  Google Scholar 

Download references


This project is sponsored by Prince Sattam Bin Abdulaziz University (PSAU) as part of funding for its SDG Roadmap Research Funding Programme project number PSAU-2023- SDG-21.

Author information

Authors and Affiliations



Mesfer Al Duhayyim, Mahir Mohammed Sharif, is responsible for designing the framework, analyzing the performance, validating the results, and writing the article. Muskaan Munjal, Anwer A. Hilal, is responsible for collecting the information required for the framework, provision of software, critical review, and administering the process.

Corresponding author

Correspondence to Mesfer Al Duhayyim.

Ethics declarations

Conflict of interest

The authors declare that they have no Conflict of interest. The manuscript was written through contributions of all authors. All authors have given approval to the final version of the manuscript.

Ethics approval and consent to participate

This article does not contain any studies with human participants performed by any of the authors.

Consent for publication

Not applicable.

Materials availability

Not applicable.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Duhayyim, M.A., Sharif, M.M., Munjal, M. et al. Bald Eagle Search Algorithm with Hierarchical Deep Learning for Internet of Things Assisted Sleep Quality Recognition. SN COMPUT. SCI. 5, 564 (2024).

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: