Skip to Content
AgronomyAgronomy
  • Article
  • Open Access

19 October 2026

29 Pages

MobileNet-PAS: A Lightweight Deep Learning Model for Non-Destructive Grade Identification of Pilose Antler Slices

,
,
,
,
,
and
1
Smart Agriculture Research Institute, Jilin Agricultural University, Changchun 130118, China
2
College of Science and Technology Changchun, Changchun 130600, China
*
Author to whom correspondence should be addressed.
This article belongs to the Section Precision and Digital Agriculture

Abstract

Pilose antler is a valuable traditional Chinese medicinal herb. Slices of different grades show great disparities in medicinal potency and market price. Conventional visual discrimination of wax slices, powder slices, gauze slices and bone slices relies entirely on human inspectors. Such manual evaluation heavily depends on personal expertise and brings prominent subjective bias. Especially for gauze slices and powder slices with highly similar visual appearances, misclassification frequently occurs, making it hard to satisfy practical requirements for large-scale rapid inspection. Accordingly, this paper develops a modified lightweight convolutional network named MobileNet-PAS to realize intelligent grading of pilose antler slices. Built upon the MobileNetV4-small backbone, the proposed model reconstructs the dimensionality-reduction convolution inside UIB blocks using group convolution. The ConvBN layers following the last UIB block are replaced with partial convolution. A SimAM attention module is embedded at the rear of the UIB blocks to boost fine-grained feature representation. The original ReLU6 is further substituted with the PReLU activation function. Meanwhile, a Gap-Aware dynamic learning rate strategy is adopted to optimize parameter updating, so as to strengthen feature distinguishability while restraining model complexity. Experimental results demonstrate that MobileNet-PAS achieves a test-set accuracy of 96.03%, which outperforms the baseline by 3.31 percentage points with reduced parameters and computational cost. Grad-CAM visualization reveals that the improved network suppresses irrelevant background noise and focuses on intrinsic discriminative cues including osseous structure and texture within slices, yielding better classification performance for easily confused samples. Balancing prediction accuracy and lightweight inference performance, the presented approach offers a feasible algorithm for non-destructive rapid identification of pilose antler slices and delivers references for intelligent quality assessment of Chinese medicinal materials.

1. Introduction

As a rare and valuable traditional Chinese medicinal material, pilose antler has long been widely applied in clinical treatment and health preservation owing to its unique pharmacological functions, including tonifying kidney and strengthening yang, replenishing essence and nourishing blood, and strengthening tendons and bones [1,2,3]. The medicinal activity and economic value of pilose antler are closely related to the cutting position, ossification degree and texture characteristics of its slices [4,5,6,7]. In the commercial processing industry, pilose antler slices are divided into four grades according to quality differences: wax slices, powder slices, gauze slices and bone slices. Among them, wax slices possess transparent texture and optimal medicinal efficacy with the highest market value; powder slices and gauze slices with moderate quality dominate the mainstream market; and bone slices exhibit high ossification degree and low content of active ingredients, resulting in poor medicinal and commercial value. Nevertheless, the four types of pilose antler slices share highly similar visual appearances while presenting significant discrepancies in quality and market price [8]. Such differences easily cause market irregularities such as grade confusion and shoddy substitution, which restrict the standardized development of the pilose antler industry and bring potential risks to the safety and stability of clinical medication. Therefore, establishing a rapid, accurate and objective identification method for pilose antler slice grading is of great practical significance for standardizing the pilose antler market, ensuring medication safety and promoting the intelligent upgrading of the industry.
At present, the grading and quality evaluation of pilose antler slices still rely mainly on manual sensory identification. Professional inspectors judge slice grades by observing color, texture and transparency and touching surface texture. However, traditional manual identification has inherent defects. The evaluation results heavily depend on personal experience with strong subjectivity and inconsistent judgment criteria [9]. For slices with highly similar visual features, especially powder slices and gauze slices, as well as high-quality powder slices and ordinary wax slices, misjudgment frequently occurs, leading to unstable identification accuracy. In addition, manual detection is inefficient and only suitable for small-batch sampling, which cannot meet the industrial demand for large-scale and high-efficiency quality inspection. Meanwhile, professional inspectors require long-term training, and the industry faces a persistent talent shortage, hindering the standardized promotion of manual detection [10]. Although conventional laboratory detection methods such as physicochemical testing and spectral analysis can improve objectivity, they suffer from a complicated operation, high cost, long detection cycle and irreversible sample damage. These limitations restrict their practical application in industrial and commercial scenarios requiring non-destructive, fast and batch detection [11].
In recent years, with the rapid development of computer vision and deep learning technology, intelligent classification and recognition methods based on image features have been widely used in the authenticity identification and quality grading of agricultural and Chinese medicinal materials [12,13]. Compared with manual inspection and laboratory detection, deep learning methods can autonomously extract deep hidden features such as texture, color and morphology from mass image data, effectively eliminating subjective errors caused by human experience [14,15,16,17,18]. In the field of intelligent identification for agricultural products, many scholars have achieved promising performance by improving deep learning networks [19,20,21,22,23]. Yunzhao Ma et al. modified MobileNetV4 to realize efficient identification of agricultural products with different qualities [24]. Helong Yu et al. implemented precise traceability of agricultural products based on an improved ResNeXt model [25]. Chunguang Bi et al. adopted deep learning models to complete variety classification for agricultural products [26]. These studies have verified the effectiveness of convolutional neural networks in visual inspection tasks for agricultural products and provide important references for intelligent quality identification of Chinese medicinal materials [12].
Nevertheless, there is a lack of dedicated intelligent models and efficient detection schemes adapted to fine-grained characteristics of pilose antler slices [27]. Aiming at the common industrial problems of strong subjectivity in manual grading and frequent confusion among visually similar slices including gauze slices, powder slices and bone slices, this study constructs an intelligent identification model balancing recognition accuracy and inference efficiency based on deep learning image classification technology. The specific research objectives are as follows:
(1) To address the insufficient fine-grained feature extraction capability of the original MobileNetV4-small network to capture subtle texture and ossification differences in pilose antler slices, this study reconstructs the convolutional structure of the UIB module, introduces the SimAM attention mechanism to enhance effective feature weights, replaces the original activation function, and adopts the Gap-Aware dynamic learning rate strategy. On this basis, a lightweight MobileNet-PAS model is constructed to improve classification performance while reducing model parameters and computational complexity.
(2) Based on the self-built pilose antler slice image dataset, the model is trained and optimized. Ablation experiments are conducted to verify the effectiveness of the GConv, PConv, SimAM and PReLU modules. Comparative experiments with multiple classical networks are carried out to select the optimal network configuration and realize precise classification of wax slices, powder slices, gauze slices and bone slices.
(3) To solve the misclassification problem caused by highly overlapping feature distribution among powder slices, gauze slices and bone slices, this study reduces the confusion degree of fine-grained samples, improves the recognition accuracy of hard-to-distinguish samples, and makes up for the deficiency of traditional lightweight networks in fine-grained classification of Chinese medicinal materials.
(4) Grad-CAM visualization technology is adopted to analyze the feature activation region of the network, explain the internal recognition mechanism from the perspective of feature response, and verify the feature focusing capability of the improved model, thereby providing interpretable support for the performance improvement.
(5) This study finally achieves a lightweight and high-precision intelligent identification algorithm for pilose antler slices. It provides a feasible technical scheme for non-destructive and rapid detection of pilose antler, and lays a foundation for subsequent embedded deployment, promoting the intelligent development of quality detection for Chinese medicinal materials.

2. Materials and Methods

2.1. Dataset Preparation

The experimental samples in this study are finished slices of Shuangyang sika deer antler, which were directly purchased from Dong’ao Deer Industry Group (Changchun, China). There are 100–200 slices for each of the four categories. Images were captured on both the front and back sides of each slice, and some invalid images were removed after image acquisition. The grading of samples was performed in accordance with the agricultural industry standard of the People’s Republic of China, NY/T 1162-2006 [28] Pilose Antler. The initial identification of slices was completed by Wang Dongmei from Dong’ao Deer Industry Group, and subsequent re-inspection was carried out by Associate Professor Zhao Quanmin from Jilin Agricultural University. Commercially available antler slices were used in this study, and no live animal experiments were conducted. Therefore, ethical review is not applicable.
In this study, an image dataset of pilose antler slices covering four categories including wax slices, powder slices, gauze slices and bone slices was established. The schematic diagram of the image-acquisition scenario is shown in Figure 1. A Huawei P30 smartphone (Huawei Technologies Co., Ltd., Shenzhen, China) was employed to simulate an industrial camera for image acquisition. Pilose antler slices were laid flat on a unified white background board. The shooting distance and illumination conditions were kept constant during acquisition to minimize interference from ambient light, and a total of 760 sample images of pilose antler slices were collected.
Figure 1. Schematic diagram of the image-acquisition device for deer antler slices.
Pilose antler slices of different grades exhibit distinct visual characteristics. Wax slices are translucent and reddish-brown, and have the highest medicinal grade. Powder slices show fine texture and a light-yellow color. Gauze slices possess obvious annular textures, whereas bone slices are highly ossified with rough surfaces. The representative images for each category are shown in Figure 2. Even within a single category, samples vary in slice size, shape and color tone, which increases the difficulty of model recognition. The whole dataset was randomly split into training, validation and test sets at a ratio of 6:2:2. The splitting was completed prior to data augmentation to guarantee that test samples never underwent augmentation transformation and avoid information leakage. Online random augmentation was adopted to expand training samples in real time during training. Image transformations including random horizontal flip and random rotation were dynamically implemented. Since no extra generated images need to be stored, this strategy enriches sample diversity and mitigates model overfitting. The original training samples were expanded by data augmentation to increase the diversity of training data. The validation set and independent test set were split with no data augmentation applied, to objectively evaluate model performance. For standardized experimental implementation, digits 1–4 were used as class labels instead of category names for model training and evaluation. The specific details of the dataset are shown in Table 1.
Figure 2. Representative images of the different categories.
Table 1. Specific details of the dataset.

