Next Article in Journal
Electrothermal Synthesis of Cell-Imprinted Polymer Coatings on Metallic Microwires for Bacterial Capture
Previous Article in Journal
Efficiency Optimization of Magnetically Coupled Resonant WPT Systems in Seawater with Variable Conductivity
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

MLGA-CDRF-YOLO: A Lightweight Target Detection Method of Multi-Scale Group Attention and Channel Dynamic Residual Fusion for Multipole Magnet Collimation

1
School of Computer and Artificial Intelligence, Beijing Technology and Business University, Beijing 100048, China
2
Institute of High Energy Physics, Chinese Academy of Sciences, Beijing 100043, China
*
Authors to whom correspondence should be addressed.
Sensors 2026, 26(17), 5325; https://doi.org/10.3390/s26175325
Submission received: 6 July 2026 / Revised: 20 August 2026 / Accepted: 21 August 2026 / Published: 22 August 2026
(This article belongs to the Section Physical Sensors)

Abstract

A lightweight multi-scale group attention and channel dynamic residual fusion method is proposed to address the challenge of detecting extremely small encoded targets in particle accelerator multipole magnet collimation. In this scenario, the encoded targets occupy merely 0.003% to 0.009% of the total image pixels, rendering conventional visual techniques inadequate for capturing such fine-grained features. The paper proposes MLGA-CDRF-YOLO, an improved detection framework based on YOLOv11s that integrates a lightweight multi-scale group attention mechanism with channel-wise dynamic residual fusion. Specifically, the C2f-CDRF module combines lightweight channel attention with a dynamic residual structure, enhancing feature representation while reducing parameter count and computational complexity. The Multi-scale Lightweight Group Attention (MLGA) module splits input features into groups processed in parallel through a channel attention branch and a multi-scale spatial attention branch, with ChannelShuffle enabling cross-group information exchange, to improve the model’s feature representation capability and generalization performance for complex scenes. Experimental results on the encoded target dataset demonstrate that MLGA-CDRF-YOLO achieves an mAP@0.5 of 95.5%, a precision of 95.8%, and a recall of 88.5%, with only 3.41 M parameters and 14.8 GFLOPs, achieving a competitive and comprehensive balance between accuracy and computational cost. Furthermore, evaluation on the NEU-DET dataset confirms the model’s stable generalization performance across diverse detection tasks.

1. Introduction

To achieve the desired energy and lifetime of charged particle beams, the beams must travel along the designed trajectory, which is formed by a series of multipole magnets. To realize this designed trajectory, the multipole magnets need to be adjusted and installed to their designated positions, a process known as magnet collimation [1]. Current magnet collimation work primarily relies on tracking instruments and other detection devices, which only permit single-point measurement and suffer from low efficiency. To investigate fundamental questions such as the mechanism of electroweak symmetry breaking and the origin of mass, particle accelerators are being constructed at increasingly large scales. This trend extends the time span required for traditional magnet collimation methods. Employing computer vision techniques to recognize encoded target features on the surfaces of multipole magnets for collimation tasks offers advantages including rapid response and multi-point measurement capability [2]. However, during magnet collimation, the target pixel ratio of encoded targets [3] is merely 0.003% to 0.009%, making it difficult for conventional visual techniques to capture such fine-grained features. Moreover, during the identification of encoded targets, influences from different materials, shooting angles, and environmental factors [4,5] can lead to missed detections, thereby reducing recognition accuracy. The development of fast and accurate encoded target recognition technology is of significant importance for improving the efficiency of particle accelerator magnet collimation.
Research on object detection in computer vision is currently transitioning from traditional visual algorithms toward deep learning-based approaches. Specifically, object detection networks are mainly categorized into single-stage methods, two-stage methods, and Transformer-based methods [6]. Single-stage methods can directly predict bounding boxes and categories in a single forward pass and are renowned for their fast detection speed. Representative methods include the YOLO series, SSD, and RetinaNet [7]. Recent improvements to single-stage detectors have focused on enhancing small object detection through multi-layer feature optimization [8], global modeling modules for fine-grained feature discrimination, and Mamba-based feature pyramid enhancement [9]. Two-stage methods first generate candidate regions and then perform classification and regression, as exemplified by Faster R-CNN [10]. Subsequent work has improved detection consistency through class-agnostic non-maximum suppression combined with feature pyramid networks [11], and enhanced small object accuracy via optimized anchor boxes and region proposal parameters [12]. A comprehensive review chronicles this evolution from YOLOv1 to YOLOv12, highlighting incremental advances in speed, accuracy, and computational efficiency [13].
Recently, YOLO-based variants have addressed diverse detection challenges: multi-stage feature enhancement for general object detection [14], multi-scale defect detection in sewer pipelines [15], small object detection for UAVs under complex lighting and occlusion [16], and blurred vehicle detection in dynamic traffic environments [17]. YOLOv11 has demonstrated strong multi-class detection performance on high-resolution remote sensing imagery [18]. For small objects specifically, deep feature learning with multi-scale receptive fields and shallow-deep feature fusion has yielded significant gains [19].
Attention mechanisms have also been widely integrated into YOLO architectures to improve small object detection. Cross-spatial multi-head self-attention has been used to establish long-range contextual dependencies [20], and hierarchical Swin Transformer attention with shifted-window self-attention has enhanced global context modeling for small UAV detection [21]. Parameter-free attention combined with multi-scale feature pyramids has been employed to improve densely distributed small object detection while simultaneously reducing model parameters [22]. Recent YOLO iterations have further introduced NMS-free end-to-end training strategies [23] and improvements in bounding box prediction, cross-scale prediction, and feature extraction [24].
This paper proposes a lightweight multi-scale channel attention dynamic residual fusion module, which enhances deep attention modeling capability compared with other lightweight models. It reduces model parameters while maintaining detection performance and improves the ability to recognize extremely small encoded targets in the multipole magnet collimation context. Specifically:
(1)
We propose the MLGA-CDRF-YOLO framework, a lightweight and high-performance small object detection model built upon YOLOv11s, which reduces computational cost while improving detection accuracy.
(2)
We propose the C2f-CDRF module, which organically integrates a lightweight channel attention mechanism with a dynamic residual structure. This not only enhances the effectiveness of feature representation but also reduces the model’s parameter count and computational complexity, thereby strengthening the model’s learning capability and inference efficiency.
(3)
We propose the MLGA module, which employs a dual-branch group attention design: A channel attention branch captures global channel-wise dependencies via pooling and depthwise separable convolution, while a multi-scale spatial attention branch uses parallel GhostConv layers at different scales; a ChannelShuffle operation facilitates information exchange across channel groups. This design effectively fuses multi-scale feature expressiveness with efficient channel modeling capability, thereby improving the model’s representational and generalization abilities for targets in complex scenes.
(4)
By comparison with multiple YOLO variants, the MLGA-CDRF-YOLO achieves competitive mAP and precision on the encoded targets dataset with substantially reduced parameter count and computational cost, while maintaining stable generalization on the NEU-DET dataset.

2. Related Work

This paper presents lightweight improvements to the YOLOv11s model for the accelerator magnet collimation scenario, designing a target recognition algorithm tailored to this application.

