Skip to main content
Advertisement
Browse Subject Areas
?

Click through the PLOS taxonomy to find articles in your field.

For more information about PLOS Subject Areas, click here.

  • Loading metrics

Lightweight and efficient skeleton-based sports activity recognition with ASTM-Net

  • Bin Wu,

    Roles Methodology, Writing – original draft

    Affiliation College of Light Textile and Chemical Engineering, Binzhou Polytechnic, Shandong, China

  • Mei Xue ,

    Roles Methodology

    kutzferraroyam@zohomail.jp

    Affiliation School of Information Engineering, Binzhou Polytechnic, Shandong, China

  • Ying Jia,

    Roles Data curation, Software, Writing – review & editing

    Affiliation Youth League committee, Binzhou Polytechnic, Shandong, China

  • Ning Zhang,

    Roles Conceptualization, Funding acquisition, Project administration

    Affiliation Youth League committee, Binzhou Polytechnic, Shandong, China

  • GuoJin Zhao,

    Roles Data curation, Methodology

    Affiliation Shandong Binzhou Vocational College, Shandong, China

  • XiuPing Wang,

    Roles Investigation, Methodology, Software

    Affiliation Shandong Binzhou Vocational College, Shandong, China

  • Chunlei Zhang

    Roles Methodology, Software

    Affiliation Shandong Binzhou Vocational College, Shandong, China

Abstract

Human Activity Recognition (HAR) plays a pivotal role in video understanding, with applications ranging from surveillance to virtual reality. Skeletal data has emerged as a robust modality for HAR, overcoming challenges such as noisy backgrounds and lighting variations. However, current Graph Convolutional Network (GCNN)–based methods for skeletal activity recognition face two key limitations: (1) they fail to capture dynamic changes in node affinities induced by movements, and (2) they overlook the interplay between spatial and temporal information critical for recognizing complex actions. To address these challenges, we propose ASTM‑Net, an Activity‑aware SpatioTemporal Multi‑branch graph convolutional network comprising two novel modules. First, the Activity‑aware Spatial Graph convolution Module (ASGM) dynamically models Activity‑Aware Adjacency Graphs (3A‑Graphs) by fusing a manually initialized physical graph, a learnable graph optimized end‑to‑end, and a dynamically inferred, activity‑related graph—thereby capturing evolving spatial affinities. Second, we introduce the Temporal Multi‑branch Graph convolution Module (TMGM), which employs parallel branches of channel‑reduction, dilated temporal convolutions with varied dilation rates, pooling, and pointwise convolutions to effectively model both fine‑grained and long‑range temporal dependencies. This multi‑branch design not only addresses diverse action speeds and durations but also maintains parameter efficiency. By integrating ASGM and TMGM, ASTM‑Net jointly captures spatial–temporal mutualities with significantly reduced computational cost. Extensive experiments on NTU‑RGB + D, NTU‑RGB + D 120, and Toyota Smarthome demonstrate ASTM‑Net’s superiority: it outperforms DualHead‑Net‑ALLs by 0.31% on NTU‑RGB + D X‑Sub and surpasses SkateFormer by 2.22% on Toyota Smarthome Cross‑Subject; it reduces parameters by 51.9% and FLOPs by 49.7% compared to MST‑GCNN‑ALLs while improving accuracy by 0.82%; and under 30% random node occlusion, it achieves 86.94% accuracy—3.49% higher than CBAM‑STGCN.

I. Introduction

Human Activity Recognition (HAR) aims to identify human activities based on the full execution of actions captured in videos, serving as a core task in video understanding [1]. It has already found widespread applications in daily life. For instance, activity recognition algorithms power visual surveillance systems that assist in capturing criminals through video analysis, reducing the risks of criminal activities [2]. Video retrieval enables users to search for videos matching textual descriptions (e.g., titles or keywords) on the internet [3]. Additionally, virtual reality (VR) technologies based on depth sensor data have attracted a large audience across all age groups in the gaming industry [4]. Existing research has explored various modalities for video feature representation, such as RGB frames, optical flow, and skeletal data. Among these, skelecton-based activity recognition has gained increasing attention in recent years due to advances in human pose estimation algorithms [5,6] and the robustness of skelecton data, which captures human activity information without being influenced by noisy backgrounds or variations in lighting [7].

With the development of deep learning, significant progress has been achieved in skelecton-based activity recognition using deep learning methods. Early approaches treated skeletal trajectories as either coordinate vector sequences or grid-like structures, inputting them into Recurrent Neural Networks (RNNs) [8] or Convolutional Neural Networks (ConvNets) [9]. However, RNNs and ConvNets are inherently designed for regular Euclidean data, and due to the irregular nature of skelecton data, these methods fail to fully exploit the affinities among nodes [8]. Graph Convolutional Neural Networks (GCNNs) [10], which excel in handling irregular data, have thus been introduced for modeling skelecton data.

For skelecton-based activity recognition, we transform skeletal data into a graph representation based on the physical connections between human nodes and encode the affinities among nodes using an adjacency matrix. On this basis, we define the implementation process of spatiotemporal graph convolution over the skelecton graph and skelecton trajectories. Finally, the spatiotemporal graph convolution is employed to extract skeletal features for human activity classification.

Although existing GCNN-based methods have demonstrated notable performance, most approaches alternate spatial graph convolutions and temporal graph convolutions independently [1114]. This separation introduces two key limitations:

  1. 1) These methods neglect the dynamic changes in adjacency graph induced by node movements, failing to fully exploit activity information;
  2. 2) They overlook the mutualities between spatial and temporal information, which are critical for accurately recognizing skeletal activities.

Specifically, the impact of activity on node affinities can be summarized in two aspects:

  1. 1) Linkages between moving nodes: Nodes from the same body part exhibit synchronized movements due to inherent physical connections (e.g., nodes in the right upper limb during a “wave” activity). Similarly, mutualities between nodes from different body parts (e.g., both hands during a “clap” activity) indicate affinities caused by coordinated movements.
  2. 2) Variation in activity patterns across trajectories: Different skelecton trajectories demonstrate diverse activity patterns (e.g., speed or acceleration). Even when performing the same activity, individuals may exhibit unique activity patterns. Leveraging these rich activity patterns is essential for building more robust models.

Additionally, existing GCNN-based methods suffer from critical limitations in robustness and efficiency. These limitations stem from a fundamental disconnect between spatial graph learning and temporal dynamics, hindering both robustness to real-world variations and computational efficiency (These will be analyzed in detail in the later experimental sections).

To address these limitations, we propose an Activity Aware Spatial Graph Convolution Module (ASGM) to dynamically and efficiently model Activity Aware Adjacency Graph (3A-Graph). Specifically, the 3A-Graph, i.e., G, comprises three components:

  1. 1) A manually initialized graph A based on physical node connections.
  2. 2) A trainable graph B, optimized along with the network.
  3. 3) A dynamically inferred activity-related graph C, capturing the temporal affinity variations among nodes.

To learn G, we first employ an information extraction module to obtain semantic activity features. We then design a graph optimization module to infer C, which is used to refine A and B, ultimately generating B. Notably, ASGM learns the activity-related graphs across different time periods in a parameter-sharing manner, avoiding redundant parameters and improving modeling efficiency. By integrating activity information into spatial graph convolutions, ASGM achieves robustness against varying activity patterns and enables mutualities between spatial and temporal information. Additionally, by combining ASGM with Temporal Multi-branch Graph Convolution Module (TMGM), we construct an Activity Aware SpatioTemporal Multi-branch Graph Convolutional Neural Network (ASTM-Net) for skelecton-based activity recognition. Experimental results on the different datasets demonstrate that the proposed ASTM-Net outperforms State-Of-The-Art (SOTA) methods, validating its effectiveness.

The primary contributions of this paper are summarized as follows:

  1. 1) We propose a novel ASGM that dynamically models 3A-Graphs, capturing temporal node affinities and integrating them into spatial graph convolutions to enhance robustness against varying activity patterns.
  2. 2) We design a 3A-Graph framework comprising three components: an initialized graph based on physical connections, a trainable graph optimized during training, and a dynamically inferred activity-related graph. This framework enables the efficient representation of dynamic node affinities over time.
  3. 3) Building upon ASGM, we develop ASTM-Net, which integrates ASGM with the TMGM to model multi-scale temporal features effectively.
  4. 4) The proposed ASTM-Net achieves state-of-the-art performance with significantly fewer parameters and lower computational costs compared to existing methods, making it a lightweight and efficient solution for skelecton-based activity recognition.

II. Related works

In the field of HAR, researchers have explored various modalities such as RGB images, optical flow, and skeletal data. Among these, the skeletal modality, which represents the human body topology with nodes and bones, demonstrates greater stability when dealing with complex environments, including variations in lighting, viewpoint, and speed. As a result, skelecton-based activity recognition has become a key area of focus in recent studies. With the rapid advancements in deep learning, methods leveraging ConvNets, RNNs, and GCNNsfor skelecton-based activity recognition have emerged. Table 1 summarizes the advantages and disadvantages of some representative approaches.

thumbnail
Table 1. Summary of the advantages and disadvantages of representative methods.

https://doi.org/10.1371/journal.pone.0324605.t001

A. Skelecton-based activity recognition with convnets

ConvNets have been applied to skelecton-based activity recognition using two main approaches. The first approach treats the raw keypoint coordinate data (i.e., x, y, z) as RGB channels of an image, mapping the skelecton data into a three-channel format and using ConvNet models for classification. Li et al. [15] proposed a dataset-independent and translation-scale-invariant mapping method, converting 3D skelecton data into color images with guaranteed invariance in scale. To fully extract skelecton features, Xie et al. [16] introduced a dual-stream ConvNet model that considers both node and bone features, employing asymmetric convolution blocks to mitigate deformation effects in skelecton trajectories. The second approach involves custom-mapping activity and temporal information from skelecton data into color images and classifying these withConvNets. Hożyń et al. [31] defined custom distance features based on skelecton data, mapping them into textured color images and training the model with AlexNet. To better incorporate temporal information, Younsi et al. [32] proposed Joint Trajectory Maps (JTMs), which encode spatiotemporal node trajectory information as three texture images from front, side, and top views for activity recognition.

However, ConvNet-based methods in skelecton activity recognition often simplify skelecton information into image representations, limiting feature learning to adjacent nodes within a convolution kernel [33]. This approach neglects latent linkages among all nodes.

B. Skelecton-based activity recognition with RNNS

RNNs are adept at extracting long-term sequential information, making them suitable for processing skeletal activity data as temporal trajectories where node coordinates change over time. Kaseris et al. [17] partitioned the human skelecton into five parts and arranged the node coordinates into long vectors for input into Long Short-Term Memory (LSTM) networks for activity recognition. Recognizing that some activities only involve a few nodes, Feng et al. [18] proposed an end-to-end spatiotemporal attention network using RNNs, focusing on critical frames and key nodes. However, the spatial modeling limitations of RNNs generally prevent these methods from achieving competitive results [34].

C. Skelecton-based activity recognition with GCNNS

In recent years, graph convolution techniques have advanced significantly, and skeletal data, inherently non-Euclidean, naturally aligns with graph structures where nodes represent nodes. Compared to ConvNets and RNNs, GCNNs can simultaneously model spatial and temporal affinities, drawing increasing attention from researchers. The core idea is to aggregate edge information to update node representations. GCNNs excel in learning from data with graph topologies and are well-suited for modeling non-Euclidean spatial data. GCNN methods are broadly classified into spectral-based and spatial-based approaches.

a. Spectral-based GCNNs.

Classical convolution kernels require fixed neighborhood sizes around the central node, which is challenging for graph-structured data due to variable and unordered node neighborhoods. Spectral-based GCNNs leverage graph signal processing, using Fourier transforms to convert graph signals into the frequency domain for convolution operations and then back to the spatial domain via inverse Fourier transforms [35], as shown in Fig 1.

Examples include the first-generation GCNN [10], Chebyshev Networks (ChebyNet) [20], and first-order approximations of ChebyNet [21]. The first-generation GCNN’s reliance on Laplacian matrix eigendecomposition leads to high computational costs, limiting practical use. To address this, ChebyNet approximates convolution kernels with Chebyshev polynomials, greatly improving efficiency. Xu et al. [36] further simplified ChebyNet with a first-order approximation, represented as:

(1)

where is the adjacency matrix with self-loops, IN is the identity matrix, is the degree matrix, W(l) denotes the trainable weight matrix for layer l, σ(.) is the nonlinear activation function, and represents features at layer l with input H = X.

b. Spatial-based GCNNs.

Spatial-based GCNNs eliminate affinity on graph spectral theory, instead aggregating information from neighboring nodes to update central nodes from a spatial perspective [22,37]. These methods avoid Laplacian matrix constraints, enabling applications to directed graphs. Spatial-based GCNNs, akin to extended ConvNets, perform weighted summation of node information to achieve convolution [38]. Steps include propagating node features to neighbors, aggregating neighborhood features, and applying linear and nonlinear transformations to enhance model expressiveness. Examples include Diffusion Convolutional Neural Networks (DCNN) [26], Graph Sample and Aggregate (GraphSAGE) [39], and Graph Attention Networks (GAT) [40]. DCNN controls information flow via transition probabilities, GraphSAGE uses random sampling to aggregate features, and GAT employs attention coefficients to update node features, offering diverse methods for graph topology convolution. Recent advancements focus on enhancing spatial modeling through dynamic graph topologies and attention mechanisms, as follows:

  1. 1) Dynamic Graph Construction: Huang et al. [23] proposed dynamic graph convolutional networks with multi-scale position attention (DGCN-MPA), adaptively fusing hierarchical attention to adjust node relationships across scales. Yang et al. [24] designed a hierarchical adaptive multi-scale hypergraph (HAM-HGNet) that clusters joints into parts based on movement patterns, relaxing fixed topology constraints.
  2. 2) Knowledge & Attention Integration: Roy et al. [41] introduced knowledge-driven shift-GCN (KDS-GCN), leveraging graph connectivity priors and coordinate features to enrich representations. Qin et al. [25] enhanced ST-GCN with convolutional block attention modules (CBAM-STGCN), refining spatial-channel features through adaptive weighting.
  3. 3) Hybrid Architectures: To bridge Euclidean and non-Euclidean modeling, Wu et al. [27] combined multi-channel CNNs with GCNs, where CNNs capture local temporal patterns and GCNs extract spatial dependencies. Mansouri et al. [28] similarly fused CNNs and GCNs to jointly learn spatiotemporal dynamics.
  4. 4) Transformer-Based Extensions: Addressing GCNs’ limited receptive fields, Do et al. [29] proposed SkateFormer, partitioning skeletal-temporal relations for memory-efficient self-attention. Lin et al. [30] developed HCTransformer, decoupling human-centric and context features through domain-invariant interaction learning.

Furthermore, recent advances in graph neural networks across diverse domains have inspired novel skeleton-based HAR designs. For example, Su et al. [42] introduced MFEn-GFDn, a Multi-Feature Extraction Network and Graph Fusion Detection Network, to enhance radar target detection in complex sea clutter by constructing multi-feature graph data and applying graph fusion strategies. Zhang et al. [43] demonstrated the integration of GNNs with brain functional network analysis, highlighting the potential of interpretable GNN architectures for large-scale, heterogeneous graphs in clinical neuroscience applications. In the realm of multimodal video analysis, Wang et al. [44] proposed a Geo-based two-stream framework that builds facial graphs and fuses GCN and CNN features alongside temporal attention, achieving robust personality trait prediction in short video clips. These works underscore the versatility of GNNs in capturing complex relational patterns, motivating their application to dynamic skeleton activity graphs in HAR.

III. Methodology

A. Definitions

a. Construction of the skelecton graph.

Given a human skelecton, let N represent the number of nodes. The skelecton is naturally abstracted as a graph, where a skeleton with N nodes is represented as an undirected graph G=(V,E). Here, V={vi|i = 1,2,…,N} represents all vertices of the skelecton graph, corresponding to the nodes of the skelecton, and E represents the edges of the graph, corresponding to the physical connections between nodes. The affinity relationships between nodes are encoded into an adjacency matrix of size N*N, with elements defined as:

(2)

b. Implementation of traditional graph convolution.

Based on the constructed skelecton graph, ST-GCNN (Spatiotemporal graph convolutional neural network) [19] defines the implementation of graph convolution on skeletal data. Given an input feature map , where Cin represents the number of input channels and T represents the number of frames, the process of graph convolution on skelecton data is expressed as:

(3)

where K is the number of spatial subsets, set to 3 in ST-GCNN. represents the normalized adjacency matrix, and is the normalized diagonal matrix, with λ = 0.001 to prevent empty rows in . Note that . is the trainable weight matrix, where Cout represents the number of output channels. is a trainable matrix initialized with all elements set to 1. The operator ⊙ denotes the Hadamard product (element-wise multiplication). Using formula (3), the spatial graph convolution output can be obtained.

B. ASGM

The framework of the proposed ASGM is illustrated in Fig 2.

thumbnail
Fig 2. Overall framework of the proposed ASGM.

The module extracts semantic features of activity information, dynamically infers an activity-related adjacency graph (3A-Graph), and then applies spatial graph convolutions using the optimized adjacency graph to model activity-specific spatial relationships.

https://doi.org/10.1371/journal.pone.0324605.g002

The process consists of three main stages:

  1. 1) Extract semantic features of activity information.
  2. 2) Dynamically infer a activity-related graph to capture the pairwise affinities among nodes across different time periods and optimize the skelecton graph.
  3. 3) Perform graph convolution using the optimized adjacency graph to obtain the final ASGM output.

Accordingly, ASGM consists of three components:

  1. 1) Activity Information Extraction Block (Fig 2): This block is implemented using a transformation function T(.) and an extraction function E(.).
  2. 2) Graph Optimization Block (Fig 3): This block includes an inference function D(.) and an optimization function O(.).
  3. (3) ASGM Implementation Block: The optimized adjacency graph is used to perform graph convolution, producing the final output.
thumbnail
Fig 3. Detailed structure of the activity information extraction block within ASGM.

This block generates semantic representations by computing temporal differences between adjacent frames of transformed features, capturing meaningful motion patterns crucial for subsequent dynamic graph inference.

https://doi.org/10.1371/journal.pone.0324605.g003

a. Activity information extraction block.

Before a graph can adapt to the choreography of a moving body, the model needs a succinct summary of how that body is currently evolving. Raw joint coordinates alone are too literal; they tell us where the joints are but not why they are there. By first translating the input tensor through a low‑rank linear bottleneck, we distil high‑variance motion cues—speed, directional coherence, local synchrony—into a compact semantic vector. The subsequent frame‑to‑frame differencing then accentuates precisely those temporal gradients that classical GCNN layers tend to miss. In short, this block converts unstructured spatial snapshots into a trajectory‑aware “action fingerprint” that downstream modules can reason over.

As shown in Fig 3, the purpose of the activity information extraction block is to obtain a semantic representation of activity information. For a given input feature , the transformation function T(.) is applied to transform the input features. To reduce model complexity and computational resource requirements, a simple linear transformation with a reduction ratio r is adopted for T(.), which is expressed as:

(4)

where represents the semantic features obtained from the input features, and is the weight matrix.

Based on the semantic features P, activity features are further extracted through the extraction function E(.). As shown in the Fig 2, the activity information is obtained by calculating the difference between adjacent frames of the semantic features, and all frame-level activity information is concatenated along the temporal dimension to form M. The process is defined as:

(5)

where concat(.) denotes concatenation, tanh(.) represents the hyperbolic tangent function that maps outputs to (−1,1), and Pt denotes the semantic features of the t-th frame.

b. Graph optimization block.

A skeleton graph is only useful if its edges mirror the latent biomechanics of the action at hand. Relying on a single, anatomically predefined adjacency matrix risks freezing the graph in a posture that may be irrelevant—or even misleading—once the motion unfolds. Our optimisation strategy therefore treats the graph as a living document: we start with hard‑wired physical links, overlay a learnable canvas, and finally let data‑driven activity affinities rewrite the margins in real time. The key idea is to let motion‑dependent similarity matrices pull or relax edges, so that jumping contracts the ankle–knee–hip triad while clapping cross‑links the two wrists. This dynamic tri‑graph fusion produces an adjacency structure that breathes with the action yet stays tethered to plausible human kinematics.

In the k-th spatial subset, the 3A-Graph consists of three components, i.e., Ak, Bk, and Ck. As illustrated in Fig 4, the adjacency matrix Ak and trainable matrix Bk are shared across all frames, making it difficult to capture the dynamic changes in the skeletal graph over time. To model the temporal affinities between nodes at different time periods, the extracted activity features are used to infer a activity-related graph , where s represents the number of time segments. Ck is then used to optimize Ak and Bk, resulting in the 3A-Graph .

thumbnail
Fig 4. Detailed structure of the graph optimization block within ASGM.

This block dynamically constructs the 3A-Graph by integrating three components: a manually initialized adjacency graph based on physical node connections (A), a trainable graph optimized during network training (B), and a dynamically inferred activity-related graph (C), effectively modeling temporal variations in node affinities.

https://doi.org/10.1371/journal.pone.0324605.g004

Given the extracted activity features , it is first divided into s feature segments along the temporal dimension, denoted as Mi, where i = 1,2,…,s. Each segment has a shape of . Next, two embedding functions θ and ϕ are applied to transform the shape of each segment to . To ensure efficiency in modeling the activity-related graph, θ and ϕ share weights across all feature segments, and the process is defined as:

(6)(7)

where and are the weight matrices of θ and ϕ, respectively. As shown in Fig 2, θ and ϕ are implemented using two separate 1*1 convolution layers. The resulting embedded features θ(Mi) and ϕ(Mi) both have a shape of .

The shapes of θ(Mi) and ϕ(Mi) are then reshaped to and , respectively, and the activity-related graph Ck is inferred using the inference function D(.). By multiplying the reshaped matrices, a similarity matrix is obtained, where each element represents the similarity between any two nodes. To enrich the feature representation, two distinct branches are used to calculate feature similarity globally, avoiding over-reliance on self-connections and enhancing subsequent optimization. The similarity matrix is normalized using the Softmax function to scale values into (0,1). Each feature segment Mi corresponds to a similarity matrix, and concatenating all similarity matrices produces . As shown in the Fig 4, Ck is defined as:

(8)

Finally, the activity-related graph Ck is used to optimize the initialized matrix Ak and trainable matrix Bk, producing the 3A-Graph . The optimization function O(.) is defined as:

(9)

where Ak is as defined in formula (1); Bk is initialized as a trainable matrix with all elements set to 0, optimized jointly with the network in an end-to-end manner; and αk is a trainable parameter that adjusts the relative importance of Ck compared to Ak and Bk. The element-wise addition is performed across all s time segments.

Algorithm 1. Details the dynamic optimization process, integrated into ASGM’s forward pass.

Algorithm 2. ASTM-Net.

Input: Input features F ∈ ℝ{T × N × C}; Initialized graph A ∈ ℝ{N × N}; Trainable graph B ∈ ℝ{N × N}; Segments s; reduction ratio r

Output: Optimized graph G ∈ ℝ{N × N}

Procedure:

1. # Activity feature extraction (Eq. 45)

  P = Linear(C → C/r)(F) # Eq. 4, T(·)

  M = Concat([tanh(P{t + 1} - Pt) for t in 0:T-1]) # Eq. 5, E(·)

2. # Split into s temporal segments

  Msegments = Split(M, s) # Mi ∈ ℝ{N × (T/s) × (C/r)}

3. # Compute activity-related graph C

  C = []

  for Mi in Msegments:

   θ = Conv1D(C/r → C/(2r))(Mi) # θ(Mi)

   φ = Conv1D(C/r → C/(2r))(Mi) # φ(Mi)

   S = MatMul(θ, φ.transpose(1,2))/ sqrt(d’)

   Ci = Softmax(S, dim = −1) # Eq. 8

   C.append(Ci)

  C = Stack(C) # C ∈ ℝ{s × N × N}

4. # Fuse A, B, C (Eq. 9)

  G = A + B + α * ReduceSum(C, dim = 0)

  G = LayerNorm(G)

c. ASGM implementation block.

After the graph has morphed into an activity‑aware scaffold, the final step is to project rich node features across this scaffold without drowning in parameters. Splitting the temporal horizon into coarse segments—and using the same 3A‑Graph within each—creates a repeating canvas on which motion patterns can be painted at multiple rhythms, but without replicating weights. By summing the outputs of three complementary spatial subsets we emulate multi‑head attention: each subset selects a different anatomical or functional perspective (self‑loops, limb‑centric edges, cross‑limb shortcuts). The result is a lean yet expressive convolution that captures both the where and the how fast of human motion in a single sweep.

As shown in the Fig 2, given the input skeletal features fin and the 3A-Graph Gk, a 2D convolution layer with a kernel size of 1 is first applied to transform fin. Simultaneously, is divided into s 3A-Graph . Each Gki is used to perform spatial graph convolution for each time period. The spatial graph convolutions across all time periods are fused via summation to produce the activity aware graph convolution result for the k-th spatial subset. Assuming K = 3 spatial subsets, the final ASGM output is obtained by summing the results of all K spatial subsets. The process is expressed as:

(10)

where is the weight matrix, and represents the output of ASGM.

C. ASTM-net

Building upon ASGM, this paper proposes ASTM-Net. As shown in Fig 5, for a given 3D skelecton trajectory, ASTM-Net consists of 12 SpatioTemporal Graph Convolutional Blocks (STGCBs) to extract features from the ASTM-Net. The extracted features are then aggregated using Global Average Pooling (GAP), and the activity class is predicted using a Softmax classifier.

thumbnail
Fig 5. Architecture of the proposed ASTM-Net.

It comprises twelve stacked SpatioTemporal Graph Convolutional Blocks (STGCBs), followed by a Global Average Pooling (GAP) layer and a fully-connected layer with softmax activation for final activity classification.

https://doi.org/10.1371/journal.pone.0324605.g005

The structure of the STGCB is illustrated in Fig 6. It comprises an ASGM layer, an TMGM layer, and residual connections, with Batch Normalization (BN) and ReLU activation applied. Specifically, to model multiple diverse scale temporal features, we design the TMGM based on the temporal modeling component in [45]. As shown in Fig 7, TMGM includes four branches, where each branch begins with a 1*1 convolution layer to reduce the number of channels. Specifically, the first two branches use temporal dilated convolutions with a fixed kernel size of 5*1 but with two different dilation factors to expand the receptive field. The third branch uses a 1*1 convolution layer followed by a max pooling operation. The fourth branch applies a standalone 1*1 convolution layer. Finally, the outputs from all four branches are concatenated to produce the output of TMGM. In ASTM-Net, the first four STGCBs output 64 channels. At the 5th and 8th STGCBs, the number of output channels is doubled, and the temporal dimension is downsampled with a stride of 2.

thumbnail
Fig 6. Internal structure of the STGCB used in ASTM-Net.

Each STGCB integrates ASGM for dynamic spatial feature extraction and a TMGM for capturing multi-scale temporal features, coupled with residual connections to enhance learning stability.

https://doi.org/10.1371/journal.pone.0324605.g006

thumbnail
Fig 7. Detailed structure of the TMGM.

It employs multiple parallel branches with different dilation rates (dilated convolutions) and pooling operations to capture temporal information at varying scales, improving the model’s capability to represent diverse temporal dynamics within human activities.

https://doi.org/10.1371/journal.pone.0324605.g007

Within the ASTM-Net pipeline the TMGM sits immediately after ASGM inside every STGCB, acting as the temporal counterpart to ASGM’s dynamic spatial reasoning. Whereas ASGM restructures the graph to match the current action, TMGM ensures that the network views that action through several temporal lenses at once—capturing a finger-snap that vanishes in two frames, a hand-clap that spans half a second, or a standing-up motion that unfolds even more slowly.

Practically, TMGM routes the same input tensor through four parallel paths. Each path begins with a 1 × 1 bottleneck that quarters the channel count, then applies a distinct temporal operation: (i) a dilated 5 × 1 convolution with dilation 1 for short‑range nuances; (ii) the same kernel with dilation 3 to reach mid‑range rhythms; (iii) a 5‑frame max‑pool that spotlights the most salient joint activations; and (iv) a plain 1 × 1 convolution that preserves raw timing details as a stabilising identity branch. The four outputs are concatenated, batch‑normalised, passed through ReLU, and finally compressed back to the original channel width before being forwarded to the next block.

This “multi‑branch” layout borrows the spirit of Inception and ResNeXt: each branch specialises in a different receptive field, so the fusion effectively ensembles several lightweight temporal experts without inflating either depth or FLOPs. By weaving TMGM organically into every STGCB, ASTM‑Net maintains a balanced dialogue between where joints are connected (via ASGM) and how fast they move (via TMGM), yielding a lean yet highly expressive framework for skeleton‑based activity recognition.

D. Motivation for hybrid integration of ASGM and TMGM

The integration of ASGM with TMGM is driven by two fundamental challenges in skeleton-based activity recognition: (1) the need to jointly model dynamically evolving spatial node relationships and multi-scale temporal dependencies, and (2) the requirement to achieve this synergy without incurring prohibitive computational costs. Traditional approaches that process spatial and temporal features through isolated modules [1114] create artificial boundaries between these dimensions, failing to capture critical cross-spatiotemporal correlations. For instance, the importance of spatial node connections (e.g., hand-elbow coordination in a “throwing” action) inherently depends on their temporal evolution (e.g., acceleration patterns during the wind-up phase). ASGM and TMGM address these limitations through complementary mechanisms:

a. Complementary spatial-temporal modeling.

ASGM specializes in adaptive spatial feature extraction by constructing dynamic 3A-Graphs that evolve with activity patterns. Unlike static adjacency matrices in conventional GCNNs [19], the 3A-Graph’s activity-related component (C-Graph) explicitly links spatial node affinities to temporal motion cues through cross-frame similarity learning (i.e.,(8)). This enables localized adaptation to activity-specific interactions, such as strengthening hand-shoulder connections during “overhead press” motions while weakening them in “kicking” actions. However, spatial adaptations alone cannot resolve temporal ambiguities in similar motion phases, e.g., distinguishing the acceleration phase of “jumping” from the deceleration phase of “landing.”

TMGM addresses this through multi-scale temporal modeling via parallel branches with varied receptive fields (Fig 7). The dilated convolution branches (d = 1,3) capture both micro-motion details (e.g., finger tremors during “writing”) and macro-motion trends (e.g., full-body coordination in “falling”), while the pooling branch suppresses transient noise. Crucially, TMGM operates on ASGM-refined spatial features, allowing temporal operators to leverage activity-aware spatial contexts. This bidirectional synergy enables ASTM-Net to simultaneously answer:

  1. 1) Spatial “Where”: Which nodes are critically interacting at this temporal scale?
  2. 2) Temporal “When”: How do these interactions evolve across motion phases?

b. Efficiency through structural cohesion.

The hybrid design achieves parameter efficiency through shared computation across modules. ASGM’s activity-related graph inference ((i.e., (6)-(8)) reuses temporal difference features (i.e., (5)) that TMGM subsequently processes, avoiding redundant feature extraction. Meanwhile, TMGM’s multi-branch outputs are aggregated before feeding into the next ASGM layer, ensuring progressive refinement of both spatial and temporal features without channel explosion.

E. Algorithm flowchart

The overall algorithm workflow of ASTM-Net is illustrated in the following Algorithm 2.

Algorithm 2. ASTM-Net.

Input:

Raw 3D skeleton sequences; Each sequence contains 3D joint coordinates over time.

Output:

Predicted activity category for each input sequence

Procedure:

Step 1: Input Skeleton Preprocessing

1.1 Normalization and Resizing:

  - Normalize raw 3D skeleton sequences to hip-centric coordinates.

  - Resize the sequence to 64 frames using linear interpolation.

1.2 Feature Initialization:

  - Initialize node features with the 3D coordinates (x, y, z).

  - Compute motion vectors (Δx,Δy, Δz) and include them in the node features.

Step 2: Dynamic 3A-Graph Construction

2.1 Activity Information Extraction:

  - For each frame, extract semantic features using a linear transformation (refer to Equation 4).

  - Calculate the temporal differences of these features (refer to Equation 5) to capture motion patterns.

2.2 Graph Optimization:

  - Dynamically infer the activity-related graph Ck via cross-temporal similarity learning (Equations 6–8).

  - Fuse the physical graph Ak, trainable graph Bk, and the activity-related graph Ck to generate the final adjacency graph Gk (Equation 9).

Step 3: SpatioTemporal Graph Convolution

3.1 ASGM Module:

  - Apply spatial graph convolution on the optimized 3A-Graph.

  - Aggregate node features across K = 3 spatial subsets (refer to Equation 10).

3.2 TMGM Module:

  - Extract multi-scale temporal features using four parallel branches (e.g., dilated convolution, pooling, etc.).

  - Concatenate the outputs of these branches to enhance temporal modeling.

Step 4: Hierarchical Feature Aggregation

4.1 Layer-wise Feature Extraction:

  - Process features through 12 STGCB layers.

  - Apply progressive downsampling with a stride of 2 at the 5th and 8th blocks to increase the receptive field.

4.2 Global Feature Pooling:

  - Apply Global Average Pooling (GAP) to aggregate the spatiotemporal features into a compact feature vector.

Step 5: Activity Classification

5.1 Final Prediction:

  - Feed the pooled feature vector into a Softmax classifier to predict the activity category.

IV. Experiment

A. Dataset

a. NTU_RGB_plus_D.

This widely-used large-scale skelecton dataset is collected using three horizontally placed Microsoft Kinect v2 cameras and contains 56,880 samples covering 60 daily and health-related activities [46]. The dataset includes 40 subjects, and each activity is performed by one or two people. The human skelecton in each sample is represented by 25 3D nodes. Two official benchmarks are provided:

  1. 1) X-Sub: The 40 subjects are partitioned into 20 for training (37,920 samples) and 20 for testing (18,960 samples). From the training set, 10% (3,792 samples) are randomly selected as the validation set for hyperparameter tuning.
  2. 2) X-View: Data from cameras 2 and 3 (37,920 samples) are used for training, with 10% (3,792 samples) reserved for validation, while data from camera 1 (18,960 samples) serve as the test set.

b. NTU_RGB_plus_D_120.

This dataset is an extension of NTU_RGB_plus_D, containing 112,954 samples across 120 activity categories [47]. The number of subjects increases to 106, and the number of cameras rises to 32. Two official benchmarks are provided:

  1. 1) X-Sub: 50 subjects (53,230 samples) are designated for training, with 10% (5,323 samples) held out for validation, and the remaining 56 subjects (59,724 samples) for testing.
  2. 2) X-Set: Samples with even setup IDs (54,468 samples) form the training set, including 10% (5,447 samples) for validation, while odd-ID samples (58,486 samples) are used for testing.

c. Toyota smarthome.

Toyota Smarthome [48,42] is collected in an apartment with 7 Kinect v1 cameras, recording 31 daily activities (e.g., “drink from cup,” “read book”) performed by 18 elderly subjects (ages 60–80). The Samples include 16,115 video clips with RGB, depth, and 3D skeleton modalities (18 joints per frame). Evaluation Protocols are provided:

  1. 1) Cross-Subject (CS): Train on 11 subjects (11,550 samples), test on 7 subjects (2,200 samples).
  2. 2) Cross-View (CV1 & CV2):

CV1: Train on front-view (dining room), test on side-view.

CV2: Train on mixed views, test on front-view.

B. Experiment settings

All experiments in this paper are conducted using the Tensorflow deep learning framework on an NVIDIA GeForce RTX 4070 Ti GPU.

The model is optimized using the Adam (Adaptive Moment Estimation) algorithm with the initial learning rate of 0.9, the first moment decay rate (i.e., β1) of 0.9, the first moment decay rate (i.e., β2) of 0.999, the numerical stability term (i.e., ) of 1e-8. ASTM-Net is trained for 80 epochs on both the NTU_RGB_plus_D and NTU_RGB_plus_D_120 datasets. A warm-up strategy is applied for the first 10 epochs to stabilize the training process. The subsequent learning rate is reduced to 1/10 at epochs 40 and 60. The batch size is set to 32, and the parameters r and s are set to 8 and 4, respectively. Due to the redundancy of skeletal data in the temporal dimension, the skelecton trajectories are resized to 64 frames using the preprocessing method from [49].

C. Comparative experiment