2.2. Model Construction

In this study, MobileNetV4-small [29] is selected as the backbone network, and its overall architecture is illustrated in Figure 3. As a new-generation lightweight convolutional neural network, MobileNetV4-small is mainly stacked by numerous UIB blocks. Combining the advantages of standard convolution and depth-wise separable convolution, UIB blocks capture multi-scale information via convolution kernels of different sizes, balancing feature representation and computational efficiency during forward propagation. Compared with heavy-weight convolutional networks such as ResNet and EfficientNet, MobileNetV4-small obtains fewer parameters and has a lower computational cost, delivering faster inference speed with less hardware resource consumption. Considering the future deployment of the identification algorithm for on-site inspection equipment, lightweight networks are more suitable for embedded terminals and can satisfy the practical requirements of rapid on-site detection for Chinese medicinal materials. Hence, this network is adopted as the feature extraction backbone. After feature extraction by the backbone, the output feature maps are compressed through the global average pooling layer. The following fully connected layer conducts feature mapping to aggregate channel-wise information, and the processed features are fed into the classification head for the final category output. The baseline network can effectively extract basic visual cues including color, texture and contour for common image classification tasks. Nevertheless, some pilose antler slice samples share highly similar appearances, and intra-class variations in size and shape frequently exist. The original network lacks sufficient discrimination capacity for confusing fine-grained samples and cannot achieve satisfactory identification performance. Accordingly, targeted improvements are implemented on MobileNetV4-small to construct the MobileNet-PAS model.
Figure 3. The structural diagram of MobileNetV4-small: (A) the main structure of the model; (B): UIB structure; (C) ConvBN structure.
Built upon MobileNetV4-small, the MobileNet-PAS model is proposed via multi-faceted module optimization, and its overall architecture is depicted in Figure 4. The original Layer1-Layer7 hierarchical structure and stacked UIB block layout of the backbone are completely retained. The network improvements consist of two parts: internal optimization for all UIB blocks and additional external modifications to the activation function and post-backbone convolution modules. Specifically, only the internal configuration of each UIB block is optimized, while the external structure and stacking manner remain unchanged.
Figure 4. Structural diagram of MobileNet-PAS: (A) the main structure of MobileNet-PAS; (B) the improved ConvBN; (C) the improved UIB; (D) PConvBN.
First, the internal 1 × 1 dimension-reduction standard convolution of every UIB block is replaced by group convolution (GConv, groups = 4). This channel-grouped convolution strategy enhances channel feature diversity and representation capability while constraining computational overhead. Second, the original ReLU6 activation throughout the network is replaced with PReLU. Benefiting from learnable nonlinear coefficients, PReLU adaptively fits the complex texture distribution of pilose antler slices and alleviates feature suppression. Moreover, a parameter-free SimAM attention module is embedded into each UIB block to recalibrate feature responses, highlight critical texture and color information, and suppress background noise.
In addition to UIB internal optimization, the network adopts two external improvements. The original consecutive ConvBN modules after the last UIB block are replaced by partial convolution (PConv)-based structures, where PConv performs convolution on only 1/4 of the input feature channels to efficiently reduce redundant computation without performance degradation. The optimized features are finally fed into pooling and fully connected layers to complete the four-category classification of pilose antler slices.
The proposed multi-scale lightweight optimization strategy effectively avoids excessive parameter growth, achieving an excellent balance between classification accuracy and inference efficiency, which is highly suitable for fine-grained recognition of pilose antler slice images.
Figure 5 illustrates three prevailing convolution structures, namely standard convolution, depth-wise group convolution and partial convolution [23]. Obvious distinctions can be observed among these three convolution variants in terms of feature-sampling logic, parameter volume and feature preservation capability, which are further analyzed combined with their computational forms. As shown in Figure 5A, standard convolution performs sliding convolution operations over all channels of feature maps simultaneously during calculation. Given an input feature with a dimension, a convolution kernel and output channels, the parameter-count formula for standard convolution is presented in Equation (1).
PConv = k × k × Cin × Cout
Figure 5. Schematic diagram of the convolutional structures used in this study: (A) ordinary convolution; (B) depth-wise convolution/group convolution; (C) partial convolution.
This convolution mode realizes global-range computation and possesses strong feature fusion capability. Nevertheless, its parameters and computational burden surge rapidly with the increase in channel numbers. Extensive adoption of such convolution will bring redundant computational consumption for the whole network, which goes against real-time inference on embedded terminals. Depth-wise convolution serves as a typical lightweight variant of group convolution, whose structure is displayed in Figure 5B. It divides input channels into disjoint groups, where each group is convolved with an independent kernel without inter-channel interaction. When the group number is set equal to the input channel number Cin, depth-wise convolution is obtained, and its parameter calculation is given in Equation (2).
PDWConv = k × k × Cin
Group convolution can drastically reduce the number of parameters. However, each channel group operates independently without cross-channel feature fusion, which tends to cause fragmentation of channel information. For the fine-grained classification task of pilose antler slices, texture discrepancies among wax slices, powder slices, gauze slices and bone slices are subtle. Such channel-wise information fragmentation weakens the correlation of delicate texture features across different channels and degrades the classification accuracy of slice grades. The architecture of partial convolution is illustrated in Figure 5C. Only partial channels of input features are selected for convolution computation, while the remaining channels are directly delivered to the output via identity mapping. Assume that the proportion of channels involved in convolution is r (0 < r ≤ 1), the number of input channels is Cin, and the output channel count remains Cout. The parameter quantity of partial convolution is defined in Equation (3).
PPConv = k × k × rCin × Cout
When r < 1, partial convolution yields remarkably fewer parameters compared with standard convolution. It reduces computational overhead while reserving partial channels for convolution-based interaction, so as to avoid the drawback of complete channel isolation existing in depth-wise convolution. Oriented to the identification task of pilose antler slices, three types of convolutions are deployed in a targeted manner during the construction of the MobileNet-PAS model. Standard convolution guarantees indispensable global feature fusion, group convolution is adopted for dimension reduction inside UIB blocks to achieve lightweight property, and partial convolution acts on back-end features to further balance classification accuracy and inference speed. Jointly, these modules adapt to the task requirements for multi-grade identification of pilose antler slices.
To further enhance the model’s capability to capture subtle texture features from pilose antler slice images and realize lightweight optimization for the backbone network, a SimAM attention module is embedded at the rear of each UIB block in this work. The structure of SimAM is presented in Figure 6. As a parameter-free attention paradigm, SimAM implements adaptive assignment of feature weights without introducing additional trainable components such as convolution or fully connected layers [30]. Therefore, SimAM introduces no additional trainable parameters, and its theoretical computational complexity remains consistent with the baseline model. Under the evaluated conditions, it brings low-to-negligible computational overhead. SimAM evaluates the importance of features based on the neuron energy function. By calculating the energy difference between each neuron and its surrounding counterparts, it distinguishes discriminative features of pilose antler slices from background noise generated during image acquisition. For an arbitrary neuron x within feature maps, its energy calculation is described in Equation (4).
e t = 4 σ ^ 2 + λ x t − μ ^ 2 + 2 σ ^ 2 + 2 λ
where xt denotes the target neuron, μ ^ and σ ^ 2 represent the mean and variance of all neurons within a single channel, respectively, and λ refers to the hyperparameter for numerical stability. Lower neuron energy indicates a higher probability that the corresponding position belongs to the target region. The attention weights are obtained by taking the reciprocal of energy values followed by the Sigmoid activation function. The original feature maps are then reweighted with these weights. Such operation strengthens valid features, including texture and texture-related tissue of pilose antler slices, and suppresses invalid background interferences such as reflection, shadow and stray color caused during image acquisition. In this study, SimAM is placed at the output end of each UIB block to perform global screening on the derived feature maps. From the feature perspective, it magnifies fine-grained discrepancies among wax slices, powder slices, gauze slices and bone slices, alleviates disturbances induced by illumination variation in image capturing, and ultimately improves the discrimination performance for pilose antler slices of different grades.
Figure 6. Schematic diagram of the SimAM structure.
ReLU6 and PReLU are two widely used nonlinear activation functions for deep learning-based classification tasks [31]. Their response curves as well as corresponding derivative curves are illustrated in Figure 7. Derived from ReLU, ReLU6 sets an upper output bound of 6 to constrain the maximum amplitude and limit the numerical range of features, which makes it well-suited for lightweight networks. The mathematical expression of ReLU6 is given as follows:
ReLU6(x) = min(max(0,x),6)
Figure 7. The curves of the activation functions used in this study and their derivative curves: (A) ReLU6; (B) PReLU.
When the input is greater than zero, its gradient remains constant at 1, while the gradient turns to zero for negative inputs. Owing to simple computation, ReLU6 is hardware-friendly for practical deployment. Nevertheless, zero-gradient output within the negative input range may trigger the neuron death problem, where some neuron parameters fail to be updated effectively. For the fine-grained classification of pilose antler slices, this defect may lead to the loss of subtle discriminative texture information distributed in negative value intervals. As a modified rectified linear unit with learnable coefficients, PReLU is defined as:
PReLU x = x , x > 0 ax , x ≤ 0
where a denotes the learnable non-negative coefficient, whose optimal value is automatically updated during network training. PReLU maintains non-zero gradients for negative inputs to prevent permanent neuron inactivation, so that feature information within negative intervals can be fully exploited. As depicted in the curves of Figure 7, the derivative of PReLU in the negative interval is adaptively determined by parameter a, rather than being fixed at zero. For pilose antler slice identification, inter-class feature differences are rather subtle. Preserving gradients in negative intervals enables the model to dig out weak discriminative features and boost its discrimination capacity among slices of various grades. In this study, the original ReLU6 layers in MobileNet-PAS are completely replaced with PReLU, which improves the feature representation capability of the network with barely any extra computational cost.

