In modern industrial production, safety is the cornerstone of ensuring production efficiency and personnel well-being. The production line environment typically involves high-speed mechanical equipment, complex technological processes, and collaborative operations that involve multiple tasks. Any small potential safety hazard can lead to serious production accidents, resulting in significant economic losses and even fatalities. Therefore, it is crucial to establish an efficient, intelligent, and real-time safety monitoring system to enhance safety in industrial production1,2.
Traditional safety monitoring methods mainly rely on manual video surveillance and various sensors (such as infrared, smoke, and vibration sensors)3. Manual monitoring is not only inefficient but also prone to missed detections due to monitoring personnel fatigue, and it cannot provide continuous and comprehensive coverage. Although sensors can provide a certain early warning function, their detection range is limited, and they are sensitive to environmental interference, resulting in prominent problems of false alarms4. Intelligent monitoring systems have become a growing focus of research. Real-time analysis of a video stream using a deep learning algorithm can automatically identify abnormal events, unsafe behaviors, and potential hazards, thereby greatly improving the monitoring system's intelligence4,5.
Object detection is a core technology in intelligent monitoring. As representatives of single-stage object detectors, the You Only Look Once (YOLO) series algorithms demonstrate significant advantages. From YOLOv1 to YOLOv8, this collection of algorithms has undergone ongoing development, with enhancements to the network architecture, loss function, and training methodology, among other aspects6,7. YOLOv11, in particular, has achieved higher detection accuracy while preserving a high frame rate, particularly when confronted with complex backgrounds and densely packed targets8.
However, despite its excellent performance on general object detection tasks, YOLOv11 still faces challenges in specific production-line safety-monitoring scenarios9. For example, YOLOv11 detection accuracy may decrease when workers are partially obscured by equipment or when safety signs are small and closely resemble the background color. This requires the model to have stronger feature extraction and semantic understanding capabilities10.
Convolutional neural networks (CNNs) have powerful capabilities in image feature extraction11. By designing deeper and more complex network architectures, CNNs can learn richer, more abstract image features. Combining a CNN with YOLOv11 leverages YOLOv11's fast detection capabilities and the CNN's deep feature extraction, thereby building a more robust and intelligent safety monitoring system.
Based on this, this paper proposes a production-line safety monitoring system using YOLOv11 and a CNN. The innovative aspects of this study include: (1) proposing a deep fusion architecture of YOLOv11 and an improved CNN; (2) introducing multi-scale feature fusion and a composite attention mechanism to enhance the recognition of key safety features; and (3) verifying the performance advantages of the model on a self-built complex scene dataset.
Development of YOLO series algorithms
Since its initial introduction by Redmon et al. in 201512, the You Only Look Once (YOLO) algorithm has garnered considerable interest. Unlike two-stage detectors that rely on region proposals, YOLO treats object detection as a regression task. By directly predicting the classes and positions of objects in an image, YOLO markedly boosts detection speed, making it suitable for real-time use13.
As the pioneering work in this series, YOLOv1 achieves end-to-end target detection for the first time14. YOLOv1 involves partitioning the input image into a grid structure, where each grid cell, typically arranged in an S × S format, is tasked with detecting objects that fall within its boundaries.
Specifically, YOLOv1's output is a tensor. Among the S × S × (B × 5 + C), the prediction of each bounding box contains 5 elements: center point coordinate (x,y), width w, height h, and confidence c. The calculation process is illustrated in Equation (1):
(1)
Among them, Pr(Object) represents the probability that there is a target in the grid, and IOU represents the ratio of the intersection over the union between the predicted bounding box and the ground-truth box. Each grid also predicts a set of class probabilities, Pr representing the probability that the target belongs to the i-th class in the presence of a target. The loss function of YOLOv1 is composed of three main components: the loss for coordinate prediction, the loss for confidence estimation, and the loss for category prediction15.
YOLOv2 introduces Batch Normalization, a high-resolution classifier, and a multi-scale training strategy, which improve stability and accuracy16. YOLOv3 uses Darknet-53 as its backbone network and draws inspiration from the Feature Pyramid Network (FPN) concept to enhance target detection17.
YOLOv4 has made numerous optimizations based on YOLOv3, introducing technologies such as Cross Stage Partial Network (CSPNet)18, Path Aggregation Network (PANet)19, and Mosaic data enhancement to further improve the model's performance. YOLOv5 has made significant contributions to engineering, offering an easier-to-use and more efficient implementation20.
In recent years, the YOLO series has continued to evolve, with versions such as YOLOv6, YOLOv7, and YOLOv8 being released one after another. By introducing the Extended Efficient Layer Aggregation Network (E-ELAN) structure and model re-parameterization techniques, YOLOv7 achieves new breakthroughs in both speed and accuracy. These enhancements not only improve the efficiency of feature learning but also optimize the network's inference performance, enabling YOLOv7 to surpass previous versions and many mainstream detectors across various real-time object detection tasks. YOLOv8 further optimizes the network structure, adopts an anchor-free design, simplifies the model, and improves its generalization ability21.
Building on the advantages of previous versions, YOLOv11, used in this study, has been optimized for complex industrial scenarios. Its core improvements include a feature-extraction network, a more efficient feature-fusion module, and a more robust loss-function design. These improvements enable YOLOv11 to perform better when handling occlusions, small targets, and complex backgrounds in production environments. YOLOv11 is a version of the YOLO series released by Ultralytics. Compared with YOLOv8, it improves the C3K2 module and the feature fusion path, and introduces an adaptive anchor box strategy, thereby providing stronger detection robustness in industrial scenarios.
Convolutional Neural Network (CNN) foundation and progress
The convolutional neural network (CNN) is a pivotal model that has profoundly influenced the success of deep learning within computer vision. It operates by extracting local image features via convolutional operations and subsequently reducing feature dimensionality via pooling operations, thereby achieving hierarchical image abstraction22.
A typical CNN is composed of multiple convolutional, pooling, and fully connected layers. The convolutional layer scans the input image with a convolution kernel, computes dot products over local regions, and produces a feature map. The calculation process is shown in Equation (2):
(2)
Where x is the input image, wk and bk are the weight and bias of the convolution kernel, respectively, and
are the values of the output feature map at the position (i,j). The pooling layer commonly uses Max Pooling or Average Pooling. The fully connected layer is responsible for extracting features and predicting classification probabilities.
Based on this, this paper designs a CNN feature enhancement module for YOLOv11, which consists of two parallel branches: a multi-scale convolution branch that uses 3 × 3 and 5 × 5 convolution kernels to extract multi-scale features; and an attention branch that sequentially connects the channel attention (Squeeze-and-Excitation) and spatial attention modules to enhance the discriminative features of key targets. The outputs of the two branches are fused by element-wise addition, and the corresponding feature enhancement loss function is shown in formula (3):
(3)
Lcoord is the bounding box coordinate regression loss; Lconf is the target confidence loss; Lcls is the category classification loss; Lfeat is the feature enhancement loss, used to constrain the discriminative features of small targets and occluded targets extracted by the CNN enhancement module; λcoord, λconf, λcls, λfeat are the weight coefficients of the corresponding loss terms. For this task, λfeat = 0.05 is set, and the remaining weights are balanced according to the detection task requirements.
Classical CNN structures, such as VGGNet23 and ResNet24, have achieved great success on image classification tasks. Among these architectures, ResNet effectively mitigates the vanishing gradient problem in deep network training, thereby facilitating the construction of deeper and more complex network structures.
In object detection tasks, CNN is usually used as a feature extractor (backbone). For example, Darknet, cross-stage partial Darknet (CSPDarknet), etc., in the YOLO series of algorithms are all built upon CNN25. To enhance feature extraction capabilities, researchers have proposed numerous improved CNN structures. For example, the Inception module extracts features in parallel through multi-scale convolution kernels. DenseNet enhances feature reuse with dense connections. The Squeeze-and-Excitation Network adaptively adjusts the importance of feature channels through attention mechanisms26.
In this study, we designed an improved CNN module to enhance the feature extraction capabilities of YOLOv11. This module combines multi-scale feature fusion with an attention mechanism to more effectively capture key safety information in production line scenarios.
Application status of deep learning in industrial safety monitoring
Deep learning has gained significant traction in industrial safety monitoring. CNN-based algorithms are employed to determine whether workers are properly wearing safety helmets, detect unauthorized intrusions into hazardous zones, and monitor the condition of malfunctioning equipment27.
In terms of behavior recognition, 3D CNNs and recurrent neural networks are used to analyze workers' operational behavior and identify potentially unsafe actions. For example, by analyzing workers' posture sequences, it can be determined whether they are violating safety operating procedures28.
YOLO and Faster R-CNN are widely used for personnel and equipment detection in real-time surveillance videos. For example, a real-time helmet detection system based on YOLOv5 has been proposed in the literature, effectively enhancing the intelligence of construction-site safety management29.
Although some progress has been made in existing research, several challenges remain. First, industrial scenes typically feature complex illumination, occlusion, and background interference, which impose stringent requirements on the algorithm's robustness. Second, real-time performance is a key requirement, and the algorithm must achieve high-speed inference while maintaining accuracy. Finally, existing research primarily focuses on single-task detection and lacks exploration of multi-source information fusion and comprehensive analysis30.
In this study, the proposed YOLOv11 and CNN fusion model aims to address the challenges above and achieve comprehensive, real-time monitoring of production line safety risks by enhancing feature extraction and fusion capabilities.