2.1. YOLO-Based Object Detection Algorithm

YOLO series detectors decompose object detection into a single regression problem, directly predicting bounding boxes and class probabilities from full images in one forward pass. Their modular backbone–neck–head architecture allows independent optimization of feature extraction, multi-scale fusion, and task-specific prediction, making them well-suited for customization in domain-specific applications such as industrial inspection and scientific instrumentation.

2.2. Model Lightweighting Techniques

Lightweight network design pursues parameter and computation reduction without proportionally sacrificing accuracy. Two complementary strategies dominate: post-training compression, where knowledge distillation [25] transfers the representational capacity of a larger teacher model into a compact student; and structural simplification, which replaces costly operators with efficient alternatives such as depthwise separable convolution [26], Group Convolution [27], Ghost Convolution [28], and PConv [29]. A related modular redesign approach is RePack then Refine by Dong [30], which compresses high-dimensional vision features to accelerate Diffusion Transformer training, sharing a similar philosophy of inserting targeted modules into mature frameworks without full backbone redesign.
CBAM enhances feature representation through channel and spatial attention [31]. GhostNet reduces feature redundancy using inexpensive operations [28], while ShuffleNet promotes inter-group information exchange through channel shuffling [27]. However, these methods were not specifically designed for extremely small encoded targets in high-resolution images.

3. Method

This section details the proposed improvements to the backbone and attention modules of YOLOv11s, comprising the C2f-CDRF feature extraction module and the MLGA module. Both modules are designed as drop-in replacements that preserve compatibility with the YOLO architecture series.

3.1. Overall Architecture of MLGA-CDRF-YOLO

YOLOv11s serves as the baseline for this study. Among the five official scales, the “s” variant offers a favorable accuracy–speed trade-off while leaving room for structural optimization. A key limitation of the standard C3k2 block in YOLOv11s is its reliance on plain convolution for feature extraction: intermediate layers produce many near-duplicate feature maps, wasting computation and memory bandwidth. Moreover, the fixed local receptive field of plain convolution restricts long-range dependency modeling, which is particularly detrimental for detecting encoded targets that occupy as little as 0.003% of image pixels and whose contextual cues span large spatial distances [32].
This paper develops MLGA-CDRF-YOLO as a scenario-specific modular variant of YOLOv11s rather than a redesign of the overall YOLO framework. The simplified architecture of the MLGA-CDRF-YOLO network is shown in Figure 1. We redesign the bottleneck unit with a lightweight channel attention block, which substitutes depthwise separable convolution for standard convolution and integrates CBAM-based spatial attention, substantially cutting parameters and FLOPs. Stacking these blocks yields the LCA-Bottleneck, the building unit of the C2f-CDRF module. C2f-CDRF replaces the C3k2 block in both the backbone and neck of YOLOv11s, preserving multi-scale feature fusion while compressing model scale. Second, for the deepest network layers, we improve the C2PSA attention module by incorporating GhostConv-generated multi-scale spatial branches and a channel attention pathway, forming the MLGA module. This design strengthens global context aggregation with lower overhead than the original self-attention mechanism.
For the deep layers of the network, we improve Ghost Convolution and integrate it into the PSA block to form a structure named MSCA. Through GhostConv, a small number of intrinsic feature maps are generated, and multi-scale spatial convolution (MSCB) combined with a channel attention module is utilized for feature enhancement, achieving cross-channel and cross-spatial information interaction. On this basis, we construct the MSCA feature extraction module and embed it into the C2PSA layer of YOLOv11 to enhance global context modeling capability. Compared with the original C2PSA module that relies solely on standard convolution and self-attention mechanisms, the operational characteristics of GhostConv reduce parameter count and computational complexity, while multi-scale spatial perception and channel adaptive calibration effectively improve the model’s feature extraction capability and detection accuracy for multi-scale targets.
Targeting the characteristics of the collimation task, including the extremely small proportion of encoded targets, high-resolution input, and computational-efficiency requirements, we redesign and integrate them for extremely small target detection. MLGA combines parallel channel and multi-scale spatial branches with ChannelShuffle, while C2f-CDRF reduces computational costs through lightweight feature extraction and residual fusion.

3.2. LCA-Block

LCA-Block is a lightweight feature enhancement module that combines depthwise separable convolution, channel attention, and spatial attention mechanisms to improve feature expressiveness while reducing computational cost. In this module, we replace the ReLU [33] function with the SiLU [34] function. This is because different activation functions suit different application scenarios, and selecting the appropriate one is crucial for the performance and accuracy of deep learning models.
SiLU is a nonlinear activation function that has attracted considerable attention in the deep learning field in recent years. It is expressed as
S i L U x = x 1 + e x
Compared with ReLU, SiLU combines the non-saturating advantage of ReLU with the smooth gradient property of the Sigmoid function [35], adaptively regulating the output response according to the input signal. Its continuous gradient propagation mechanism suppresses the vanishing gradient problem and ensures stable backpropagation [28]. Based on these advantages, we select the SiLU function to activate feature maps extracted by depthwise separable convolution, which enhances feature distinctiveness and facilitates the capture of tiny targets and subtle variations in the data.
As shown in Figure 2, the input feature map is initially processed through the first part to generate fewer intrinsic feature maps, X1, than standard convolution. Specifically, the input X first undergoes channel transformation via a 1 × 1 standard convolution, followed by batch normalization to stabilize the distribution, and then the SiLU activation function to introduce non-linear features, ultimately yielding the feature map denoted as X1. Subsequently, X1 passes through the second part, where linear operations are employed to generate redundant feature maps X2 that are highly similar to X1, which are then enhanced through Channel Attention and the CBAM module. Finally, a residual connection with the input X produces the output feature map Xout.
X 1 = f 1 X
X 2 = f 2 X 1
X o u t = a d d ( X ,   α X 2 )
where f1 denotes the first-stage operation, which applies convolution, BatchNorm, and activation function processing to the input feature X to extract intrinsic feature maps. f2 denotes the second-stage operation, which further applies convolution, BatchNorm, and parallel processing of channel attention and CBAM to X1 to generate redundant feature maps. α denotes the scaling factor, experimentally determined to be 1.2 [32]. add denotes the residual connection between X and αX2.

3.3. LCA-Bottleneck

Standard convolution generates redundant feature maps during the feature extraction process, leading to an increased parameter count. Moreover, it is incapable of modeling spatial and channel features separately, making it difficult to capture finer-grained feature relationships [36]. To address this issue, this paper creates the LCA-Bottleneck module. This enables feature extraction while reducing computational cost, simultaneously improving feature representation.
As shown in Figure 3, the input feature map X first passes through the first standard convolution layer to establish initial feature representation and extract low-level features. In this convolutional layer, the number of feature channels is expanded. The feature maps processed by the initial convolution are then fed into a sequence composed of n LCA-Block modules. This constitutes the core component of the LCA module, responsible for extracting key features through the local channel attention mechanism. Each LCA-Block adopts a lightweight design internally, enhancing features while reducing computational cost. Finally, the key feature maps processed by the n LCA-Block modules are connected residually with the input feature map X. This process integrates attention-enhanced feature information while preserving the integrity of the original information, alleviating the adverse effects of information loss caused by multiple convolutions, and yielding the output Xout of the LCA-Bottleneck structure.
X 1 = f 1 X
X 2 = f 2 X 1
X 3 = f 3 X 2
X o u t = f 4 X ,   X 3
where f1 denotes the first convolution operation on the input X. f2 denotes the n LCA-Block operations performed on the feature map X1. f3 denotes the second convolution operation. f4 denotes the residual connection between the input X and X3.