2.3. Gap-Aware Dynamic Learning Rate Adjustment

Conventional learning rate scheduling strategies including fixed learning rate, step decay and cosine annealing adjust learning rates following pre-defined rules. These approaches fail to adaptively tune the magnitude of parameter updates according to real-time generalization status during model training, and thus may bring several drawbacks such as convergence oscillation, premature local optimum and aggravated overfitting in late training stages. To enhance training stability and generalization performance, this work adopts a Gap-Aware dynamic learning rate adjustment strategy. Real-time adaptive learning rate modulation is realized by continuously monitoring the performance gap between training and validation datasets. After each training epoch, the classification accuracy of MobileNet-PAS on the training set Acctrain and validation set Accval are calculated respectively. The training–validation performance gap G is defined, and its mathematical formulation is shown in Equation (7).
G = Acctrain − Accval
The performance gap G can intuitively reflect the overfitting level of the model. A continuous increase in G indicates that the model achieves better fitting performance on the training set while obtaining limited improvement on the validation set, suggesting growing risks of overfitting. Under such circumstances, the learning rate should be reduced to shrink the updating step of network parameters and restrain the model from over-learning noise and redundant features from training samples. If G remains at a low level and the validation accuracy keeps increasing, the current learning rate will be retained so that parameters can effectively explore the optimal solution space. When the validation accuracy stops improving for successive epochs and the gap G exceeds the preset threshold, learning rate decay will be triggered to help the model escape from local optima. The updating rule of the Gap-Aware learning rate is presented in Equation (8).
η t + 1 = γ decay × η t , G > Gth   and   there   is   no   improvement   in   the   accuracy   of   consecutive   Ngap   cycles η t , other   conditions
where ηt refers to the learning rate at epoch t, ηt+1 represents the updated learning rate, γdecay denotes the decay coefficient for learning rate, Gth is the threshold of performance gap, and Ngap stands for the number of successive monitoring epochs. In this experiment, the decay coefficient γdecay is set to 0.7, the performance-gap threshold Gth is 0.08, and the number of consecutive monitoring epochs Ngap is configured as 3. An early-stopping mechanism is employed during the training process. Training will be terminated if the validation-set accuracy does not increase for Nstop successive epochs. The model weights with optimal validation-set metrics are preserved as the final model for pilose antler slice identification.
Different from classic adaptive optimizers such as Adam and RMSprop, which adjust per-parameter learning rates according to historical gradient statistics, the proposed Gap-Aware strategy is an epoch-level global learning rate scheduler. It modifies the global learning rate by monitoring the generalization gap between training and validation accuracy, rather than relying on gradient information. Unlike ReduceLROnPlateau, which reduces the learning rate merely when the validation metric stops improving, our scheduler adopts a joint judgment rule: learning rate decay is activated only when both the train–validation performance gap exceeds the preset threshold and the validation accuracy fails to improve for successive monitoring epochs. This dual-condition constraint avoids premature learning rate reduction when the generalization gap remains small and the model still maintains good generalization ability.
The hyperparameters of the Gap-Aware scheduler were determined through preliminary ablation experiments. The performance-gap threshold Gth = 0.08 is selected to capture obvious overfitting tendencies while preventing false triggering caused by minor random fluctuations in classification accuracy. The number of consecutive monitoring epochs Ngap = 3 serves as a moderate patience window to filter out short-term noisy oscillations of validation performance and avoid frequent and unnecessary shrinkage of the learning rate. The decay coefficient γdecay = 0.7 introduces a moderate reduction magnitude for the learning rate. A larger decay coefficient would lead to slow convergence, whereas a smaller value may overly suppress parameter updates and make the model trapped in suboptimal solutions prematurely.

2.4. Cross-Entropy Loss

Cross-entropy loss was adopted as the loss function in this study. It measures the discrepancy between the predicted probability distribution and the ground-truth label distribution. During model training, the cross-entropy loss is minimized via backpropagation to update network weights and optimize the classification performance of antler slice images. The formula is defined as:
L CE = − 1 N ∑ i = 1 N ∑ c = 1 M y i , c log ( p i , c )
where N denotes the number of samples in a batch and M is the total number of categories. yi,c is the ground-truth label, which equals 1 if sample i belongs to category c and 0 otherwise. pi,c represents the predicted probability of sample i belonging to category c.

2.5. Experimental Environment

To eliminate disturbances induced by variant experimental environments, all models in this work were trained, validated and tested on the same workstation, so as to guarantee the fairness and reliability of experimental outcomes.
In terms of hardware configuration, the workstation was equipped with an Intel Core Ultra 7 270K Plus processor (24 cores, 24 threads). An NVIDIA RTX 5070 Ti graphics card with 16 GB of video memory was adopted for parallel computation acceleration. Dual-channel Acer Ice-Blade RAM (16 GB × 2, DDR5, 8000 MT/s, CL36 latency, Hynix A-die chips) was utilized for system memory. An Acer Predator GM9000 solid-state drive (1 TB capacity, 1 GB independent cache, PCIe 5.0 interface, TLC particles) was deployed to speed up dataset loading and model weight access. The mainboard was ASUS PRIME Z890-P, which supports WIFI 7 and Bluetooth 5.4.
For software settings, Windows 11 served as the operating system. An independent virtual environment was constructed via the Anaconda environment manager (conda 25.11.1). PyCharm 2026.1.2 was used as the integrated development environment for code writing and debugging. Python 3.10.20 was adopted as the programming language, and PyTorch 2.7.1 + cu128 was selected as the deep learning framework. CUDA 12.8 was utilized to enable GPU-based hardware acceleration. Before formal training, an environment-checking script was executed to verify the integrity of hardware and software configurations. This operation ensured consistent runtime conditions for all experimental groups and prevented external variables from biasing experimental conclusions.

2.6. Parameter Settings

The task of this experiment lies in the fine-grained intelligent classification of pilose antler slices. The maximum training epoch was set to 100 with a batch size of 32. All input images were resized to a uniform resolution of 224 × 224 and normalized to map pixel values from [0, 255] to [0, 1]. A transfer-learning strategy was adopted, where pre-trained weights were loaded to initialize the parameters of MobileNet-PAS. SGD was selected as the optimizer with an initial learning rate of 0.01, momentum of 0.9 and weight decay of 1 × 10−4. Instead of conventional fixed decay schemes, the Gap-Aware dynamic learning rate strategy was applied for adaptive learning rate modulation during model training. Correspondingly, the performance-gap threshold was 0.08, the number of consecutive monitoring epochs was set to 3, and the learning rate decay coefficient was 0.7. Data augmentation including random horizontal flipping and random rotation within the range of −45° to 45° was only performed on the training set. An early-stopping strategy was adopted with Nstop = 20; training terminated when the validation accuracy stopped improving for 20 consecutive epochs. The optimal model was selected according to the highest validation accuracy for subsequent evaluation on the independent test set. Random seeds were fixed throughout the whole experimental procedure to guarantee result reproducibility. All comparative models shared identical training hyperparameters to ensure fair comparison among different networks. Five repeated runs were performed with fixed random seeds of 12, 34, 56, 78, and 90. Metrics from five independent trials were aggregated to calculate the mean and standard deviation.

2.7. Evaluation Indicators