Current mainstream methods often adopt multi-stream fusion frameworks. For a fair comparison, we use the same ensemble strategy as in [41,25], where the final model combines the results from node stream, bone stream, node&activity streams, and bone&activity streams. The results of ASTM-Net on the NTU_RGB_plus_D dataset and NTU_RGB_plus_D_120 dataset are shown in Tables 2, respectively. For all models, results are reported for:

thumbnail
Table 2. Comparative Experimental Results On Two Datasets. Where D Indicates The Ntu_Rgb_Plus_D Dataset And D_120 Indicates The NTU_RGB_PLUS_D_120 Dataset. Where The Arrow Pointing Up Means The Larger The Result Is Better, And The Arrow Pointing Down Means The Smaller The Result Is Better.

https://doi.org/10.1371/journal.pone.0324605.t002

  1. 1) *-Ns: Using only the Node stream (Ns).
  2. 2) *-NBs: Using both the Node & Bone streams (NBs).
  3. 3) *-ALLs: Using all four streams.

Three key conclusions can be drawn from Table 2:

  1. 1) Efficiency and Lightweight Design: ASTM-Net is a lightweight and efficient method among multi-stream approaches. Notably, the proposed ASTM-Net-ALLs model has 51.9% fewer parameters compared to DualHead-Net-ALLs [53], which achieved the highest accuracy in prior methods [19,45,23,24,51]. Moreover, the FLOPs of ASTM-Net-ALLs are 49.8% lower than those of MST-GCNN-ALLs [54] with similar recognition performance, demonstrating that the proposed ASTM-Net achieves high accuracy with lower computational cost.
  2. 2) Superior Performance: Our ASTM-Net outperforms other methods across all benchmarks on both datasets. On the NTU_RGB_plus_D dataset, ASTM-Net-ALLs achieves recognition accuracies of 92.28% (X-Sub) and 96.65% (X-View). On the NTU_RGB_plus_D_120 dataset, ASTM-Net-ALLs achieves the best results with accuracies of 88.79% (X-Sub) and 90.15% (X-Set).
  3. 3) Skelecton-Only Performance: While Zhu et al. [55] incorporates multi-modal features (i.e., RGB and skelecton trajectories), our method, using only skelecton trajectories, still achieves higher recognition accuracy.

To comprehensively evaluate the trade-off between accuracy and computational cost, we compare ASTM-Net with three representative GCNN variants: Shift-GCNN [54], MST-GCNN [41], and DualHead-Net [53]. We analyze their performance, model size, memory footprint, and training efficiency on the NTU-RGB + D X-Sub benchmark.

From Table 3:

thumbnail
Table 3. Accuracy-Computational Trade-Off Comparison. Peak Gpu Memory Usage During Training (Batch Size = 32). Total Hours To Converge On Ntu-Rgb + D X-Sub (Rtx 4070 Ti).

https://doi.org/10.1371/journal.pone.0324605.t003

1) Accuracy vs. Parameters.

ASTM-Net achieves 0.31% higher accuracy than DualHead-Net-ALLs with 51.9% fewer parameters, demonstrating the efficiency of its dynamic 3A-Graph parameter sharing. Compared to Shift-GCNN-ALLs, ASTM-Net improves accuracy by 1.59% while using only 73.4% more parameters, validating the cost-effectiveness of its multi-branch design.

2) Computational efficiency.

ASTM-Net reduces FLOPs by 49.7% compared to MST-GCNN-ALLs while achieving 0.82% higher accuracy. Despite lacking FLOPs data for DualHead-Net, ASTM-Net’s 53.6% shorter training time highlights its optimization advantages.

3) Memory footprint.

ASTM-Net consumes 71.5% less memory than MST-GCNN-ALLs, enabled by the lightweight TMGM module and shared 3A-Graphs. Even against Shift-GCNN-ALLs, ASTM-Net reduces memory usage by 28.8%, critical for large-batch training.

Hence, ASTM-Net strikes an optimal balance between accuracy and computational cost.

D. Ablation experiment

Unless otherwise specified, all ablation experiments in this section are conducted on the NTU_RGB_plus_D dataset using the X-Sub benchmark with 3D node coordinates as input.

a. ASGM ablation.

To validate the effectiveness of our ASGM, we construct a baseline model (referred to as Model-A) using the spatiotemporal graph convolutional unit of Sighencea et al. [50] as the STGCB in ASGM. As shown in formula (3), the spatial graph convolution in ST-GCNN combines a initialized adjacency graph and a trainable matrix L through the Hadamard product. In contrast, the proposed ASGM optimizes the initialized graph and the trainable matrix B using the activity-related graph, as defined in formula (9). For a fair comparison, the temporal convolutional layers in the baseline are replaced with TMGM, resulting in Model-B. Table 4 shows the experimental results, where:

“&TMGM” indicates replacing all temporal graph convolutions in the baseline with TMGM.

“&ASGM-n” indicates replacing the first n spatial graph convolutions in Model-B with ASGM.

From Table 4, it can be observed that replacing the temporal convolutional layers of ST-GCNN with TMGM yields better results with fewer parameters. Gradually replacing the first seven spatial graph convolutions of Model-B with ASGM (represented by Models C-F) shows a consistent improvement in validation accuracy, demonstrating the effectiveness and stability of ASGM. Notably, replacing a single spatial graph convolution in Model-B with ASGM improves the activity recognition accuracy by 0.91% on the X-Sub benchmark, further validating the strong performance of ASGM.

b. 3A-Graph ablation.

As described earlier, the 3A-Graph G in ASTM-Net consists of three components: the initialized graph A, the trainable graph B, and the activity-related graph C. To evaluate the importance of each component, we manually remove one part of the topology graph in ASTM-Net (referred to as Model-δ) and denote the results as Models α-γ.

The results are shown in Table 5. It can be observed that the activity-related graph C significantly benefits activity recognition, as removing any part of the 3A-Graph adversely affects the performance of ASTM-Net. Combining all three components achieves the best performance.

The recognition accuracies for Models α&γ are 89.65% and 89.44%, respectively, indicating that the activity-related graph C plays a more critical role than the initialized graph A. Compared to Model-γ, the superior performance of ASTM-Net-Complete validates the effectiveness of C in optimizing A and B.

c. Hyper-parameter ablation.

This section evaluates the performance of ASTM-Net under different hyper-parameter settings, including the reduction ratio r and the number of feature segments s (i.e., the number of time periods). The results are presented in Table 6.

  1. 1) Effect of r: Fixing s = 1, we gradually increase r up to 16. The results show that regardless of the value of r, ASTM-Net consistently outperforms the baseline on the validation set, confirming its robustness and stability as a feature extractor. When r is set to 4 or 8, ASTM-Net achieves higher activity recognition accuracy compared to other values of r. Specifically, setting r = 8 results in better accuracy than r = 4 while requiring fewer parameters.
  2. 2) Effect of s: Fixing r = 8, we compare different values of s. By learning the activity-related graph at progressively finer granularity (increasing s), the results show that finer-grained graphs do not necessarily optimize the skeletal adjacency graph better. Given that the skelecton trajectories are preprocessed to 64 frames, setting s = 1 means using all frames to learn a single similarity matrix, while setting s = 16 means generating one similarity matrix per 4 frames. The results demonstrate that ASTM-Net achieves the highest accuracy when r = 8 and s = 4.

d. Depth ablation.

To analyze how ASTM-Net scales with model depth and its computational trade-offs, we conduct ablation experiments on the NTU-RGB + D X-Sub benchmark, varying the number of STGCBs. The results are presented in Table 7.

From Table 7: Increasing STGCBs from 4 to 12 improves accuracy by 3.16%, as deeper networks capture richer hierarchical spatiotemporal dependencies. Beyond 12 blocks, accuracy drops slightly, indicating over-smoothing in deep graph convolution layers. Doubling depth from 4s to 8s increases FLOPs by 81.1% for a 2.33% accuracy gain. ASTM-Net-12s achieves the optimal balance, delivering SOTA accuracy with moderate FLOPs. While this study focuses on high-end GPUs, future work will explore lightweight variants and hardware optimization (e.g., quantization) for edge devices. Additionally, automated neural architecture search could further refine depth and branch configurations for specific use cases.

E. Statistical analysis with sota methods

To comprehensively validate the performance superiority of ASTM-Net, this section conducts systematic statistical comparisons between the proposed method and existing state-of-the-art (SOTA) approaches. All experiments are performed on the NTU-RGB + D dataset under the X-Sub benchmark, covering traditional graph convolutional networks (GCNNs), dynamic graph methods, attention-enhanced models, and hybrid architectures. The results are summarized in Table 8.

thumbnail
Table 8. A Comprehensive Comparison Of Astm-Net With Sota Methods.

https://doi.org/10.1371/journal.pone.0324605.t008

As can be seen from Table 8, ASTM-Net reduces parameters by 53.8% compared to hybrid architectures (e.g., Wu et al. [27]) and by 36.6% against Transformer variants (e.g., SkateFormer [29]). Compared to dynamic graph methods (e.g., DGCN-MPA [23]), ASTM-Net achieves a 3.16% accuracy gain with similar parameter counts, validating the efficiency of its parameter-shared 3A-Graph optimization. In addition, ASTM-Net requires only 43.7% of the FLOPs of Liu et al. [45] and significantly fewer operations than self-attention-based SkateFormer. Against lightweight knowledge-driven models (e.g., KDS-GCN [41]), ASTM-Net improves accuracy by 1.94% with a marginal 15.6% FLOPs increase, demonstrating balanced design.

To quantify whether the accuracy improvements of ASTM-Net are statistically significant, we perform paired T-tests against key competitors using 10 repeated runs on the NTU-RGB + D X-Sub benchmark. The null hypothesis (H0) states that the accuracy difference is statistically insignificant (i.e., p ≥ 0.05). Results are shown in Table 9.

As can be seen from Table 9, All p-values are < 0.05, confirming that ASTM-Net’s accuracy improvements are statistically significant. Additionally, Narrow confidence intervals (e.g., [0.35, 1.29] for Liu et al. [45]) indicate consistent performance advantages across repeated experiments, ruling out random chance.

By synergistically optimizing dynamic 3A-Graphs and multi-branch temporal modeling, ASTM-Net achieves SOTA accuracy while maintaining lightweight computational profiles Statistical validation confirms that the proposed method effectively addresses the limitations of fixed graph topologies and isolated spatiotemporal processing in conventional approaches, offering a robust and efficient solution for skeleton-based activity recognition.

F. Robust analysis

This chapter analyzes the robustness of ASTM-Net under occluded or missing skeleton data from both theoretical mechanisms and experimental validation, revealing the anti-interference capabilities of its dynamic graph optimization and multi-branch temporal modeling.

Specifically, When partial nodes are missing due to occlusion, the activity-related graph (C-Graph) in the 3A-Graph dynamically reconstructs potential correlations of missing nodes through cross-temporal node similarity inference. For instance, if the right-hand node is occluded, the C-Graph can infer its position using the motion patterns of the left-hand node (e.g., symmetry in “clapping” actions). The trainable graph (B-Graph) learns statistical dependencies between nodes during end-to-end training, implicitly encoding common occlusion patterns (e.g., hand occlusion by the torso). This ensures stable feature representation even with partial node missing during testing. Further, The dilated convolutional branches in TMGM (dilation = 1, 3) focus on local details and long-range dependencies, respectively. When nodes are missing in a single frame, the high-dilation branch leverages cross-frame information to fill the gaps (e.g., inferring hand positions from preceding 5 frames). The pooling branch in TMGM suppresses noisy nodes by selecting salient features via max-pooling, while the standalone 1 × 1 convolutional branch preserves raw features to avoid over-reliance on corrupted data.

In the simulation experiment, the following three occlusion strategies are carried out:

  1. 1) Random Node Drop (RND): 30% of nodes are randomly masked (coordinates set to zero) per frame.
  2. 2) Continuous Frame Occlusion (CFO): All hand nodes (IDs 8–12) are masked in 10 randomly selected frames.
  3. 3) Noise Injection (NI): Gaussian noise (σ = 0.1) is added to 20% of node coordinates.

Robust comparison results with other SOTA methods are shown in Table 10.

The accuracy results demonstrate ASTM-Net’s superior robustness:

  1. 1) RND: ASTM-Net achieves 86.94% accuracy, outperforming Liu et al. [45], SkateFormer, and DGCN-MPA. This highlights the effectiveness of its dynamic 3A-Graph in reconstructing missing node correlations through cross-temporal activity patterns.
  2. 2) CFO: ASTM-Net attains 82.17% accuracy, surpassing SkateFormer and HAM-HGNet, validating the multi-branch TMGM’s ability to leverage long-range dependencies for occlusion recovery.
  3. 3) NI: ASTM-Net retains 89.05% accuracy with only a 3.23% drop from the original data, significantly lower than Sighencea et al. [19] (5.61% drop) and KDS-GCN (3.39% drop), indicating robust noise suppression via attention-guided feature fusion.

Notably, ASTM-Net consistently outperforms hybrid architectures (e.g., Wu et al. [27]: 79.12% under RND) and attention-enhanced models (e.g., CBAM-STGCN: 83.45% under RND), proving that its dynamic graph optimization and multi-scale temporal modeling synergistically mitigate occlusion-induced feature degradation. The performance gap widens in extreme cases (e.g., CFO), where ASTM-Net’s accuracy exceeds Liu et al. [45] by 3.72%, emphasizing its adaptability to real-world partial observation challenges.

G. Generalization analysis

To validate ASTM-Net’s robustness in real-world environments, we conduct extensive experiments on the Toyota Smarthome dataset, which captures unscripted daily activities of elderly subjects in home settings. In this experiment, skeleton sequences are resized to 64 frames and normalized to hip-centric coordinates. The results as show in Table 11.

As shown, ASTM-Net achieves 79.34% on CS and 82.17% on CV1, surpassing Wu et al. [27] by 2.79% and 3.16%, respectively. This validates its ability to handle occlusions (e.g., hands behind objects) and viewpoint shifts through dynamic 3A-Graphs. In CV2, ASTM-Net attains 80.45%, outperforming SkateFormer [29] by 2.25%, demonstrating robustness to mixed-view training and front-view testing. However, we found some failure cases, e.g., activities like “handing objects” achieve only 71.3% accuracy due to limited inter-person relationship modeling. sequential occlusion of critical joints (e.g., hip nodes) in long-duration activities (“clean dishes”) leads to ~8% accuracy drop. This is also our future direction of improvement.

H. Visualizations

Taking the activity “jumping” as an example, Fig 8 illustrates the skeletal adjacency graph matrices without the optimization of the activity-related graph Ck, represented by the sum of the initialized matrix Ak and the trainable matrix Bk for the three spatial subsets (k = 1,2,3). Figs 8a-8c visualize A1 + B1, A2 + B2, and A3 + B3, respectively. In the visualization, darker color blocks indicate stronger node affinities, while lighter colors represent weaker relationships.

thumbnail
Fig 8. The visualizations of skeletal adjacency graph matrices without the activity-related graph.

https://doi.org/10.1371/journal.pone.0324605.g008

The results show that:

  1. 1) In the first spatial subset, the learned adjacency graph focuses more on self-connections (indicated by the concentration of dark blocks along the diagonal). In the second and third spatial subsets, the topology focuses on the affinities between different nodes.
  2. 2) The learned adjacency graph can capture non-physical node affinities.
  3. 3) The adjacency graphs differ across the three spatial subsets, providing rich features for spatial graph convolution.

Fig 9 further visualizes the activity-related graphs Cki at different time periods within the same spatial subset, still using the “jumping” activity as an example. As described in the methodology section, Ck is obtained by concatenating s activity-related graphs, with s = 4 as determined in last section. In Fig 9, represents the activity-related graph at different time periods. Figs 9a-9d show the visualization results for Ck1, Ck2, Ck3, and Ck4, respectively.

thumbnail
Fig 9. The visualizations of the activity-related graphs.

https://doi.org/10.1371/journal.pone.0324605.g009

The results demonstrate:

  1. 1) The activity-related graphs differ from the unoptimized graph, enriching the spatiotemporal features of the nodes.
  2. 2) Activity-related graphs vary across different time periods, verifying the necessity of optimizing node affinities dynamically over time.

Fig 10 visualizes the final learned skeletal adjacency graphs for different activities at different time periods. All graphs are derived from the same convolutional layer and spatial subset of ASTM-Net. Specifically, each circle represents a node, with its size indicating the connection strength between the current node and the 25th node (the hand node). Only the top 5 strongest connections are visualized.

thumbnail
Fig 10. The 3A-Graph3A-graph visualizations with different settings.

https://doi.org/10.1371/journal.pone.0324605.g010

The results show:

  1. 1) For both coarse activities (e.g., “sitting,” “clapping,” “waving”) and fine-grained activities (e.g., “writing,” “using a phone/tablet,” “sneezing/coughing”), the learned skeletal adjacency graphs differ across time periods.
  2. 2) For different activities with highly similar activity trajectories (e.g., “writing” and “using a phone/tablet”), the learned adjacency graphs are still distinguishable.

These findings validate our hypothesis: different samples with distinct activity patterns require different adjacency graphs to capture node affinities, and optimizing skeletal graphs with activity-related graphs over time is necessary.

V. Discussion

a. Novel added value

Beyond advancing state-of-the-art accuracy, ASTM-Net introduces two paradigm-shifting values that redefine efficiency and adaptability in skeleton-based HAR:

1 ) Dynamic 3A-Graphs with Activity-Conditioned Optimization.

Prior works either use fixed physical graphs [19] or learn global attention weights [25], neglecting the temporal dependency of node relationships. Our 3A-Graph framework innovates by:

  1. a) Decomposing graph learning into stable (physical/trainable graphs) and dynamic (activity-related graph) components;
  2. b) Conditioning spatial connections on localized temporal features through segment-wise similarity learning (i.e., (8));
  3. c) Optimizing graphs via parameter-shared inference across time segments (s = 4), reducing parameters versus layer-specific alternatives [23].

2) Parameter-Efficient Multi-Branch Temporal Modeling.

TMGM redefines temporal convolution through heterogeneous branches that collaboratively capture:

  1. a) Short-range dynamics (d=1 branch: 5-frame micro-motions);
  2. b) Long-range dependencies (d=3 branch: 13-frame macro-trends);
  3. c) Noise resilience (pooling branch: suppressing transient outliers);
  4. d) Feature preservation (1*1 branch: maintaining raw signal fidelity);

