Skip to main content
Scientific Reports logoLink to Scientific Reports
. 2025 Sep 29;15:33641. doi: 10.1038/s41598-025-12283-1

Dual Attention-Based recurrent neural network and Two-Tier optimization algorithm for human activity recognition in individuals with disabilities

Hend Khalid Alkahtani 1,✉, Gouse Pasha Mohammed 2, Radwa Marzouk 3,4
PMCID: PMC12480464  PMID: 41022965

Abstract

Human activity recognition (HAR) has been one of the active research areas for the past two years for its vast applications in several fields like remote monitoring, gaming, health, security and surveillance, and human-computer interaction. Activity recognition can identify/detect current actions based on data from dissimilar sensors. Much work has been completed on HAR, and scholars have leveraged dissimilar methods, like wearable, object-tagged, and device-free, to detect human activities. The emergence of deep learning (DL) and machine learning (ML) methods has proven efficient for HAR. This research proposes a Dual Attention-Based Two-Tier Metaheuristic Optimization Algorithm for Human Activity Recognition with Disabilities (DATTMOA-HARD) model. The main intention of the DATTMOA-HARD model relies on improving HAR to assist disabled individuals. In the initial stage, the Z-score normalization converts input data into a beneficial format. Furthermore, the binary firefly algorithm (BFA) model is employed for feature selection. Moreover, the proposed DATTMOA-HARD model implements the dual attention bidirectional gated recurrent unit (DABiG) technique for the classification process. Finally, the Tasmanian devil optimizer (TDO)-based hyperparameter selection is accomplished to enhance the detection results of the DABiG model. The experimental evaluation of the DATTMOA-HARD approach is examined under the HAR dataset. The comparison analysis of the DATTMOA-HARD approach portrayed a superior accuracy value of 98.66% over existing methods.

Keywords: Two-Tier metaheuristic optimization algorithm; Human activity recognition; Disabilities; Feature selection, data normalization

Subject terms: Computational biology and bioinformatics, Mathematics and computing

Introduction

HAR is vital in an individual’s everyday routine because it can learn cutting-edge intelligence about human interference from raw sensor data1. The HAR technology became prevalent in investigations targeted abroad and at home2. Individuals can automatically categorize the kind of human motion and attain the data from everyday actions that present a source for another intellectual application3. Investigators have inquired about the role of diverse kinds of sensing technology in activity monitoring to enhance precision. HAR has become a complex field of research owing to the handiness of sensors in wearable gadgets such as smartwatches, smartphones, and more4. These consume less power and are cost-effective, comprising live cascading of time-series information. The HAR models might be classified into dual classes based on data resources: sensor- and visual-based5. Owing to the fast improvement of sensors and prevalent computing technologies, sensor-based HAR became continuously more prevalent, and it is extensively utilized with confidentiality being safely protected. Sensor-based HAR is generally used in smart gadgets since smartphones and their privacy are highly secured with the progression of prevalent sensor and computer automation6. As a wearable gadget, progressive smartphones have become extremely simple. Equipped with implanted sensors like gyroscopes, smartphones, accelerometers, ambient sensors, and Bluetooth, investigators can also analyze everyday lives7.

Over recent years, investigators have organized many studies to discover multiple sensing technologies and techniques projected for recognizing and modelling human activities8. Sensor-based HAR on a gadget might be deliberated as an ML technique intended to continually track the user’s actions, although it is related to a person’s body9. Conventional models have made significant strides in the performance of advanced DL models, comprising Support Vector Machine (SVM), Decision Tree (DT), Artificial Neural Networks (ANN), and Naive Bayes (NB). However, these conventional ML models might finally aim at heuristic, handcrafted feature extractors usually subject to professional background10. Nevertheless, the efficacy of traditional ML approaches in categorizing precision and other measurements is limited. HAR significantly enhances the quality of life, particularly for individuals with disabilities, by enabling better monitoring and assistance in daily tasks. With the widespread utilization of wearable devices equipped with various sensors, there is an opportunity to combine rich data for accurate and real-time activity analysis. There still exists a challenge due to noisy data, variability in human behaviour, and the complexity of interpreting sensor signals effectively. Reliable and adaptive systems may be achieved by addressing these challenges, which assists personalized healthcare and assistive technologies. Therefore, developing robust models that can effectually process and interpret sensor data is crucial for advancing HAR applications.

This research proposes a Dual Attention-Based Two-Tier Metaheuristic Optimization Algorithm for Human Activity Recognition with Disabilities (DATTMOA-HARD) model. The main intention of the DATTMOA-HARD model relies on improving HAR to assist disabled individuals. In the initial stage, the Z-score normalization converts input data into a beneficial format. Furthermore, the binary firefly algorithm (BFA) model is used for feature selection. Moreover, the proposed DATTMOA-HARD model implements the dual attention bidirectional gated recurrent unit (DABiG) technique for the classification process. Finally, the Tasmanian devil optimizer (TDO)-based hyperparameter selection is accomplished to enhance the detection results of the DABiG model. The experimental evaluation of the DATTMOA-HARD approach is examined under the HAR dataset. The key contribution of the DATTMOA-HARD approach is listed below.

  • The DATTMOA-HARD model applies Z-score normalization to standardize input features, converting them to have zero mean and unit variance. This step enhances model convergence, stability, and performance and mitigates the influence of scale differences across features.

  • The DATTMOA-HARD method employs the BFA technique to select the most relevant features, effectively mitigating dimensionality. This approach enhances computational efficiency and accelerates training time. Concentrating on crucial data attributes also assists in improving overall accuracy.

  • The DATTMOA-HARD technique utilizes a DABiG methodology that integrates spatial and temporal attention mechanisms to capture intrinsic dependencies. This improves sequential data’s accuracy and contextual comprehension and enhances the model’s capability to concentrate on crucial features over time for better classification performance.

  • The DATTMOA-HARD methodology implements the TDO technique to fine-tune hyperparameters efficiently, ensuring optimal classification performance. This optimization improves the model’s adaptability to diverse datasets, mitigates training time, and improves overall accuracy.

  • Integrating a dual attention mechanism within a Bi-GRU architecture, integrated with the BFA for feature selection and optimized by the TDO, presents a novel HAR framework. This framework uniquely balances accuracy, efficiency, and adaptability by capturing spatial-temporal dependencies and selecting relevant features. Its optimization approach ensures superior performance across various datasets. Overall, the model outperformed sequential models in both precision and computational cost.