To objectively quantify the identification performance of MobileNet-PAS for multi-grade pilose antler slices, four classification metrics including accuracy (Acc), precision (P), recall (R) and F1-score were adopted in this study. Meanwhile, parameters (Params), floating-point operations (FLOPs) and frames per second (FPS) were introduced to evaluate the lightweight property and inference speed of the model.
Accuracy reflects the proportion of correctly predicted samples among all inputs, measuring the overall classification capacity for pilose antler slice samples. Precision describes the proportion of truly positive samples within all samples predicted as a certain category, which evaluates the misjudgment situation of the model. Recall corresponds to the fraction of ground-truth samples that are correctly identified, representing the detection capability for each kind of pilose antler slice. As the harmonic mean of precision and recall, F1-score provides a comprehensive assessment of classification performance. The corresponding calculation formulas are given in Equations (10)–(13):
Acc = TP + TN TP + TN + FP + FN
P = TP TP + FP
R = TP TP + FN
F 1 = 2 × P × R P + R
where TP denotes true positive, indicating that pilose antler slice samples are correctly predicted to their corresponding categories. TN stands for true negative, representing samples from other categories that are correctly excluded. FP refers to false positive, which means slices of other grades are misclassified into the target category. FN represents false negative, namely, samples belonging to the target grade are wrongly assigned to other categories.
The parameter quantity counts all trainable weights of the network and reflects the storage consumption of the model. Floating-point operations describe the total computational operations during forward inference and serve as the measurement of computational cost. FPS indicates the number of images that can be inferred per second and characterizes the practical inference speed. Parameters and FLOPs evaluate the theoretical lightweight level, while FPS is the hardware-measured inference indicator. Combined, these three metrics provide a preliminary assessment of the model’s lightweight characteristics. It should be noted that the reported FPS values were obtained on an NVIDIA RTX 5070 Ti desktop GPU rather than embedded hardware; therefore, the deployment-oriented results should be interpreted as indicative of potential future implementation on edge devices, and actual performance on embedded platforms requires further validation. All comparative models in this work were tested under identical hardware conditions with the same input resolution to ensure a fair comparison of lightweight-related indicators. Specifically, the FPS measurement was conducted under the following standardized procedure. Inference was performed with a batch size of 1 image to simulate real-time single-frame prediction. Before formal timing, each model underwent 100 warm-up iterations to stabilize GPU clock rates and exclude initialization overhead. The total inference time over the entire independent test set was then recorded, and the mean FPS was computed as the total number of test images divided by the total elapsed inference time. All measurements were performed in FP32 (single-precision) floating-point arithmetic. To ensure accurate timing, torch.cuda.synchronize() was invoked before and after each inference iteration to synchronize the CPU and GPU execution streams, thereby preventing asynchronous CUDA kernel launches from biasing the elapsed time. All comparative models were evaluated under identical hardware and software configurations (NVIDIA RTX 5070 Ti, CUDA 12.8, PyTorch 2.7.1).

3. Results

3.1. The Impact of Dynamic Learning Rate Adjustment Strategy on the Model

Learning rate acts as a critical hyperparameter during deep learning model training, which directly determines convergence speed and final generalization performance. Fixed learning rates and conventional decay strategies cannot adaptively adjust update steps according to real-time training status. A large learning rate at the early training phase may trigger parameter oscillation. Excessively high learning rate in the late stages prevents the model from converging toward optimal solutions, while an overly small learning rate tends to trap the model into local optima. To optimize the training procedure for the pilose antler slice identification model, the Gap-Aware dynamic learning rate adjustment strategy is proposed in this study.
Figure 8 illustrates the impact by the Gap-Aware strategy on model training. Figure 8A presents the variation curve of the learning rate driven by Gap-Aware, where the vertical axis adopts logarithmic coordinates to show how the learning rate evolves with training epochs. Taking the accuracy gap between training and validation sets as a feedback signal, this strategy executes learning rate decay once the accuracy gap exceeds the preset threshold for successive epochs. As observed from the curve, a relatively high learning rate is maintained at the initial stage to support fast parameter update. As training proceeds and model performance gradually stabilizes, the decay condition is triggered by accuracy gap, and the learning rate decreases in a step-wise manner. A small learning rate is adopted in the late phase to realize fine-tuning of network parameters.
Figure 8. The impact of the Gap-Aware strategy on the model training process. (A) The learning rate variation curve driven by the Gap-Aware strategy; (B) the comparison of loss curves with and without the introduction of the Gap-Aware strategy.
Figure 8B compares loss curves of MobileNetV4-small with and without the Gap-Aware strategy. Both groups share identical network architecture, dataset and initial hyperparameters. At the early stage, loss values of the two groups drop rapidly as the model quickly fits feature patterns of pilose antler slice samples. In the middle-to-late training phase, the control group without Gap-Aware exhibits stronger loss oscillation and retains a relatively high final loss value. By contrast, the group equipped with Gap-Aware achieves larger overall loss reduction. Oscillation in later epochs is effectively suppressed, and the model converges to a lower loss value.
To further analyze the performance variation caused by the Gap-Aware strategy from the perspective of classification outputs, confusion matrix and per-category evaluation metrics are employed for analysis. Figure 9 provides a comparison of confusion matrices for MobileNetV4-small trained with and without the Gap-Aware strategy. The horizontal axis denotes ground-truth labels, and the vertical axis corresponds to predicted labels. Categories 1, 2, 3 and 4 represent powder slices, bone slices, wax slices and gauze slices, respectively. Without Gap-Aware, category-1 powder slices contain plenty of misclassified samples, some of which are wrongly assigned to bone slices, wax slices and gauze slices. Category-4 gauze slices also suffer from considerable inter-category confusion. By contrast, category-3 wax slices have highly distinguishable features and produce no misclassification under both training configurations. After the introduction of Gap-Aware, the number of correctly predicted powder-slice samples increases obviously, and cross-category misclassification among all four groups is reduced as a whole.
Figure 9. Comparison of confusion matrices before and after the introduction of the Gap-Aware strategy in MobileNetV4-small. (A) Without Gap-Aware; (B) with Gap-Aware. Categories 1–4 are respectively powder slice, bone slice, wax slice, and gauze slice.
Figure 10 compares precision, recall and F1-score for each category before and after the adoption of the Gap-Aware strategy. For category 1, precision rises from 0.826 to 0.897, recall increases from 0.934 to 1.000, and F1-score grows from 0.877 to 0.946, delivering the most prominent performance gain. For category 2, relevant metrics fluctuate slightly while the overall performance remains stable. Benefiting from its inherent high discriminability, category 3 keeps all metrics at 1.000, and no negative side-effect is introduced by this strategy. Category 4 poses relatively high identification difficulty. After deploying Gap-Aware, its precision increases from 0.833 to 0.875, recall rises from 0.714 to 0.750, and F1-score is improved from 0.769 to 0.808, which verifies the effectiveness of performance improvement.
Figure 10. Comparison of Gap-Aware in MobileNetV4-small across each category: (A) precision comparison; (B) recall comparison; (C) F1 score comparison.
Comprehensive analysis of training loss curves, confusion matrices, and single-category evaluation metrics demonstrates that the Gap-Aware dynamic learning rate strategy can adaptively adjust the learning rate according to the model’s real-time generalization status and effectively alleviate parameter oscillation in the late training stage. The proposed strategy causes no performance degradation for categories with high recognition accuracy. Instead, it prominently optimizes the identification of easily confused samples, including powder slices and gauze slices. By enabling the model to fully learn the subtle texture and texture differences among multi-grade pilose antler slices, this method reduces inter-class misclassification and substantially improves the overall discrimination performance of the model.
To quantitatively compare the performance differences between the proposed Gap-Aware dynamic learning rate strategy and several classical learning rate scheduling methods, comparative experiments were conducted under identical experimental conditions, including the initial learning rate, network architecture, dataset, and maximum training epochs. The corresponding experimental results are presented in Table 2. The model trained with a fixed learning rate achieved the poorest comprehensive performance, with an accuracy of only 88.74% and a loss value of 0.3356. Without adaptive adjustment throughout the training process, the parameter update step remained excessively large in the late training stage, preventing the model from fine convergence and resulting in limited overall discrimination ability. Compared with the fixed learning rate scheme, the exponential decay strategy reduced the learning rate gradually with a fixed coefficient, improving the Acc by 0.87% and decreasing the loss to 0.3124. However, this strategy adjusts the learning rate merely based on training iterations without perceiving the real-time training status, leading to limited performance improvement. The step descent-based learning rate strategy further optimized the model performance, yielding an Acc of 90.25% with slight increases in precision, recall, and F1-score. The cosine annealing strategy enabled the model to escape from local optimal solutions through periodic learning rate variation, achieving better results than the aforementioned methods, with an improved Acc of 91.43% and a reduced loss of 0.2683. In contrast, the proposed Gap-Aware dynamic learning rate strategy achieved the optimal performance among all comparison groups. The model obtained an Acc of 92.72%, a precision of 93.35%, a recall of 90.30%, and an F1-score of 91.58%, while the loss value decreased to 0.2358. Specifically, the Gap-Aware strategy improved the Acc by 1.29% and further reduced the loss compared with the cosine annealing strategy. Different from conventional iteration-driven learning rate scheduling methods, the Gap-Aware strategy takes the accuracy gap between the training and validation sets as the feedback signal to trigger learning rate decay according to the real generalization state of the model. This design adapts to the training characteristics of the fine-grained classification task of pilose antler slices well, effectively reducing training loss and comprehensively enhancing the model’s discrimination performance for wax slices, powder slices, gauze slices, and bone slices.
Table 2. Comparison of Gap-Aware with classic learning rate dynamic adjustment strategies. Repeated experiments conducted using five sets of random seeds.