3.4. C2f-CDRF

To optimize resource utilization during model computation and reduce the redundancy of feature maps generated by standard convolution that leads to resource waste, this paper redesigns the C2f feature extraction module using LCA-Bottleneck, reducing feature parameter count and computational complexity while enhancing feature representation, termed C2f-CDRF. As shown in Figure 4, we first reduce the number of channels through a 1 × 1 convolution to lower the computational load of subsequent operations, obtaining the feature map X1. The SiLU activation function is then applied to introduce non-linearity, yielding the feature map X2. We employ a feature extraction layer constructed from n LCA-Bottleneck modules to extract input features, obtaining the feature map X3. The feature map is then added to X3, derived through an identity mapping of the input feature map X along the channel axis, to preserve more spatial information and enhance model robustness. Finally, channel integration is performed via a 1 × 1 convolution operation, followed by the SiLU activation function to enhance feature expressiveness, generating the feature map Xout.
X 1 = f 1 X
X 2 = S i L U X 1
X 3 = f 2 f 2 f 2 f 2 X 2
X 4 = a d d ( X 2 ,   X 3 )
X 5 = f 1 X 4
X o u t = S i L U X 5
where f1 denotes a standard convolution operation, and f2 represents the feature extraction operation of LCA-Bottleneck. This paper employs the C2f-CDRF feature extraction module to obtain the new feature map Xout. The C2f-CDRF module is applied to both the backbone and the neck, aiming to reduce computational complexity and parameter count while maintaining the feature extraction capability of the backbone network and the feature fusion capability of the neck.
In our design, the number of LCA-Bottleneck modules is set to n = 4 [31]. This choice stems from the structure of the base YOLOv11s model and maintaining consistent model depth constitutes the core principle of our experimental design. This enables us to conduct comparative analysis, ensuring that any observed performance improvements can be definitively attributed to the architectural superiority of the LCA-Bottleneck module, thereby effectively isolating the innovation of our proposed structure from factors such as model capacity expansion or increased computational complexity.

3.5. MLGA

The C2PSA module is located in the deep layers of the network, aiming to generate more discriminative high-level semantic feature maps, which play an important role in the model’s understanding capability and decision-making process. C2PSA fuses multi-scale feature information through cross-channel pyramid self-attention mechanisms, enhancing the model’s perception capability for complex scenes and fine-grained targets. This module can dynamically capture relationships between distant regions, breaking through the limitations of traditional fixed-window operations and strengthening the model’s global context modeling capability. Compared with structures that rely solely on local features, C2PSA exhibits stronger robustness and generalization ability when processing object detection tasks such as encoded points, significantly improving the model’s recognition effectiveness for tiny targets and overall scene understanding capability. Furthermore, due to its complex attention computation, the inference speed decreases compared with lightweight attention modules.
To address these issues, this paper introduces two branches: a lightweight channel attention branch and a multi-scale spatial attention branch, whose function is to extract global information. This paper also employs the LeakyReLU [37] activation function to enhance the model’s generalization capability and improve its stability.
The LeakyReLU function is an improved variant of the ReLU activation function, which can avoid the phenomenon of neuron “death” when computing negative input values. Its mathematical formula is expressed as
L R e L U x = x        i f   x > 0 α x     i f   x 0
α is set to 0.2 [38]. In object detection tasks, the area of background regions is far larger than that of target regions. Therefore, the feature responses in the MLGA module are obtained by concatenating the features from the two branches and fusing them through a 1 × 1 convolution. These responses typically exhibit a number of activation states approaching zero or negative values. The SiLU activation function applies non-linear suppression to negative regions, causing negative responses that originally contain key discriminative contextual information to be ignored. The LeakyReLU function merely applies mild linear attenuation to negative responses, effectively maintaining the sign characteristics and relative magnitudes of the responses, thereby ensuring the integrity of fused features [39].
As shown in Figure 5, the MSCB processes the input feature map through parallel channel- and spatial-attention branches. The channel-attention branch aggregates global information using average and max pooling and then generates channel-enhanced features through depthwise separable convolutions and Sigmoid activation. In the spatial-attention branch, a 1 × 1 depthwise separable convolution first projects the input features, which are subsequently processed by parallel 3 × 3, 5 × 5, and 7 × 7 convolutions. The multi-scale responses are combined by element-wise addition, followed by channel shuffle and a 1 × 1 convolution. A projected shortcut is then added to the refined features before Sigmoid activation. Finally, the channel- and spatial-enhanced features are fused by element-wise addition and processed by a 1 × 1 depthwise separable convolution and group normalization to produce an output with the same dimensions as the input.
The MSCA module adopts a two-stage residual architecture, as shown in Figure 6. Given an input feature map X, the MSCB first captures complementary channel dependencies and multi-scale spatial context. Its output is added to X through the first residual connection to obtain X2. The fused feature is then passed through FFN. Finally, the FFN output is added to X2 through the second residual connection to generate Xout. These residual connections preserve the original information and facilitate stable feature propagation.
As shown in Figure 7, the input feature map X is first transformed by a standard convolution f1 to produce X1. X1 is then processed sequentially by n MSCA blocks, yielding the refined feature Xn. In parallel, a long residual path transfers X1 directly to the fusion node. X1 and Xn are combined by element-wise addition to obtain X2, which is subsequently transformed by a second standard convolution f3 to generate Xout.
X 1 = f 1 ( X )
X n = f 2 f 2 f 2 f 2 X 1
X 2 = a d d X 1 ,   X n
X o u t = f 3 X 2
where f1 denotes a standard convolution operation, f2 denotes the fused feature operation of the MSCA module, and f3 denotes a standard convolution operation.

4. Experiment

4.1. Experiment Environment

The experimental environment and training strategy of this model are summarized in Table 1. The label assignment strategy follows the anchor-free matching rule of YOLOv11: when the spatial distance between a prediction point and the center of a ground-truth box falls within a specific threshold range, the ground-truth box is assigned to that feature point. During training, feature points are dynamically filtered through centrality estimation and task collimation measurement. Each object is automatically assigned to one or more feature layers of different resolutions according to its scale, with small targets tending toward high-resolution feature maps and large targets tending toward low-resolution feature maps, achieving multi-scale collaborative prediction.
Comparative models are sourced from their official GitHub releases and evaluated under identical runtime conditions. For ablation studies involving structural modifications, all variant-specific settings such as learning rate, weight decay, optimizer, and data augmentation are held constant, ensuring that performance differences are attributable solely to architectural changes rather than training recipe variations. Every experiment—including ablation, comparative, and generalization tests—shares the same dataset split, hardware environment, batch size of 4, and training budget of 200 epochs.

4.2. Experimental Dataset Description