Related works

Khan et al.11 proposed an ensemble model of LSTM and 1D-CNN for postural transition recognition caused by wearable sensors and wireless computing. Attracting pervasive learning will eventually induce the formation of adjustable gadgets allowed by multiple data analysis and relational learning models. This technique might be integrated to enable seamless learning and obtain co-relations with adaptive learning models. Duhayyim12 introduces an Improved Pelican Optimizer with Deep Transfer Learning enabled HAR (IPODTLHAR) method for impaired individuals. The IPODTL-HAR model’s main objective was to identify impaired people’s human activities. The projected method monitors data preprocessing to improve the data quality. Moreover, the EfficientNet approach originates valuable vector features, and the hyper-parameters are modified using Nadam optimization. Eventually, the IPO will employ DBN methods to classify and recognize human actions. It aids in effectually tuning the hyper-parameters connected to the DBN and EfficientNet techniques correspondingly. Serpush et al.13 introduced a specialized solution by developing an FSVM and DeepCNN to remove substantial aspects and label activities utilizing an FMF. By employing FSVM with FMF, the problem of transferring samples to the proper class is resolved, inducing more precise categorization and an adaptable technique. Dastbaravardeh et al.14 developed an enhanced approach to identify human actions in lower-size and lower-resolution videos by utilizing an autoencoder (AE) and CNN with a channel attention mechanism (CAM). By improving blocks with more demonstrative aspects, convolution layers remove discriminating aspects from several systems. In addition, random sampling of frames is utilized to enhance precision while leveraging less information. The objective is to raise implementations and overcome challenges like computational complexity, overfitting, and ambiguity by employing AE and CNN-CAM. Cob-Parro et al.15 projected a model for individual and action identification in the wild. HAR is accomplished by utilizing RNN, particularly an LSTM. The LSTM input is an ad-hoc, lightweight vector feature from the bounding box. Alotaibi et al.16 develop a novel arithmetic optimization algorithm with a long short-term memory autoencoder (AOA-LSTMAE) method for the HAR model in an IoT setting. During this projected model, the main goal is to identify multiple kinds of human actions in the IoT setting. The model primarily originates the P-ResNet method for extracting features to attain this. Furthermore, the projected model leverages the LSTMAE classification technique to identify diverse actions. To enhance the effectiveness of the LSTMAE technique, AOA is utilized as a hyper-parameter optimization method.

In17, the relationship among properties and human activities of Wi-Fi CSI signals is examined on several receiving antennas and the signal assets that differ unusually in response to human actions. The dissimilarity between several antennas illustrates several sensitivities to human actions, instantly influencing detection performance. Consequently, an adaptive antenna extraction model that mechanically extracts the non-sensitive antenna is presented to identify human actions with greater efficacy. Sinha and Kumar18 developed an efficient ensemble-based framework for HAR using advanced preprocessing, feature extraction, and optimized classification techniques. Zhou et al.19 presented efficient, lightweight DL techniques for HAR on resource-constrained edge devices using TinyML. Sinha, Kumar, and Ghosh20 proposed a four-stage framework for accurate HAR using advanced preprocessing, feature extraction, and a fusion of Bi-GRU and bidirectional long short-term memory (Bi-LSTM) classifiers, improved by the dempster-shafer theory (DST). Rafee, Zishan, and Noor21 aimed to enable real-time HAR and fall detection (FD) by utilizing an optimized DT and random forest (RF) models on low-power microcontrollers such as Arduino UNO and ESP32 for efficient on-device processing. Chen et al.22 proposed the multiple spectrogram fusion network (MSF-Net), a robust DL method using multiple spectrogram fusion and Transformer architecture, to enhance WiFi-based HAR despite environmental interference. Zhou et al.23 proposed a covariance-based graph convolutional network (CovGCN) with a topology refinement module (CovTRM) to improve hand gesture recognition utilizing surface electromyography by dynamically learning muscle network topologies. Sinha and Kumar24 improved HAR from UAV videos using a novel diminutive multi-dimensional locality coding-based convolutional neural network (DMLC-CNN) methodology with advanced segmentation, feature extraction, and encoding techniques. Ghous, Najam, and Jalal25 aimed to enhance emotion detection in individuals with cognitive disabilities using EEG data and a multi-class SVM integrated with an advanced feature selection method. Bollampally et al.26 improved HAR accuracy and efficiency using a BiLSTM model on the PAMAP2 dataset. Zhou et al.27 proposed the cross-scale shuffle attention you only look once (CSSA-YOLO) network to improve classroom behaviour recognition by addressing occlusion and complex backgrounds through advanced feature optimization and attention mechanisms.

Despite improvements in HAR, the utilized studies face difficulty in several scenarios. Several methods encounter challenges with real-time deployment on resource-constrained devices, restricting their applicability in edge environments. Models depending on visual sensors are affected mainly by occlusion, background complexity, and lighting discrepancies, which mitigate detection accuracy. Techniques utilizing sEMG or EEG data encounter threats in capturing reliable topologies and subtle signal discrepancies. Moreover, AOA and IPO optimization, n techniques lack g, generalization across diverse HAR scenarios. Few approaches rely on heavy models such as CNN and LSTM, which are ineffective for low-power devices. A gap exists in developing lightweight, adaptive, and robust models that can effectively handle noisy data, sensor variability, and dynamic activity contexts while ensuring scalability across diverse HAR settings.

Materials and methods

This manuscript proposes the DATTMOA-HARD technique. The main intention of the DATTMOA-HARD technique is to improve HAR to assist disabled individuals. To accomplish that, the DATTMOA-HARD model has data normalization, dimensionality reduction, HAR classification, and parameter selection defined in Fig. 1.

Fig. 1.

Fig. 1

Overall process of DATTMOA-HARD model.

Data normalization: Z-score

Initially, the Z-score normalization is employed to convert input data into a beneficial format28. This model is chosen for its ability to effectually standardize features by centring them around a mean of zero and scaling to unit variance, which assists in handling data with varying scales and distributions. The technique is more robust to extreme values, preserving the overall data structure. This methodology also enhances the convergence speed of various ML techniques, particularly those sensitive to feature scales, such as neural networks and gradient-based models. Moreover, Z-score normalization maintains the relative relationships between data points, which is significant for time-series or sequential data. Its simplicity and efficiency in mitigating bias due to scale differences make it an ideal choice over other normalization methods for this model.

Z-score normalization is a statistical technique for standardizing the features in HAR tasks, mainly when functioning with sensor data. As an outcome, the malformed data has a standard deviation of 1 and a mean of 0, making it simpler to equate diverse features with fluctuating measures. It generally aids in decreasing the impact of outliers and certifies that every feature donates similarly to the ML technique. It is particularly beneficial in HAR when sensor readings differ significantly across diverse devices or atmospheres. This normalization method boosts the convergence and performance of several ML models applied to HAR classification tasks.

Dimensionality reduction: BFA

Afterwards, the feature selection is performed by BFA29. This method is chosen for its effectiveness in solving combinatorial optimization problems such as feature selection. Unlike conventional methods such as principal component analysis (PCA), which transform features into a new space and may lose interpretability, BFA directly chooses the most relevant original features, preserving their meaning. The model also effectually explores the solution space, avoiding local minima better than simpler heuristic methods. Furthermore, this technique effectually balances exploration and exploitation through firefly brightness and attractiveness, resulting in a robust selection of feature subsets that improve model accuracy while mitigating computational complexity. Its binary encoding suits feature selection tasks, making it an appropriate choice over other metaheuristic algorithms for this application. Figure 2 specifies the BFA method.

Fig. 2.

Fig. 2

Overall process of DATTMOA-HARD model.

Like numerous biologically inspired models, the firefly algorithm (FA) uses observable behaviour from the real world to update heuristic methods to solve composite optimizer problems, ranging from continuous to separate fields. In feature selection (FS), all fireflies characterize particular combinations of chosen features from the dataset, usually signified as a binary vector. At the same time, individual bits specify the exclusion or inclusion of specific characteristics. As the iterative method advances, fireflies pass through the feature subsets space, consistently dropping towards structures with larger appraising scores. Concurrently, they present stochastic disturbances to guarantee a complete exploration of the searching area. This interaction of probability-based exploration and predetermined attraction allows subtle search approaches, permitting Inline graphic to detect an optimum or close-optimum feature subdivision, which improves prognostic precision and possibly dimensionality reduction. The major mathematical equation for the solution vector to the optimizer issue is represented as:

graphic file with name d33e408.gif 1

Whereas Inline graphic refers to the scaling feature that controls the arbitrary walk’s step size, Inline graphic signifies a randomly generated vector number that is extracted from a Gaussian distribution at all iterations, Inline graphic stands for scale-dependent parameter controls the firefly’s visibility, Inline graphic denotes attractiveness constant after the distance amongst two fireflies is 0. It has to be noted that the distance Inline graphic amongst Inline graphicandInline graphic fireflies is described as their distance from Cartesian to eliminate some vagueness within greater sizes. Moreover, the Inline graphic is intended to optimize issues constantly. The problem of FS is stated as a boolean value array, so the FA’s binary version is needed. This was achieved by combining a threshold‐based (threshold Inline graphic) binarization procedure while the fireflies’ constant positional values are round and related beside the threshold to make binary decisions for FS. The fireflies’ movement near optimistic individuals is attuned by the attractive feature Inline graphic that reduces with distance and is additionally affected by randomization terms. The formulation is given below:

graphic file with name d33e477.gif 2

Whereas Inline graphic refers to minimal attractiveness, this binary adaptation allows the model to carry out FS tasks by explaining all bits as the absence or presence of features instead of a location in a continuous area.