3.2. Ablation Experiment

To verify the individual and combined contributions of the SimAM attention module, grouped convolution (GConv), and partial convolution (PConv) to the pilose antler slice recognition model, ablation experiments were conducted based on the baseline model of MobileNetV4-small integrated with the Gap-Aware learning rate strategy. All module combinations were tested under identical datasets, hyperparameters, and training environments, and the quantitative results of the ablation studies are summarized in Table 3.
Table 3. Experimental results of ablation studies for each improved module of the model. √ indicates the use of the module; × indicates the absence of the module. Repeated experiments conducted using five sets of random seeds.
The baseline model achieved an Acc of 92.72% and an F1-score of 91.58%, with 2.498 M parameters and computational complexity of 0.252 GFLOPs. The sole integration of the SimAM module significantly boosted recognition performance, increasing the Acc to 94.61% and the F1-score to 94.40%. Notably, SimAM does not introduce additional trainable parameters, and its theoretical GFLOPs remain consistent with the baseline. Nevertheless, slight FPS fluctuations can still be observed, which fall within the normal range of experimental randomness under the evaluated conditions. These results demonstrate that SimAM imposes low and negligible computational overhead in this task. It effectively enhances the network’s ability to capture critical texture features of pilose antler slices while preserving the original lightweight level of the model, serving as the core module for accuracy improvement.
When only GConv was adopted to replace the dimension-reduction convolution inside the UIB block, the model Acc improved moderately to 93.24%. Meanwhile, the number of parameters and GFLOPs was considerably reduced, achieving prominent lightweight optimization, though at the cost of a slight FPS decline. Replacing the terminal ConvBN module with PConv yielded a marginal accuracy gain, along with moderate reductions in parameters and computational complexity and a slight improvement in inference speed. This indicates that PConv primarily optimizes model lightweight performance and contributes minimally to classification accuracy.
The combined deployment of SimAM and GConv further elevated the Acc to 95.22%, outperforming the performance of each single module. Meanwhile, the model retained the lightweight advantages brought by GConv. The cooperative use of SimAM and PConv also produced superimposed accuracy benefits, which effectively improved classification metrics while preserving the inference speed advantage of PConv. In contrast, the combination of GConv and PConv mainly focused on model compression, reducing the GFLOPs to 0.193 and the parameter size to 1.791 M with limited accuracy improvement.
The final proposed MobileNet-PAS model, which integrates all three optimized modules, achieved the optimal comprehensive performance in all experimental groups. It obtained an Acc of 96.03% and an F1-score of 96.10%, while maintaining excellent lightweight performance with 0.193 GFLOPs, 1.791 M parameters, and an FPS of 206. Comprehensive ablation results indicate that SimAM dominates the extraction of fine-grained discriminative features and provides major accuracy gains, whereas GConv and PConv are dedicated to reducing computational costs and model parameters. The synergistic combination of the three modules achieves a favorable trade-off between high recognition accuracy and lightweight deployment, making the proposed model well-suited for the fine-grained classification of four types of pilose antler slices.

3.3. Comparison Experiment of Attention Mechanism

To screen the optimal attention module suitable for the fine-grained identification of pilose antler slices, a variety of mainstream attention mechanisms were embedded into the baseline network for comparative experiments under fully unified experimental conditions. The classification accuracy of different attention schemes is listed in Table 4, while the computational complexity, parameter quantity, and inference speed of each model are visually compared in Figure 11.
Table 4. Comparative results of recognition effects for different attention mechanisms. Repeated experiments conducted using five sets of random seeds.
Figure 11. Lightweight comparison between SimAM and the classic attention mechanism: (A) GFLOPs comparison; (B) parameter comparison; (C) FPS comparison.
As illustrated in Table 4, all models integrated with attention modules achieved superior overall recognition performance compared with the baseline model without an attention mechanism. SE and SAM yielded limited performance improvements, with accuracies of 93.42% and 93.21%, respectively. ECA, CBAM, CA, and EMA progressively captured feature correlations in channel and spatial dimensions, leading to continuous increases in classification metrics. Benefiting from global feature modeling via self-attention, the ViT-based model achieved a competitive accuracy of 94.46%. Notably, the SimAM adopted in this study obtained the best comprehensive performance among all comparison groups, with an accuracy of 94.61%, a precision of 95.14%, a recall of 94.07%, and an F1-score of 94.40%. The significant improvement in recall demonstrates that SimAM can effectively mine discriminative texture features among the four types of pilose antler slices and strengthens feature representation for easily confused samples such as powder slices and bone slices.
Further analysis of lightweight indicators is presented in Figure 11, where Figure 11A, Figure 11B, and Figure 11C illustrate the comparisons of GFLOPs, parameters, and FPS, respectively. The ViT module imposes a substantially higher computational burden than other attention schemes, with GFLOPs reaching 0.347 and parameters increasing to 2.764 M, while the inference FPS drops to 112. Such heavy computation significantly increases model complexity and hinders practical deployment. SE, ECA, CBAM, CA, EMA, and SAM maintain similar levels of computational overhead and parameter size, all introducing moderate additional computational consumption. In contrast, SimAM requires no extra weight parameters. It maintains the original GFLOPs of 0.252 and parameters of 2.498 M, with an inference FPS of 198, producing almost no additional computation and storage overhead compared with other attention modules.
Combining classification accuracy and lightweight performance, other mainstream attention mechanisms generally suffer from limited accuracy improvement or excessive computational cost. By contrast, SimAM effectively promotes the identification accuracy of pilose antler slices without introducing additional parameters. It achieves an excellent balance between classification performance and inference efficiency, making it the most suitable attention strategy for the lightweight fine-grained identification task in this study.

3.4. Comparative Experiment of Classic Models

To objectively verify the comprehensive performance of the proposed MobileNet-PAS model in the pilose antler slice identification task, comparative experiments were conducted with multiple mainstream convolutional networks. All models were trained and tested on the same dataset with identical hyperparameters and hardware configurations, and the quantitative experimental results are presented in Table 5.
Table 5. Comparative results with the classical network model. Repeated experiments conducted using five sets of random seeds.
ResNet18 exhibits a large number of parameters and computational complexity, with a parameter size of 11.682 M and an FPS of only 142. Restricted by its network architecture, it achieves a mediocre classification accuracy of 91.26% for the fine-grained classification of pilose antler slices. ShuffleNetV2, MobileNetV3, and GhostNet are typical lightweight networks with well-controlled FLOPs and parameters and fast inference speeds exceeding 220 FPS. However, these models suffer from insufficient feature extraction capability and relatively low classification accuracy, failing to effectively capture the subtle texture differences among powder slices, bone slices, wax slices, and gauze slices.
As the baseline network of this study, MobileNetV4-s achieves a preliminary balance between accuracy and lightweight performance, with an accuracy of 92.72% and an FPS of 201. FasterNet-T0 is also a lightweight model with slightly better overall performance than several conventional lightweight networks, but its comprehensive classification capability is still inferior to that of MobileNetV4-s. EfficientNet-B0 and CoAtNet-0 achieve relatively high classification accuracies of 94.71% and 94.92%, respectively. Nevertheless, both models introduce substantial computational overhead. In particular, CoAtNet-0 has a large parameter volume of 8.031 M and a low FPS of 127, resulting in poor inference efficiency that limits its practical deployment on edge devices.
The proposed MobileNet-PAS model achieves the optimal classification performance among all comparative models, with an accuracy of 96.03%, a precision of 96.58%, a recall of 95.65%, and an F1-score of 96.10%. Compared with the baseline MobileNetV4-s, MobileNet-PAS obtains a significant accuracy improvement while further compressing computational overhead, reducing the FLOPs to 0.193 and parameters to 1.791 M while maintaining an FPS of 206. In contrast to EfficientNet-B0 and CoAtNet-0, MobileNet-PAS delivers higher classification metrics with dramatically fewer parameters and lower computational complexity, demonstrating prominent advantages in inference speed. Although its FPS is slightly lower than that of ultra-lightweight networks such as ShuffleNetV2 and MobileNetV3, it achieves a substantial accuracy improvement.
Comprehensive experimental results demonstrate that MobileNet-PAS effectively balances classification accuracy, parameter volume, computational complexity, and inference speed. It outperforms all compared mainstream networks in the pilose antler slice identification task and is highly suitable for lightweight and practical deployment applications.

3.5. Comparative Experiment Before and After Model Improvement

To comprehensively and multi-dimensionally validate the overall improvements of the proposed MobileNet-PAS compared with the original baseline model, comparative analyses were conducted from four perspectives, including training convergence behavior, feature attention mechanism, sample confusion distribution, and quantitative evaluation metrics for each category. Figure 12 illustrates the iterative variation curves of loss and accuracy before and after model optimization. Figure 13 presents the Grad-CAM feature visualization heat maps, which intuitively reflect the image regions focused by the network. Figure 14 shows the confusion matrix of MobileNet-PAS on the test set, and Table 6 summarizes the classification evaluation metrics of the baseline model and MobileNet-PAS for the four types of pilose antler slices.
Figure 12. Comparison of loss curves and accuracy curves before and after model improvement: (A) loss curve; (B) accuracy curve.
Figure 13. Comparison of the Grad-CAM visualized heat maps before and after model improvement.
Figure 14. Confusion matrix of MobileNet-PAS on the test set.
Table 6. Recognition results for each category before and after model improvement.
Figure 12A and Figure 12B display the loss and accuracy variation curves, respectively. As observed from the loss curves, there is an apparent difference in the initial loss values of the two models. MobileNet-PAS achieves a lower initial loss, a faster loss decline rate throughout the training process, and smaller numerical oscillation during iteration. The baseline model still exhibits obvious fluctuations in the late training stage, indicating unstable parameter updates and fitting oscillations. In contrast, MobileNet-PAS rapidly reduces the loss in the early training phase and stably converges to a low-loss level in subsequent iterations.
Such improvements can be attributed to the synergistic effect of multiple optimized strategies. The SimAM attention module enhances the weights of effective discriminative features, while GConv and PConv realize lightweight reconstruction of the convolution structure. In cooperation with the Gap-Aware dynamic learning rate strategy, the proposed method alleviates the interference of redundant features on parameter optimization, smooths network gradient propagation, and suppresses training oscillation caused by invalid gradient updates. In terms of accuracy curves, MobileNet-PAS achieves higher recognition accuracy at the early training stage and maintains superior performance over the baseline model throughout the entire iteration process, finally converging at a higher accuracy plateau. The results verify that the improved modules enable the network to capture discriminative features of pilose antler slices more rapidly, accelerate model convergence, and enhance the data fitting capability.
The Grad-CAM visualization results are presented in Figure 13, where the first row shows the original pilose antler slice images, the second row displays the heat maps generated by the baseline model, and the third row corresponds to the heat maps of the proposed MobileNet-PAS model. In the heat maps, red highlighted regions denote the critical feature areas focused on by the network. The baseline model exhibits scattered activation responses, with partial attention diffused to background regions outside the slices. It fails to fully concentrate on core discriminative information within pilose antler slices, such as internal textures and osseous distribution. Since the classification of pilose antler slices highly relies on subtle internal textures and ossification degrees while background pixels provide no valid classification information, the baseline model wastes computational resources on irrelevant background features, thereby interfering with the learning of fine-grained discriminative features.
In contrast, guided by the SimAM attention mechanism, MobileNet-PAS yields highly concentrated activation regions that accurately focus on the effective areas of pilose antler slices. The highlighted heat areas are mainly distributed in regions with obvious internal texture variations, and the invalid activation responses to background areas are significantly suppressed. Furthermore, GConv and PConv optimize the convolution feature extraction paradigm and reduce redundant feature outputs generated by standard convolutions, enabling the network to effectively learn subtle feature discrepancies among different grades of pilose antler slices. This visual evidence fundamentally explains the internal mechanism of the improved classification performance of MobileNet-PAS from the perspective of feature representation.
Figure 14 illustrates the confusion matrix of MobileNet-PAS on the test set. Category 3 possesses highly distinguishable texture features with insignificant inter-sample differences, and all samples are correctly identified without misclassification in the proposed model. For Category 1, only a tiny number of samples are misclassified as gauze slices, while Category 2 presents almost no confused samples. Among all categories, gauze slices correspond to the most challenging recognition task. Their ossification degree lies between that of powder slices and bone slices, and their texture features partially overlap with the other two categories, leading to concentrated misclassification in the baseline model. Benefiting from the structural improvements, the number of misclassified gauze-slice samples is remarkably reduced. Comparative analysis with the baseline confusion results demonstrates that the improved scheme effectively alleviates inter-class confusion between gauze slices, powder slices, and bone slices, and substantially reduces the misjudgment probability of fine-grained samples.
Further quantitative analysis based on the per-category metrics in Table 6 verifies the effectiveness of the proposed improvements. Category 3 exhibits distinct feature differences, which can be fully and correctly identified by the baseline model. MobileNet-PAS maintains optimal performance for this category, indicating that the improved modules introduce no negative impact on easily distinguishable samples. For Category 1, the precision increases from 0.897 to 0.937, and the F1-score rises from 0.946 to 0.952. Category 2 achieves a more prominent performance improvement, with the precision reaching 1.000, the recall increasing to 0.966, and the F1-score improving significantly from 0.909 to 0.983.
As the most difficult category, Category 4 suffers from severe feature overlap with powder slices and bone slices in the baseline model, yielding a low recall of only 0.750. In contrast, MobileNet-PAS greatly promotes the recognition performance of gauze slices, with the precision improved to 0.926, the recall elevated to 0.893, and the F1-score enhanced from 0.808 to 0.909. These results demonstrate that SimAM strengthens the feature representation of hard-to-distinguish samples, while GConv and PConv optimize the convolution-based feature extraction process. The synergistic combination of the three modules effectively captures subtle texture discrepancies among different grades of pilose antler slices, significantly improves the identification accuracy of easily confused samples, and preserves the superior recognition capability for conventional distinguishable samples.
Combining the training convergence curves, Grad-CAM visual heat maps, confusion matrix, and per-category quantitative metrics, the overall superiority of MobileNet-PAS can be comprehensively validated. On the one hand, the proposed model optimizes the network training procedure, achieving more stable and efficient convergence. On the other hand, it reconstructs the feature extraction paradigm of the network, suppresses interference from irrelevant background information, and fully captures critical discriminative features, including internal texture and ossification characteristics of pilose antler slices. The proposed method effectively alleviates inter-class confusion among powder slices, bone slices, and gauze slices, thereby achieving a comprehensive performance improvement in the fine-grained classification task of four types of pilose antler slices.

3.6. Comparison Experiment of Activation Functions

Activation functions constitute essential components of convolutional neural networks, which directly affect the network’s nonlinear representation ability, gradient propagation efficiency, and the final classification performance. To select the optimal activation function suitable for the MobileNet-PAS network and the pilose antler slice identification task, comparative experiments were conducted using ReLU, ReLU6, Mish, SiLU, GeLU, and PReLU under fully consistent backbone structure, training hyperparameters, and datasets. Figure 15 presents the quantitative comparison of model evaluation metrics with different activation functions, where the error bars represent the fluctuation range of repeated experimental results.
Figure 15. Comparison results of different activation functions: (A) accuracy comparison; (B) precision comparison; (C) recall rate comparison; (D) F1 score comparison. The error bars represent the standard deviation obtained from five sets of random seeds through repeated experiments.
The overall results indicate that different activation functions impose distinct influences on model recognition performance. As a conventional basic activation function, ReLU yields the lowest comprehensive metrics in this group of experiments. It directly zeros all negative inputs, which easily causes neuron death during training and hinders effective gradient backpropagation of partial channels. Consequently, the network fails to fully learn subtle texture differences among pilose antler slices, resulting in limited overall recognition accuracy. Based on ReLU, ReLU6 introduces an upper bound constraint and is more suitable for lightweight networks, achieving a moderate performance improvement over ReLU. Nevertheless, it still zeros negative outputs and retains the inherent defect of neuron inactivation.
Mish, SiLU, and GeLU are smooth activation functions with continuously differentiable output curves, which alleviate the gradient vanishing problem and further boost model performance compared with ReLU6. However, Mish and GeLU introduce relatively high computational overhead, while SiLU exhibits limited fitting flexibility in the negative interval, restricting its feature representation capability for fine-grained samples with ambiguous feature boundaries such as powder slices and gauze slices. Different from the above functions, PReLU introduces learnable parameters for negative inputs instead of fixed zero output, enabling adaptive adjustment of the negative slope. This design maintains a powerful nonlinear fitting ability and effectively mitigates neuron death. As illustrated in the figure, the model equipped with PReLU achieves the highest accuracy, precision, recall, and F1-score among all comparison groups, with reasonably fluctuating error bars, demonstrating superior recognition performance and stable experimental results.
From the perspective of task characteristics, the differences among various grades of pilose antler slices are mainly reflected in subtle features such as texture depth and ossification degree, which require abundant nonlinear mapping capability for fine-grained discriminative feature mining. By adaptively adjusting the activation state through learnable parameters, PReLU retains partial negative feature information and enriches feature space representation, thereby facilitating the differentiation of highly overlapping gauze slices and powder slices. In contrast, other activation functions either completely discard negative interval information or adopt fixed function forms lacking data-adaptive adjustment, leading to weaker capability in mining fine-grained features. Combining comprehensive evaluation metrics and experimental stability, PReLU is the most suitable activation function for the MobileNet-PAS network in the pilose antler slice identification task.

4. Discussion

