Violation detection in power operation sites based on multi-scale detection and few-shot learning.
Analyze & explore related research in Conceptio
Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.
Violation detection in power operation sites based on multi-scale detection and few-shot learning - PMC Skip to main content An official website of the United States government Here's how you know Here's how you know Search Log in Primary site navigation Search Log in Search PMC Full-Text Archive Search in PMC Journal List User Guide As a library, NLM provides access to scientific literature. Inclusion in an NLM database does not imply endorsement of, or agreement with, the contents by NLM or the National Institutes of Health. Learn more: PMC Disclaimer | PMC Copyright Notice Front Artif Intell . 2026 Jun 16;9:1833234. doi: 10.3389/frai.2026.1833234 Violation detection in power operation sites based on multi-scale detection and few-shot learning Yaokuan Wen 1 , Jun Wang 1 , Qiming Liu 1, * , Mo Zhou 1 , Minzhe Tian 1 Author information Article notes Copyright and License information 1 State Grid Henan Marketing Service Center, Zhengzhou, China * Correspondence: Qiming Liu, qm_liu@yeah.net Roles Yaokuan Wen : Resources, Investigation, Writing – original draft, Funding acquisition, Formal analysis, Conceptualization Jun Wang : Writing – review & editing, Conceptualization, Formal analysis, Methodology Qiming Liu : Project administration, Validation, Supervision, Writing – original draft, Funding acquisition, Software Mo Zhou : Methodology, Investigation, Writing – review & editing, Formal analysis, Resources Minzhe Tian : Data curation, Validation, Methodology, Writing – review & editing, Investigation, Visualization Received 2026 Mar 25; Revised 2026 May 24; Accepted 2026 May 27; Collection date 2026. Copyright © 2026 Wen, Wang, Liu, Zhou and Tian. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY) . The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms. PMC Copyright notice PMCID: PMC13314855 PMID: 42382849 Abstract Introduction Safety supervision at power operation sites is critical for ensuring worker safety and maintaining a reliable electricity supply. However, existing safety violation detection methods are constrained by limited labeled data, poor performance on small-object detection tasks, and interference from complex backgrounds. Methods To overcome these challenges, this study proposes a framework that integrates multi-scale object detection with few-shot learning. A multi-scale feature extraction module is designed based on a feature pyramid network and channel attention mechanisms to enhance the perception of small objects. In addition, a few-shot learning framework incorporating a meta-learning strategy is introduced to address the scarcity of labeled safety violation samples and improve the model's adaptability to new tasks with limited training data. Results Experimental results demonstrate that the proposed method consistently outperforms existing approaches across multiple evaluation metrics. The framework achieves notable improvements in small-object detection accuracy and few-shot learning performance, resulting in enhanced detection accuracy, robustness, and generalization capability. Discussion The integration of multi-scale feature extraction and few-shot learning effectively addresses the challenges of safety violation detection in power operation environments. The proposed framework provides a practical and reliable solution for intelligent safety monitoring and has significant potential for real-world deployment in power operation sites. Keywords: few-shot learning, multi-scale detection, power operation, target detection, violation detection 1. Introduction With the continuous enhancement of safety management in the power industry, ensuring a safe working environment has become a top priority. Various potential hazards are typically present in such environments, particularly when workers fail to wear the required protective equipment (such as safety helmets, gloves, etc.). These safety hazards pose a serious threat to the lives of frontline personnel. Once an accident occurs, it usually leads to serious consequences. Therefore, how to promptly and accurately identify safety violations at operation sites and implement effective prevention measures has become an important direction for improving safety management in power operations ( Yan et al., 2022 ). Traditional approaches based on manual monitoring and safety inspections suffer from significant limitations, including low efficiency, limited coverage, and susceptibility to human subjectivity. Especially in large-scale power operation sites, it is difficult for manual inspection to achieve real-time and comprehensive safety supervision. Consequently, the use of computer vision techniques for automated detection of safety violations has become an important direction for enhancing safety management in power operations ( Wang et al., 2021 ; Zhang et al., 2024 ; Sanjeewani et al., 2024 ; Qian et al., 2025 ). In this paper, power operation sites refer to working environments involved in the construction, maintenance, inspection, and operation of electrical power systems. Workers are required to wear personal protective equipment (PPE), such as safety helmets and gloves, to ensure operational safety. Therefore, power operation safety violations in this study specifically refer to behaviors where required PPE is missing or improperly used during these activities. By analyzing on-site images, computer vision systems can detect in real time whether workers are wearing the required protective equipment, thereby issuing early warnings before accidents occur. However, safety violation detection at power operation sites faces multiple challenges. As illustrated in Figure 1 , violations are typically rare, and instances in which workers are not wearing safety helmets or gloves occur infrequently, resulting in extremely scarce positive samples. Second, objects in power operation sites (such as gloves) are usually small in size, and may be partially occluded or embedded in complex backgrounds, which makes small-object detection a difficult task ( Zhang et al., 2024 ). Conventional deep learning methods rely on large amounts of annotated data for training, but under few-shot conditions, they often fail to achieve satisfactory performance. In addition, the complex backgrounds in power operation images, along with variations in workers' poses and scene configurations, further increase the difficulty of detecting safety violations. Figure 1. Open in a new tab Motivation of this study. To tackle these problems, few-shot learning (FSL), a technique that enables models to learn from limited samples, has attracted considerable attention in recent years ( Chen et al., 2024a , b ; Gharoun et al., 2024 ). By learning how to rapidly adapt to new tasks with only a small amount of labeled data, few-shot learning can effectively alleviate the issue of data scarcity. In the context of power operation sites, violation samples are relatively rare, which makes few-shot learning an ideal solution. Moreover, to cope with the challenges arising from variations in object scale, multi-scale detection methods can extract features at different resolutions and enhance the detection capability for small objects ( Zhu et al., 2024 ; Jiao et al., 2024 ; Rasheed and Zarkoosh, 2025 ). Multi-scale detection ensures that the model can effectively recognize and localize target objects regardless of their sizes. In this paper, we propose a method that combines multi-scale object detection with few-shot learning for the automatic detection of safety violations at power operation sites. By extracting image features at multiple scales and integrating few-shot learning techniques, the model can accurately detect violations related to safety helmets, gloves, and other protective equipment, even with only a small amount of labeled data. Through the introduction of a multi-scale detection strategy, the proposed approach not only improves the detection accuracy of small objects, but also enhances robustness under complex backgrounds. The contributions of this work are as follows: (1) A unified multi-scale few-shot detection framework for power operation scenarios. Unlike existing methods that address multi-scale detection and few-shot learning separately, this work integrates both into a unified framework, enabling effective detection of small and rare violation targets under limited annotation conditions. (2) An attention-enhanced multi-scale feature extraction module. Built upon the Feature Pyramid Network (FPN), a channel attention mechanism is introduced to enhance target-relevant features. Compared with conventional multi-scale methods, this design improves robustness in complex backgrounds and significantly boosts small-object detection performance. (3) An improved few-shot learning strategy with enhanced generalization. Different from standard few-shot detection approaches, this work adopts episodic meta-training combined with prototype augmentation, allowing the model to better capture intra-class variations and achieve more stable adaptation to scarce and imbalanced violation samples in real-world power operation environments. The remainder of this paper is organized as follows. Section 2 reviews the literature related to this study. Section 3 presents the detailed design and implementation of the proposed method. Section 4 reports and analyzes the experimental results. Section 5 discusses the limitations of this work and outlines directions for future improvement. 2. Related work 2.1. Safety violation detection at power operation sites In recent years, computer-vision-based safety monitoring techniques for work sites have attracted extensive attention. Early studies mainly relied on handcrafted features (such as HOG and SIFT) and traditional classifiers (such as SVM and Random Forest) to recognize workers and their personal protective equipment (PPE) ( Huang et al., 2023 ; Zermane et al., 2023 ; Wang et al., 2018 ). However, due to their limited robustness in complex scenes, these methods struggle to adapt to the highly variable environments of power operation sites. With the development of deep learning, convolutional neural networks (CNNs) have demonstrated strong feature extraction capabilities in image detection tasks and have gradually been applied to detecting PPE such as safety helmets and gloves ( Lee et al., 2023 ; Han and Zeng, 2021 ). For example, models based on Faster R-CNN or the YOLO family have achieved high-precision safety helmet detection in construction and industrial scenarios ( Du et al., 2025 ; Vo et al., 2025 ; Yang et al., 2025 ). Nevertheless, such models generally rely on large amounts of annotated data for training and are not well-suited to class imbalance and few-shot scenarios. At power operation sites, violation samples are extremely scarce, and target objects often exhibit small size, which severely limit the effectiveness of existing methods in this domain. 2.2. Multi-scale object detection techniques Multi-scale detection is one of the core approaches to handling significant variations in object size ( Kim et al., 2019 ). Traditional single-scale detection methods often fail to balance the detection accuracy for both large and small objects when facing large scale differences. To address this issue, researchers have proposed multi-scale feature fusion architectures such as Feature Pyramid Networks (FPN), which integrate high-level semantic information with low-level detailed features through top-down feature propagation and lateral connections, thereby improving small-object detection performance ( Chen et al., 2025 ). Subsequent structures such as PANet and BiFPN further enhance feature flow and cross-layer information interaction, enabling multi-scale detection models to perform more stably in complex scenes ( Wu et al., 2023 ; Su et al., 2024 ). Multi-scale feature aggregation is used for UAV image object detection, which performs scale adaptation and information aggregation across multiple sets of feature maps, producing high-quality aggregated feature maps ( Zhang et al., 2024 , 2023 ). In safety monitoring scenarios, multi-scale detection can effectively improve the recognition of small-sized objects. However, when the amount of annotated data is limited, training multi-scale architectures may still be constrained by data scarcity, making it difficult for them to fully realize their potential. 2.3. Applications of few-shot learning in object detection Few-Shot Learning (FSL) aims to address the problem under scarce annotations, with the core idea of enabling models to rapidly learn new categories from only a few samples ( Song et al., 2023 ). Early work mainly focused on image classification tasks. Metric-learning-based methods such as Prototypical Networks and Relation Networks achieve few-shot classification by measuring the similarity between samples ( Snell et al., 2017 ; Hu et al., 2018 ). Subsequently, meta-learning approaches such as MAML and Reptile were introduced into object detection, giving rise to the research direction of Few-Shot Object Detection (FSOD) ( Xin et al., 2024 ; Yan et al., 2024 ; Du et al., 2025 ). These methods typically pretrain a detector on base categories and then fine-tune it with a small number of novel-category samples, thereby achieving rapid performance improvements under few-shot conditions. Existing studies have achieved remarkable progress on public datasets such as COCO and VOC. However, their application to real-world power operation sites remains challenging due to complex scenes, severe class imbalance, and a high proportion of small objects, which means that the generalization and adaptability of current models still need to be further improved. 2.4. Integrating multi-scale detection with few-shot learning In recent years, researchers have begun exploring the integration of multi-scale detection with few-shot learning to jointly enhance feature representation capability and few-shot adaptability ( Hussain et al., 2025 ). Some studies introduce meta-learning mechanisms into the detection head, enabling the model to learn class-agnostic discriminative features across multi-scale feature maps, thereby improving the detection performance for rare targets ( Ye et al., 2025 ). Meta R-CNN, for instance, achieves fast transfer under few-shot conditions while maintaining competitive detection accuracy ( Yan et al., 2019 ). In addition, other work incorporates attention mechanisms and feature enhancement modules to optimize feature selection and strengthen the model's perception of small objects ( Xiong et al., 2024 ). Although these methods have achieved notable advances in general object detection, their application to power operation sites is still limited. Images in this domain are characterized by a high proportion of small objects, complex backgrounds, and extremely scarce violation samples. This calls for an adaptive detection framework that combines multi-scale feature extraction with few-shot learning to achieve high-precision and reliable recognition of unsafe behaviors. In summary, existing research has made significant progress in object detection, few-shot learning, and multi-scale feature fusion. However, studies specifically targeting safety violation detection at power operation sites are still in their early stages. This paper proposes an integrated framework that combines multi-scale detection with few-shot learning, enabling high-accuracy and robust detection of small violation targets under limited annotation conditions, and providing a new solution for intelligent safety monitoring in power operation sites. 3. Methodology To address the dual challenges of sample scarcity and small-object detection in safety violation detection at power operation sites, this paper proposes a detection framework that integrates multi-scale detection with few-shot learning. The proposed method introduces a multi-scale feature extraction mechanism to enhance the model's ability to perceive targets of different sizes, while leveraging few-shot learning strategies to enable the model to rapidly adapt to new detection tasks under limited annotation conditions. The overall framework is built upon a deep convolutional network and achieves high-precision detection of safety violations such as missing safety helmets and gloves through the joint optimization of a feature pyramid structure and a metric-learning module. 3.1. Overall framework The overall framework proposed in this paper is shown in Figure 2 and consists of three core components: a multi-scale feature extraction module, a few-shot learning module, and the training and optimization strategy. The input image is first fed into the backbone network for feature extraction, producing feature maps at multiple scales. Subsequently, the multi-scale feature extraction module employs a Feature Pyramid Network (FPN) to fuse high-level semantic features with low-level spatial details, thereby generating feature representations enriched with multi-scale information. These fused features are then passed into the few-shot learning module, where a prototypical metric learning mechanism is introduced to compute similarities between samples and achieve category discrimination under few-sample conditions. Finally, the detection head outputs the target category and bounding box coordinates through classification and regression sub-networks. Figure 2. Open in a new tab Overall architecture of the proposed method. During the training process, the backbone and feature fusion modules are jointly optimized, and an episodic training mechanism is incorporated to simulate few-shot tasks. This allows the model to be continually exposed to few-shot scenarios during training, thus enhancing its generalization ability in new environments. The framework effectively addresses the detection challenges in power operation sites, where few-shot samples, complex backgrounds, and multi-scale targets coexist. 3.2. Multi-scale feature extraction module In power operation scenes, safety-related targets such as gloves and helmets often occupy only a small region of the image and are easily affected by occlusion, illumination changes, and background interference. Standard convolutional networks generate hierarchical feature maps, where shallow layers retain fine spatial details but contain weak semantic information, while deep layers contain stronger semantic features but lower spatial resolution. Therefore, directly using single-level features may lead to missed detection of small objects. To address this issue, we construct a multi-scale feature extraction module based on a Feature Pyramid Network (FPN) and a channel attention mechanism. In this work, ResNet-50 is selected as the backbone network because it provides a good balance between detection accuracy and computational efficiency. Compared with lightweight networks, it offers stronger feature extraction for small and occluded objects, while requiring less data and computational cost than transformer-based backbones. In addition, its widespread use in object detection ensures stable performance and fair comparison with existing methods. Given an input image X , the backbone network ResNet-50 extracts feature maps from different stages: C i = F i ( X ) , i ∈ { 2 , 3 , 4 , 5 } , where C i denotes the feature map generated by the i -th stage of the backbone. The FPN fuses features in a top-down manner with lateral connections: P i = C o n v 1 × 1 ( C i ) + U p ( P i + 1 ) , i = 2 , 3 , 4 , where Conv 1 × 1 (·) is used for channel alignment and Up (·) denotes upsampling. A 3 × 3 convolution is then applied to each fused feature map to reduce aliasing effects: P ^ i = C o n v 3 × 3 ( P i ) . Although FPN improves multi-scale representation, not all feature channels contribute equally to detecting safety violations. Some channels may respond strongly to background elements such as wires, tools, or equipment, while others are more relevant to helmets, gloves, and violation-related regions. Therefore, a channel attention mechanism is introduced to adaptively emphasize informative channels and suppress less useful ones. For each multi-scale feature map P ^ i ∈ ℝ C × H × W , global average pooling and global max pooling are first applied along the spatial dimensions: z a v g c = 1 H W ∑ h = 1 H ∑ w = 1 W P ^ i c ( h , w ) , z max c = max 1 ≤ h ≤ H , 1 ≤ w ≤ W P ^ i c ( h , w ) , where c denotes the channel index. Average pooling captures the global distribution of each channel, while max pooling highlights the most discriminative local response. The two descriptors are passed through a shared multilayer perceptron (MLP) to generate the channel attention weights: M c ( P ^ i ) = σ ( M L P ( z a v g ) + M L P ( z max ) ) , where σ(·) is the sigmoid activation function. The shared MLP consists of two fully connected layers: M L P ( z ) = W 1 δ ( W 0 z ) , where W 0 ∈ ℝ C r × C , W 1 ∈ ℝ C × C r , and δ(·) denotes the ReLU activation function. The reduction ratio reduces computational cost while preserving non-linear channel dependency modeling. The final attention-enhanced feature map is obtained by channel-wise multiplication: P ~ i = M c ( P ^ i ) ⊗ P ^ i , where ⊗ denotes element-wise multiplication with broadcasting along the spatial dimensions. This operation assigns larger weights to channels that are more relevant to target detection and smaller weights to channels dominated by background noise. The mathematical rationale of this mechanism is that global pooling transforms each feature map into compact channel descriptors, allowing the network to estimate the relative importance of different channels. The sigmoid function normalizes the attention weights into the range [0, 1], and the reweighting operation performs adaptive feature recalibration. As a result, the module enhances discriminative responses for small safety-related objects while suppressing irrelevant background features. The final multi-scale feature set is: P = { P ˜ 2 , P ˜ 3 , P ˜ 4 , P ˜ 5 } , which is used as the input to the subsequent few-shot learning module and detection head. 3.3. Few-shot learning module In real-world power operation data, violation samples such as “NO-Helmet” and “NO-Glove” are extremely scarce. Under such conditions, conventional detection models are prone to overfitting and often fail to generalize. To address this issue, we introduce a few-shot learning mechanism that employs metric learning to enable rapid recognition of new categories from only a few samples. During training, an episodic meta-learning strategy is adopted. In each episode, an N -way K -shot task is constructed, where N = 4 categories are sampled, each with K support samples ( K ∈{1, 5, 10}), along with Q = 10 query samples per category. All samples are processed through the shared backbone (ResNet-50) and the multi-scale feature extraction module to obtain embedding features. The embedding dimension is set to 256. After passing through the multi-scale feature extraction module, the feature representation of each sample is given by f i k = f f e a t u r e ( x i k ) , where x i k denotes the k -th sample of class i , and f feature denotes the multi-scale feature mapping function. For each category, the prototype is computed as the mean feature vector of its support samples: p i = 1 K ∑ k = 1 K f i k . Given a query sample, classification is performed based on the Euclidean distance between its embedding and each class prototype. The probability distribution over classes is obtained via a Softmax function over the negative distances. For any query sample with feature f q , we compute its Euclidean distance to each class prototype: d i ( f q ) = ∥ f q - p i ∥ 2 2 . Based on the distance distribution, the probability that the sample belongs to class i is modeled as P ( y = i ∣ f q ) = exp ( - d i ( f q ) ) ∑ j = 1 N exp ( - d j ( f q ) ) . To improve robustness under intra-class variation, a prototype augmentation strategy is applied during training by adding Gaussian noise with a standard deviation of 0.01 to the class prototypes. Through this metric-learning-based classification and prototype augmentation, the model can not only effectively recognize existing categories under few-sample conditions but also rapidly adapt to new types of violations in power operation sites, thereby improving detection flexibility and robustness. 3.4. Training and optimization strategy This paper adopts a joint training mechanism, in which object detection and few-shot metric learning are optimized within a unified end-to-end framework. The overall loss consists of a detection loss and a metric loss. 3.4.1. Detection loss The detection task simultaneously predicts the class distribution and the bounding-box location. Suppose a mini-batch contains M positive and negative samples, and the number of classes is C . The classification loss is defined as the multi-class cross-entropy: L c l s = - 1 M ∑ m = 1 M ∑ c = 1 C y m , c log ŷ m , c where y m, c is the one-hot label, and ŷ m, c is the predicted class probability. For bounding-box regression, we adopt the CIoU loss to enhance localization robustness: L b o x = 1 M + ∑ m ∈ P ( 1 - C I o U ( b m , b ^ m ) ) , where P denotes the set of positive samples, and M + = ∣ P ∣ . The overall detection loss is then given by L det = L c l s + λ 1 L b o x , where λ 1 is a weighting coefficient. 3.4.2. Few-shot metric loss (prototype loss) To encourage query samples to obtain high confidence for the correct class in the prototype-based metric space, we adopt the negative log-likelihood loss: L p r o t o = - ∑ q log P ( y q ∣ f q ) , where P ( y q ∣ f q )is given by the Softmax over negative distances as defined in the previous subsection. This loss shares the same underlying features with the detection head, ensuring consistency between the metric space and the detection feature space. 3.4.3. Total loss and training strategy The total loss function is defined as L t o t a l = L det + λ 2 L p r o t o , where λ 2 is a trade-off hyperparameter. Training is performed using episodic meta-training: in each iteration, an N -way K -shot support set and several query samples are sampled from the training classes, and are jointly optimized together with a standard detection mini-batch via backpropagation. Specifically, in our implementation, N = 4 is adopted to match the number of safety-related categories, while K ε{1,5,10} is varied to evaluate different few-shot conditions. The query set size is fixed to Q = 10 per class to ensure stable gradient estimation. During each episode, both support and query samples are passed through the shared backbone and multi-scale feature extraction module to obtain embedding representations. The AdamW optimizer is adopted, with an initial learning rate of 1 × 10 −4 and a weight decay of 1 × 10 −5 . The hyperparameters λ 1 and λ 2 are tuned on the validation set. This strategy ensures that the detection branch and the metric branch share a consistent set of discriminative features, and achieves stable performance gains under conditions where few-shot samples and small targets coexist. 4. Experiments and results 4.1. Experimental settings 4.1.1. Experimental platform and implementation environment All experiments are conducted on a high-performance GPU platform equipped with an NVIDIA RTX 4090 GPU. The software environment consists of Ubuntu 22.04 (Canonical Ltd., London, United Kingdom), Python 3.10 (Python Software Foundation Beaverton, Oregon, United States), PyTorch 2.2 (PyTorch Foundation, San Francisco, California, United States), and CUDA 12.1 (NVIDIA Corporation, Santa Clara, California, United States). The optimizer is AdamW, with an initial learning rate of 1 × 10 −4 , weight decay of 1 × 10 −5 , and momentum parameters β 1 = 0.9, β 2 = 0.999. Each experimental configuration is independently run three times, and the average performance is reported to reduce the impact of randomness. The hyperparameter settings are selected based on a combination of empirical experience and validation experiments. Specifically, the learning rate and weight decay follow commonly used configurations for AdamW to ensure stable convergence. Key parameters, including the loss weighting coefficients and few-shot settings (e.g., K -shot), are tuned on the validation set to achieve optimal performance. This strategy ensures a balance between training stability, generalization ability, and computational efficiency. 4.1.2. Dataset and annotation setup The experiments are conducted on a real-world image dataset collected from power operation sites, consisting of 5,000 high-resolution images covering diverse lighting, weather, and background conditions. All images are manually annotated by professional safety personnel, with labels stored in JSON format. The categories include “Helmet,” “NO-Helmet,” “Glove,” and “NO-Glove.” Among them, normal PPE-wearing samples account for approximately 90%, while violation samples (e.g., “NO-Helmet,” “NO-Glove”) account for only about 10%, reflecting the inherent rarity of unsafe behaviors in actual power operation scenarios. The dataset is split as follows: Training set: 3,200 images used for model training (including a small number of violation samples); Validation set: 800 images; Test set: 1,000 images covering diverse environments and lighting conditions. To evaluate the adaptability of the few-shot learning module, only about 20% of the violation-class samples in the training set are retained for constructing few-shot tasks. 4.1.3. Baselines To validate the effectiveness of the proposed method, several representative detection models are selected as baselines for comparison on the power operation violation detection task. It should be noted that YOLOv5 is selected as the representative one-stage detector baseline, despite the availability of newer versions. This choice is motivated by the following considerations. First, YOLOv5 is a widely adopted and well-established benchmark in object detection research, with stable performance and extensive validation across various tasks, making it suitable for fair comparison. Second, many few-shot object detection frameworks and prior studies still use YOLOv5 or comparable architectures as baselines, ensuring consistency with existing literature. Faster R-CNN: A classical two-stage object detection baseline. YOLOv5: A one-stage multi-scale detection model. RetinaNet: A detector that incorporates a feature pyramid structure and Focal Loss. FSOD-TFA: A typical few-shot object detection model with strong rapid adaptation capability. Meta R-CNN: A few-shot detection framework that integrates meta-learning strategies. 4.1.4. Evaluation metrics To comprehensively assess model performance, the following quantitative metrics are adopted: Mean Average Precision (mAP@0.5): Average detection precision at an IoU threshold of 0.5. For each category, Average Precision (AP) is computed as the area under the Precision–Recall curve: A P = ∫ 0 1 P ( R ) d R , where P ( R )denotes Precision as a function of Recall. The mean Average Precision (mAP) is obtained by averaging AP over all categories: m A P = 1 C ∑ c = 1 C A P c . Small-object mAP (mAPs): Average precision computed for targets with an area smaller than 32 2 pixels, used to evaluate small-object detection capability. Precision and Recall: Measuring detection accuracy and completeness, respectively. Precision and Recall are defined as: 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 , where TP , FP , and FN denote the number of true positives, false positives, and false negatives, respectively. F1-score: A holistic performance indicator that reflects the balance between Precision and Recall. F 1 = 2 · P r e c i s i o n · R e c a l l r e c i s i o n + R e c a l l . 4.1.5. Training details During training, the batch size is set to 8, and the total number of epochs is 50. In each training episode, categories and samples are randomly sampled to ensure sufficient coverage of different classes and scenes. After training, the model parameters corresponding to the best performance on the validation set are selected for final testing. For optimization, the AdamW optimizer is adopted with an initial learning rate of 1 × 10 −4 and a weight decay of 1 × 10 −4 . The learning rate is gradually decreased using a cosine annealing schedule. In the few-shot learning module, episodic training is performed using an N -way K -shot setting, where N = 4, K ∈{1, 5, 10}, and the number of query samples per class is set to 10. To stabilize training and prevent overfitting under limited samples, DropBlock regularization is applied to the multi-scale feature layers with a drop probability of 0.1. Gradient clipping with a maximum norm of 5 is used to avoid gradient explosion. Early stopping is employed based on validation mAP, with a patience of 5 epochs. 4.2. Experimental results and analysis Experiments on the power operation site image dataset are conducted to systematically validate the proposed multi-scale few-shot detection framework. The experiments include overall performance comparison, analysis of small-object detection capability, evaluation of few-shot learning performance, and ablation studies. 4.2.1. Overall detection performance comparison Table 1 presents the performance comparison between the proposed method and several mainstream detection models on the test set. It can be observed that the proposed approach achieves higher overall accuracy than traditional detection networks, while maintaining stable performance under few-shot conditions. Table 1. Detection performance comparison of different methods on the test set. Methods mAP@0.5 (%) mAPs (%) Precision (%) Recall (%) F1-score (%) Faster R-CNN 81.2 64.8 84.5 78.3 81.3 YOLOv5 83.7 66.1 86.9 79.4 83.0 RetinaNet 84.5 67.8 87.2 80.5 83.7 Meta R-CNN 85.2 69.3 88.0 81.2 84.5 FSOD-TFA 86.0 70.8 89.3 82.0 85.5 Proposed 87.8 74.2 90.4 83.5 86.8 Open in a new tab The bold values highlight the performance of the proposed method. From Table 1 , it can be observed that the proposed method achieves the best performance across evaluation metrics. This improvement can be attributed to the joint optimization of multi-scale feature extraction and few-shot learning. Compared with traditional detectors such as Faster R-CNN and RetinaNet, the proposed method demonstrates superior accuracy, particularly in mAPs, indicating its enhanced capability in detecting small objects. This is mainly due to the multi-scale feature extraction module, which effectively fuses semantic and spatial information across different resolutions and highlights target-relevant features through the channel attention mechanism. Compared with few-shot detection methods such as Meta R-CNN and FSOD-TFA, the proposed method achieves further performance gains. This is because the introduced episodic meta-training and prototype augmentation enable the model to better capture intra-class variations and improve generalization under limited violation samples. In contrast, existing few-shot methods often rely on standard feature representations and lack specialized mechanisms for handling small objects in complex scenes. In addition, the proposed method achieves a better balance between precision and recall, as reflected by the highest F1-score. This indicates that the model not only improves detection accuracy but also reduces missed detections, which is critical for safety monitoring in power operation sites. Overall, the results validate the effectiveness of integrating multi-scale detection and few-shot learning for handling small, sparse, and complex targets in real-world scenarios. 4.2.2. Efficiency comparison We evaluate the computational efficiency and model complexity of different methods. Specifically, inference speed is measured in frames per second (FPS) on an NVIDIA RTX 4090 GPU under a unified input resolution, and the number of model parameters (Params) is used to reflect model complexity. The comparison results are summarized in Table 2 . Table 2. Computational efficiency and model complexity of different methods. Methods FPS Params (M) Faster R-CNN 38.6 41.3 YOLOv5 112.4 7.2 RetinaNet 52.8 36.5 Meta R-CNN 31.7 45.8 FSOD-TFA 34.2 43.6 Proposed 46.5 39.8 Open in a new tab The bold values highlight the performance of the proposed method. Table 2 compares the inference speed and parameter complexity of different methods. YOLOv5 achieves the highest FPS due to its lightweight one-stage detection structure, while two-stage few-shot methods such as Meta R-CNN and FSOD-TFA show lower inference speed because of their additional meta-learning branches. The proposed method reaches 46.5 FPS with 39.8M parameters, indicating that the introduced multi-scale feature extraction and few-shot learning modules improve detection accuracy while maintaining acceptable computational efficiency for practical deployment. 4.2.3. Analysis of small-object detection capability To evaluate the impact of the multi-scale feature extraction module on small-object detection, we separately compute the detection results for targets of different scales. In this study, object scales are defined based on the pixel area of the ground-truth bounding boxes. Specifically, following common practice in object detection, objects are categorized as small, medium, and large according to their bounding-box area: small objects correspond to targets with an area smaller than 32 2 pixels, medium objects fall within the range of 32 2 to 96 2 pixels, and large objects exceed 96 2 pixels. In the context of power operation scenes, gloves and partially visible helmets are predominantly categorized as small objects due to their limited spatial extent, while fully visible helmets and human upper-body regions typically fall into the medium-object category. Large objects mainly correspond to prominent human instances or close-range subjects occupying a substantial portion of the image. The corresponding results are summarized in Table 3 . Table 3. mAP comparison across different object sizes. Methods Small objects (mAPs) Medium objects (mAPm) Large objects (mAPl) YOLOv5 66.1 84.5 88.3 RetinaNet 67.8 85.1 89.0 Meta R-CNN 69.3 86.0 89.2 Proposed (ours) 74.2 86.8 89.4 Open in a new tab The bold values highlight the performance of the proposed method. The results show that the proposed method achieves significantly better performance than other approaches in small-object detection. In particular, for small targets, the combination of multi-scale feature extraction and the channel attention mechanism effectively enhances the model's ability to recognize small objects. The underlying mechanism is that channel attention adaptively reweights feature channels based on global contextual information, thereby emphasizing channels that are more relevant to small targets while reducing the influence of background-dominated channels. Multi-scale feature extraction enables the network to capture key information about targets at different resolutions, thereby improving its perception of small objects, while the channel attention mechanism further strengthens the selective focus on target-related features, reducing the impact of background noise on small-object detection. It is worth noting that the proposed method performs on par with other approaches for medium and large objects, indicating that the multi-scale detection framework does not degrade the detection performance of larger targets. Instead, by improving the detection of small objects, it enhances the overall performance of the model across different scenarios. 4.2.4. Analysis of few-shot learning capability We further investigate the model's performance under different numbers of training samples. To this end, experiments are conducted under 1-shot, 5-shot, and 10-shot settings, and the results are summarized in Table 4 . Table 4. Detection performance under different numbers of samples. Number of samples (K-shot) mAP@0.5 (%) Precision (%) Recall (%) 1-shot 82.1 84.0 77.6 5-shot 86.2 88.5 82.1 10-shot 87.8 90.4 83.5 Open in a new tab The bold values highlight the performance of the proposed method. From Table 4 , it can be observed that the model performance improves progressively as the number of samples increases. Under the 1-shot setting, although the number of support samples is extremely limited, the model is still able to maintain reasonably good performance, indicating that the few-shot learning module can rapidly learn and perform effective classification from very scarce data. Under the 5-shot and 10-shot settings, the model performance is further enhanced. 4.2.5. Ablation study To verify the contribution of each module to the overall performance, we conduct an ablation study by comparing model variants with different components removed. The corresponding results are reported in Table 5 and illustrated in Figure 3 . Table 5. Ablation study results of different modules. Model architecture mAP@0.5 (%) mAPs (%) F1-score (%) Baseline (without multi-scale module, without FSL) 83.1 68.0 82.6 + Multi-scale feature extraction module 86.0 72.5 85.3 + Few-shot learning module (full model) 87.8 74.2 86.8 Open in a new tab The bold values highlight the performance of the proposed method. Figure 3. Open in a new tab Figure 3. Ablation study results: (a) mAP@0.5 (%), (b) mAPs (%), and (c) F1-score (%) for the Baseline, Multi-scale, and Full model configurations. From Table 5 , it can be seen that removing the multi-scale feature extraction module leads to a clear drop in small-object detection performance (mAPs), indicating that multi-scale feature extraction plays a crucial role in detecting small targets. After introducing the few-shot learning module, the overall performance is further improved, which confirms the effectiveness of the few-shot learning module under data-scarce conditions. These two modules complement each other and jointly enhance the detection accuracy and robustness of the model. 5. Discussion and limitations Although the proposed method achieves strong performance in safety violation detection at power operation sites, several limitations remain. First, the dataset size is relatively limited, especially for violation samples, which may affect the model's generalization ability in unseen scenarios. Second, the framework is mainly designed for power operation environments, and its performance in other industrial domains may require additional fine-tuning or domain adaptation. In addition, the current method relies on supervised annotations and may still experience performance degradation under severe occlusion or low-light conditions. Future work will focus on expanding the dataset scale, improving cross-domain adaptability, and exploring self-supervised and lightweight real-time detection methods to further enhance practical deployment performance. 6. Conclusion This paper proposes an innovative method that integrates multi-scale object detection with few-shot learning to address key challenges in safety violation detection at power operation sites. Specifically, a multi-scale feature extraction module is introduced to effectively enhance the detection capability for small objects, demonstrating clear advantages in complex backgrounds, partially occluded scenarios, and small-object detection tasks. At the same time, through a few-shot learning framework, the model maintains good generalization ability under scarce annotation conditions and can rapidly adapt to new classes of detection tasks. Experimental results show that the proposed framework outperforms existing baseline methods across multiple evaluation metrics. Despite its strong practicality and satisfactory performance in detecting safety violations at power operation sites, the proposed approach still leaves room for improvement. Future work may explore more efficient training strategies, such as self-supervised learning and transfer learning, to further reduce reliance on labeled data and to optimize real-time detection performance under extreme conditions. In addition, considering the highly dynamic and variable environments in power operation scenarios, further enhancing the model's robustness across different environmental conditions will be an important direction for future research. In summary, this work provides an efficient and reliable solution for intelligent safety monitoring in power operation sites and holds substantial practical application value. By appropriately combining multi-scale detection with few-shot learning, the proposed method offers an effective perspective for both industry and academia, and promotes the evolution of safety management in the power sector toward greater intelligence and automation. Funding Statement The author(s) declared that financial support was received for this work and/or its publication. This work was supported by the Science and Technology Project of State Grid Henan Electric Power Company (Grant No. 5217X0250001). Footnotes Edited by: Eva Tuba , Trinity University, United States Reviewed by: Gaoyong Han , Zhongyuan University of Technology, China Yunzuo Zhang , Shijiazhuang Tiedao University, China Data availability statement The raw data supporting the conclusions of this article will be made available by the authors, without undue reservation. Author contributions YW: Resources, Investigation, Writing – original draft, Funding acquisition, Formal analysis, Conceptualization. JW: Writing – review & editing, Conceptualization, Formal analysis, Methodology. QL: Project administration, Validation, Supervision, Writing – original draft, Funding acquisition, Software. MZ: Methodology, Investigation, Writing – review & editing, Formal analysis, Resources. MT: Data curation, Validation, Methodology, Writing – review & editing, Investigation, Visualization. Conflict of interest The author(s) declared that this work was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest. Generative AI statement The author(s) declared that generative AI was not used in the creation of this manuscript. Any alternative text (alt text) provided alongside figures in this article has been generated by Frontiers with the support of artificial intelligence and reasonable efforts have been made to ensure accuracy, including review by the authors wherever possible. If you identify any issues, please contact us. Publisher's note All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher. References Chen J., Mi R., Wang H., Wu H., Mo J., Guo J., et al. (2024a). A review of few-shot and zero-shot learning for node classification in social networks. IEEE Trans. Comput. Soc. Syst. 12, 1927–1941. doi: 10.1109/TCSS.2024.3452697 [ DOI ] [ Google Scholar ] Chen Y., Li X., Luan C., Li C., Ma C., Zhang J., et al. (2025). Cascaded embedded-FPN: a cross-modality multi-scale feature fusion network for varied-sized objects semantic segmentation. Neurocomputing 2025:131081. doi: 10.1016/j.neucom.2025.131081 [ DOI ] [ Google Scholar ] Chen Y., Long P., Liu B., Wang Y., Wang J., Ma T., et al. (2024b). Development and application of Few-shot learning methods in materials science under data scarcity. J. Mater. Chem. A 12, 30249–30268. doi: 10.1039/D4TA06452F [ DOI ] [ Google Scholar ] Du Q., Zhang S., Yang S. (2025). BLP-YOLOv10: efficient safety helmet detection for low-light mining. J. Real-Time Image Process. 22:10. doi: 10.1007/s11554-024-01587-6 [ DOI ] [ Google Scholar ] Du Y., Liu F., Jiao L., Li S., Hao Z., Li P., et al. (2025). Text generation and multi-modal knowledge transfer for few-shot object detection. Pattern Recognit. 161:111283. doi: 10.1016/j.patcog.2024.111283 [ DOI ] [ Google Scholar ] Gharoun H., Momenifar F., Chen F., Gandomi A. H. (2024). Meta-learning approaches for few-shot learning: a survey of recent advances. ACM Comput. Surv. 56, 1–41. doi: 10.1145/3659943 [ DOI ] [ Google Scholar ] Han K., Zeng X. (2021). Deep learning-based workers safety helmet wearing detection on construction sites using multi-scale features. IEEE Access 10, 718–729. doi: 10.1109/ACCESS.2021.3138407 [ DOI ] [ Google Scholar ] Hu H., Gu J., Zhang Z., Dai J., Wei Y. (2018). “Relation networks for object detection,” in Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (Piscataway, NJ: IEEE; ), 3588–3597. doi: 10.1109/CVPR.2018.00378 [ DOI ] [ Google Scholar ] Huang G., Chen J., Liu L. (2023). One-class SVM model-based tunnel personnel safety detection technology. Appl. Sci. 13:1734. doi: 10.3390/app13031734 [ DOI ] [ Google Scholar ] Hussain I., Tan S., Huang J. (2025). Few-shot based learning recaptured image detection with multi-scale feature fusion and attention. Pattern Recognit. 161:111248. doi: 10.1016/j.patcog.2024.111248 [ DOI ] [ Google Scholar ] Jiao L., Wang M., Liu X., Li L., Liu F., Feng Z., et al. (2024). Multiscale deep learning for detection and recognition: a comprehensive survey. IEEE Trans. Neural Netw. Learn. Syst. 36, 5900–5920. doi: 10.1109/TNNLS.2024.3389454 [ DOI ] [ PubMed ] [ Google Scholar ] Kim K-. J., Kim P-. K., Chung Y-. S., Choi D-. H. (2019). Multi-scale detector for accurate vehicle detection in traffic surveillance data. IEEE Access 7, 78311–78319. doi: 10.1109/ACCESS.2019.2922479 [ DOI ] [ Google Scholar ] Lee J. Y., Choi W. S., Choi S. H. (2023). Verification and performance comparison of CNN-based algorithms for two-step helmet-wearing detection. Expert Syst. Appl. 225:120096. doi: 10.1016/j.eswa.2023.120096 [ DOI ] [ Google Scholar ] Qian X., Luo L., Li Y., Zeng L., Chen Z., Wang W., et al. (2025). Real-time object detection model for electric power operation violation identification. Information 16:569. doi: 10.3390/info16070569 [ DOI ] [ Google Scholar ] Rasheed A. F., Zarkoosh M. (2025). Optimized YOLOv8 for multi-scale object detection. J. Real-Time Image Process. 22:6. doi: 10.1007/s11554-024-01582-x [ DOI ] [ Google Scholar ] Sanjeewani P., Neuber G., Fitzgerald J., Chandrasena H., Potums S., Alavi A., et al. (2024). Real-time personal protective equipment non-compliance recognition on AI edge cameras. Electronics 13:2990. doi: 10.3390/electronics13152990 [ DOI ] [ Google Scholar ] Snell J., Swersky K., Zemel R. (2017). Prototypical networks for few-shot learning. Adv. Neural Inf. Process. Syst. 30. [ Google Scholar ] Song Y., Wang T., Cai P., Mondal S. K., Sahoo J. P. (2023). A comprehensive survey of few-shot learning: evolution, applications, challenges, and opportunities. ACM Comput. Surv. 55, 1–40. doi: 10.1145/3582688 [ DOI ] [ Google Scholar ] Su J., Zhang H., Przystupa K., Kochan O. (2024). Efficient multi-scale object detection model with space-to-depth convolution and BiFPN combined with FasterNet: a high-performance model for precise steel surface defect detection. J. Electron. Imaging 33, 33019–33019. doi: 10.1117/1.JEI.33.3.033019 [ DOI ] [ Google Scholar ] Vo Q. B., Nguyen T. H. T., Hoang T. H. T., Tran D. T., Ly H. B. (2025). Enhancing construction safety management efficiency with AI-Powered real-time helmet detection. J. Sci. Transp. Technol. 77–91. doi: 10.58845/jstt.utt.2025.en.5.1.77-91 [ DOI ] [ Google Scholar ] Wang B., Ma F., Jia R., Luo P., Dong X. (2021). Skeleton-based violation action recognition method for safety supervision in operation field of distribution network based on graph convolutional network. CSEE J. Power Energy Syst. 9, 2179–2187. doi: 10.17775/CSEEJPES.2020.03000 [ DOI ] [ Google Scholar ] Wang R., Lee C. J., Hsu S. C., Lee C. Y. (2018). Corporate misconduct prediction with support vector machine in the construction industry. J. Manag. Eng. 34:04018021. doi: 10.1061/(ASCE)ME.1943-5479.0000630 [ DOI ] [ Google Scholar ] Wu Y., Yao Q., Fan X., Gong M., Ma W., Miao Q., et al. (2023). PANet: a point-attention based multi-scale feature fusion network for point cloud registration. IEEE Trans. Instrum. Meas. 72, 1–13. doi: 10.1109/TIM.2023.327175737323850 [ DOI ] [ Google Scholar ] Xin Z., Chen S., Wu T., Shao Y., Ding W., You X., et al. (2024). Few-shot object detection: research advances and challenges. Inform. Fus. 107;102307. doi: 10.1016/j.inffus.2024.102307 [ DOI ] [ Google Scholar ] Xiong X., He M., Li T., Zheng G., Xu W., Fan X., et al. (2024). Adaptive feature fusion and improved attention mechanism-based small object detection for UAV target tracking. IEEE Internet Things J. 11, 21239–21249. doi: 10.1109/JIOT.2024.3367415 [ DOI ] [ Google Scholar ] Yan B., Lang C., Cheng G., Han J. (2024). Understanding negative proposals in generic few-shot object detection. IEEE Trans. Circuits Syst. Video Technol. 34, 5818–5829. doi: 10.1109/TCSVT.2024.3367666 [ DOI ] [ Google Scholar ] Yan K., Li Q., Li H., Wang H., Fang Y., Xing L., et al. (2022). Deep learning-based substation remote construction management and AI automatic violation detection system. IET Gen. Transm. Distrib. 16, 1714–1726. doi: 10.1049/gtd2.12387 [ DOI ] [ Google Scholar ] Yan X., Chen Z., Xu A., Wang X., Liang X., Lin L., et al. (2019). “Meta r-cnn: towards general solver for instance-level low-shot learning,” in Proceedings of the IEEE/CVF International Conference on Computer Vision (Piscataway, NJ: IEEE; ), 9577–9586. doi: 10.1109/ICCV.2019.00967 [ DOI ] [ Google Scholar ] Yang X., Chen L., Wang Z., Lin S., Luo D., Cai Z., et al. (2025). Video stream safety helmet recognition method based on improved faster R-CNN. Int. J. Intell. Syst. Technol. Applic. 23, 202–216. doi: 10.1504/IJISTA.2025.145637 [ DOI ] [ Google Scholar ] Ye Y., Chen H., Cai Q., Su H. (2025). Multimodal meta-learning for early rumor detection based on few-shot learning. IEEE Trans. Comput. Soc. Syst. 13, 475–484. doi: 10.1109/TCSS.2025.3592660 [ DOI ] [ Google Scholar ] Zermane A., Tohir M. Z. M., Zermane H., Baharudin M. R., Yusoff H. M. (2023). Predicting fatal fall from heights accidents using random forest classification machine learning model. Saf. Sci. 159:106023. doi: 10.1016/j.ssci.2022.106023 [ DOI ] [ Google Scholar ] Zhang C., Zhang L., Chen X., Ou L., Xu Y. (2024). Octree based visual monitoring method for operation process of power construction site. Results Eng. 24:103138. doi: 10.1016/j.rineng.2024.103138 [ DOI ] [ Google Scholar ] Zhang M., Yang H., Guo J., Li Y., Gao X., Zhang J., et al. (2024). “IRPruneDet: efficient infrared small target detection via wavelet structure-regularized soft channel pruning,” in Proceedings of the AAAI Conference on Artificial Intelligence (Washington, DC: ), vol. 38 , 7224–7232. doi: 10.1609/aaai.v38i7.28551 [ DOI ] [ Google Scholar ] Zhang Y., Wu C., Zhang T., Liu Y., Zheng Y. (2023). Self-attention guidance and multiscale feature fusion-based UAV image object detection. IEEE Geosci. Remote Sens. Lett. 20, 1–5. doi: 10.1109/LGRS.2023.3265995 [ DOI ] [ Google Scholar ] Zhang Y., Wu C., Zhang T., Zheng Y. (2024). Full-scale feature aggregation and grouping feature reconstruction-based UAV image target detection. IEEE Trans. Geosci. Remote Sens. 62, 1–11. doi: 10.1109/TGRS.2024.3392794 [ DOI ] [ Google Scholar ] Zhu Y., Yang S., Tong J., Wang Z. (2024). Multi-scale detector optimized for small target. Optoelectr. Lett. 20, 243–248. doi: 10.1007/s11801-024-3126-1 [ DOI ] [ Google Scholar ] Associated Data This section collects any data citations, data availability statements, or supplementary materials included in this article. Data Availability Statement The raw data supporting the conclusions of this article will be made available by the authors, without undue reservation. Articles from Frontiers in Artificial Intelligence are provided here courtesy of Frontiers Media SA ACTIONS View on publisher site PDF (785.3 KB) Cite Collections Permalink RESOURCES Similar articles Cited by other articles Links to NCBI Databases Follow NCBI NCBI on X (formerly known as Twitter) NCBI on Facebook NCBI on LinkedIn NCBI on GitHub NCBI RSS feed Connect with NLM NLM on X (formerly known as Twitter) NLM on Facebook NLM on YouTube National Library of Medicine 8600 Rockville Pike Bethesda, MD 20894 Web Policies FOIA HHS Vulnerability Disclosure Help Accessibility Careers NLM NIH HHS USA.gov Back to Top
Related documents
- A NOVEL NON-INTRUSIVE LOAD MONITORING APPROACH FOR MACHINE LEARNING-BASED DETECTION OF FALSE DATA INJECTION ATTACKS USING INTEGRATED VIBRATION AND CURRENT ANALYSIS#809916
- EvEMTBench: An Open Benchmark for Machine Learning in Power System Protection#1064693
- Demystifying Machine Learning: Applications in African Environmental Science and Engineering#684900
- Learning Without Adversarial Training: A Physics-Informed Neural Network for Secure Power System State Estimation under False Data Injection Attacks#974394
- Real-time system for automatic detection and classification of single and multiple power quality disturbances#1017070
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive