Journal of Intelligent Systems and Internet of Things

Internet of Things Assisted Sleep Quality Recognition using Hunger Games Search Optimization with Deep Learning on Smart Healthcare Systems

M. B. Sudhan, Deepak Kumar .A, M. S. Minu, Mathan Kumar Mounagurusamy, S. Navaneethan, B. Venkataramanaiah
Volume 14, Issue 1, pp. 129-140 (2025)
DOI: https://doi.org/10.54216/JISIoT.140110
Online: https://www.americaspg.com/journal/18/article/3131

Abstract

Rapid urbanization needs major cities that change into smart cities to increase our lifestyle with respect to transportation, people, government, environmental sustainability, and more. In recent times, Internet of Things (IoT) and healthcare wearables have played a vital play in the progress of smart cities by providing enhanced healthcare services and an entire standard of living. Wearables offer real-time health records to individuals and healthcare providers, permitting for proactive management of chronic conditions and early recognition of health problems. While sleep is of major importance for a healthy life, it can be required to forecast sleep quality.  Insufficient sleep affects mental health, physical, and emotional, and is a solution to many illnesses like heart disease, insulin resistance, stress, heart disease, and so on. Recently, deep learning (DL) techniques can be deployed to forecast the quality of sleep dependent upon the wearables data in the awake duration. Therefore, this paper presents an automated sleep quality recognition using hunger games search optimization with deep learning (ASQR-HGSODL) technique in the IoT-assisted smart healthcare system. The ASQR-HGSODL technique allows the IoT devices to perform a data collection process, which collects the data related to sleep activity. For the feature selection process, the ASQR-HGSODL technique applies an arithmetic optimization algorithm (AOA). For the prediction of sleep quality, the ASQR-HGSODL technique implements a convolutional long short-term memory (ConvLSTM) approach. Lastly, the HGSO technique has been applied for the optimum hyper parameter selection of the ConvLSTM approach. To exhibit the effectual prediction results of the ASQR-HGSODL approach, a range of simulation can be carried out. The investigational outputs highlight the improved outcome of the ASQR-HGSODL. technique with other DL methodologies.

Keywords: Sleep quality prediction; Internet of Things; Deep learning; Hunger Games search algorithm; Wearables; Smart cities

1. Introduction

IoT permits an individual to gather and analysis of data in numerous surroundings, objects, and devices combined in general day-to-day activities [1]. The objects with IoT typically are sensors that generate large quantities of data, which is inaccurate and heterogeneous. The big data analytics domain offers the required mechanisms and tools to analyze these data. IoT is employed for both indoor objects such as domestic appliances and indoor selflocation devices and outdoor objects like groundwater sensors. IoT is also utilized to monitor patients in the medical field [2]. Especially, IoT develops its potential for the remote monitoring of patients. In medical services, wearable IoT sensors are extremely common with various applications. A current study proposes that IoT can provide major developments in nursing care in the future [3]. Figure 1 illustrates the process of wearable sensor systems assisted by IoT for healthcare sector.

Figure 1. IoT-assisted wearable sensor systems for healthcare system
Figure 1. IoT-assisted wearable sensor systems for healthcare system

The majority of persons allocate from 5 to 9 hours of sleep daily. A few researches indicate that sleep quality and time are correlated with clinical results. For instance, long and short-sleepers are at higher risks of acquiring specific diseases than normal-length sleepers [4]. Sleeping disorder activated through physiological causes leads to various mental issues such as depression and concern. Presently, anxiety is the primary reason of several difficulties. Short-term disease differs the system of biological, which disturbs the sleep of an individual, therefore, resulting in long-term impacts [5]. This can also occur because of disruption in the body’s metabolism, cardiac system, and nervous system. The final one is the environmental factor that comprises physical properties namely moisture, brightness in the room, environmental temperature, and other ambient features such as comfort-level of room and quiet in the room [6]. Advanced sleep monitoring tools implement different sensing technologies. In addition, these sensors are also exploited for sleep staging [7].

The identification of sleep quality needs the information relevant to locating the subject and any methods for classifying this data [8]. The data can be obtained remotely through IoT-allowed sensors and numerous techniques have been in place for sleeping pattern classification containing dual-tree, support vector machine (SVM), ANN, and means clustering. However, these standard methodologies need significant feature extraction from the preprocessed signals and are vulnerable to local optimization [9]. Nowadays, researchers developed a deep learning (DL) approach named CNN, which decreases the complexity of the network and quantity of weights due to its shared-weight network model. It is provided widely exploited in the field of image segmentation and object identification [10].