Aiming to meet the quality evaluation demand of four commercially available pilose antler slice categories, including wax slices, powder slices, gauze slices, and bone slices, this study constructs an improved lightweight intelligent recognition model named MobileNet-PAS. The proposed network integrates the SimAM attention mechanism, grouped convolution (GConv), and partial convolution (PConv), adopts the PReLU activation function, and is further optimized with the Gap-Aware dynamic learning rate adjustment strategy. Model training and validation are conducted based on a self-built dataset containing 760 pilose antler slice images. Comparative experiments demonstrate that, while maintaining excellent lightweight inference capability, MobileNet-PAS effectively captures subtle texture and ossification differences among multi-grade pilose antler slices and mitigates inter-class confusion among powder slices, bone slices, and gauze slices. The overall classification performance of MobileNet-PAS outperforms multiple state-of-the-art lightweight convolutional networks. Grad-CAM visualization results verify that the improved network suppresses irrelevant background interference and precisely focuses on the discriminative regions of pilose antler slices, providing intuitive feature-level explanations for the performance improvement.
A study with a comparable research task implemented five-category classification of pilose antler slices based on an improved Res2Net network [27], achieving an accuracy of 97.96% on a dataset consisting of 2211 images. That work mainly focused on distinguishing deer species and slice categories; however, no independent test set was constructed, and the validation set was directly adopted for model performance evaluation. Meanwhile, its improved Res2Net model has a parameter count of 16.30 M. Such a relatively large model size imposes certain limitations for the fast and non-destructive classification of pilose antler slices. In comparison, the present study targets the fast non-destructive classification of pilose antler slices. The dataset is strictly split into training, validation, and test subsets to avoid data leakage and guarantee the objectivity of model evaluation results. The proposed MobileNet-PAS model in this work possesses only 1.791 M parameters, making it better suited for practical on-site fast non-destructive detection scenarios for pilose antler slices.
Despite the promising classification performance achieved in this study, several limitations remain, and further optimization and expansion can be conducted in subsequent research.
First, the scale and diversity of the dataset are limited. All images were collected in a laboratory environment with fixed camera parameters, a single background, and controllable illumination conditions. In practical market scenarios, pilose antler slices are frequently affected by complex natural light, diverse shooting angles, surface stains, mildew, and packaging occlusion. The current dataset lacks such complex and noisy samples, restricting the model’s generalization ability in real-world detection tasks. In addition, the category distribution is imbalanced, and the number of hard-to-distinguish gauze slice samples is relatively insufficient, which limits the full learning of fine-grained feature differences.
Second, this study only adopts visible-light RGB images for classification and merely utilizes surface texture information. The medicinal efficacy of pilose antler is closely related to internal chemical compositions and ossification ratios, which cannot be reflected by superficial visual features. For samples with highly similar appearances but distinct internal quality, single visible-light imaging is prone to misjudgment.
Third, the current model only completes static image classification and has not been deployed on embedded devices for field testing. The FPS indicator is obtained through simulation evaluation, without practical verification of inference latency, power consumption, and real-time performance on edge hardware. Therefore, the model still requires further engineering optimization for practical deployment.
Fourth, the experiments are limited to complete and intact pilose antler slices. Actual market circulation includes broken fragments, crushed materials, and artificially spliced counterfeits, which are not covered in the current model detection scope.
Based on the above limitations, future research can be carried out from the following perspectives.
1. Expand the dataset scale and scenario diversity. Future work will increase the total sample size by collecting real-market images captured by mobile phones under varying lighting and background conditions. Samples with mildew, damage, and fragmentation will be supplemented, and the number of confusing samples will be enriched. Combined with advanced data augmentation and sample synthesis strategies, the generalization ability of the model in complex practical scenarios can be effectively enhanced to alleviate dataset imbalance.
2. Introduce multi-modal information fusion strategies. On the basis of visible-light images, near-infrared spectral information will be incorporated to fuse visual texture features and internal chemical spectral features. This multi-modal scheme integrates external appearance and internal component characteristics, realizing joint appearance and medicinal quality evaluation and further improving the reliability of pilose antler quality identification.
3. Promote embedded engineering deployment. The MobileNet-PAS model will be further optimized through pruning and quantization compression and deployed on edge-embedded devices. Real-field acquisition and real-time inference tests will be performed to evaluate practical inference latency and power consumption. A visualized intelligent detection terminal will be developed to facilitate the practical application of the proposed algorithm.
4. Expand the task dimension. In addition to the four-category grade classification, future research will incorporate authenticity identification, splicing counterfeit detection, and mildew defect inspection to construct a multi-task learning framework. The integrated system can simultaneously complete grade evaluation, defect detection, and authenticity discrimination, which better meets the actual detection requirements of Chinese medicinal material markets.
5. Further optimize the algorithm framework. Few-shot and low-shot learning strategies will be introduced to address the problem of high acquisition costs for high-quality medicinal material samples. Lightweight Transformer structures will also be explored to further enhance the fine-grained feature extraction capability and improve recognition accuracy for complex, confusing samples.
Intelligent quality identification of pilose antler represents a vital direction for the intelligent detection of Chinese medicinal materials. This study provides a feasible technical solution for the rapid and non-destructive classification of pilose antler slices. Considering the complexity of medicinal material identification, future research will continuously optimize the dataset, algorithm framework, and hardware deployment system according to practical industrial demands, so as to promote the practical application of deep learning technology in the quality detection of Chinese medicinal materials.

5. Conclusions

Aiming at the strong subjectivity and frequent inter-category misclassification in manual identification of wax slices, powder slices, gauze slices, and bone slices of pilose antler, this study proposes a lightweight identification model MobileNet-PAS based on MobileNetV4-small. Assisted by the Gap-Aware dynamic learning rate strategy, the model is trained on a self-collected pilose antler slice image dataset. Through reconstructing the convolutional structure inside UIB blocks, embedding the SimAM attention module, and adopting the PReLU activation function, multi-module collaborative improvement effectively boosts classification performance while compressing network parameters and computational overhead. Comparative analyses with mainstream convolutional networks demonstrate that MobileNet-PAS achieves a favorable trade-off between recognition accuracy and lightweight performance. Ablation experiments on activation functions verify that PReLU is better suited for the fine-grained identification task of pilose antler slices. Grad-CAM visualization results illustrate that the improved model suppresses background interference and accurately focuses on intrinsic discriminative texture features of pilose antler slices. The proposed method substantially alleviates inter-class confusion among powder slices, bone slices and gauze slices while maintaining high precision for easily distinguishable samples, and achieves stable training convergence.
The above-mentioned experimental results are obtained under laboratory-controlled illumination and background conditions using a dataset of limited scale, reflecting model performance within the present experimental setup. Although the reduction in parameters and computational complexity grants MobileNet-PAS the potential for edge-device deployment, its practical inference performance on resource-constrained embedded hardware has not yet been validated. Further external evaluations with more diverse real-world samples and imaging scenarios are required to explore its generalization ability and robustness for practical commercial applications. This work provides a feasible algorithm reference for fast non-destructive intelligent identification of pilose antler slices under laboratory conditions. Future research will focus on expanding datasets covering complex real-world scenarios, conducting practical benchmark tests on embedded hardware, performing application-oriented engineering optimization, and exploring multi-modal information fusion to advance detection technologies for Chinese medicinal materials.

Author Contributions

F.G.: Conceptualization, Methodology, Writing—original draft. M.H.: Data curation, Formal analysis. Y.W.: Investigation, Visualization. X.L.: Methodology, Writing—review and editing. Y.T.: Supervision, Validation. X.W.: Resources, Software. H.Y.: Project administration, Funding acquisition. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

The raw image dataset of pilose antler slices used in this study cannot be publicly released due to commercial and institutional constraints imposed by the cooperating deer-industry enterprise. Qualified researchers who satisfy relevant institutional and ethical requirements may request the aforementioned research materials by emailing the corresponding author. All access requests will be evaluated on a case-by-case basis in accordance with existing cooperation agreements.

Acknowledgments

We extend our gratitude to our collaborators, and we also thank the reviewers for their valuable suggestions.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Ma, X.; Ma, Y.; Ma, X.; Zhang, Z.; Li, Y. Combination of Pilose Antler Extract and Hydroxytyrosol Enhances Bone Mineral Density in Both Animals and Postmenopausal Women. Food Sci. Nutr. 2025, 13, e70402. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  2. Li, L.; Wang, Y.; Ma, Y.; Gong, J.; Ren, X.; Sun, Y. Pilose antler extract promotes angiogenesis and vascular maturation to accelerate wound healing. Sci. Rep. 2025, 16, 3643. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  3. Zheng, K.; Li, Q.; Lin, D.; Zong, X.; Luo, X.; Yang, M.; Yue, X.; Ma, S. Peptidomic analysis of pilose antler and its inhibitory effect on triple-negative breast cancer at multiple sites. Food Funct. 2020, 11, 7481–7494. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  4. Liu, M.; He, G.; Wang, F.; Sun, Y.; Ma, S.; Hao, Y.; Wang, Y. Pilose antler extract promotes hair growth in androgenic alopecia mice by promoting the initial anagen phase. Biomed. Pharmacother. 2024, 174, 116503. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  5. Liu, K.; Zhao, C.; Zhang, K.; Yang, X.; Feng, R.; Zong, Y.; He, Z.; Zhao, Y.; Du, R. Pilose Antler Protein Relieves UVB-Induced HaCaT Cells and Skin Damage. Molecules 2024, 29, 4060. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  6. Wang, G.; Meng, Y.; Ouyang, W.; Zhao, C.; Zhao, W. Effect of pilose antler polypeptide on the mechanism of bone homeostasis in osteoporosis. Front. Med. 2023, 10, 1289843. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  7. Dong, Y.; Lu, Z.; Gao, T.; Wei, Z.; Ou, Z.; Shi, Z.; Shen, J. A polypeptide derived from pilose antler ameliorates CUMS-induced depression-like behavior by SENP2-PLCβ4 signaling axis. Eur. J. Pharmacol. 2024, 963, 176247. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  8. Zhu, J.; Fan, S.; He, M.; Wang, N.; Xu, X.; Pang, J.; Yan, Y.; Li, L.; Yang, J.; Chang, W.; et al. Quality-grade analysis of velvet antler materials using ultra-weak delayed luminescence combined with chemometrics. Qual. Assur. Saf. Crop. Foods 2023, 15, 1–10. [Google Scholar] [CrossRef] [Scilit]
  9. Chen, C.; Kung, H.; Hwang, F. Deep Learning Techniques for Agronomy Applications. Agronomy 2019, 9, 142. [Google Scholar] [CrossRef] [Scilit]
  10. Qazi, U.; Ahmad, I.; Minallah, N.; Zeeshan, M. Classification of tobacco using remote sensing and deep learning techniques. Agron. J. 2024, 116, 839–847. [Google Scholar] [CrossRef] [Scilit]
  11. Kamilaris, A.; Prenafeta-Boldú, F. Deep learning in agriculture: A survey. Comput. Electron. Agric. 2018, 147, 70–90. [Google Scholar] [CrossRef] [Scilit]
  12. Li, D.; Yang, C.; Yao, R.; Ma, L. Origin Identification of Saposhnikovia divaricata by CNN Embedded with the Hierarchical Residual Connection Block. Agronomy 2023, 13, 1199. [Google Scholar] [CrossRef] [Scilit]
  13. Yu, H.; Hu, X.; Guo, J.; Bi, C.; Xue, M.; Chen, H. An enhanced multi-scale LW-MobileNetV2 for traditional Chinese medicine decoction pieces recognition. Biomed. Signal Process. Control 2026, 113, 109200. [Google Scholar] [CrossRef] [Scilit]
  14. Chen, Z.; Yu, H.; Song, S.; Bi, C.; Guo, J.; Ling, X. J-Rice-ResNeXt: A deep learning-enhanced framework for high-accuracy Japonica rice varietal classification in precision agriculture. Ind. Crop. Prod. 2025, 237, 122197. [Google Scholar] [CrossRef] [Scilit]
  15. Xu, Y.; Khan, T.; Song, Y.; Meijering, E. Edge deep learning in computer vision and medical diagnostics: A comprehensive survey. Artif. Intell. Rev. 2025, 58, 93. [Google Scholar] [CrossRef] [Scilit]
  16. Alotaibi, A. Ensemble Deep Learning Approaches in Health Care: A Review. Comput. Mat. Contin. 2025, 82, 3741–3771. [Google Scholar] [CrossRef] [Scilit]
  17. Bayoudh, K. A survey of multimodal hybrid deep learning for computer vision: Architectures, applications, trends, and challenges. Inf. Fusion 2024, 105, 102217. [Google Scholar] [CrossRef] [Scilit]
  18. Hou, H.; Ding, S.; Cao, C.; Xu, X.; Guo, L.; Li, X. A comprehensive survey of image clustering based on deep learning. Pattern Recognit. 2026, 172, 112590. [Google Scholar] [CrossRef] [Scilit]
  19. Kang, Y.; Li, Y.; Wang, H.; Guo, J.; Huang, Z.; Du, J. The Use of Deep Learning in Primary Agricultural Products Freshness Assessment: A Systematic Review. J. Food Sci. 2025, 90, e70535. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  20. Li, Z.; Wang, D.; Zhu, T.; Tao, Y.; Ni, C. Review of deep learning-based methods for non-destructive evaluation of agricultural products. Biosyst. Eng. 2024, 245, 56–83. [Google Scholar] [CrossRef] [Scilit]
  21. Ahmed, M.; Monjur, O.; Khaliduzzaman, A.; Kamruzzaman, M. A comprehensive review of deep learning-based hyperspectral image reconstruction for agri-food quality appraisal. Artif. Intell. Rev. 2025, 58, 96. [Google Scholar] [CrossRef] [Scilit]
  22. Shuai, L.; Li, Z.; Chen, Z.; Luo, D.; Mu, J. A research review on deep learning combined with hyperspectral Imaging in multiscale agricultural sensing. Comput. Electron. Agric. 2024, 217, 108577. [Google Scholar] [CrossRef] [Scilit]
  23. Farjon, G.; Edan, Y. AgroCounters—A repository for counting objects in images in the agricultural domain by using deep-learning algorithms: Framework and evaluation. Comput. Electron. Agric. 2024, 222, 108988. [Google Scholar] [CrossRef] [Scilit]
  24. Ma, Y.; Wang, W.; Wu, W.; Xu, Y. MobileNet-WDD: A lightweight deep learning image classification method for identifying defects in wheat grains. Front. Plant Sci. 2026, 17, 1882943. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  25. Yu, H.; Chen, Z.; Song, S.; Chen, M.; Yang, C. Classification of Rice Seeds Grown in Different Geographical Environments: An Approach Based on Improved Residual Networks. Agronomy 2024, 14, 1244. [Google Scholar] [CrossRef] [Scilit]
  26. Bi, C.; Hu, N.; Zou, Y.; Zhang, S.; Xu, S.; Yu, H. Development of Deep Learning Methodology for Maize Seed Variety Recognition Based on Improved Swin Transformer. Agronomy 2022, 12, 1843. [Google Scholar] [CrossRef] [Scilit]
  27. Li, D.; Yao, R.; Yang, C.; Zhao, C.; Zhang, L. An Improved Res2Net-Based Model for Classifying the Appearance of Deer Antler Slices. IEEE Access 2023, 11, 99705–99715. [Google Scholar] [CrossRef] [Scilit]
  28. NY/T 1162-2006; Deer Velvet Slices. Ministry of Agriculture of the People’s Republic of China: Beijing, China, 2006.
  29. Qin, D.; Leichner, C.; Delakis, M.; Fornoni, M.; Luo, S.; Yang, F.; Wang, W.; Banbury, C.; Ye, C.; Akin, B. MobileNetV4: Universal models for the mobile ecosystem. In Proceedings of the European Conference on Computer Vision, Milan, Italy, 29 September–4 October 2024; pp. 78–96. [Google Scholar]
  30. Yang, L.; Zhang, R.-Y.; Li, L.; Xie, X. Simam: A simple, parameter-free attention module for convolutional neural networks. In Proceedings of the International Conference on Machine Learning, Virtual, 18–24 July 2021; pp. 11863–11874. [Google Scholar]
  31. Thakur, R.S.; Yadav, R.N.; Gupta, L. PReLU and edge-aware filter-based image denoiser using convolutional neural network. IET Image Process. 2020, 14, 3869–3879. [Google Scholar] [CrossRef] [Scilit]
  32. He, K.; Zhang, X.; Ren, S.; Sun, J. Identity mappings in deep residual networks. In Proceedings of the European Conference on Computer Vision, Amsterdam, The Netherlands, 11–14 October 2016; pp. 630–645. [Google Scholar]
  33. Tan, M.; Le, Q. Efficientnet: Rethinking model scaling for convolutional neural networks. In Proceedings of the International Conference on Machine Learning, Long Beach, CA, USA, 9–15 June 2019; pp. 6105–6114. [Google Scholar]
  34. Ma, N.; Zhang, X.; Zheng, H.-T.; Sun, J. Shufflenet v2: Practical guidelines for efficient CNN architecture design. In Proceedings of the European Conference on Computer Vision, Munich, Germany, 8–14 September 2018; pp. 122–138. [Google Scholar]
  35. Howard, A.; Sandler, M.; Chu, G.; Chen, L.-C.; Chen, B.; Tan, M.; Wang, W.; Zhu, Y.; Pang, R.; Vasudevan, V. Searching for mobilenetv3. In Proceedings of the IEEE/CVF International Conference on Computer Vision, Seoul, Republic of Korea, 27 October–2 November 2019; pp. 1314–1324. [Google Scholar]
  36. Chen, J.; Kao, S.-H.; He, H.; Zhuo, W.; Wen, S.; Lee, C.-H.; Chan, S.-H.G. Run, don’t walk: Chasing higher FLOPS for faster neural networks. In Proceedings of the 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Vancouver, BC, Canada, 17–24 June 2023; pp. 12021–12031. [Google Scholar]
  37. Dai, Z.; Liu, H.; Le, Q.V.; Tan, M. Coatnet: Marrying convolution and attention for all data sizes. In Proceedings of the Advances in Neural Information Processing Systems 34 (NeurIPS 2021), Virtual, 6–14 December 2021; pp. 3965–3977. [Google Scholar]
  38. Han, K.; Wang, Y.; Tian, Q.; Guo, J.; Xu, C.; Xu, C. Ghostnet: More features from cheap operations. In Proceedings of the 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA, 14–19 June 2020; pp. 1577–1586. [Google Scholar]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.