We validate our approach on two datasets with distinct characteristics. The primary benchmark is a dedicated encoded target dataset constructed for the multipole magnet collimation scenario, where targets occupy as little as 0.003% of image pixels. A secondary cross-domain evaluation is performed on NEU-DET, a public surface-defect dataset featuring six defect types under varying illumination and material conditions, to assess whether the proposed lightweight architecture generalizes beyond the collimation domain.

4.2.1. Encoded Target Dataset

The experimental setting is shown in Figure 8. The dataset used in this study was collected by the team from the Institute of High Energy Physics, Chinese Academy of Sciences, at actual accelerator collimation sites, with the aim of improving the development and research of traditional encoded target recognition algorithms on multipole magnet surfaces. It comprises 350 high-resolution images with an average size of 5120 × 5120 pixels. Based on the original annotations, the encoded targets occupied approximately 0.003% to 0.009% of each 5120 × 5120 image; after resizing to 640 × 640 pixels, their corresponding areas were approximately 12 to 37 pixels. The images were collected under actual accelerator collimation conditions. Images were acquired using a single light source, with the camera positioned around the multipole magnet at a distance greater than 1 m from the encoded targets.
The dataset was annotated using LabelImg and contains two categories, encoded frames and encoded points, with 6971 and 55,468 annotated instances, respectively. The majority of these are small-scale encoded targets, as illustrated in Figure 9. Because the number of images available for dataset construction was relatively limited, the dataset was split into training, validation, and test sets at an 8:1:1 ratio using stratified sampling based on category labels, to allocate as many images as possible to the training set and ensuring that the proportion of encoded frames and encoded points remained consistent across all subsets. This resulted in 280 training, 35 validation, and 35 test images.
In the process of creating the dataset, we perform feature enhancement on the training set images, including horizontal flip, Mosaic, HSV adjustment, translation and scale.

4.2.2. NEU-DET

The NEU-DET [40] dataset was created by the team at Northeastern University, with the aim of studying the development and research of automatic detection algorithms for steel plate surfaces. The dataset contains six typical defect categories on steel plate surfaces: crazing, scratch, patch, pitted surface, rolled-in scale, and inclusion. It comprises 1800 steel plate surface defect images and serves as a standard dataset in the field of steel surface defect detection, suitable for rapid validation and comparative experiments of object detection algorithms. The dataset was split into training, validation, and test sets at an 8:1:1 ratio using stratified sampling based on the six defect categories, yielding 1440 training, 180 validation, and 180 test images with consistent class proportions across all subsets.

4.3. Experimental Metrics

The evaluation metrics employed in this paper are consistent with those adopted in most studies [41,42], including Precision, Recall, AP, and mAP, with mAP serving as the primary evaluation criterion. The definitions of these metrics are as follows:
P r e c i s i o n = T P T P + F P
R e c a l l = T P T P + F N
A P = 0 1 p r   d r
m A P = 1 n I = 1 n A P i
where TP denotes the number of true positives, FP denotes the number of false positives, and FN denotes the number of false negatives. p(r) denotes the precision–recall curve, and n denotes the number of categories. AP quantifies the detection accuracy for a single category, while mAP averages the detection accuracy across all categories. In this study, mAP@0.5 denotes the mean AP calculated at an IoU threshold of 0.50, whereas mAP@0.5:0.95 denotes the mean AP averaged over IoU thresholds ranging from 0.50 to 0.95 with a step size of 0.05. Both metrics are reported to evaluate detection accuracy under different localization criteria.
Parameter count is used to evaluate the number of parameters in the model, representing the total number of parameters during the training process. GFLOPs is an important metric for measuring model computational complexity, representing the total number of floating-point operations executed during model computation. Lower GFLOPs values indicate reduced computational complexity and resource requirements.
FPS reflects the model’s capability to process images per unit time, serving as an important metric for evaluating inference speed and real-time performance. It should be emphasized that inference latency is primarily influenced by model architecture.
All FPS measurements were conducted on an NVIDIA GeForce RTX 5070 Ti GPU using PyTorch 2.7.0 and CUDA 12.8. The input images were resized to 640 × 640 pixels, and the inference batch size was set to 1. Before timing, 5 warm-up iterations were performed to eliminate initialization overhead. Subsequently, 350 images were processed, and CUDA synchronization was performed immediately before and after timing. FPS was calculated as the number of processed images divided by the total elapsed time.
The reported FPS excludes image preprocessing, data loading, non-maximum suppression, and result visualization. The experiment on the encoded target dataset was independently repeated five times, and the mean and standard deviation were reported. All compared models were evaluated using the same hardware, software environment, input resolution, batch size, precision mode, and timing procedure.

4.4. Training Behavior Analysis

By analyzing the training and validation loss curves, this paper interprets the model training dynamics. As shown in Figure 10, the training loss of MLGA-CDRF-YOLO decreases more steeply than that of YOLOv11s and reaches a lower value at the end of training. Under the reported training setting, these observable changes indicate faster convergence and a lower final training loss.
The validation loss curve comparison presented in Figure 11 shows that both MLGA-CDRF-YOLO and YOLOv11s exhibit high validation loss values during the early training stage. MLGA-CDRF-YOLO shows a larger initial loss peak, after which its validation loss decreases and remains lower than that of YOLOv11s for most of the remaining epochs.

4.5. Ablation Experiments

4.5.1. Conduct Ablation Experiments on α and n

We conducted an ablation study to evaluate the effects of the residual-connection coefficient α and the number of module repetitions n on detection performance.
As shown in Table 2, α = 1.2 consistently outperformed α = 0.5 and 1.0 and achieved slightly better results than α = 1.4. Within the α = 1.2 group, increasing n from 1 to 4 improved all detection metrics, while increasing the parameter count by 0.09 M and causing a moderate decrease in FPS. Therefore, α = 1.2 and n = 4 were selected as the best-performing configurations in these experiments.

4.5.2. Conduct Ablation Experiments on the Encoded Target Dataset