Therefore, the non-linear attraction mechanism of the FA permits shorter-distance attractions. In these sub‐swarms, the arrival of the global solution is conceptually guaranteed. Moreover, provided the ability of the FA to work with numerous swarms, it is perfectly appropriate to deal with non-linear, multi-modal optimization challenges.

The fitness function (FF) reveals the accuracy of classification and the quantity of voted features. It maximizes the classification accuracy and decreases the dimension of the chosen features. Therefore, the FF mentioned below is applied for evaluating individual solutions, as set in Eq. (3).

graphic file with name d33e498.gif 3

Inline graphic is the classification rate of error. Inline graphic is computed as the ratio of improper classification to many classifications set between 0 and 1. Inline graphic signifies the number of chosen features; Inline graphic refers to the complete number of features. Inline graphic is applied for controlling the import of classification excellence and sub-set length.

HAR classification: DABiG

Besides, the proposed DATTMOA-HARD model designs a DABiG technique for the classification process30. This model is chosen for its efficiency in capturing spatial and temporal dependencies in sequential data. Unlike standard GRUs or LSTMs, the dual attention mechanism allows the model to concentrate selectively on crucial features across time and space, improving contextual understanding. This enhances recognition accuracy, especially in complex and noisy environments typical of HAR tasks. The bidirectional structure processes data in both forward and backward directions, capturing past and future context, which is significant for precise activity recognition. Compared to other models like CNNs or single-attention RNNs, DABiG presents a better computational efficiency and performance balance, making it appropriate for real-time HAR applications. Figure 3 portrays the infrastructure of DABiG.

Fig. 3.

Fig. 3

Architecture of DABiG.

The Bi-GRU is a recurrent neural network (RNN) that processes sequential data bi-directionally. It contains dual layers of GRU; one processes the data in the forward direction and the other in the backward direction. GRUs are recognized for their capability to seize longer-term dependencies in sequential data while being computationally efficient. All GRU cells provide a hidden state, which encodes information from preceding time steps and utilizes it to upgrade its present state. Moreover, spatial attention concentrates on information from dissimilar spatial positions (for example, sensors on the abdomen, back, and chest), whereas data is gathered. The spatial attention mechanism calculates attention weights for all spatial positions, representing which sensors are most relevant for the classification task. These weights are frequently learned in training. The spatial attention weights combine the spatial information into a single, weighted representation. For every time step, the temporal attention mechanism calculates an attention or weight score, representing the significance of that time step’s data for the others in the sequence. The temporal attention weights generate a weighted sequence representation, highlighting the most relevant time steps for classification.

Primarily, the candidate state Inline graphic is assessed by considering the result of the reset gate Inline graphic. The candidate estimation state Inline graphic is written as:

graphic file with name d33e578.gif 4

Now, Inline graphic indicates the reset gate and is specified as:

graphic file with name d33e592.gif 5

By utilizing the reset gate, unsuitable details are eliminated, and then, the updated gate Inline graphic controls the process as follows:

graphic file with name d33e606.gif 6

At last, the hidden state outcome Inline graphic is stated as:

graphic file with name d33e620.gif 7

whereas the weight is described as Inline graphic stands for the input, and Inline graphic means the sigmoid function. GRU networks are recognized for their capability to seize long-range dependencies in sequential data. Nevertheless, they can occasionally contend with particular patterns, which need an understanding of either past or future contexts. Bi-GRU alleviates this problem by using information from either direction, making it best appropriate to capture longer-term dependences. The result of the forward and backward hidden state result is delineated as follows:

graphic file with name d33e640.gif 8
graphic file with name d33e646.gif 9
graphic file with name d33e652.gif 10

Meanwhile, weights regarding the backward and forward hidden layer (HL) are correspondingly designated as Inline graphic and Inline graphic. The state of the HL in either the forward or backward handling is written as Inline graphic and Inline graphic correspondingly. At the time Inline graphic, the state of the HL is designated as Inline graphic. Formerly, the weighting mechanism was developed utilizing the double attention mechanism called spatial and temporal attention to enhance the classification precision.

Temporal Attention Module: A temporal attention mechanism allocates weights to all time steps inside the sequence. These weights characterize the relative significance of all sequence parts in making the last classification decision. After computing the attention weights, the method calculates the input sequence’s weighting amount, multiplying all time steps by their equivalent attention weight.

graphic file with name d33e699.gif 11
graphic file with name d33e705.gif 12

whereas, Inline graphic denotes the temporal weights of the attention layers, Inline graphic and Inline graphic signify the bias and weight Inline graphic refers to temporal attention output and the dot product is specified as Inline graphic

Spatial Attention Module: The mechanisms allocate significance weights to dissimilar spatial features inside the input data. These weights characterize the relative importance of all features for the classification task. Features with greater weight are measured more significantly when making the last classification decision. After calculating the attention weights, the model typically carries out a weighted sum or a weighted collection of the input data according to these weights.

graphic file with name d33e745.gif 13
graphic file with name d33e751.gif 14

Here, Inline graphic represents the weights of the spatial attention layer, Inline graphic and Inline graphic signify the bias and weight and Inline graphic denotes spatial attention output.

Softmax Classification: At last, the softmax classification is developed to classify.

Parameter selection: TDO

Finally, the TDO-based hyperparameter range method is achieved to enhance the detection outcomes of the DABiG model31. This method is chosen for its effectual global search capability and convergence behaviour inspired by the natural foraging strategy of Tasmanian devils. Compared to conventional optimization methods such as grid or random search, this model effectually balances exploration and exploitation, mitigating the risk of getting trapped in local optima. Its adaptive nature allows for dynamic adjustment of search parameters, resulting in faster and more precise tuning of hyperparameters. The model is effectual as it needs fewer iterations to find optimal solutions, thus saving computational resources. This makes it specifically advantageous for complex models like DABiG, where fine-tuning numerous parameters can be computationally expensive and time-consuming. Figure 4 indicates the flow of the TDO technique.

Fig. 4.

Fig. 4

Working flow of the TDO method.

The TDO model considers other TD positions in the population promising corpse spots inside the search space. One such phenomenon, in which the Inline graphic TD selects the Inline graphicpopulation member as the objective carrion, is demonstrated by Eq. (15) as an arbitrary selection. With the possible exemption of the number Inline graphic Inline graphic is randomly selected from 1 to Inline graphic to stop a TD from selecting itself as the goal.

graphic file with name d33e842.gif 15

Inline graphic specifies the carrion selected by the Inline graphic TD. After choosing the objective carrion, the TD has a novel location in the searching region. Based on this approach, the TD will adhere to the goal carrion during the simulated motion if its objective function is greater; if not, it will move out. Equation (16) characterizes this movement model. In this approach, the TD will preserve its present posture till it discovers a novel place, which gives an improved objective function value; at this time, it will accept the novel position. Equation (17) describes how the upgrade is produced:

graphic file with name d33e867.gif 16
graphic file with name d33e873.gif 17

Inline graphic signifies the randomly generated numerical value inside the range Inline graphic. Inline graphic represents the function or objective value associated with the selected carrionInline graphic substitutes for a random integer, which may have two dissimilar values. The objective function value is characterized by Inline graphic, and the upgraded position of the Inline graphic TD following the application of the initial model is characterized by Inline graphic. After using Tactic 1, the Inline graphic variable value at the new location of the Inline graphic TD is characterized by Inline graphic.

Tactic 1: using prey as a nutrition source

The dual major phases of TD’s second feeding approach are searching and consumption of prey. It finds the target and starts an attack primarily (initial phase). The prey is then followed and condensed immobile before consumption (second phase). Interestingly, this second approach’s initial stage, which entails choosing a target carrion, is modelled comparably to the initial modelling approach. Equation (17) over Eq. (20) pretends the initial portion of the next model, in which the TD selects its and attacks. Utilizing this next model, another population member is considered food supplies and prey. The location of the TD is upgraded. Equation (17) demonstrates how prey is selected:

graphic file with name d33e954.gif 18