This paper presents an automated sleep quality recognition using hunger games search optimization with deep learning (ASQR-HGSODL) technique in the IoT-assisted smart healthcare system. The ASQR-HGSODL technique allows the IoT devices to perform a data collection process, which collects the data related to sleep activity. For the feature selection process, the ASQR-HGSODL technique applies an arithmetic optimization algorithm (AOA). For the prediction of sleep quality, the ASQR-HGSODL technique implements a convolutional long short-term memory (ConvLSTM) approach. Lastly, the HGSO technique was applied for the optimum hyperparameter selection of the ConvLSTM approach. To exhibit the effectual prediction results of the ASQRHGSODL approach, a range of simulation can be carried out.

Hamza et al. [11] proposed a new wearables-enabled smart health monitoring for quality of sleep prediction by employing the optimum DL (WSHMSQP-ODL) technique. This technique primarily permits the wearables to gather sleep-activity-relevant information. For predicting sleep quality, this framework employs the DBN algorithm. In [12], a non-intrusive and low-priced sleep monitoring technique was developed through commodity WiFi devices like WiFi-Sleep. The authors utilize the fine-grained channel state data in numerous antennas and present innovative signal processing and integration techniques for extracting accurate body movement and respiration data. A DL algorithm could be presented to incorporate medical sleep drug previous experience for achieving a 4-phase sleep monitoring with restricted data sources.

Shen et al. [13] introduced a wearable SAS identification approach that depends on a 1D multi-task multi-attention residual shrinkage-CNN (1D-MMResSNet) technique and cost-sensitive (CS) method. Primarily, a collection of photo plethysmography (PPG) sleep information. Lastly, the AdaCost cost-sensitive method was proposed. Han et al. [14] introduced a new systematic and approach IoT framework (IoT-V2E) for retrieving major equivalent EEG signal illustrations in a dataset that provided an IR visual query for sleep-based evaluation. Primarily, cross modal retrieval databases are gathered. Secondarily, a new uncertainty-aware hashing retrieval technique was developed that offers higher memory efficacy, effective performances, and adequate interpretability.

In [15], the emergence of a new learning algorithm was presented employing a deep neural network (DNN), which forecasts the indoor thermal comfort of disabled persons in the real world. In addition, the framework comprises a data gathering method for ensuring an effectual gathering system, allowing a huge amount of targeted information before transmitting it to cloud servers for additional data analysis. Nijaguna et al. [16] suggested a method for screening Obstructive Sleep Apnea utilizing analysis of HRV of ECG data when an individual is at sleep. This research aims to generate computational methodologies to recognize OSA depending on extraction features in HRV signals acquired under sleep ECGs. Liu et al. [17] recommended a single-input, multi-output-CNN. The inputs to NNs are the phase and amplitude of channel state data gathered via a WiFi device pair. Additionally, a 2-DL-based-NN classification approach was established and analyzed to classify four categories of sleep phases. In [18], a new architecture employing actigraph recordings of motor activity was developed. An over-lapping sliding window was exploited to input sequences into LSTM. The prediction capability of the integrated feature vectors is estimated by the SVM method.

3. Proposed Model

In this article, a novel ASQR-HGSODL technique for precise and automatic sleep quality detection in the IoTassisted smart healthcare system is presented. The ASQR-HGSODL methodology allows the IoT devices to perform a data collection process, which collects data related to sleep activity. It incorporates several sub processes namely pre-processing, AOA-based feature selection, ConvLSTM-based classification, and HGSO-based tuning process. Figure 2 portrays the overall working flow of ASQR-HGSODL methodology.

Figure 2. Overall flow of ASQR-HGSODL approach
Figure 2. Overall flow of ASQR-HGSODL approach

A. Data Preprocessing

At an initial level, the ASQR-HGSODL approach executes preprocessing. The data gathered by smartwatches determine sleep onset latency (time required to reduce sleep after bedtime). It involves the total spending time in minutes to wake up and comprises sleep onset latency. Then, half of the time, spent wake-up is considered sleep onset latency. For example, a watch notes one sample of wake-up time as 34min, and the next sleep onset latency is considered that 17min.

B. Feature Selection using AOA

To choose features, the AOA is used. AOA is one of the novel meta-heuristic optimizer algorithms that depend on the functions of the arithmetical operator in the mathematics or processor of the PC [19]. Addition (𝐴), multiplication (𝑀), subtraction (𝑆), and Division (𝐷) are the four major operators used in the calculation. The exploration and exploitation stages are based on the concept of math-accelerated optimizer (𝑀𝑂𝐴). Using the following equation, the 𝑀𝑂𝐴 function can be defined:

𝑀𝑂𝐴(𝑖𝑡𝑒𝑟) = Min + 𝑖𝑡𝑒𝑟𝑥( Max − Min )               (1) Max𝑖𝑡𝑒𝑟

In Eq. (1), 𝑖𝑡𝑒𝑟 and Max𝑖𝑡𝑒𝑟 correspondingly represent the existing and the maximum iterations, and the minimal and maximal values of accelerated functions are defined using Min and Max correspondingly.