To evaluate the importance of each module in MLGA-CDRF-YOLO, this paper progressively introduces each module into the baseline model YOLOv11 to verify its effectiveness. The encoded target dataset is used for ablation experiments. Table 3 presents the impact of introducing each module on the evaluation metrics.
Although the Baseline + C2f-CDRF model achieves the lowest parameter count and computational cost among all models, its detection accuracy does not reach the optimal level. In contrast, our model achieves mAP@0.5 of 95.5% and a Precision of 95.8%, surpassing the other three models. On the other hand, regarding the Recall metric, our model is comparable to the Baseline + MLGA model and higher than the other two models. Finally, in terms of inference speed, the inference speed of our model is lower than that of the baseline + C2f-CDRF and baseline + MLGA model, but the gap with the other two models is not substantial, still maintaining efficient inference. Moreover, compared with the baseline model, our model reduces computational cost in terms of parameter count and computational cost, while improving mAP@0.5 by 2.3%.
Notably, the Baseline + MLGA configuration exhibits a Precision decrease from 94.4% to 86.9% and a slight mAP@0.5 decline from 93.2% to 92.9%, despite achieving the highest Recall among the single-module variants. As shown in Figure 12, analysis of the MLGA training curves reveals that the validation Precision oscillates substantially during the final epochs, indicating training instability introduced by the group attention mechanism with ChannelShuffle when applied in isolation. Specifically, the multi-scale spatial attention branch with parallel GhostConv layers expands the receptive field to capture more candidate regions, which improves Recall but simultaneously generates more false positives that reduce Precision. Without the C2f-CDRF module to first enhance and compress feature representations, the abrupt feature group splitting and ChannelShuffle operation disrupt feature coherence. When both modules are combined in the full model, C2f-CDRF pre-processes features through channel attention and dynamic residual fusion, providing more discriminative representations that allow MLGA to operate effectively, thereby restoring Precision to 95.8% while maintaining high Recall.
Additionally, to more intuitively demonstrate the enhancement effects of the improved model, this paper employs gradient-weighted class activation mapping to generate localized heatmaps. This method computes the gradient of the target class score with respect to the last convolutional feature map, extracts channel weights through global average pooling, and subsequently fuses the feature maps in a weighted manner to localize key discriminative regions. As shown in Figure 13, for clearer visualization, the images were displayed in negative mode. The improved network is capable of accurately localizing extremely small encoded point regions in high-resolution images, avoiding the dispersion of attention to background walls, pipelines, and other interfering objects.

4.6. Comparison with Other Methods

To verify the improvement effects of the model, its detection performance was compared with other models. Table 4 lists the comparison results. All models were trained using the same dataset split, input resolution, batch size, number of epochs, optimizer, learning rate, and data-augmentation settings.
In the magnet collimation scenario, missed detections prevent the magnet at that position from completing collimation localization, necessitating camera angle readjustment and re-imaging, which severely degrades collimation efficiency. Therefore, recall serves as the critical metric for assessing collimation practicality. Compared with mainstream YOLO series models, our method achieves a recall of 88.5%. Although RT-DETR and GS_YOLO achieve higher recall on this dataset, our model attains the highest mAP@0.5 and precision among all compared methods with only 3.41 M parameters and 14.8 GFLOPs. Similarly, our recall reaches 88.5%, contributing to reliable detection capability in real collimation scenarios at reduced computational cost. Other models in the YOLO series continuously iterate and optimize based on the original architecture in pursuit of superior detection performance, yet their lightweight design and accuracy balance in terms of parameter count and computational complexity control remain suboptimal. Although the RT-DETR model achieves the highest recall among these models, its parameter count and computational cost far exceed those of our model. In contrast, our model achieves 95.5% mAP@0.5 with 3.41 M parameters and 14.8 GFLOPs computational cost, striking a balance between mAP@0.5 and efficiency.

4.7. Generalization Comparison

To evaluate the generalization capability of our method, comparative experiments are conducted on the NEU-DET dataset. All models were trained using the same dataset split, input resolution, batch size, number of epochs, optimizer, learning rate, and data-augmentation settings.
As shown in Table 5, our method achieves competitive detection performance while reducing model parameter count and computational overhead. Compared with YOLOv5s, model parameters are reduced by 51.4% and computational cost by 6.3%; compared with YOLOv6s, parameters are reduced by 81.6% and computational cost by 67.3%; compared with YOLOv7s, parameters are reduced by 90.8% and computational cost by 86%; compared with YOLOv8s, parameters are reduced by 69.3% and computational cost by 48.6%; compared with YOLOv9s, parameters are reduced by 52.4% and computational cost by 44.6%; compared with YOLOv10s, parameters are reduced by 57.5% and computational cost by 39.6%; compared with YOLOv11s, parameters are reduced by 63.8% and computational cost by 30.5%. It is worth noting that, on the NEU-DET dataset, the mAP@0.5 of the proposed method is only 0.2% lower than that of YOLOv9s, and its recall is only 1.0% lower than that of YOLOv8s. This pronounced asymmetry between the reduction in computational cost and the slight performance degradation indicates that our lightweight design mitigates the adverse impact of accuracy decline. Compared with YOLOv5s, our method achieves higher mAP@0.5 and recall while operating at lower computational cost, exhibiting a favorable balance between mAP@0.5 and computational burden. Through network architecture optimization, we control model scale while maintaining high feature extraction capability. Experimental results demonstrate that for steel surface defect detection tasks, our method achieves a balance among mAP@0.5, recall, and computational cost.

4.8. Experiments Repeated on the Encoded Target Dataset

To verify that the model’s performance was stable rather than the result of a single favorable run, we independently repeated the experiments on MLGA-CDRF-YOLO using different random seeds, as shown in Table 6.
The model achieved average mAP@0.5, mAP@0.5:0.95, precision, and recall values of 95.46%, 68.00%, 95.74%, and 88.50%, respectively. The corresponding standard deviations ranged from 0.21 to 0.32, indicating limited performance variation under the same parameter settings. In particular, Seed = 2 produced the highest values for all four accuracy metrics, whereas Seed = 1 produced the lowest; nevertheless, the differences between the runs remained small. Moreover, the average inference speed was 92.46 ± 0.76 FPS, demonstrating consistent computational efficiency across repeated runs. Overall, these results indicate that MLGA-CDRF-YOLO exhibits stable performance.
Nevertheless, the relatively small number of independent test images may limit the statistical power of the evaluation and the generalizability of the conclusions. Future work will focus on collecting a larger and more diverse dataset under additional operating conditions.

5. Discussion

This study proposes the MLGA-CDRF-YOLO framework for encoded target recognition tasks in accelerator magnet collimation, which improves upon the YOLOv11s baseline model for encoded target recognition scenarios. Experiments on the encoded target dataset demonstrate that MLGA-CDRF-YOLO achieves lightweight improvements compared with the YOLOv11s baseline model, with mAP@0.5 improved by 2.3%, model parameter count reduced by 64%, and computational complexity decreased by 30%. It maintains detection accuracy while achieving the objective of model lightweighting. Meanwhile, generalization experiments conducted on the NEU-DET dataset, through comparison with other models, validate the generalization capability of our model.
In future work, we plan to construct more comprehensive and diverse encoded target datasets that encompass different measurement scenarios in multipole magnet collimation. We will also pursue further lightweight optimization to maintain efficient inference under varying computational conditions. Additionally, we will validate the generalization of the proposed model in non-multipole magnet collimation scenarios.

6. Conclusions

This study develops the C2f-CDRF feature extraction module, aiming to reduce model parameter count and computational complexity while enhancing feature extraction capability. Concurrently, an improved C2PSA module named MLGA is proposed, which can dynamically capture relationships between distant regions to strengthen the model’s global context modeling capability. Compared with other object detection models, our model achieves a balance between lightweight design, mAP@0.5, and generalization performance.
This paper validates the effectiveness of the improved method, which combines lightweight multi-scale group attention with channel dynamic residual fusion, realizing a favorable balance between mAP@0.5 and computational cost.

Author Contributions

Conceptualization, X.Z., H.X. and X.W.; methodology, X.Z., H.X., X.W. and L.M.; software, X.Z. and L.M.; validation, X.Z., X.W. and L.M.; formal analysis, X.Z., H.X. and X.W.; investigation, X.Z. and L.M.; resources, H.X., X.W. and L.M.; data curation, X.W., X.Z. and H.X.; writing—original draft preparation, X.Z. and H.X.; writing—review and editing, X.Z., H.X., X.W. and L.M.; visualization, X.Z. and L.M.; supervision, H.X. and X.W.; project administration, X.W., H.X. and L.M.; funding acquisition, H.X. and X.W. 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.