The number selected randomly inside the interval of (1-Inline graphic is represented by Inline graphic. Inline graphic characterizes the prey selected by the Inline graphic TD. Next is victim identification, where the TD estimates its novel location. This position defines whether the present prey contains a lower or greater objective function value. The TD moves towards its prey when the conditions are correct; if not, it retreats. The TD can improve its search tactics by utilizing this approach. This procedure is validated in Eq. (19). The TD in the second model, Eq. (20), will only acknowledge the recently projected location if it increases the target function’s value.

graphic file with name d33e993.gif 19
graphic file with name d33e999.gif 20

Inline graphicthe TD’s Inline graphic present status is determined utilizing the second model. After using the second model, Inline graphic characterizes the Inline graphicparameter value for the Inline graphic. After using the second model, the objective function value related to the Inline graphic TD is characterized as Inline graphic. Inline graphic presents the objective function value equivalent to the TD’s chosen meal. The main change between the 1 st and 2nd tactics is that the latter contains a prey-chasing stage, equivalent to a limited search within the search area. This exercise emphasizes the TD’s capability to benefit from opportunities and move towards improved candidate solutions. The TD observes prey close to the attacking place to imitate this search. The numerical description of Eqs. (21) to (23).

graphic file with name d33e1061.gif 21
graphic file with name d33e1067.gif 22
graphic file with name d33e1073.gif 23

The iteration counter is characterized by 𝑡, Inline graphic represents the maximal iterations, and the updated or novel location of the Inline graphic TD inside the area of its preceding location is signified by Inline graphic. The objective function value related to the Inline graphic TD at its upgraded or novel position is considered in Inline graphic. The sum of the Inline graphic parameter for the Inline graphic TD at its novel position is Inline graphic. The neighbourhood’s perimeter is characterized by the sign 𝑅 that has the assault point of TD in its centre. After all iterations, the TDO model computes novel locations and objective function values for all members of the TD. The model upgrades the number of TDs up to the end condition before moving on to the following iteration.

Fitness choice is a substantial feature that manipulates the outcome of the TDO model. The selection of a hyperparameter procedure contains an encoded solution technique to assess the efficacy of the candidate solution. At this point, accuracy is considered by the TDO method as the leading standard to project FF. Its mathematical formulation is expressed below:

graphic file with name d33e1132.gif 24
graphic file with name d33e1138.gif 25

Here, Inline graphic signifies the positive value of true, and Inline graphic denotes the positive value of false.

Experimental validation

This study examines the performance assessment of the DATTMOA-HARD technique under the HAR dataset32. The dataset holds 30,000 samples, with six classes defined in Table 1. Five features are in total, four of which were selected.

Table 1.

Details of the dataset.

Activity No. of Instances
Walking 5000
Jogging 5000
Upstairs 5000
Downstairs 5000
Sitting 5000
Standing 5000
Total Instances 30,000

Figure 5 displays the classifier performances of the DATTMOA-HARD method on the test dataset. Figure 5a and b exemplifies the confusion matrix through precise classification and identification of all classes on a 70%:30% TRASE/TESSE. Figure 5c signifies the PR examination, which notified higher performance over all classes. Eventually, Fig. 5d demonstrates the ROC study, which signifies proficient solutions with great ROC values for different class labels.

Fig. 5.

Fig. 5

(a-b) confusion matrix and (c-d) PR and ROC curves.

The classification results of the DATTMOA-HARD technique are demonstrated in Table 2; Fig. 6. The experimental values infer the effectual capability of the DATTMOA-HARD technique on the recognition process. With 70%TRASE, the DATTMOA-HARD technique obtains an average Inline graphic of 98.53%, Inline graphic of 95.61%, Inline graphic of 95.61%, Inline graphic of 95.60%, and MCC of 94.73%. Moreover, using 30%TESSE, the DATTMOA-HARD method attains an average Inline graphic of 98.66%, Inline graphic of 95.98%, Inline graphic of 95.97%, Inline graphic of 95.97%, and MCC of 95.17%.

Table 2.

Classifier outcome of DATTMOA-HARD technique with 70%TRASE and 30%TESSE.

Class Labels Inline graphic Inline graphic Inline graphic Inline graphic MCC
TRASE (70%)
Walking 98.70 95.24 96.97 96.09 95.32
Jogging 98.15 94.71 94.14 94.42 93.31
Upstairs 98.46 96.46 94.30 95.37 94.45
Downstairs 98.50 94.62 96.41 95.51 94.61
Sitting 98.78 96.24 96.43 96.34 95.60
Standing 98.63 96.39 95.41 95.90 95.07
Average 98.53 95.61 95.61 95.60 94.73
TESSE (30%)
Walking 98.96 96.88 97.01 96.94 96.31
Jogging 98.43 95.64 94.94 95.29 94.35
Upstairs 98.41 95.80 94.44 95.11 94.17
Downstairs 98.57 94.77 96.84 95.79 94.94
Sitting 98.81 96.46 96.39 96.42 95.71
Standing 98.78 96.33 96.20 96.26 95.53
Average 98.66 95.98 95.97 95.97 95.17

Fig. 6.

Fig. 6

Average of DATTMOA-HARD model with 70%TRASE and 30%TESSE.

Figure 7 depicts the TRA Inline graphic (TRAAY) and validation Inline graphic (VLAAY) performances of the DATTMOA-HARD approach. The values of Inline graphic are computed through a period of 0–25 epochs. The figure underscored that the values of TRAAY and VLAAY show an increasing trend, indicating the capacity of the DATTMOA-HARD technique with maximum performance through multiple repetitions. Moreover, the TRAAY and VLAAY values remain close across the epochs, notified lesser overfitting, and present superior performance of the DATTMOA-HARD technique, guaranteeing reliable calculation on unseen samples.

Fig. 7.

Fig. 7

Inline graphic curve of the DATTMOA-HARD approach.

Figure 8 shows the TRA loss (TRALO) and VLA loss (VLALO) graph of the DATTMOA-HARD method. The loss values are computed across a period of 0–25 epochs. The values of TRALO and VLALO represent a declining tendency, notifying the proficiency of the DATTMOA-HARD approach in harmonizing a tradeoff between generalization and data fitting. The successive reduction in loss values assures the improved performance of the DATTMOA-HARD approach and tunes the prediction solutions after a while.

Fig. 8.

Fig. 8

Loss curve of the DATTMOA-HARD approach.

Table 3; Fig. 9 portray the overall comparison analysis of the DATTMOA-HARD technique is portrayed33–35. The results showed that the DATTMOA-HARD technique achieved a greater outcome. According to Inline graphic, the DATTMOA-HARD model has gained a maximal Inline graphic of 98.66%. At the same time, the JDS-TL, Multi-channel CNN, WISNet, Bi-LSTM, Ensemble-GRU, Vid2Doppler, and MBGAN methodologies have achieved lesser Inline graphic of 87.89%, 95.51%, 95.82%, 94.10%, 96.96%, 81.64%, and 89.90%, respectively. In addition, according to Inline graphic, the DATTMOA-HARD model has attained a maximum Inline graphic of 95.98%. At the same time, the JDS-TL, Multi-channel CNN, WISNet, Bi-LSTM, Ensemble-GRU, Vid2Doppler, and MBGAN methodologies have accomplished minimal Inline graphic of 91.31%, 85.49%, 88.29%, 93.14%, 85.46%, 90.46%, and 94.02%, correspondingly.

Table 3.

Comparative results of the DATTMOA-HARD model with existing techniques33–35.

Classifier Inline graphic Inline graphic Inline graphic Inline graphic
JDS-TL Method 87.89 91.31 82.13 90.62
Multi-channel CNN 95.51 85.49 94.44 88.64
WISNet Method 95.82 88.29 87.05 91.25
Bi-LSTM Model 94.10 93.14 93.72 90.20
Ensemble-GRU 96.96 85.46 85.80 83.10
Vid2Doppler 81.64 90.46 87.12 94.39
MBGAN 89.90 94.02 93.17 91.63
DATTMOA-HARD 98.66 95.98 95.97 95.97

Fig. 9.

Fig. 9

Comparative analysis of the DATTMOA-HARD model with existing techniques.

Furthermore, according to Inline graphic, the DATTMOA-HARD method has reached an improved Inline graphic of 95.97%. At the same time, the JDS-TL, Multi-channel CNN, WISNet, Bi-LSTM, Ensemble-GRU, Vid2Doppler, and MBGAN techniques have attained lower Inline graphic of 82.13%, 94.44%, 87.05%, 93.72%, 85.80%, 87.12%, and 93.17%, correspondingly. Finally, according to Inline graphic, the DATTMOA-HARD technique has accomplished a maximum Inline graphic of 95.97%. At the same time, the JDS-TL, Multi-channel CNN, WISNet, Bi-LSTM, Ensemble-GRU, Vid2Doppler, and MBGAN models have reached a decrease Inline graphic of 90.62%, 88.64%, 91.25%, 90.20%, 83.10%, 94.39%, and 91.63%, respectively.

Conclusion

In this manuscript, the DATTMOA-HARD technique is proposed. The main intention of the DATTMOA-HARD technique relies on improving HAR to assist disabled individuals. The DATTMOA-HARD model has data normalization, dimensionality reduction, HAR classification, and parameter selection to accomplish that. In the initial stage, the Z-score normalization converts input data into a beneficial format. Afterwards, BFA executed the feature selection method. Furthermore, the proposed DATTMOA-HARD model designs a DABiG technique for the classification process. Finally, the TDO-based hyperparameter selection is accomplished to enhance the detection outcomes of the DABiG model. The experimental evaluation of the DATTMOA-HARD approach is examined under the HAR dataset. The comparison analysis of the DATTMOA-HARD approach portrayed a superior accuracy value of 98.66% over existing methods.

Acknowledgements

The authors extend their appreciation to the King Salman center For Disability Research for funding this work through Research Group no KSRG-2024- 380.

Author contributions

Conceptualization: Hend Khalid Alkahtani, Gouse Pasha Mohammed and Radwa Marzouk, Data curation and Formal analysis: Hend Khalid Alkahtani, Gouse Pasha Mohammed Investigation and Methodology: Hend Khalid Alkahtani, Gouse Pasha Mohammed Project administration and Resources: Supervision; Hend Khalid Alkahtani, Writing—original draft: Hend Khalid Alkahtani, Gouse Pasha Mohammed and Radwa MarzoukValidation and Visualization: Hend Khalid Alkahtani, Gouse Pasha Mohammed and Radwa MarzoukWriting—review and editing, Hend Khalid Alkahtani, Gouse Pasha Mohammed and Radwa MarzoukAll authors have read and agreed to the published version of the manuscript.

Data availability

The data supporting this study’s findings are openly available at https://www.kaggle.com/datasets/die9origephit/human-activity-recognition, reference number [32].

Declarations

Competing interests

The authors declare no competing interests.

Footnotes

Publisher’s note

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

References

  • 1.Gupta, N. et al. Human activity recognition in artificial intelligence framework: a narrative review. Artif. Intell. Rev.55 (6), 4755–4808 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 2.Zhang, P. et al. Semantics-guided neural networks for efficient skeleton-based human action recognition. In proceedings of the IEEE/CVF conference on computer vision and pattern recognition (pp. 1112–1121). (2020).
  • 3.Qiu, S. et al. Multi-sensor information fusion based on machine learning for real applications in human activity recognition: State-of-the-art and research challenges. Inform. Fusion. 80, 241–265 (2022). [Google Scholar]
  • 4.Xia, K., Huang, J. & Wang, H. LSTM-CNN architecture for human activity recognition. IEEE Access8, 56855–56866 (2020). [Google Scholar]
  • 5.Beddiar, D. R., Nini, B., Sabokrou, M. & Hadid, A. Vision-based human activity recognition: a survey. Multimedia Tools Appl.79 (41), 30509–30555 (2020). [Google Scholar]
  • 6.Deepaletchumi, N. & Mala, R. Leveraging variational autoencoder with Hippopotamus Optimizer-Based dimensionality reduction model for attention deficit hyperactivity disorder diagnosis data. Journal Intell. Syst. & Internet Things, 16(1). (2025).
  • 7.Wang, Y., Cang, S. & Yu, H. A survey on wearable sensor modality centred human activity recognition in health care. Expert Syst. Appl.137, 167–190 (2019). [Google Scholar]
  • 8.Mekruksavanich, S. & Jitpattanakul, A. Lstm networks using smartphone data for sensor-based human activity recognition in smart homes. Sensors21(5), 1636 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 9.Voicu, R. A., Dobre, C., Bajenaru, L. & Ciobanu, R. I. Human physical activity recognition using smartphone sensors. Sensors19(3), 458 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 10.Jalon Arias, E., Aguirre Paz, L. M. & Molina Chalacan, L. Multi-Sensor data fusion for accurate human activity recognition with deep learning. Fusion: Pract. & Applications, 13(2). (2023).
  • 11.Khan, S. I. et al. Transition-aware human activity recognition using an ensemble deep learning framework. Comput. Human Behav.162, 108435 (2025). [Google Scholar]
  • 12.Duhayyim, M. A. Parameter-Tuned deep Learning-Enabled activity recognition for disabled people. Computers Mater. & Continua, 75(3). (2023).
  • 13.Serpush, F., Menhaj, M. B., Masoumi, B. & Karasfi, B. Wearable sensors-based human activity recognition with deep convolutional neural network and fuzzy classification. Wireless Pers. Commun.133(2), 889–911 (2023). [Google Scholar]
  • 14.Dastbaravardeh, E., Askarpour, S., Saberi Anari, M. & Rezaee, K. Channel Attention-Based Approach with Autoencoder Network for Human Action Recognition in Low‐Resolution Frames. International Journal of Intelligent Systems, 2024(1), p.1052344. (2024).
  • 15.Cob-Parro, A. C., Losada-Gutiérrez, C., Marrón-Romera, M., Gardel-Vicente, A. & Bravo-Muñoz, I. A new framework for deep learning video based human action recognition on the edge. Expert Syst. Appl.238, 122220 (2024). [Google Scholar]
  • 16.Alotaibi, F. et al. Internet of Things-driven human activity recognition of elderly and disabled people using arithmetic optimization algorithm with LSTM autoencoder. J. Disabil. Res.2 (3), 136–146 (2023). [Google Scholar]
  • 17.Jannat, M. K. A., Islam, M. S., Yang, S. H. & Liu, H. Efficient wi-fi-based human activity recognition using adaptive antenna elimination. IEEE Access10.1109/ACCESS.2023.3320069 (2023). [Google Scholar]
  • 18.Sinha, K. P. & Kumar, P. Human activity recognition from uav videos using an optimized hybrid deep learning model. Multimedia Tools Appl.83 (17), 51669–51698 (2024). [Google Scholar]
  • 19.Zhou, H., Zhang, X., Feng, Y., Zhang, T. & Xiong, L. Efficient human activity recognition on edge devices using DeepConv LSTM architectures. Sci. Rep.15(1), 13830. (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 20.Sinha, K. P., Kumar, P. & Ghosh, R. Ensemble based feature extraction and deep learning classification model with depth vision. Comput. Inform.42 (4), 965–992 (2023). [Google Scholar]
  • 21.Rafee, A. N. M., Zishan, M. A. O. & Noor, J. Decision Tree-Based Real-Time Personalized Human Activity Recognition and Fall Detection Utilizing Cost Effective Highly Resource-Constrained Microcontrollers. Available at SSRN 5146354. (2025).
  • 22.Chen, J., Xu, X., Wang, T., Jeon, G. & Camacho, D. An Aiot framework with multi-modal frequency fusion for wifi-based coarse and fine activity recognition. IEEE Internet Things Journal (2024).
  • 23.Zhou, H., Le, H. T., Zhang, S., Phung, S. L. & Alici, G. Hand gesture recognition from surface electromyography signals with graph convolutional network and attention mechanisms. IEEE Sens. Journal (2025).
  • 24.Sinha, K. P. & Kumar, P. Human activity recognition from UAV videos using a novel DMLC-CNN model. Image Vis. Comput.134, 104674 (2023). [Google Scholar]
  • 25.Ghous, G., Najam, S. & Jalal, A. February. Human Emotion Recognition from EEG-brain Signals using Enhanced Machine Learning Method. In 2025 6th International Conference on Advancements in Computational Sciences (ICACS) (pp. 1–7). IEEE. (2025).
  • 26.Bollampally, A. et al. Optimizing edge computing for activity recognition: A bidirectional LSTM approach on the PAMAP2 dataset. Eng. Technol. Appl. Sci. Res.14 (6), 18086–18093 (2024). [Google Scholar]
  • 27.Zhou, L., Liu, X., Guan, X. & Cheng, Y. CSSA-YOLO: Cross-scale spatiotemporal attention network for fine-grained behavior recognition in classroom environments. Sensors25(10), 3132 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 28.Henderi, H., Wahyuningsih, T. & Rahwanto, E. Comparison of min-max normalization and z-score normalization in the K-nearest neighbor (kNN) algorithm to test the accuracy of types of breast cancer. Int. J. Inf. Inform. Syst.4(1), 13–20 (2021). [Google Scholar]
  • 29.Jin, Z. et al. A data-driven framework for lithium-ion battery RUL using LSTM and XGBoost with feature selection via binary firefly algorithm. Energy314, 134229 (2025). [Google Scholar]
  • 30.Kaleeswari, P. et al. R. and DABiG: breath pattern classification using the hybrid deep learning with optimal feature selection. Technology Health Care, p.09287329241303368. (2025). [DOI] [PubMed]
  • 31.Dong, J. Optimizing curriculum for students: A machine learning approach to time management analysis. J. Artif. Intell. Syst. Modelling. 1 (03), 36–51 (2024). [Google Scholar]
  • 32.https://www.kaggle.com/datasets/die9origephit/human-activity-recognition
  • 33.Sharen, H. et al. WISNet: A deep neural network based human activity recognition system. Expert Systems with Applications, 258, p.124999. (2024).
  • 34.Dentamaro, V., Gattulli, V., Impedovo, D. & Manca, F. Human activity recognition with smartphone-integrated sensors: A survey. Expert Syst. Applications, p.123143. (2024).
  • 35.Waqar, S. & Pätzold, M. A simulation-based framework for the design of human activity recognition systems using radar sensors. IEEE Internet Things Journal (2023).

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Data Availability Statement

The data supporting this study’s findings are openly available at https://www.kaggle.com/datasets/die9origephit/human-activity-recognition, reference number [32].


Articles from Scientific Reports are provided here courtesy of Nature Publishing Group

RESOURCES