Exploration stage: In the original AOA, using the math operator, the position is updated toward the optimal area. The division (𝐷) and the multiplication (𝑀) are the two fundamental strategies of the exploration stage. The study aims to find the optimum solution. Using the following equation, the location is updated in the exploration phase:

𝑏𝑒𝑠𝑡(𝑥𝑗) ÷ (𝑀𝑂𝑃+ 𝜖)𝑥((𝑢𝑏𝑗−𝑙𝑏𝑗)𝑥𝜇+ 𝑙𝑏𝑗) 𝑟2 > 0.5(𝑎) (2) 𝑥𝑖,𝑗(𝑖𝑡𝑒𝑟+ 1)𝑠= 𝑏𝑒𝑠𝑡(𝑥𝑗)𝑥(𝑀𝑂𝑃+ 𝜖)𝑥((𝑢𝑏𝑗−𝑙𝑏𝑗)𝑥𝜇+ 𝑙𝑏𝑗) {
𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒(𝑏) {

In Eq. (2), 𝑥𝑖,𝑗(𝑖𝑡𝑒𝑟+ 1) represents the 𝑗𝑡ℎ location of the 𝑖𝑡ℎ solution at the existing location, and 𝑏𝑒𝑠𝑡(𝑋) represents the better solution at the 𝑗𝑡ℎ location. The probability math optimizer and the control parameter are defined as 𝑀𝑂𝑃 and 𝑢 correspondingly. Using the following equation, the 𝑀𝑂𝑃 function can be defined:

1 ∝ 𝑀𝑂𝑃(𝑖𝑡𝑒𝑟) = 1 −( 𝑖𝑡𝑒𝑟 )                                   (3) 1 ∝ Max−𝑖𝑡𝑒𝑟

Exploitation stage: The subtraction (𝑆) and the addition (𝐴) are the two main operators used in the exploitation stage. The study aims to attain optimal and high‐dense solutions:

𝑏𝑒𝑠𝑡(𝑥𝑗) −(𝑀𝑂𝑃+ 𝜖)𝑥((𝑢𝑏𝑗−𝑙𝑏𝑗)𝑥𝜇+ 𝑙𝑏𝑗) , 𝑟3 > 0.5 (4) 𝑥𝑖,𝑗(𝑖𝑡𝑒𝑟+ 1) = { 𝑏𝑒𝑠𝑡(𝑥𝑗) + (𝑀𝑂𝑃+ 𝜖)𝑥((𝑢𝑏𝑗−𝑙𝑏𝑗)𝑥𝜇 𝑙𝑏𝑗) , 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒

The FF of the AOA adopts the accuracy of classifier and the amount of nominated factors. It enhances the accuracy of classifier and mitigates the set dimension of the feature elected. So, the next FF has been applied to estimate individual performances, as expressed in Eq. (5).

𝐹𝑖𝑡𝑛𝑒𝑠𝑠= 𝛼∗ 𝐸𝑟𝑟𝑜𝑟𝑅𝑎𝑡𝑒+ (1 −𝛼) ∗#𝑆𝐹 #𝐴𝑙𝑙_𝐹                          (5)

Whereas 𝐸𝑟𝑟𝑜𝑟𝑅𝑎𝑡𝑒 portrays the error of classifier deploying the selected factors. 𝐸𝑟𝑟𝑜𝑟𝑅𝑎𝑡𝑒 is calculated as the percentage of unsuitable classifier to the classifier amount made, depicted as a value between [0, 1]. #𝑆𝐹 represents the amount of elected features and #𝐴𝑙𝑙_𝐹 suggests the complete count of elements in the novel dataset. 𝛼 is used for altering the effect of sub-set length and the excellence of the classifier.

C. Sleep Quality Prediction by employing ConvLSTM

To recognize the sleep quality, the ConvLSTM model is applied. ConvLSTM is an NN structure that combines a non-linear CNN and LSTM to process information with spatial-temporal data [20], for instance, time series signals or video analysis. Replace the memory unit of LSTM with external operation is the fundamental concept, using the advantages of CNN while processing spatial information like videos and images. Its structure contains an LSTM, outer, and output layers. All the units from the LSTM layer have memory unit, forget, input, and output gates, which control the data that needs to be memorized, forgotten, and outputted to procedure the time sequence data. Lastly, the resultant layer transforms the LSTM output layer into the preferred method. The ConvLSTM is mathematically modelled as:

𝑖𝑡= 𝜎(𝑊𝑥𝑖∗𝑋𝑡+ 𝑊ℎ𝑖∗𝐻𝑡−1 + 𝑊𝑐𝑖𝑜𝐶𝑡−1 + 𝑏𝑖)                        (6)
𝑓𝑡= 𝜎(𝑊𝑥𝑓∗𝑋𝑡+ 𝑊ℎ𝑓∗𝐻𝑡−1 + 𝑊𝑐𝑓𝑜𝐶𝑡−1 + 𝑏𝑓)                  (7)
𝐶𝑡= 𝑓𝑡𝑜𝐶𝑡−1 + 𝑖𝑡𝑜tanh(𝑊𝑥𝑐∗𝑋𝑡+ 𝑊ℎ𝑐∗𝐻𝑡−1 + 𝑏𝑐)               (8)
𝑂𝑡= 𝜎(𝑊𝑥𝑜∗𝑋𝑡+ 𝑊ℎ𝑜∗𝐻𝑡−1 + 𝑊𝑐𝑜𝑜𝐶𝑡+ 𝑏0)                         (9)
𝐻𝑡= 𝑜𝑡 𝑜tanh(𝐶𝑡)                                          (10)

Where 𝑖𝑡, 𝑓𝑡, and 0𝑡 signify the input, forget, and output gates, correspondingly; 𝑋𝑡, 𝐻𝑡−1, and 𝐶𝑡−1 characterize the input of existing cell, output, and layer of the latter cell, correspondingly; 𝑏 and 𝑊 signify the bias and Conv kernel, respectively; and 𝜎 denotes the function that considers the shape of 𝑠.

D. Hyperparameter Tuning utilizing HGSO Algorithm

In the ASQR-HGSODL model, the HGSO model can do the tuning process of the ConvLSTM approach. For some organisms, neuroscientists usually approve that hungriness is an energy, which creates living circumstances more permanent, exceed, and stimulate competition‐driven states [21]. Thus, Hunger Games Search has been planned depending on the hunger-connected behaviors of organisms. The model of hunger can be utilized for establishing adaptive weights and outcomes of hunger can be executed for all the steps of a searching method for achieving effectual search.

The animal behavior approaching food is defined as (11).

𝑋(𝑡) ⋅(1 + 𝑟𝑎𝑛𝑑𝑛(1)), 𝑟1 < 𝑙 𝑊1 ⋅𝑋𝑏+ 𝑅⋅𝑊2 ⋅|𝑋𝑏−𝑋(𝑡)|, 𝑟1 > 𝑙, 𝑟2 > 𝐸 𝑊1 ⋅𝑋𝑏−𝑅⋅𝑊2 ⋅|𝑋𝑏−𝑋(𝑇)|, 𝑟1 > 𝑙, 𝑟2 < 𝐸 (11) 𝑋(𝑡+ 1) = {

Whereas, 𝑋(𝑡+ 1) implies the upgraded performance in (𝑡+ 1)𝑡ℎ iteration. 𝑟𝑎𝑛𝑑𝑛(1) denotes to the randomly generated number following the standard normal distribution. 𝑡 defines iteration counts. 𝑟1 and 𝑟2 represent both random numbers in [0, 1] range. 𝑋(𝑡) implies the existing solution in 𝑡𝑡ℎ iteration. 𝑊1 and 𝑊2 imply the weight of hunger. 𝑋𝑏 stands for the global optimum performance. 𝑙 denotes the fixed‐valued parameter. 𝑅 and 𝐸 implies the distance and variance control parameter. The mathematical calculation of 𝐸 is measured in Eq. (12):

𝐸= 𝑠𝑒𝑐ℎ(|𝐹(𝑖) −𝐵𝐹|)                                                (12)

In which, 𝐹(𝑖) denotes the fitness of existing performance. 𝐵𝐹 implies the fitness of optimum performance. 𝑠𝑒𝑐ℎ represents the hyperbolic secant function measured as 𝑠𝑒𝑐ℎ(𝑦) =

2 𝑒𝑦+𝑒−𝑦.

𝑅 is estimated as Eqs. (13) and (14).

𝑅= 2 × 𝑎× 𝑟𝑎𝑛𝑑−𝑎                                                 (13)
𝑎= 2 × (1 − 𝑡 Max𝑖𝑡𝑒𝑟 )                                              (14)

At this point, 𝑟𝑎𝑛𝑑 denotes an arbitrary integer in [0, 1] and Max𝑖𝑡𝑒𝑟 denotes the maximal iteration counts.

|𝑋𝑏−𝑋(𝑇)| represents the range of actions. 𝑊1 and 𝑊2 denote the hunger weights estimated as Eqs. (15) and (16).

𝑊1(𝑖) = {ℎ𝑢𝑛𝑔𝑟𝑦(𝑖) ⋅ 𝑁 𝑆𝐻𝑢𝑛𝑔𝑟𝑦× 𝑟4, 𝑖𝑓𝑟3 < 𝑙 1, 𝑖𝑓 𝑟3 > 𝑙 (15)
𝑊2(𝑖) = (1 −𝑒𝑥𝑝(−|ℎ𝑢𝑛𝑔𝑟𝑦(𝑖) −𝑆𝐻𝑢𝑛𝑔𝑟𝑦|)) × 𝑟5 × 2            (16)

In Eqs. (13) and (14), ℎ𝑢𝑛𝑔𝑟𝑦 denotes the hunger of every subject, 𝑁 represents the amount of subjects, 𝑆𝐻𝑢𝑛𝑔𝑟𝑦 implies the sum of hunger feelings of every individual and 𝑟3, 𝑟4, 𝑎𝑛𝑑 𝑟5 denote the random integers in [0, 1] range. The equation for ℎ𝑢𝑛𝑔𝑟𝑦(𝑖) is as Eq. (17):

ℎ𝑢𝑛𝑔𝑟𝑦(𝑖) = {0, 𝐴𝑙𝑙𝐹𝑖𝑡𝑛𝑒𝑠𝑠(𝑖) == 𝐵𝐹 ℎ𝑢𝑛𝑔𝑟𝑦(𝑖) + 𝐻, 𝐴𝑙𝑙𝐹𝑖𝑡𝑛𝑒𝑠𝑠(𝑖)! = 𝐵𝐹                        (17)

If the fitness of individuals is better, it cannot assumed that hungry, and their value of hunger is 0. Or else, a novel value of hunger is along with the existing hunger value. The value of 𝐻 is measured as Eqs. (18) and (19).

𝑇𝐻= 𝐹(𝑖) −𝐵𝐹 𝑊𝐹−𝐵𝐹× 𝑟6 × 2 × (𝑈𝐵−𝐿𝐵)                            (18)
𝐻= {𝐿𝐻× (1 + 𝑟), 𝑖𝑓 𝑇𝐻< 𝐿𝐻 𝑇𝐻, 𝑖𝑓 𝑇𝐻≥𝐿𝐻                                      (19)

𝐵𝐹 denotes the best fitness acquired in the existing iteration and 𝑊𝐹 stands for the worst fitness achieved in the existing iterations. 𝑊𝐹−𝐵𝐹 implies the entire individual’s hunting size under this iteration. 𝐹(𝑖) stands for the fitness value (FV) of all individuals. 𝑈𝐵 and 𝐿𝐵 exemplify the upper and lower limits of searching spaces. 𝐿𝐻 denotes a lower bound to limit the hunger sensation 𝐻. 𝑟6 refers to the arbitrary integer in [0, 1] range.

There is no certain upgrade approach for HSG that elects the worst and best parameters based on FV, upgrades the next-generation parameters, followed by directly creates a novel population for replacing the novel population.

In Eqs. (20) and (21) compute the hunger of all the positions and variation control of every position.

𝑐= (𝐴𝑙𝑙𝑓𝑖𝑡𝑛𝑒𝑠𝑠(𝑖) −𝐷_𝑓𝑖𝑡𝑛𝑒𝑠𝑠)/(𝑊−𝑓𝑖𝑡𝑛𝑒𝑠𝑠−𝐷−𝑓𝑖𝑡𝑛𝑒𝑠𝑠)
∗𝑟𝑎𝑛𝑑∗2 ∗(𝑢𝑏−𝑙𝑏)                                               (20)
𝑉𝐶1 = (𝑎𝑏𝑠(𝐴𝑙𝑙𝑓𝑖𝑡𝑛𝑒𝑠𝑠(𝑖) −𝐷−𝑓𝑖𝑡𝑛𝑒𝑠𝑠))                                   (21)

In Eqs. (20) and (21), 𝐷_𝑓𝑖𝑡𝑛𝑒𝑠𝑠 denotes the finest fitness and 𝑊_𝑓𝑖𝑡𝑛𝑒𝑠𝑠 exemplifies the worse fitness. 𝑟𝑎𝑛𝑑 stands for the arbitrary number from the range between 0 and 1.

In the searching model, any one is applied for completing the global as well as local searches, correspondingly.

Figure

The fitness optimum is a crucial factor of HGSO model. An encoded accomplishment is exploited to progress the best solution for candidate results. Currently, the value of accuracy is a primary state utilized in FF.

𝐹𝑖𝑡𝑛𝑒𝑠𝑠 = max (𝑃)                                                           (22)
𝑃= 𝑇𝑃 𝑇𝑃+ 𝐹𝑃                                                              (23)

Where 𝐹𝑃 and 𝑇𝑃 signifies the values of false and true positive.

4. Results and Discussion

In this study, the sleep quality prediction results of the ASQR-HGSODL approach are verified on the Kaggle database [22], containing 400 samples with 4 class labels as portrayed in Table 1. The original database contains the values of sleep quality in 0–100% range. In this case, it can be separated the database into 4 classes depending on the level of sleep quality.

Figure 3. reveals the confusion matrices created by the ASQR-HGSODL approach of the TR/TS set under diverse measures. The outputs signified effectual detection and categorization of the overall classes.
Figure 3. reveals the confusion matrices created by the ASQR-HGSODL approach of the TR/TS set under diverse measures. The outputs signified effectual detection and categorization of the overall classes.
Table 1. Dataset Specification
Figure 3. Confusion matrices of TR/TS set (a-b) 80:20 (c-d) 70:30
Figure 3. Confusion matrices of TR/TS set (a-b) 80:20 (c-d) 70:30

In Table 2 and Figure 4, the sleep quality prediction output of the ASQR-HGSODL approach is demonstrated under 80:20 set. The result indicates the effectual enhancement of the ASQR-HGSODL approach under overall classes. On the 80% TR set, the ASQR-HGSODL approach obtains average 𝑎𝑐𝑐𝑢𝑦, 𝑝𝑟𝑒𝑐𝑛, 𝑟𝑒𝑐𝑎𝑙, 𝐹𝑠𝑐𝑜𝑟𝑒, and 𝐺𝑚𝑒𝑎𝑠𝑢𝑟𝑒 of 98.44%, 96.77%, 96.97%, 96.83%, and 96.85% respectively. Additionally, on the 20% TS set, the ASQR-HGSODL methodology gains average 𝑎𝑐𝑐𝑢𝑦, 𝑝𝑟𝑒𝑐𝑛, 𝑟𝑒𝑐𝑎𝑙, 𝐹𝑠𝑐𝑜𝑟𝑒, and 𝐺𝑚𝑒𝑎𝑠𝑢𝑟𝑒 of 98.13%, 95.20%, 96.92%, 95.91%, and 95.98% correspondingly.

Table 2. Sleep quality prediction outcome of ASQR-HGSODL approach on 80:20 of TR/TS set
Figure 4. Average of ASQR-HGSODL approach on 80:20 of TR/TS set
Figure 4. Average of ASQR-HGSODL approach on 80:20 of TR/TS set

In Table 3 and Figure 5, the sleep quality prediction output of the ASQR-HGSODL methodology is portrayed under 70:30 set. The outputs indicate the effectual enhancement of the ASQR-HGSODL method with 4 classes. Under the 70% TR set, the ASQR-HGSODL method obtains average 𝑎𝑐𝑐𝑢𝑦, 𝑝𝑟𝑒𝑐𝑛, 𝑟𝑒𝑐𝑎𝑙, 𝐹𝑠𝑐𝑜𝑟𝑒, and 𝐺𝑚𝑒𝑎𝑠𝑢𝑟𝑒 of 96.61%, 93.17%, 93.14%, 93.12%, and 93.14% subsequently. Additionally, on 30% TS set, the ASQRHGSODL method achieves average 𝑎𝑐𝑐𝑢𝑦, 𝑝𝑟𝑒𝑐𝑛, 𝑟𝑒𝑐𝑎𝑙, 𝐹𝑠𝑐𝑜𝑟𝑒, and 𝐺𝑚𝑒𝑎𝑠𝑢𝑟𝑒 of 97.92%, 95.61%, 95.74%, 95.63%, and 95.66% correspondingly.

Table 3. Sleep quality prediction outcome of ASQR-HGSODL approach on 70:30 of TR/TS set
Table 3. Sleep quality prediction outcome of ASQR-HGSODL approach on 70:30 of TR/TS set
Figure 5. Average of ASQR-HGSODL approach on 70:30 of TR/TS set
Figure 5. Average of ASQR-HGSODL approach on 70:30 of TR/TS set

To estimate the achievement of the ASQR-HGSODL model under 80:20 of TR/TS set, 𝑎𝑐𝑐𝑢𝑦 curves of TR/TS set are determined, as shown in Figure 6, and depicts the achievement of the ASQR-HGSODL approach over various epochs. The figure portrays the learning task and generalization capabilities of the ASQR-HGSODL approach. As epoch count rises, it is noted that the TR and TS 𝑎𝑐𝑐𝑢𝑦 curves are increased. It is seen that the ASQR-HGSODL approach attained improved testing accuracy that has the capability for recognizing the TR/TS data patterns.

Figure 6. 𝐴𝑐𝑐𝑢𝑦 Curve of ASQR-HGSODL approach on 80:20 of TR/TS set
Figure 6. 𝐴𝑐𝑐𝑢𝑦 Curve of ASQR-HGSODL approach on 80:20 of TR/TS set

Figure 7 exhibits the complete TR/TS values of loss of the ASQR-HGSODL model on 80:20 of the TR/TS set over epochs. The TR loss displays that the loss is diminished over epochs. Primarily, the values of loss get minimal as the technique adapts the weight for mitigating the TR/TS data prediction error. The loss curves portrays the extent in which the model fits the data of training. It is seen that the TR/TS value of loss gradually dropped and signified that the ASQR-HGSODL approach efficiently learned the patterns depicted in the TR/TS data. It is also detected that the ASQR-HGSODL approach alters the parameters for minimizing the divergence among the original and predicted trainings.

Figure 7. Loss curve of ASQR-HGSODL approach on 80:20 of TR/TS set
Figure 7. Loss curve of ASQR-HGSODL approach on 80:20 of TR/TS set
Figure 8. PR curve of ASQR-HGSODL approach on 80:20 of TR/TS set
Figure 8. PR curve of ASQR-HGSODL approach on 80:20 of TR/TS set

The PR curve of the ASQR-HGSODL technique on 80:20 of the TR/TS set is portrayed by plotting 𝑃𝑟𝑒𝑐𝑛 against 𝑅𝑒𝑐𝑎𝑙 as illustrated in Figure 8. The results confirm that the ASQR-HGSODL technique gets increased PR values under the overall classes. The figure depicts that the technique learned to detect several classes. The ASQRHGSODL method achieves enhanced outcomes in the positive sample recognition with minimum FP.

The ROC curves depicted by the ASQR-HGSODL approach on 80:20 of the TR/TS set are exemplified in Figure 9 that has the ability for discriminating the classes. The figure points out notable understandings into the trade-off amongst the rates of TPR and FPR over discrete and changing classification thresholds and epoch numbers. It signifies the precise anticipated achievement of the ASQR-HGSODL approach on the distinct class classification.

Figure 9. ROC curve of ASQR-HGSODL approach on 80:20 of TR/TS set
Figure 9. ROC curve of ASQR-HGSODL approach on 80:20 of TR/TS set

A comparative result of the ASQR-HGSODL approach with recent methods in Table 4 and Figure 10 [11]. The outputs inferred that the LSTM approach attains poor performance while the MLP, CNN, and LR algorithms attain somewhat enhanced results. Along with that, the RNN model gains moderate performance. Although the WSHMSQP-ODL model reaches considerable results, the ASQR-HGSODL technique accomplishes higher 𝑎𝑐𝑐𝑢𝑦 of 98.44%, 𝑝𝑟𝑒𝑐𝑛 of 96.77%, 𝑟𝑒𝑐𝑎𝑙 of 96.97%, and 𝐹𝑠𝑐𝑜𝑟𝑒 of 96.83%. Therefore, the ASQR-HGSODL technique can be employed for automated sleep quality prediction.

Figure 10. Comparative outcome of ASQR-HGSODL approach with recent methods
Figure 10. Comparative outcome of ASQR-HGSODL approach with recent methods
Table 4. Relative output of ASQR-HGSODL approach with existing techniques
Table 4. Relative output of ASQR-HGSODL approach with existing techniques

5. Conclusion

In this study, a novel ASQR-HGSODL methodology for accurate and automated sleep quality detection in the IoT-assisted smart healthcare system is presented. The ASQR-HGSODL methodology allows the IoT devices to perform a data collection process, which collects the data related to sleep activity. It incorporates several sub processes namely pre-processing, AOA-based feature selection, ConvLSTM-based classification, and HGSObased tuning process. Here, the ASQR-HGSODL technique applied the AOA to elect a subset of features. For sleep quality prediction, the ASQR-HGSODL technique utilized the ConvLSTM approach. Finally, the HGSO method has been employed for optimum hyperparameter selection of the ConvLSTM method. To exhibit the effectual prediction results of the ASQR-HGSODL approach, a wide range of simulations can be applied. The investigational results highlight the improved outcome of the ASQR-HGSODL approach with other DL methodologies.

Funding: “This research received no external funding”

Conflicts of Interest: “The authors declare no conflict of interest.”

References

  1. [1] Zhang, L., Chen, S., Jin, X. and Wan, J., 2021. Smart Home Based Sleep Disorder Recognition for Ambient Assisted Living. In Artificial Intelligence and Security: 7th International Conference, ICAIS 2021, Dublin, Ireland, July 19–23, 2021, Proceedings, Part II 7 (pp. 466-475). Springer International Publishing. [2] Rajeswari, S.V.K.R. and Ponnusamy, V., 2022. Internet of Things and Artificial Intelligence in Biomedical Systems. In Artificial Intelligence for Innovative Healthcare Informatics (pp. 153-177). Cham: Springer International Publishing. [3] Yang, F., Wu, Q., Hu, X., Ye, J., Yang, Y., Rao, H., Ma, R. and Hu, B., 2021. Internet-of-things-enabled data fusion method for sleep healthcare applications. IEEE Internet of Things Journal, 8(21), pp.15892-15905. [4] Rangasamy, S., Rajamohan, K., Lavan, V.S., Mayur, C. and Lalitha, M.F., 2023. Evolutionized Industry With the Internet of Things. In Handbook of Research on Machine Learning-Enabled IoT for Smart Applications across Industries (pp. 407-434). IGI Global. [5] Sun, Z., Kadry, S.N. and Krishnamoorthy, S., 2021. Internet of things-assisted advanced dynamic information processing system for physical education system. Technology and Health Care, 29(6), pp.1263-1275. [6] Anu, V.M., Jagadeesh, M., Gladence, L.M., Srinivasulu, S., Revathy, S. and Rani, V.N., 2022. Tuning Hyper Parameters of Deep Learning Model to Monitor Obstructive Sleep Apnea (OSA). Sleep Epidemiology, 2, p.100031. [7] Wang, Y., Hu, M., Zhou, Y., Li, Q., Yao, N., Zhai, G., Zhang, X.P. and Yang, X., 2020. Unobtrusive and automatic classification of multiple people’s abnormal respiratory patterns in real time using deep neural network and depth camera. IEEE Internet of Things Journal, 7(9), pp.8559-8571. [8] Jaworski, D.J., Park, A. and Park, E.J., 2021. Internet of Things for sleep monitoring. IEEE Instrumentation & Measurement Magazine, 24(2), pp.30-36. [9] Azman, N., Abd Ghani, M.K.B., Wicaksono, S.R., Kurniawan, B. and Repi, V.V.R., 2020. Insomnia analysis based on internet of things using electrocardiography and electromyography. TELKOMNIKA (Telecommunication Computing Electronics and Control), 18(3), pp.1406-1415. [10] Sahu, K.S., Majowicz, S.E., Dubin, J.A. and Morita, P.P., 2021. NextGen public health surveillance and the internet of things (IoT). Frontiers in Public Health, 9, p.756675. [11] Hamza, M.A., Abdalla Hashim, A.H., Alsolai, H., Gaddah, A., Othman, M., Yaseen, I., Rizwanullah, M. and Zamani, A.S., 2023. Wearables-Assisted Smart Health Monitoring for Sleep Quality Prediction Using Optimal Deep Learning. Sustainability, 15(2), p.1084. [12] Yu, B., Wang, Y., Niu, K., Zeng, Y., Gu, T., Wang, L., Guan, C. and Zhang, D., 2021. WiFi-sleep: Sleep stage monitoring using commodity Wi-Fi devices. IEEE internet of things journal, 8(18), pp.13900-13913. [13] Shen, Q., Yang, X., Zou, L., Wei, K., Wang, C. and Liu, G., 2022. Multitask residual shrinkage convolutional neural network for sleep apnea detection based on wearable bracelet photoplethysmography. IEEE Internet of Things Journal, 9(24), pp.25207-25222. [14] Han, J., Men, A., Liu, Y., Yao, Z., Zhang, S., Yan, Y. and Chen, Q., 2023. IoT-V2E: an Uncertainty- Aware Cross-Modal Hashing Retrieval between Infrared-Videos and EEGs for Automated Sleep State Analysis. IEEE Internet of Things Journal. [15] Brik, B., Esseghir, M., Merghem-Boulahia, L. and Snoussi, H., 2021. An IoT-based deep learning approach to analyse indoor thermal comfort of disabled people. Building and Environment, 203, p.108056. [16] Nijaguna, G.S., Kumar, S., Devika, S.V., Lal, B. and Kumar, P., 2023, February. Internet of Things Based Tired Detection using Deep Learning Techniques. In 2023 IEEE International Conference on Integrated Circuits and Communication Systems (ICICACS) (pp. 1-7). IEEE. [17] Liu, M., Lin, Z., Xiao, P. and Xiang, W., 2022. Human biometric signals monitoring based on wifi channel state information using deep learning. arXiv preprint arXiv:2203.03980. [18] Arora, A., Chakraborty, P., Bhatia, M.P.S. and Kumar, A., 2023. Deep‐SQA: A deep learning model using motor activity data for objective sleep quality assessment assisting digital wellness in healthcare 5.0. Expert Systems, p.e13321. [19] Ghith, E.S. and Tolba, F.A.A., 2023. Tuning PID Controllers Based on Hybrid Arithmetic Optimization Algorithm and Artificial Gorilla Troop Optimization for Micro-Robotics Systems. IEEE access, 11, pp.27138-27154. [20] Jia, F., Tan, J., Lu, X. and Qian, J., 2023. Radar Timing Range–Doppler Spectral Target Detection Based on Attention ConvLSTM in Traffic Scenes. Remote Sensing, 15(17), p.4150. [21] Zhan, B. and Gu, W., 2023. A Multi-Stage Adaptive Sequential Parameter Exploration Hunger Games Search Algorithm for solving complex optimization problems. IEEE Access. [22] https://www.kaggle.com/code/jumpingmandt/sleepdata-study/data.