Informed Consent Statement

Not applicable.

Data Availability Statement

All data generated or analyzed in this study are included in this published article.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
YOLOYou Only Look Once
SSDSingle Shot MultiBox Detector
MSCNMulti-Scale Context Fusion Network
LAMLighting–Occlusion Attention Mechanism
HPPHybrid Pooling Pyramid
DPFPDual-Path Fusion Pooling
FPNFeature Pyramid Network
RPNRegion Proposal Network
UAVUnmanned Aerial Vehicle
NMSNon-Maximum Suppression
MLGAMulti-Scale Lightweight Group Attention
SiLUSigmoid Linear Unit
C2PSACross-Channel Pyramid Self-Attention
mAPmean Average Precision
APAverage Precision
PPrecision
RRecall rate

References

  1. Fukami, K.; Azumi, N.; Inoue, S.; Kai, T.; Kimura, H.; Kiuchi, J.; Matsui, S.; Takano, S.; Watanabe, T.; Zhang, C. Performance Verification of a Precise Vibrating-Wire Magnet Alignment Technique for Next-Generation Light Sources. Rev. Sci. Instrum. 2019, 90, 054703. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  2. Temnykh, A. Vibrating Wire Field-Measuring Technique. Nucl. Instrum. Methods Phys. Res. Sect. A 1997, 399, 185–194. [Google Scholar] [CrossRef] [Scilit]
  3. Wang, Q.; Liu, Y.; Guo, Y.; Wang, S.; Zhang, Z.; Cui, X.; Zhang, H. A Robust and Effective Identification Method for Point-Distributed Coded Targets in Digital Close-Range Photogrammetry. Remote Sens. 2022, 14, 5377. [Google Scholar] [CrossRef] [Scilit]
  4. Wang, X.; Dong, L.; Li, B.; Men, L.; Luo, T. Pre-Alignment of BEPCII Storage Ring. Nucl. Technol. 2010, 33, 566–570. [Google Scholar]
  5. Liang, J.; Dong, L.; Luo, T.; Wang, T. Statistical Analysis of Laser Tracker Measurement Accuracy and Determination of Prior Error for BEPCII Storage Ring. Sci. Surv. Mapp. 2013, 38, 182–184. [Google Scholar]
  6. Meng, S.; Zhang, S.; Liang, X.; Hu, J. Automatic Extraction of Scale Information for Interactive Measurement of Anything in Microscopy Images. Knowl.-Based Syst. 2025, 324, 113578. [Google Scholar] [CrossRef] [Scilit]
  7. Lin, T.-Y.; Goyal, P.; Girshick, R.; He, K.; Dollar, P. Focal Loss for Dense Object Detection. IEEE Trans. Pattern Anal. Mach. Intell. 2020, 42, 318–327. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  8. Kumar, A.; Zhang, Z.J.; Lyu, H. Object Detection in Real Time Based on Improved Single Shot Multi-Box Detector Algorithm. EURASIP J. Wirel. Commun. Netw. 2020, 2020, 204. [Google Scholar] [CrossRef] [Scilit]
  9. Luo, Q. NumLin-Mamba-YOLO: A YOLO Object Detection Algorithm Based on Mamba Architecture and Multi-Scale Feature Optimization. Alex. Eng. J. 2026, 134, 417–432. [Google Scholar] [CrossRef] [Scilit]
  10. Ren, S.; He, K.; Girshick, R.; Sun, J. Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks. IEEE Trans. Pattern Anal. Mach. Intell. 2017, 39, 1137–1149. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  11. Patel, M.K.; Bull, G.; Egan, L.M.; Swain, N.; Rolland, V.; Stiller, W.N.; Conaty, W.C. High-Throughput Verticillium Wilt Detection in Cotton: A Comparative Study of Faster R-CNN and YOLOv11. Biosyst. Eng. 2026, 263, 104379. [Google Scholar] [CrossRef] [Scilit]
  12. Yuan, X.; Chakravarty, A.; Lichtenberg, E.M.; Gu, L.; Wei, Z.; Chen, T. An Empirical Analysis of Deep Learning Methods for Small Object Detection from Satellite Imagery. Expert Syst. Appl. 2026, 307, 131061. [Google Scholar] [CrossRef] [Scilit]
  13. Sapkota, R.; Flores-Calero, M.; Qureshi, R.; Badgujar, C.; Nepal, U.; Poulose, A.; Zeno, P.; Vaddevolu, U.B.P.; Khan, S.; Shoman, M.; et al. YOLO Advances to Its Genesis: A Decadal and Comprehensive Review of the You Only Look Once (YOLO) Series. Artif. Intell. Rev. 2025, 58, 274. [Google Scholar] [CrossRef] [Scilit]
  14. Hou, T.; Leng, C.; Wang, J.; Pei, Z.; Peng, J.; Cheng, I.; Basu, A. MFEL-YOLO for Small Object Detection in UAV Aerial Images. Expert Syst. Appl. 2025, 291, 128459. [Google Scholar] [CrossRef] [Scilit]
  15. Zhang, J.; Yang, J.; Niu, X.; Song, E.; Cao, H.; Wang, Y.; Gao, F. Automatic Detection of Multiple Defects in Deteriorated Concrete Sewer Pipelines: A Method Based on StyleGAN and MCFN-YOLO. J. Water Process Eng. 2026, 82, 109476. [Google Scholar] [CrossRef] [Scilit]
  16. Zheng, Y.; Jing, Y.; Zhao, J.; Cui, G. LAM-YOLO: Drones-Based Small Object Detection on Lighting-Occlusion Attention Mechanism YOLO. Comput. Vis. Image Underst. 2025, 261, 104489. [Google Scholar] [CrossRef] [Scilit]
  17. Duan, C.; Guo, Y.; Duan, X.; Li, G.; Sheng, B. DD-YOLO: A Dual-Channel Dual-Path YOLO Network for Target Detection of Blurred Vehicles. Digit. Signal Process. 2026, 168, 105565. [Google Scholar] [CrossRef] [Scilit]
  18. He, L.; Zhou, Y.; Liu, L.; Cao, W.; Ma, J. Research on Object Detection and Recognition in Remote Sensing Images Based on YOLOv11. Sci. Rep. 2025, 15, 14032. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  19. Tong, K.; Wu, Y. Small Object Detection Using Deep Feature Learning and Feature Fusion Network. Eng. Appl. Artif. Intell. 2024, 132, 107931. [Google Scholar] [CrossRef] [Scilit]
  20. Xue, C.; Xia, Y.; Wu, M.; Chen, Z.; Cheng, F.; Yun, L. EL-YOLO: An Efficient and Lightweight Low-Altitude Aerial Objects Detector for Onboard Applications. Expert Syst. Appl. 2024, 256, 124848. [Google Scholar] [CrossRef] [Scilit]
  21. He, J.; Wang, W. NST—YOLO: Improved YOLOv10 Model for Small Target UAV Detection. Ain Shams Eng. J. 2025, 16, 103787. [Google Scholar] [CrossRef] [Scilit]
  22. Qu, S.; Dang, C.; Chen, W.; Liu, Y. SMA-YOLO: An Improved YOLOv8 Algorithm Based on Parameter-Free Attention Mechanism and Multi-Scale Feature Fusion for Small Object Detection in UAV Images. Remote Sens. 2025, 17, 2421. [Google Scholar] [CrossRef] [Scilit]
  23. Wang, A.; Chen, H.; Liu, L.; Chen, K.; Lin, Z.; Han, J.; Ding, G. YOLOv10: Real-Time End-to-End Object Detection. arXiv 2024, arXiv:2405.14458. [Google Scholar]
  24. Redmon, J.; Farhadi, A. YOLOv3: An Incremental Improvement. arXiv 2018, arXiv:1804.02767. [Google Scholar]
  25. Hinton, G.; Vinyals, O.; Dean, J. Distilling the Knowledge in a Neural Network. arXiv 2015, arXiv:1503.02531. [Google Scholar]
  26. Howard, A.G.; Zhu, M.; Chen, B.; Kalenichenko, D.; Wang, W.; Weyand, T.; Andreetto, M.; Adam, H. MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applications. arXiv 2017, arXiv:1704.04861. [Google Scholar]
  27. Zhang, X.; Zhou, X.; Lin, M.; Sun, J. ShuffleNet: An Extremely Efficient Convolutional Neural Network for Mobile Devices. In 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA; IEEE: Piscataway, NJ, USA, 2018; pp. 6848–6856. [Google Scholar]
  28. Han, K.; Wang, Y.; Tian, Q.; Guo, J.; Xu, C.; Xu, C. GhostNet: More Features From Cheap Operations. In 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA; IEEE: Piscataway, NJ, USA, 2020; pp. 1577–1586. [Google Scholar]
  29. Chen, J.; Kao, S.; He, H.; Zhuo, W.; Wen, S.; Lee, C.-H. Run, Don’t Walk: Chasing Higher FLOPS for Faster Neural Networks. arXiv 2023, arXiv:2303.03667. [Google Scholar]
  30. Dong, G.; Schultz, L.; Hassanpour, N.; Gao, C. RePack then Refine: Efficient Diffusion Transformer with Vision Founda-tion Model. arXiv 2025, arXiv:2512.12083. [Google Scholar]
  31. Woo, S.; Park, J.; Lee, J.-Y.; Kweon, I.S. CBAM: Convolutional Block Attention Module. In Proceedings of the European Conference on Computer Vision (ECCV), Munich, Germany; Springer: Cham, Switzerland, 2018; pp. 3–19. [Google Scholar]
  32. Li, G.; Gan, Y.; Zhang, W.; Che, H. GS-YOLO: A Lightweight and High-Performance Method for PCB Surface Defect Detection. Expert Syst. Appl. 2026, 303, 130583. [Google Scholar] [CrossRef] [Scilit]
  33. Agarap, A.F. Deep Learning Using Rectified Linear Units (ReLU). arXiv 2018, arXiv:1803.08375. [Google Scholar]
  34. Elfwing, S.; Uchibe, E.; Doya, K. Sigmoid-Weighted Linear Units for Neural Network Function Approximation in Reinforcement Learning. Neural Netw. 2018, 107, 3–11. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  35. Dubey, S.R.; Singh, S.K.; Chaudhuri, B.B. Activation Functions in Deep Learning: A Comprehensive Survey and Benchmark. Neurocomputing 2022, 503, 92–108. [Google Scholar] [CrossRef] [Scilit]
  36. He, J.; Zhang, S.; Yang, C.; Wang, H.; Gao, J.; Huang, W.; Wang, Q.; Wang, X.; Yuan, W.; Wu, Y.; et al. Pest Recognition in Microstates State: An Improvement of YOLOv7 Based on Spatial and Channel Reconstruction Convolution for Feature Redundancy and Vision Transformer with Bi-Level Routing Attention. Front. Plant Sci. 2024, 15, 1327237. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  37. Maas, A.L.; Hannun, A.Y.; Ng, A.Y. Rectifier Nonlinearities Improve Neural Network Acoustic Models. In Proceedings of the 30th International Conference on Machine Learning, Atlanta, GA, USA, 16–19 June 2013. [Google Scholar]
  38. Sandler, M.; Howard, A.; Zhu, M.; Zhmoginov, A.; Chen, L.-C. MobileNetV2: Inverted Residuals and Linear Bottlenecks. arXiv 2018, arXiv:1801.04381. [Google Scholar]
  39. Yuen, B.; Hoang, M.T.; Dong, X.; Lu, T. Universal Activation Function for Machine Learning. Sci. Rep. 2021, 11, 18757. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  40. Song, K.; Yan, Y. A Noise Robust Method Based on Completed Local Binary Patterns for Hot-Rolled Steel Strip Surface Defects. Appl. Surf. Sci. 2013, 285, 858–864. [Google Scholar] [CrossRef] [Scilit]
  41. Zhang, Y.; Zhang, H.; Huang, Q.; Han, Y.; Zhao, M. DsP-YOLO: An Anchor-Free Network with DsPAN for Small Object Detection of Multiscale Defects. Expert Syst. Appl. 2024, 241, 122669. [Google Scholar] [CrossRef] [Scilit]
  42. Zhao, C.; Shu, X.; Yan, X.; Zuo, X.; Zhu, F. RDD-YOLO: A Modified YOLO for Detection of Steel Surface Defects. Measurement 2023, 214, 112776. [Google Scholar] [CrossRef] [Scilit]
  43. Li, C.; Li, L.; Jiang, H.; Weng, K.; Geng, Y.; Li, L.; Ke, Z.; Li, Q.; Cheng, M.; Nie, W.; et al. YOLOv6: A Single-Stage Object Detection Framework for Industrial Applications. arXiv 2022, arXiv:2209.02976. [Google Scholar]
  44. Wang, C.; Bochkovskiy, A.; Liao, H.-Y.M. YOLOv7: Trainable Bag-of-Freebies Sets New State-of-the-Art for Real-Time Object Detectors. In 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Vancouver, BC, Canada; IEEE: Piscataway, NJ, USA, 2023; pp. 7464–7475. [Google Scholar]
  45. Wang, C.; Yeh, I.H.; Liao, H.Y. YOLOv9: Learning What You Want to Learn Using Programmable Gradient Information. arXiv 2024, arXiv:2402.13616. [Google Scholar]
  46. Khanam, R.; Hussain, M. YOLOV11: An Overview of the Key Architectural Enhancements. arXiv 2024, arXiv:2410.17725. [Google Scholar]