Unlike transformer-based methods [29] that compute O(T²) attention weights, TMGM’s branched convolutions operate at O(T) complexity, achieving lower FLOPs than MST-GCN [54] while improving accuracy (as shown in Table 3).

b. Future work

This section evaluates the performance of ASTM-Net under different hyper-parameter settings, including the reduction ratio r and the number of feature segments s (i.e., the number of time periods). The results are presented in Table 6.

While ASTM-Net achieves state-of-the-art performance in skeleton-based activity recognition, several promising directions remain to furtherenhance its applicability and scalability in real-world scenarios. Below, we discuss potential extensions and improvements:

1) Integration with Transformer Architectures.

The success of Transformers in modeling long-range dependencies suggests opportunities to enhance ASTM-Net’s temporal modeling capabilities. Replacing TMGM’s dilated convolutions with lightweight self-attention mechanisms could better capture global temporal patterns (e.g., periodic motions in “jumping rope”). Combining ASGM’s dynamic graphs with Transformer encoders may further exploit local-global spatiotemporal dependencies. To validate this, future work could compare the original ASTM-Net with transformer-enhanced variants such as ASTM-Transformer (replacing TMGM with vanilla multi-head self-attention) and ASTM-EfficientFormer (hybrid sparse attention + dilated convolution) on NTU-RGB + D and Toyota Smarthome datasets. Key metrics would include accuracy, FLOPs, and inference speed on edge devices like NVIDIA Jetson. Implementation steps could integrate shifted window attention to reduce quadratic complexity and apply dynamic token sparsification to prune non-salient frames. Quantizing attention weights to INT8 would further optimize edge deployment. Evaluation would focus on accuracy-FLOPs trade-offs and interpreting attention maps for critical motion phases. Challenges such as computational overhead could be mitigated via low-rank approximations or hardware-aware optimizations.

2) Self-Supervised Learning for Label Efficiency.

Current methods rely on fully annotated datasets, limiting scalability. Self-supervised pretraining via masked joint reconstruction or contrastive learning could improve label efficiency and robustness. For instance, pretraining on PKU-MMD V2 (5.4M unlabeled frames) with strategies like masking 40% of joints/frames (L1 reconstruction loss) or generating positive pairs via temporal cropping/jittering could enable robust feature learning. Downstream fine-tuning on NTU-RGB + D (10%/30%/100% labeled data) and Toyota Smarthome would validate label efficiency gains. Success metrics would include achieving >85% accuracy with 10% labels (vs. 70% supervised baseline) and improved robustness to occlusions (RND/CFO metrics). Visualization of pretrained embeddings via t-SNE could verify activity clustering. Cross-modal alignment with CLIP embeddings, if RGB data is available, might further enhance generalization to unseen domains like medical rehabilitation.

3) Privacy-preserving HAR via federated learning.

For sensitive applications like healthcare or smart homes, federated learning (FL) can enable collaborative model training without sharing raw skeleton data. One promising direction is extending ASGM to learn personalized 3A-Graphs on distributed devices while aggregating only graph parameters, avoiding the need to transmit raw data. Another avenue is injecting noise into graph updates during FL to prevent inference attacks on user-specific motion patterns, thus ensuring privacy. Furthermore, optimizing ASTM-Net’s architecture for varying computational capacities (e.g., smartphones vs. IoT sensors) in FL frameworks could further enhance its adaptability.

4) Multi-modal fusion for complex scenarios.

While ASTM-Net focuses on skeleton data, integrating complementary modalities could address its limitations in occlusion-heavy environments. RGB-skeleton fusion using attention-based modules could combine skeletal features with RGB appearance cues to improve performance in scenarios like object interactions (e.g., “open fridge”). Depth maps can refine node distances in the 3A-Graph, improving robustness to viewpoint changes. Additionally, for activities with sound cues, such as “clapping” or “typing,” synchronizing audio features with skeletal motions via cross-modal transformers could enhance recognition.

5) Edge deployment and hardware optimization.

To realize real-time HAR on resource-constrained devices, future work should explore quantization and pruning techniques. Post-training quantization could reduce ASTM-Net’s precision (FP32 → INT8), while pruning redundant graph connections would help to decrease model size and improve inference speed. Hardware-aware neural architecture search (NAS) could be employed to automatically design ASTM-Net variants optimized for specific hardware chips like NVIDIA Jetson or ARM CPUs. Furthermore, enabling incremental learning on edge devices could allow for adaptation to user-specific motion patterns without requiring cloud dependency.

6 ) Real-world deployment and industrial validation.

Although ASTM-Net achieves promising performance on benchmark datasets such as Toyota Smarthome, its practical deployment in real-world scenarios—especially in embedded systems like wearable devices and smart surveillance systems—remains a critical next step. For wearable device integration, hardware-specific optimization is necessary to adapt ASTM-Net to ultra-low-power ARM processors (e.g., Cortex-M7), involving pruning redundant graph connections and employing INT8 quantization for reduced power consumption. Comprehensive energy efficiency evaluations using commercial wearables such as Fitbit Sense and Apple Watch under continuous activity monitoring conditions would further ensure practical viability. Additionally, enabling on-device fine-tuning could facilitate personalized models capable of adapting to individual-specific motion patterns, particularly beneficial in medical scenarios like detecting gait abnormalities in Parkinson’s patients. For smart surveillance applications, ASTM-Net can be enhanced by incorporating multi-camera fusion strategies to robustly handle occlusions in crowded environments, leveraging synchronized skeleton streams from distributed camera systems. An edge-cloud hybrid deployment—deploying lightweight ASGM modules at edge devices for instantaneous alerts such as fall detection, while conducting deeper multi-scale TMGM analyses on cloud platforms—could balance responsiveness with computational efficiency. Moreover, adopting federated learning methodologies would enable privacy-preserving inference, anonymizing sensitive skeletal data across distributed surveillance nodes to ensure compliance with GDPR and CCPA regulations. Finally, establishing industrial partnerships, such as collaborations with healthcare providers like Philips Lifeline to validate the system’s reliability in elderly monitoring or integration with smart home manufacturers such as Bosch or Nest for real-time IoT activity recognition, would significantly facilitate the practical adoption and validation of ASTM-Net in real-world applications.

VI. Conclusion

This paper introduced ASTM-Net, a novel framework for skelecton-based activity recognition that integrates spatial and temporal information through the proposed ASGM and TMGM modules. By dynamically modeling 3A-Graphs, ASGM effectively captures the temporal variations in node affinities and enhances the robustness of spatial graph convolutions. The incorporation of TMGM further strengthens the temporal modeling capacity by extracting multi-scale features. Experimental results on different datasets highlight the superior performance and efficiency of ASTM-Net, achieving state-of-the-art accuracy with significantly reduced parameters and computational costs compared to existing methods. Ablation studies validate the contributions of ASGM and 3A-Graphs to the overall performance. In conclusion, ASTM-Net provides a lightweight yet powerful solution for skeleton-based activity recognition, paving the way for future research into dynamic graph modeling for HAR. In addition, while evaluated on general daily activities, the proposed ASTM-Net can be potentially applied to sports scenarios (e.g., analysing athlete movements) due to its capability in modelling dynamic joint correlations. Future work includes validating ASTM-Net on sports-specific datasets (e.g., basketball tactical analysis) to further explore its robustness in high-dynamic scenarios.

References

  1. 1. Kaur H, Rani V, Kumar M. Human activity recognition: A comprehensive review. Expert Systems. 2024;41(11).
  2. 2. Karim M, Khalid S, Aleryani A. Human action recognition systems: A review of the trends and state-of-the-art. IEEE Access. 2024.
  3. 3. Nir O, Vidra I, Neeman A. VCR: Video representation for contextual retrieval. In: Proceedings of the International Conference on Computing, Machine Learning and Data Science; 2024. 1–9.
  4. 4. Putawa RA. Exploring User Experience and Immersion Levels in Virtual Reality: A Comprehensive Analysis of Factors and Trends. Int J Res Metav. 2024;1(1):20–39.
  5. 5. Zhang J, Li Y. SL-GCNN: A Graph Convolutional Neural Network for Granular Human Motion Recognition. IEEE Access. 2024.
  6. 6. Pei C. DMA-SGCN for video motion recognition: A tool for advanced sports analysis. IEEE Access. 2024.
  7. 7. Sain MK, Laskar R, Singha J, Saini S. Patient activity recognition for robust performance under varied illumination and cluttered background in indoor environment. International Journal of Computers and Applications. 2024;46(12):1219–45.
  8. 8. Lalapura VS, Bhimavarapu VR, Amudha J, Satheesh HS. A Systematic Evaluation of Recurrent Neural Network Models for Edge Intelligence and Human Activity Recognition Applications. Algorithms. 2024;17(3):104.
  9. 9. Sharen H, Jani Anbarasi L, Rukmani P, Gandomi AH, Neeraja R, Narendra M. WISNet: A deep neural network based human activity recognition system. Expert Systems with Applications. 2024;258:124999.
  10. 10. Yang J, Liao T, Zhao J, Yan Y, Huang Y, Zhao Z, et al. Domain Adaptation for Sensor-Based Human Activity Recognition with a Graph Convolutional Network. Mathematics. 2024;12(4):556.
  11. 11. Shin Y, Yoon Y. PGCN: Progressive graph convolutional networks for spatial–temporal traffic forecasting. IEEE Transactions on Intelligent Transportation Systems. 2024.
  12. 12. Li Q, Xu P, Yang X. Spatial–Temporal Traffic Prediction With an Interactive Spatial-Enhanced Graph Convolutional Network Model. IEEE Transactions on Intelligent Transportation Systems. 2024.
  13. 13. Wang L, Huang Y, Wu H. Spatial-temporal Graph Convolutional Networks with Diversified Transformation for Dynamic Graph Representation Learning. arXiv preprint. 2024.
  14. 14. zhang X, Chen X, Tang H, Wu Y, Shen H, Li J. AdpSTGCN: Adaptive spatial–temporal graph convolutional network for traffic forecasting. Knowledge-Based Systems. 2024;301:112295.
  15. 15. Li B, He M, Dai Y, Cheng X, Chen Y. 3D skeleton based action recognition by video-domain translation-scale invariant mapping and multi-scale dilated CNN. Multimed Tools Appl. 2018;77(17):22901–21.
  16. 16. Xie Y, Xiang J, Li X. An overview of behavioral recognition. J Information Technology and Control. 2024;53(2):619–52.
  17. 17. Kaseris M, Kostavelis I, Malassiotis S. A Comprehensive Survey on Deep Learning Methods in Human Activity Recognition. MAKE. 2024;6(2):842–76.
  18. 18. Feng Y, Zhao Y, Zhang X, et al. Predicting spatio-temporal traffic flow: a comprehensive end-to-end approach from surveillance cameras J. Transportmetrica B: Transport Dynamics, 2024, 12(1):2380915.
  19. 19. Sighencea BI, Stanciu IR, Căleanu CD. D-STGCN: Dynamic Pedestrian Trajectory Prediction Using Spatio-Temporal Graph Convolutional Networks. J Electronics. 2023;12(3):611.
  20. 20. Zhang J, Sun MT. From ChebNet to ChebGibbsNet. arXiv preprint. 2024.
  21. 21. Ai G, Pang G, Qiao H, et al. GrokFormer: Graph Fourier Kolmogorov-Arnold Transformers J. arXiv preprint arXiv:2411.17296. 2024.
  22. 22. Mukta FT. Advanced Mathematical Graph-based Machine Learning and Deep Learning Models for Drug Design. University of Kentucky. 2024.
  23. 23. Yang H, Wang S, Lu J. Hierarchical adaptive multi-scale hypergraph attention convolution network for skeleton-based action recognition. J Applied Soft Computing. 2025:112855.
  24. 24. Qin J, Zhang S, Wang Y, Yang F, Zhong X, Lu W. Improved skeleton-based activity recognition using convolutional block attention module. Computers and Electrical Engineering. 2024;116:109231.
  25. 25. Roy A, Tiwari A, Saurav S, Singh S. Enhancing skeleton-based action recognition using a knowledge-driven shift graph convolutional network. Computers and Electrical Engineering. 2024;120:109633.
  26. 26. Huang S, Chen PY, McCann JA. DiffAR: Adaptive Conditional Diffusion Model for Temporal-augmented Human Activity Recognition. IJCAI. 2023:3812–20.
  27. 27. Wu J, Liu Q. A Novel Spatio-Temporal Network of Multi-channel CNN and GCN for Human Activity Recognition Based on BAN. Neural Process Lett. 2023;55(8):11489–507.
  28. 28. Mansouri A, Elzaar A, Madani M, Bakir T. Design and Hardware Implementation of CNN-GCN Model for Skeleton-Based Human Action Recognition. Wseas Transactions on Computer Research. 2024;12:318–27.
  29. 29. Do J, Kim M. Skateformer: skeletal-temporal transformer for human action recognition. In: European Conference on Computer Vision; 2024. 401–20.
  30. 30. Li Z, Li Y, Gao Z. Spatiotemporal Representation Learning for Video Anomaly Detection. IEEE Access. 2020;8:25531–42.
  31. 31. Hożyń S. Advancements in Visual Gesture Recognition for Underwater Human-Robot Interaction: A Comprehensive Review J. IEEE Access. 2024.
  32. 32. Younsi M, Yesli S, Diaf M. Depth-based human action recognition using histogram of templates. Multimed Tools Appl. 2023;83(14):40415–49.
  33. 33. Wang Y, Han Y, Wang C. Computation-efficient deep learning for computer vision: A survey. J Cybernetics and Intelligence. 2024.
  34. 34. Cheng Y, Bai Y, Yang J, Tan X, Xu T, Cheng R. Analysis and prediction of infectious diseases based on spatial visualization and machine learning. Sci Rep. 2024;14(1):28659. pmid:39562802
  35. 35. Li D, Lu C, Chen Z, et al. Graph Neural Networks in Point Clouds: A Survey. J Remote Sensing. 2024;16(14):2518.
  36. 36. Xu L, Chen J, Han Z, Zhang Y. TaylorNet: A novel approach for spectral filter learning on graph data. Neurocomputing. 2024;605:128358.
  37. 37. Mathivanan JS, Dhayabaran VV, David MR, Karuna Nidhi MB, Prasath KM, Suvaithenamudhan S. Application of Deep Learning Neural Networks in Computer-Aided Drug Discovery: A Review. CBIO. 2024;19(9):851–8.
  38. 38. Yang Y, Hossain MZ, Stone E, Rahman S. Spatial transcriptomics analysis of gene expression prediction using exemplar guided graph neural network. Pattern Recognition. 2024;145:109966.
  39. 39. Zou H, Chen Z, Zhang J. GT-WHAR: A Generic Graph-Based Temporal Framework for Wearable Human Activity Recognition With Multiple Sensors. IEEE Transactions on Emerging Topics in Computational Intelligence. 2024.
  40. 40. Islam MM, Iqbal T. Multi-GAT: A Graphical Attention-Based Hierarchical Multimodal Representation Learning Approach for Human Activity Recognition. IEEE Robot Autom Lett. 2021;6(2):1729–36.
  41. 41. Zhang P, Lan C, Zeng W. Semantics-guided neural networks for efficient skeleton-based human action recognition. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition; 2020. 1112–21.
  42. 42. Su N, Chen X, Guan J, Wang X, Zhou L, Wang J, et al. Radar Multi-Feature Graph Representation and Graph Network Fusion Target Detection Methods. Chinese Journal of Information Fusion. 2025;2(1):59–69.
  43. 43. Zhang W, Hong Q. Modeling Brain Functional Networks Using Graph Neural Networks: A Review and Clinical Application. IECE Transactions on Intelligent Systematics. 2024;1(2):58–68.
  44. 44. Wang K, Ye C, Zhang H, et al. Graph-Driven Multimodal Feature Learning Framework for Apparent Personality Assessment J. arXiv preprint arXiv:2504.11515. 2025.
  45. 45. Lin KY, Zhou J, Zheng WS. Human-centric transformer for domain adaptive action recognition. IEEE Transactions on Pattern Analysis and Machine Intelligence. 2024.
  46. 46. Liu Y, Li Y, Zhang H, Zhang X, Xu D. Decoupled Knowledge Embedded Graph Convolutional Network for Skeleton-Based Human Action Recognition. IEEE Trans Circuits Syst Video Technol. 2024;34(10):9445–57.
  47. 47. Jiang Y, Deng H. Lighter and faster: A multi-scale adaptive graph convolutional network for skeleton-based action recognition. Engineering Applications of Artificial Intelligence. 2024;132:107957.
  48. 48. Das S, Dai R, Koperski M, et al. Toyota smarthome: Real-world activities of daily livingC. Proceedings of the IEEE/CVF international conference on computer vision; 2019. p. 833–42.
  49. 49. Keçeli AS, Kaya A, Can AB. Combining 2D and 3D deep models for action recognition with depth information. SIViP. 2018;12(6):1197–205.
  50. 50. Jang S, Lee H, Kim WJ. Multi-scale Structural Graph Convolutional Network for Skeleton-based Action Recognition. IEEE Transactions on Circuits and Systems for Video Technology. 2024.
  51. 51. Huang P, Jiang H, Wang S. Enhancing human behavior recognition with dynamic graph convolutional networks and multi-scale position attention. International Journal of Intelligent Computing and Cybernetics. 2024.
  52. 52. Chen H, Jiang Y, Ko H. Pose-Guided Graph Convolutional Networks for Skeleton-Based Action Recognition. IEEE Access. 2022;10:111725–31.
  53. 53. Zhu X, Zhu Y, Wang H, Wen H, Yan Y, Liu P. Skeleton Sequence and RGB Frame Based Multi-Modality Feature Fusion Network for Action Recognition. ACM Trans Multimedia Comput Commun Appl. 2022;18(3):1–24.
  54. 54. Wu J, Wang L, Chong G. 2S-AGCN human behavior recognition based on new partition strategy. In: 2022 Asia-Pacific Signal and Information Processing Association Annual Summit and Conference (APSIPA ASC); 2022. 157–63.
  55. 55. Zhou J, Liu Z, Tan M. Recommendations for Inactive Users: A Cross Domain Approach with Graph Neural Networks. International Journal of Machine Learning and Cybernetics. 2024:1–15.
  56. 56. Singh A, Van De Ven P, Eising C. Dynamic filter application in graph convolutional networks for enhanced spectral feature analysis and class discrimination in medical imaging. IEEE Access. 2024.