Figure 1. The network structure of the MLGA-CDRF-YOLO network.
Figure 1. The network structure of the MLGA-CDRF-YOLO network.
Sensors 26 05325 g001
Figure 2. The network architecture of LCA-Block.
Figure 2. The network architecture of LCA-Block.
Sensors 26 05325 g002
Figure 3. The network architecture of LCA-Bottleneck.
Figure 3. The network architecture of LCA-Bottleneck.
Sensors 26 05325 g003
Figure 4. The network architecture of C2f-CDRF.
Figure 4. The network architecture of C2f-CDRF.
Sensors 26 05325 g004
Figure 5. The network architecture of MSCB.
Figure 5. The network architecture of MSCB.
Sensors 26 05325 g005
Figure 6. The network architecture of MSCA.
Figure 6. The network architecture of MSCA.
Sensors 26 05325 g006
Figure 7. The network architecture of MLGA.
Figure 7. The network architecture of MLGA.
Sensors 26 05325 g007
Figure 8. The experimental setting.
Figure 8. The experimental setting.
Sensors 26 05325 g008
Figure 9. Encoded target dataset images.
Figure 9. Encoded target dataset images.
Sensors 26 05325 g009
Figure 10. Training loss convergence curves.
Figure 10. Training loss convergence curves.
Sensors 26 05325 g010
Figure 11. Validation loss convergence curves.
Figure 11. Validation loss convergence curves.
Sensors 26 05325 g011
Figure 12. The training curves of MLGA.
Figure 12. The training curves of MLGA.
Sensors 26 05325 g012
Figure 13. Local heatmap of the encoded target dataset.
Figure 13. Local heatmap of the encoded target dataset.
Sensors 26 05325 g013
Table 1. Experimental environment and training hyperparameters.
Table 1. Experimental environment and training hyperparameters.
HardwareCPUAMD Ryzen 9 8940HX
(AMD, Santa Clara, CA, USA)
GPUNVIDIA GeForce RTX 5070 Ti
(NVIDIA, Santa Clara, CA, USA)
SoftwareOSWindows 11
PyTorch2.7.0
CUDA12.8
Python3.10.19
Data AugmentationMosaic1.0
HSV_H (±)0.015
HSV_S (±)0.7
HSV_V (±)0.4
Horizontal Flip0.5
Translation0.1
Scale0.5
Training SetupInput Size640 × 640
Baseline Pretrained WeightYolov11s.pt
Early Stopping Patience50
EMAEnabled
SyncBNNo
LR Schedulecosine annealing
OptimizerAdam
Initial Learning Rate 0.0001
Final Learning Rate Ratio 0.01
Weight Decay0.0005
Momentum0.937
β20.999
Batch Size4
Epochs200
Warmup Epochs5.0
Table 2. Ablation experiments on α and n.
Table 2. Ablation experiments on α and n.
αnmAP@0.5mAP@0.5:0.95RecallParam (M)GFLOPsFPS
0.5180.739.771.03.3214.295.7
282.142.268.43.3514.494.2
382.239.573.03.3814.693.4
480.240.267.23.4114.893
1.0182.042.069.03.3214.295.6
281.841.169.43.3514.494.4
381.640.471.23.3814.693.7
481.239.870.13.4114.892.2
1.2192.863.884.63.3214.295.8
293.765.285.93.3514.494.3
394.666.787.03.3814.693.4
495.568.088.53.4114.893
1.4192.163.284.23.3214.295.4
293.264.884.93.3514.494.4
394.066.086.83.3814.693.5
495.167.588.03.4114.893.1
Table 3. Ablation experiments conducted on the encoded target dataset.
Table 3. Ablation experiments conducted on the encoded target dataset.
MethodmAP@0.5mAP@0.5:0.95PRParam (M)GFLOPsFPS
Baseline93.254.394.4839.4121.366.67
Baseline + C2f-CDRF94.164.394.186.72.7314.394.5
Baseline + MLGA92.958.386.987.23.3414.893.6
Our95.56895.888.53.4114.893
Table 4. Comparison with Other Methods on the Encoded Target Dataset.
Table 4. Comparison with Other Methods on the Encoded Target Dataset.
MethodmAP@0.5mAP@0.5:0.95RecallParam (M)GFLOPsFPS
RT-DETR94.956.190.719.85742.7
GS_YOLO93.4757.6391.35.1610.767.43
YOLOv5s84.7351.2569.77.0215.882.3
YOLOv6s87.652.371.418.545.360.5
YOLOv7s65.3330.0264.337.22105.378.3
YOLOv8s8750.979.211.1228.841
YOLOv9s65.52965.87.1626.764
YOLOv10s83.551.673.98.0324.565.34
YOLOv11s93.254.3839.4121.366.67
Our95.56888.53.4114.893
Table 5. Generalization Comparison on the NEU-DET Dataset.
Table 5. Generalization Comparison on the NEU-DET Dataset.
MethodmAP@0.5mAP@0.5:0.95RecallParam (M)GFLOPsFPS
RT-DETR65.235.961.319.857125.4
GS_YOLO [32]7440.171.15.1610.781.96
YOLOv5s [32]58.337.449.47.0215.8125
YOLOv6s [43]73.641.368.718.545.350.14
YOLOv7s [44]72.239.5469.237.22105.366.43
YOLOv8s [32]7439.774.611.1228.877.51
YOLOv9s [45]77.541.868.17.1626.734.6
YOLOv10s [23]71.938.9668.0324.556.49
YOLOv11s [46]75.74069.89.4121.363.29
Our77.342.173.63.4114.897.8
Table 6. Experiments Repeated on the Encoded Target Dataset (mean ± std of 5 runs).
Table 6. Experiments Repeated on the Encoded Target Dataset (mean ± std of 5 runs).
SeedmAP@0.5mAP@0.5:0.95PrecisionRecallFPS
095.568.095.888.593
195.267.695.488.193.5
295.768.496.088.992.1
395.367.895.688.391.7
495.668.295.988.792.0
mean ± std95.46 ± 0.2168.00 ± 0.3295.74 ± 0.2488.50 ± 0.3292.46 ± 0.76
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.

Share and Cite

MDPI and ACS Style

Zhai, X.; Xin, H.; Wang, X.; Men, L. MLGA-CDRF-YOLO: A Lightweight Target Detection Method of Multi-Scale Group Attention and Channel Dynamic Residual Fusion for Multipole Magnet Collimation. Sensors 2026, 26, 5325. https://doi.org/10.3390/s26175325

AMA Style

Zhai X, Xin H, Wang X, Men L. MLGA-CDRF-YOLO: A Lightweight Target Detection Method of Multi-Scale Group Attention and Channel Dynamic Residual Fusion for Multipole Magnet Collimation. Sensors. 2026; 26(17):5325. https://doi.org/10.3390/s26175325

Chicago/Turabian Style

Zhai, Xiaohui, Hongbing Xin, Xiaolong Wang, and Lingling Men. 2026. "MLGA-CDRF-YOLO: A Lightweight Target Detection Method of Multi-Scale Group Attention and Channel Dynamic Residual Fusion for Multipole Magnet Collimation" Sensors 26, no. 17: 5325. https://doi.org/10.3390/s26175325

APA Style

Zhai, X., Xin, H., Wang, X., & Men, L. (2026). MLGA-CDRF-YOLO: A Lightweight Target Detection Method of Multi-Scale Group Attention and Channel Dynamic Residual Fusion for Multipole Magnet Collimation. Sensors, 26(17), 5325. https://doi.org/10.3390/s26175325

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop