Lightweight reduction furnace atomization detection method and device based on target detection technology, electronic equipment and storage medium
By improving the GS-C2F and CBAM modules of the YOLOv8 network, the problems of false alarms and missed detections in complex atomization images of polysilicon reduction furnace atomization detection models were solved, achieving efficient and real-time atomization detection, which is suitable for resource-constrained equipment.
Patent Information
- Application Number
- CN202411275139.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-12
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2044-09-12
AI Technical Summary
Existing polysilicon reduction furnace atomization detection models are prone to false alarms or missed detections when faced with complex atomization images, and their computational complexity and running speed are limited, making it difficult to meet the needs of real-time industrial detection.
A lightweight reduction furnace atomization detection method is adopted. By improving the YOLOv8 network, replacing the C2F module with the GS-C2F module, adding the CBAM module after the backbone layer, and replacing the loss function with the WIOU loss function, the method combines the ghost attention feature extraction network and the feature pyramid network to reduce the number of parameters and computational complexity, and enhance the feature fusion capability.
It improves the accuracy and speed of atomization detection, meets the real-time requirements of industrial detection, reduces the number of model parameters and complexity, and is suitable for resource-constrained embedded devices.
Smart Images

Figure CN119152189B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of polycrystalline silicon preparation technology, and is a lightweight reduction furnace atomization detection method, device, electronic equipment and storage medium based on target detection technology. Background Technology
[0002] With the continuous development of my country's photovoltaic industry, the polysilicon industry in my country is showing a rapid development trend, with output continuously increasing. Polysilicon reduction furnaces are crucial equipment for manufacturing polysilicon ingots. During the polysilicon reduction furnace production process, changes in the atomization state within the furnace have a significant impact on product quality and production efficiency. Detecting the atomization state within the furnace is of great importance for optimizing the production process and improving product quality and production efficiency. Currently, companies mainly rely on manual inspections at various reduction sites, but these sites are characterized by high noise levels, significant pollution, and certain hazards. Furthermore, traditional target detection methods often rely on manual visual inspection or rule-based traditional machine learning algorithms, which have limitations when handling large-scale data and complex atomization conditions.
[0003] In recent years, fog detection models based on deep learning technology have made significant progress; however, their computational complexity and running speed are still limited.
[0004] The introduction of lightweight neural network technology provides a new solution for atomization detection in reduction furnaces. Its simple structure, fewer parameters, and fast operation make it well-suited for embedded devices with limited computing resources, enabling edge computing and real-time detection. However, despite its advantages on resource-constrained embedded devices, existing models often perform poorly when faced with complex atomized images, prone to false alarms or missed detections. Summary of the Invention
[0005] This invention provides a lightweight reduction furnace atomization detection method, device, electronic device and storage medium based on target detection technology, which overcomes the shortcomings of the prior art. It can effectively solve the problem that existing models often perform poorly when faced with complex atomization images, and are prone to false alarms or missed detections.
[0006] One of the technical solutions of this invention is achieved through the following measures: a lightweight reduction furnace atomization detection method based on target detection technology, comprising the following steps:
[0007] Acquire images of the inside of the reduction furnace, and preprocess these images to obtain preprocessed images of the inside of the reduction furnace.
[0008] A reduction furnace atomization detection model was constructed and trained to obtain a trained reduction furnace atomization detection model.
[0009] The preprocessed images of the reduction furnace in operation are input into the trained reduction furnace atomization detection model to obtain the atomization detection results.
[0010] The following are further optimizations and / or improvements to one of the above-mentioned inventive technical solutions:
[0011] The aforementioned reduction furnace atomization detection model may include an input end, a backbone, a neck, and a head. The backbone is based on the feature extraction network of the YOLOv8 network and the path aggregation network with a feature pyramid network. The C2F module is replaced with the GS-C2F module, and a CBAM module is added after the backbone layer. The CIOU function in the loss function is replaced with the WIOU loss function.
[0012] The aforementioned GS-C2F module may include a first CBS layer, a Split layer, a GhostBottleneck layer, a splicing layer, a second CBS layer, and an SE layer connected in sequence. The input features of the GS-C2F module are processed by the first CBS layer to obtain the first feature. The Split layer divides the first feature into a second feature and a third feature by dividing it in half according to the channel. The third feature is processed by the GhostBottleneck layer to obtain the fourth feature. The second feature, the third feature, and the fourth feature are merged in dimensions by the splicing layer. Finally, the SE layer is used for calculation to obtain the output features of the GS-C2F module.
[0013] The GhostBottleneck layer described above incorporates Ghost convolutions, which divide the input into two parts: a regular convolution and a simple linear operation for feature extraction. Finally, a concat operation is performed to fuse the features and obtain the final output. The Ghost convolution first extracts inter-channel information features through convolution, then uses grouped convolutions to generate new feature maps. Regular convolutions generate feature maps with fewer channels, followed by a linear transformation. The formula for the regular convolution is:
[0014] O = I * f
[0015] Where * represents the convolution operation, f is the convolution kernel, k*k is the kernel size, O is the output feature map, and then L... i,j The operation is used to produce a Ghost feature map from each channel feature map of O;
[0016]
[0017] Here, represents the i-th intrinsic feature map, and represents the linear operation responsible for generating the j-th ghost map; finally, the feature maps obtained from ordinary convolution and linear transformation are concatenated together to obtain the final output.
[0018] Both the first and second CBS layers mentioned above can adopt a CBS structure, which includes a convolutional layer, a batch normalization layer, and a silu activation function layer connected in sequence.
[0019] The SE layer described above can learn global contextual information from the input features of the GS-C2F module. The SE layer includes a Squeeze part and an Excitation part. The Squeeze part uses global average pooling to compress the spatial information of each feature map into a channel descriptor, thereby reflecting the overall activity level of the channel. The Excitation part captures the dependencies between channels through two fully connected layers and learns the weights of each channel, thereby enhancing or suppressing specific feature responses.
[0020] The aforementioned preprocessing methods may include adjusting the size of the reduction furnace image, image normalization, channel adjustment, and image filling.
[0021] The second technical solution of the present invention is achieved through the following measures: a lightweight reduction furnace atomization detection device based on target detection technology, comprising:
[0022] The image acquisition and preprocessing module is used to acquire images inside the reduction furnace, preprocess the images inside the reduction furnace, and obtain preprocessed images inside the reduction furnace.
[0023] The model building and training module is used to build and train the reduction furnace atomization detection model to obtain the trained reduction furnace atomization detection model.
[0024] The prediction module is used to input the preprocessed image inside the reduction furnace into the trained reduction furnace atomization detection model to obtain the atomization detection result.
[0025] The third technical solution of the present invention is achieved through the following measures: an electronic device, including a memory and a processor, wherein the memory stores a program that can run on the processor, and the processor executes the program to implement the above-mentioned lightweight reduction furnace atomization detection method based on target detection technology.
[0026] The fourth technical solution of the present invention is achieved through the following measures: a storage medium storing one or more programs, which can be executed by one or more processors to realize the above-mentioned lightweight reduction furnace atomization detection method based on target detection technology.
[0027] This invention constructs and trains a reduction furnace atomization detection model, resulting in a trained model that includes a ghost attention feature extraction network and a ghost attention aggregation feature pyramid network. These networks are built upon the YOLOv8 network's feature extraction and path aggregation networks by replacing the C2F module with a GS-C2F module, inserting a CBAM module after the backbone layer, and replacing the CIOU loss function with a WIOU loss function. Preprocessed reduction furnace operation images are input into the trained model to obtain atomization detection results, thus solving the problems of high computational cost and low accuracy. This invention designs a G2F-GS module using linear transformation to reduce parameters and integrating attention mechanisms. This G2F-GS module achieves higher parameter utilization efficiency and lower computational complexity by reducing the number of parameters. Applying the G2F-GS module to the YOLOv8 network's feature extraction network enriches the gradient flow and reduces computational cost. Furthermore, based on the path aggregation network with a feature pyramid network in the YOLOv8 network, a novel feature pyramid network was designed using the G2F-GS module, and a CBAM module was added. The loss function was replaced with WIOU to enhance the multi-scale fusion of fogging features. This invention improves fogging detection accuracy while reducing the number of model parameters and complexity, increasing detection speed, and meeting the real-time requirements of industrial detection. Attached Figure Description
[0028] Figure 1 This is a schematic flowchart of a lightweight reduction furnace atomization detection method based on target detection technology according to an embodiment of the present invention.
[0029] Figure 2 This is a schematic diagram of a reduction furnace image for a lightweight reduction furnace atomization detection method based on target detection technology according to an embodiment of the present invention.
[0030] Figure 3 This is a schematic diagram of the atomization detection model of the lightweight reduction furnace atomization detection method based on target detection technology according to an embodiment of the present invention.
[0031] Figure 4 This is a schematic diagram of the GS-C2F module of the lightweight reduction furnace atomization detection method based on target detection technology according to an embodiment of the present invention.
[0032] Figure 5 This is a schematic diagram of the structure of a lightweight reduction furnace atomization detection device based on target detection technology according to an embodiment of the present invention.
[0033] Figure 6 This is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present invention. Detailed Implementation
[0034] The present invention is not limited to the following embodiments, and the specific implementation can be determined according to the technical solution of the present invention and the actual situation.
[0035] The present invention will be further described below with reference to embodiments:
[0036] Example 1: As Figure 1 As shown, this embodiment provides a lightweight reduction furnace atomization detection method based on target detection technology, including the following steps:
[0037] Acquire images of the inside of the reduction furnace, and preprocess these images to obtain preprocessed images of the inside of the reduction furnace.
[0038] A reduction furnace atomization detection model is constructed and trained to obtain a trained reduction furnace atomization detection model. In this embodiment, the constructed reduction furnace atomization detection model is a reduction furnace atomization detection model based on an improved YOLOv8 network. The reduction furnace atomization detection model includes an input end, a backbone, a neck, and a head. The backbone is based on the feature extraction network and the path aggregation network with a feature pyramid network of the YOLOv8 network. The C2F module is replaced with the GS-C2F module, and a CBAM module is added after the backbone layer. The CIOU function in the loss function is replaced with the WIOU loss function.
[0039] The preprocessed images of the reduction furnace in operation are input into the trained reduction furnace atomization detection model to obtain the atomization detection results.
[0040] Preferably, the GS-C2F module includes a first CBS layer, a Split layer, a GhostBottleneck layer, a splicing layer, a second CBS layer, and an SE layer connected in sequence. The input features of the GS-C2F module are processed by the first CBS layer to obtain the first feature. The Split layer divides the first feature into a second feature and a third feature by dividing it in half according to the channel. The third feature is processed by the GhostBottleneck layer to obtain the fourth feature. The second feature, the third feature, and the fourth feature are merged in dimensions by the splicing layer. Finally, the output features of the GS-C2F module are calculated by the SE layer.
[0041] As a preferred approach, the GhostBottleneck layer incorporates Ghost convolutions, dividing the input into two parts: a regular convolution and a simple linear operation for feature extraction. Finally, a concat operation is performed to fuse the features and obtain the final output. The Ghost convolution first extracts inter-channel information features through a 1x1 convolution, then uses grouped convolutions to generate new feature maps. To reduce model computation parameters, the traditional convolution is divided into two steps: first, a regular convolution generates feature maps with fewer channels, and then a simple linear transformation is performed on these maps using a "cheap operation." The formula for the regular convolution is:
[0042] O = I * f
[0043] Where * represents the convolution operation, f is the convolution kernel, k*k is the kernel size, O is the output feature map, and then L... i,j The operation is used to generate a Ghost feature map from each channel feature map of O;
[0044]
[0045] Here, represents the i-th intrinsic feature map, and represents the linear operation responsible for generating the j-th ghost map. The linear operation greatly reduces the large number of parameters generated by the model during the convolution process. Finally, the feature maps obtained by ordinary convolution and linear transformation are concatenated together to obtain the final output.
[0046] Preferably, both the first CBS layer and the second CBS layer adopt a CBS structure, which includes a 3×3 convolutional layer, a batch normalization layer, and a silu activation function layer connected in sequence.
[0047] Preferably, the SE layer learns global contextual information from the input features of the GS-C2F module, thereby enhancing the model's ability to effectively focus on key features and improve its expressive power. The SE layer consists of a Squeeze part and an Excitation part. The Squeeze part uses global average pooling to compress the spatial information of each feature map into a channel descriptor, reflecting the overall activity level of that channel. The Excitation part captures the dependencies between channels through two fully connected layers and learns the weights of each channel, thereby enhancing or suppressing specific feature responses. This mechanism is simple to design and easy to integrate into different CNN architectures.
[0048] Preprocessing methods include adjusting the size of the reduction furnace image, image normalization, channel adjustment, and image filling.
[0049] This lightweight reduction furnace atomization detection method based on target detection technology constructs and trains a reduction furnace atomization detection model, resulting in a trained reduction furnace atomization detection model. The model includes a ghost attention feature extraction network and a ghost attention aggregation feature pyramid network. The ghost attention feature extraction network and the ghost attention aggregation feature pyramid network are based on the YOLOv8 network's feature extraction network and path aggregation network, with the C2F module replaced by the GS-C2F module, a CBAM module inserted after the backbone layer, and the CIOU function replaced by the WIOU loss function. The preprocessed reduction furnace running image is input into the trained reduction furnace atomization detection model to obtain the atomization detection results, thus solving the problems of high computational cost and low accuracy.
[0050] This embodiment proposes a lightweight reduction furnace atomization detection method based on target detection technology. It employs a G2F-GS module designed using linear transformation to reduce parameters and an integrated attention mechanism. This G2F-GS module achieves higher parameter utilization efficiency and lower computational complexity by reducing the number of parameters. Applying the G2F-GS module to the feature extraction network of the YOLOv8 network enriches the gradient flow of the feature extraction network and reduces computational load. Furthermore, based on the path aggregation network with a feature pyramid network in the YOLOv8 network, a novel feature pyramid network is designed and a CBAM module is added. The loss function is replaced with WIOU to enhance multi-scale fusion of atomization features. This improves atomization detection accuracy while reducing the number of model parameters and complexity, increasing detection speed, and meeting the real-time requirements of industrial detection.
[0051] Example 2: As Figures 1 to 4 As shown, this embodiment provides a lightweight reduction furnace atomization detection method based on target detection technology, including the following steps:
[0052] S1. Acquire a reduction furnace image and preprocess the reduction furnace image to obtain a preprocessed reduction furnace image. In this embodiment, the preprocessing methods include adjusting the size of the reduction furnace image, image normalization, channel adjustment, and image filling.
[0053] Specifically, during the training phase, images of the reduction furnace are acquired using industrial cameras and then labeled, such as... Figure 2As shown, the annotation format is txt. In one embodiment, the reduction furnace image is preprocessed and cleaned, including removing useless fogged data, resizing the reduction furnace image taken by the industrial camera to 640×640 pixels and rotating it, while also adjusting contrast and other operations to obtain training data. During the inference phase, the reduction furnace image taken by the industrial camera is resized to 640×640 pixels, and image normalization, channel adjustment, image filling, and other operations are performed. In this invention, the preprocessing process can be adjusted according to actual needs.
[0054] S2. Construct and train a reduction furnace atomization detection model based on the improved YOLOv8 network to obtain the trained reduction furnace atomization detection model. The reduction furnace atomization detection model includes a ghost attention feature extraction network and a ghost attention aggregation feature pyramid network. The ghost attention feature extraction network and the ghost attention aggregation feature pyramid network are based on the feature extraction network and path aggregation network of the YOLOv8 network. The C2F module is replaced with the GS-C2F module, and a CBAM module is added after the backbone layer. The CIOU function in the loss function is replaced with the WIOU loss function.
[0055] In this embodiment, the GS-C2F module includes a first CBS layer, a Split layer, a GhostBottleneck layer, a splicing layer, a second CBS layer, and an SE layer connected in sequence. The input features of the GS-C2F module are processed by the first CBS layer to obtain a first feature. The Split layer divides the first feature into a second feature and a third feature by dividing it in half according to the channel. The third feature is processed by the GhostBottleneck layer to obtain a fourth feature. The second feature, the third feature, and the fourth feature are merged in dimensions by the splicing layer. Finally, the output features of the GS-C2F module are calculated by the SE layer.
[0056] For details, please refer to Figure 3 The reduction furnace atomization detection model based on the improved YOLOv8 network is an improvement on the YOLOv8 network. In one embodiment, the reduction furnace atomization detection model is obtained by improving YOLOv8; in other embodiments, other types of YOLOv8 networks can also be used. The GS-C2F module is replaced with the C2F module to design a lightweight ghost attention feature extraction network (GSC2F-net) and an efficient ghost attention aggregation feature pyramid network (GSC2F-FPN). Simultaneously, a CBAM module is inserted, and the CIOU function in the loss function is replaced with the WIOU loss function. Therefore, the reduction furnace atomization detection model belongs to the category of lightweight object detection models.
[0057] Furthermore, the Ghost Attention Feature Extraction Network (GSC2F-net) extracts feature information from the reduction furnace image through the GS-C2F module and outputs feature maps M1, M2, and M3.
[0058] Specifically, the Ghost Attention Feature Extraction Network (GSC2F-net) includes: The first layer is a CBS module, which uses a 64-channel convolutional layer with a 3×3 kernel to convolve the input furnace image, resulting in a 64-channel feature map, which is then reduced to half its original size. The second layer is a CBS module, which uses a 128-channel convolutional layer with a 3×3 kernel to further convolve the feature map, resulting in a 128-channel feature map, which is again reduced to half its original size. All CBS modules use a CBS structure, where a batch normalization (BN) layer and a silu activation function layer are sequentially connected after the convolutional layers. The third layer is a C2F module, which fuses feature maps of different scales, with 128 channels. The fourth layer is a downsampling module, which uses 256 channels to convolve the feature map, resulting in a 256-channel feature map, which is then reduced to half its original size again. The fifth layer is a C2F module, which further fuses the feature maps with 256 channels, maintaining the same size, and outputs feature map M3. The sixth layer is a downsampling module, which convolves feature map M3 with 512 channels to obtain a 512-channel feature map, and then reduces it to half its original size. The seventh layer is a GS-C2F module, which further fuses the feature maps with 512 channels and outputs feature map M2. The eighth layer is a downsampling module, which convolves feature map M2 with 1024 channels to obtain a 512-channel feature map, and then reduces it to half its original size. The ninth layer is a GS-C2F module, which fuses feature maps of different scales with 1024 channels. The tenth layer is the SPPF module. The SPPF module uses a 1024-channel spatial pyramid pooling operation to extract features from different scales, capture detailed information of the target object at different scales, and output feature map M1.
[0059] like Figure 4As shown, the GS-C2F module enriches the gradient flow by integrating gradient information changes from start to finish into the feature map. This reduces computational cost while maintaining accuracy, making it suitable for operation on resource-constrained devices. The specific structure is as follows: First CBS layer, Split layer, GhostBottleneck layer, concatenation layer, Second CBS layer, SE layer. The input features of the GS-C2F module are processed by the First CBS layer to obtain the first feature. The Split layer halves the first feature by channel to obtain the second and third features. The third feature is processed by the GhostBottleneck layer to obtain the fourth feature. The second, third, and fourth features are merged in dimensions by the concatenation layer, and finally, the SE layer is used for computation to obtain the output features of the GS-C2F module. The first feature is obtained by passing the input features of the GS-C2F module through the first CBS layer. Then, the first feature is split into the second and third features according to the number of channels after passing through the dimension splitting layer. The third feature is passed through the GhostBottleneck layer to obtain the fourth feature. The concatenation layer merges the feature maps containing different information, namely the second, third and fourth features, and then passes them through the fourth CBS layer. Finally, the SE layer is used for calculation to obtain the output features of the GS-C2F module.
[0060] In this embodiment, GhostBottleneck employs Ghost convolution, dividing the input into two parts: ordinary convolution and a simple linear operation for feature extraction. Finally, a concat operation is performed to fuse the features and obtain the final output. Ghost convolution first extracts inter-channel information features through a 1x1 convolution, and then uses grouped convolution to generate new feature maps. To reduce model computation parameters, traditional convolution is divided into two steps: first, ordinary convolution generates feature maps with fewer channels, and then a simple linear transformation is performed on these maps using a "cheap operation." The first step, ordinary convolution, can be formulated as follows:
[0061] O = I * f
[0062] Where * represents the convolution operation, f is the convolution kernel, k*k is the kernel size, O is the output feature map, and then L... i,j The operation is used to produce a Ghost feature map from each channel feature map of O.
[0063]
[0064] Here, represents the i-th intrinsic feature map, and represents the linear operation responsible for generating the j-th ghost map. The linear operation significantly reduces the large number of parameters generated by the model during the convolutional process. Finally, the feature maps obtained from ordinary convolution and linear transformation are concatenated to obtain the final output.
[0065] In this embodiment, GhostBottleneck also employs the SE attention mechanism, which is an effective way to enhance the model's expressive power by learning global contextual information to increase its focus on key features. It consists of two parts: the Squeeze part uses global average pooling to compress the spatial information of each feature map into a channel descriptor, reflecting the overall activity level of that channel; the Excitation part captures the dependencies between channels through two fully connected layers and learns the weights of each channel, thereby enhancing or suppressing specific feature responses.
[0066] In this embodiment, the CBS structure includes a 3×3 convolutional layer, a batch normalization layer, and a silu activation function layer connected sequentially. The specific fusion process of the Ghost Attention Aggregation Feature Pyramid Network (GSC2F-FPN) is as follows:
[0067] (a) The M1 feature map after being upsampled and compared with the M2 feature map Figure 1 The input concatenation layer is used to perform dimensional concatenation operations to obtain feature map T2;
[0068] (b) Feature map T2, after passing through the C2F module and CBAM module, is then upsampled and compared with feature map M3. Figure 1 The input concatenation layer is used to perform dimensional concatenation operations to obtain the feature map T3;
[0069] (c) Feature map T2 and T3, which has passed through the C2F module and the downsampling module, are input together into the stitching layer to perform dimensional stitching operation to obtain feature map T4;
[0070] (d) Feature map M1 and T4, which has passed through the C2F module and the downsampling module, are input into the stitching layer to perform dimensional stitching operation to obtain feature map T1;
[0071] (e) Feature map R3 is obtained from feature map T3 through the C2F module; feature map R2 is obtained from feature map T4 through the C2F module; feature map R1 is obtained from feature map T1 through the GS-C2F module.
[0072] The specific mathematical expression is:
[0073] R3 = C2F(T3)
[0074] R2 = C2F(T4)
[0075] R1=GS-C2F(T1
[0076] T3=Concat{M3,upasmpling[C2F(T2)]}
[0077] T2=Concat{M2,upasmpling(M1)}
[0078] T4=Concat{downasmpling[C2F(T3)],C2F(T2)}
[0079] T1=Concat{downasmpling[C2F(T4)],M1}
[0080] In the formula, Concat represents the dimension concatenation operation corresponding to the concatenation layer, upsampling represents the upsampling operation corresponding to the upsampling module, downsampling represents the downsampling operation corresponding to the downsampling module, C2F represents the function corresponding to the C2F module, and GS-C2F represents the function corresponding to the GS-C2F module.
[0081] In this embodiment, VFL Loss is used as the classification loss. VFL Loss measures the difference between the probability distribution predicted by the model and the actual labels, and its formula is as follows:
[0082]
[0083] Where b is the IoU between the bounding box and the ground truth, and a is the probability. When b is a positive sample, the classification loss is calculated as the BCE (Binary Cross Entropy) loss, and when b is a negative sample, it is the FL loss.
[0084] In this embodiment, DFL Loss + WIOU Loss is used as the bounding box regression loss. Specifically, after YOLOv8 introduces the Anchor-Free Center-based methods, the model changes from outputting offset to ltrb = left, top, right, bottom, which represents the distances from the four bounding boxes of the predicted bounding box to the center point. To complement Anchor-Free methods and improve generalization, YOLOv8 adds DFL loss, the formula of which is as follows:
[0085] DFL(S i ,S i+1 )=-((y i+1 -y)log(S i )+(yy i )log(S i+1 ))
[0086] After calculating ltrb, DFL uses cross-entropy to allow the network to focus more quickly on the distribution of the target location and its neighboring areas.
[0087] Since training data inevitably includes low-quality examples, and geometric factors such as distance and aspect ratio exacerbate the impact of these low-quality examples, thus reducing the model's generalization performance, a good loss function should mitigate the penalty imposed by geometric factors when the anchor boxes largely overlap with the ground truth boxes, and allow the model to achieve better generalization with less intervention during training. Therefore, distance attention was constructed based on a distance metric, resulting in WIoUv1 with a two-layer attention mechanism, as shown in the following formula:
[0088] L WIoUv1 =R WIoU L IoU
[0089]
[0090] Where Wg and Hg are the smallest enclosing box sizes. To prevent R... WIoU The gradients that hinder convergence are generated, and Wg and Hg are separated from the computation graph (the superscript * indicates this operation). Because it effectively eliminates factors that hinder convergence, no new metrics, such as aspect ratio, are introduced. Therefore, WIoU effectively solves the problem of identical aspect ratios in CIoU.
[0091] Wise-IoUv3 introduces a dynamic non-monotonic attention mechanism to replace the static monotonic attention mechanism. This mechanism uses "outlier" instead of IoU to evaluate anchor box quality and implements a smart gradient gain allocation strategy. This strategy reduces the competition for high-quality anchor boxes and minimizes harmful gradients generated by low-quality samples, allowing WIoU to prioritize anchor boxes of average quality and improving detector performance. The formula is as follows:
[0092]
[0093]
[0094] By constructing a non-monotonic focusing coefficient using β and applying it to WIoU v1, we obtain WIoU v3 with dynamic non-monotonic FM. This allows for dynamic optimization of the loss weighting of small objects, thereby improving the model's detection performance.
[0095] The reduction furnace atomization detection model is trained using the Adam optimizer with a learning rate of 0.001. The training data is divided into training, validation, and test sets in a ratio of 8:1:1. The reduction furnace images in the training set are input into the reduction furnace atomization detection model, and the trained reduction furnace atomization detection model is deployed and applied to achieve the detection of reduction furnace atomization.
[0096] S3. Input the preprocessed reduction furnace image into the trained atomization detection model to obtain the atomization detection result.
[0097] Specifically, in the inference stage, the preprocessed reduction furnace image is processed by a trained fogging detection model to predict fogging detection results, which include fogging category and fogging location.
[0098] This embodiment proposes a lightweight reduction furnace atomization detection method based on target detection technology. It employs a G2F-GS module designed using linear transformation to reduce parameters and an integrated attention mechanism. This G2F-GS module achieves higher parameter utilization efficiency and lower computational complexity by reducing the number of parameters. Applying the G2F-GS module to the feature extraction network of the YOLOv8 network enriches the gradient flow of the feature extraction network and reduces computational load. Furthermore, based on the path aggregation network with a feature pyramid network in the YOLOv8 network, a novel feature pyramid network is designed and a CBAM module is added. The loss function is replaced with WIOU to enhance multi-scale fusion of atomization features. This improves atomization detection accuracy while reducing the number of model parameters and complexity, increasing detection speed, and meeting the real-time requirements of industrial detection.
[0099] Example 3: As Figure 5 As shown, this embodiment provides a lightweight reduction furnace atomization detection device based on target detection technology. This device can be specifically applied to various electronic devices, including:
[0100] The image acquisition and preprocessing module is used to acquire images of the reduction furnace, preprocess the images of the reduction furnace, and obtain preprocessed images of the reduction furnace.
[0101] The model construction and training module is used to construct and train a reduction furnace atomization detection model based on an improved YOLOv8 network, resulting in a trained reduction furnace atomization detection model. The constructed reduction furnace atomization detection model is based on an improved YOLOv8 network. This model includes a ghost attention feature extraction network and a ghost attention aggregation feature pyramid network. The ghost attention feature extraction network and the ghost attention aggregation feature pyramid network are built upon the YOLOv8 network's feature extraction network and path aggregation network by replacing the C2F module with a GS-C2F module, inserting a CBAM module after the backbone layer, and replacing the CIOU function in the loss function with the WIOU loss function.
[0102] The prediction module is used to input the preprocessed reduction furnace image into the trained reduction furnace atomization detection model to obtain the atomization detection result.
[0103] This embodiment proposes a lightweight reduction furnace atomization detection device based on target detection technology. It employs a G2F-GS module designed using linear transformation to reduce parameters and an integrated attention mechanism. This G2F-GS module achieves higher parameter utilization efficiency and lower computational complexity by reducing the number of parameters. Applying the G2F-GS module to the feature extraction network of the YOLOv8 network enriches the gradient flow of the feature extraction network and reduces computational load. Furthermore, based on the path aggregation network with a feature pyramid network in the YOLOv8 network, a novel feature pyramid network is designed using the G2F-GS module, and a CBAM module is added. The loss function is replaced with WIOU to enhance multi-scale fusion of atomization features. This improves atomization detection accuracy while reducing the number of model parameters and complexity, increasing detection speed, and meeting the real-time requirements of industrial detection.
[0104] Example 4: Figure 6 As shown, this embodiment provides an electronic device, which includes a memory, a processor, a communication interface, and a bus. The memory stores a program that can run on the processor. When the processor executes the program, it implements the lightweight reduction furnace atomization detection method based on target detection technology in the above embodiment.
[0105] like Figure 6 As shown, the electronic device in this embodiment may include a processor 1001 and a memory 1002; wherein the memory 1002 is used to store computer execution instructions; the processor 1001 is used to execute the computer execution instructions stored in the memory to implement the various steps of the lightweight reduction furnace atomization detection method based on target detection technology in the above embodiment, as detailed in the relevant descriptions in the foregoing method embodiments. Optionally, the memory 1002 may be independent or integrated with the processor 1001. When the memory 1002 is independently configured, the electronic device further includes a bus 1003 for connecting the memory 1002 and the processor 1001.
[0106] The processor can be a central processing unit, or it can be other general-purpose processors, digital signal processors, application-specific integrated circuits, field-programmable gate arrays or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or combinations of the above types of chips.
[0107] The memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer-executable programs, and units, such as the program units corresponding to those in the above-described method embodiments of the present invention. The processor executes various functional applications and data processing by running the non-transitory software programs, instructions, and modules stored in the memory, thereby realizing the lightweight reduction furnace atomization detection method based on target detection technology in the above embodiments.
[0108] The memory may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created by the processor, etc. Furthermore, the memory may include high-speed random access memory and non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. The memory may optionally include memory remotely located relative to the processor, which can be connected to the processor via a network. One or more programs are stored in the memory and, when executed by the processor, perform the lightweight reduction furnace atomization detection method based on target detection technology described in the above embodiments.
[0109] Example 5: This example provides a storage medium for computer-readable storage. The storage medium stores one or more programs, which can be executed by one or more processors to implement the lightweight reduction furnace atomization detection method based on target detection technology as described in the above examples.
[0110] The storage medium can be an internal storage unit of the electronic device, such as a hard drive or memory. Alternatively, it can be an external storage device, such as a plug-in hard drive, smart memory card, secure digital card, or flash memory card.
[0111] The above technical features constitute the embodiments of the present invention, which have strong adaptability and implementation effect. Unnecessary technical features can be added or removed according to actual needs to meet the needs of different situations.
Claims
1. A lightweight reduction furnace atomization detection method based on target detection technology, characterized in that... Includes the following steps: Acquire images of the inside of the reduction furnace, and preprocess these images to obtain preprocessed images of the inside of the reduction furnace. A reduction furnace atomization detection model was constructed and trained to obtain the trained reduction furnace atomization detection model. The reduction furnace atomization detection model includes an input end, a backbone, a neck, and a head. The backbone is based on the feature extraction network of the YOLOv8 network and the path aggregation network with a feature pyramid network. The C2F module is replaced with the GS-C2F module. A CBAM module is added after the backbone layer. The CIOU function in the loss function is replaced with the WIOU loss function. The path aggregation network in Neck is a ghost attention aggregation feature pyramid network, and the backbone is a ghost attention feature extraction network. The ghost attention feature extraction network outputs feature maps M1, M2, and M3. Feature map M1 is upsampled and then input together with feature map M2 into the concatenation layer for dimensional concatenation to obtain feature map T2. Feature map T2 is then upsampled and input together with feature map M3 into the concatenation layer for dimensional concatenation to obtain feature map T3. Feature map T2 and feature map T3 (after passing through the C2F and downsampling modules) are input together into the concatenation layer for dimensional concatenation to obtain feature map T4. Feature map M1 and feature map T4 (after passing through the C2F and downsampling modules) are input together into the concatenation layer for dimensional concatenation to obtain feature map T1. Feature map T3 is processed by the C2F module to obtain feature map R3. Feature map T4 is processed by the C2F module to obtain feature map R2. Feature map T1 is processed by the GS-C2F module to obtain feature map R1. The preprocessed reduction furnace operation image is input into the trained reduction furnace atomization detection model to obtain atomization detection results, which include atomization category and atomization location.
2. The lightweight reduction furnace atomization detection method based on target detection technology according to claim 1, characterized in that... The GS-C2F module consists of a first CBS layer, a Split layer, a GhostBottleneck layer, a splicing layer, a second CBS layer, and an SE layer connected in sequence. The input features of the GS-C2F module are processed by the first CBS layer to obtain the first feature. The Split layer divides the first feature into the second and third features by dividing it in half according to the channels. The third feature is processed by the GhostBottleneck layer to obtain the fourth feature. The second, third, and fourth features are merged in dimensions by the splicing layer. Finally, the SE layer is used to calculate the output features of the GS-C2F module.
3. The lightweight reduction furnace atomization detection method based on target detection technology according to claim 2, characterized in that... The GhostBottleneck layer incorporates Ghost convolutions, dividing the input into two parts for feature extraction: a regular convolution and a simple linear operation. Finally, a concat operation is performed to fuse the features and obtain the final output. The Ghost convolution first extracts inter-channel information features through convolution, then uses grouped convolutions to generate new feature maps. Regular convolutions generate feature maps with fewer channels, followed by a linear transformation. The formula for the regular convolution is: O = I * f Where ∗ represents the convolution operation, f is the convolution kernel, k∗k is the convolution kernel size, and O is the output feature map. Then, the Li,j operation is used to generate Ghost feature maps from each channel feature map of O. n ij =Li,j(n′i),∀i=1,2,3,…,n,j=1,2,3,…,s Where n′i represents the i-th intrinsic feature map, and Li,j represents the linear operation responsible for generating the j-th ghost map; finally, the feature maps obtained by ordinary convolution and linear transformation are concatenated together to obtain the final output.
4. The lightweight reduction furnace atomization detection method based on target detection technology according to claim 1, 2, or 3, characterized in that... Preprocessing methods include resizing the reduction furnace image, image normalization, channel adjustment, and image filling.
5. The lightweight reduction furnace atomization detection method based on target detection technology according to claim 2 or 3, characterized in that... Both the first and second CBS layers adopt the CBS structure, which includes a convolutional layer, a batch normalization layer, and a silu activation function layer connected in sequence.
6. The lightweight reduction furnace atomization detection method based on target detection technology according to claim 2 or 3, characterized in that... The SE layer learns global contextual information from the input features of the GS-C2F module. The SE layer includes a Squeeze part and an Excitation part. The Squeeze part uses global average pooling to compress the spatial information of each feature map into a channel descriptor, thereby reflecting the overall activity level of that channel. The Excitation part captures the dependencies between channels through two fully connected layers and learns the weights of each channel, thereby enhancing or suppressing specific feature responses.
7. The lightweight reduction furnace atomization detection method based on target detection technology according to claim 1, characterized in that... The loss function of the reduction furnace atomization detection model includes a classification loss for category classification and a bounding box regression loss for bounding box regression. The classification loss uses VFL Loss, and the bounding box regression loss uses the sum of DFL Loss and WIOU Loss.
8. A lightweight reduction furnace atomization detection device based on target detection technology, characterized in that... include: The image acquisition and preprocessing module is used to acquire images inside the reduction furnace, preprocess the images inside the reduction furnace, and obtain preprocessed images inside the reduction furnace. The model building and training module is used to build and train the reduction furnace atomization detection model, resulting in a trained reduction furnace atomization detection model. This model includes an input layer, a backbone, a neck, and a head. The backbone is built upon the YOLOv8 network's feature extraction network and a path aggregation network with a feature pyramid network, replacing the C2F module with a GS-C2F module. A CBAM module is added after the backbone layer, and the CIOU function in the loss function is replaced with the WIOU loss function. The path aggregation network in the neck is a ghost attention aggregation feature pyramid network, and the backbone is a ghost attention feature extraction network. The ghost attention feature extraction network outputs feature map M1 and features... Feature map T2 is obtained by upsampling feature map M1 and then inputting them together with feature map M2 into a stitching layer for dimensional stitching. Feature map T2 is then input into a stitching layer for dimensional stitching after passing through the C2F and CBAM modules and then through the upsampling module, and then inputting them together with feature map M3 into a stitching layer for dimensional stitching. Feature map T2 is then input into a stitching layer for dimensional stitching after passing through the C2F and downsampling modules. Feature map T4 is obtained by upsampling feature map M1 and then inputting them together with feature map T4 into a stitching layer for dimensional stitching. Feature map T1 is obtained by upsampling feature map M2 and then through the C2F and downsampling modules. Feature map T3 is then input into a stitching layer for dimensional stitching. Feature map T3 is then input into a C2F module to obtain feature map R3. Feature map T4 is then input into a C2F module to obtain feature map R2. Feature map T1 is then input into a GS-C2F module to obtain feature map R1. The prediction module is used to input the preprocessed image inside the reduction furnace into the trained reduction furnace atomization detection model to obtain atomization detection results, which include atomization category and atomization location.
9. An electronic device comprising a memory and a processor, wherein the memory stores a program executable on the processor, characterized in that, When the processor executes the program, it implements the lightweight reduction furnace atomization detection method based on target detection technology as described in any one of claims 1 to 7.
10. A storage medium, characterized in that, The storage medium stores one or more programs, which can be executed by one or more processors to implement the lightweight reduction furnace atomization detection method based on target detection technology as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Method, system and device for detecting silicon rod in reduction furnace, medium and electronic equipment
CN113834585A
Pedestrian target detection method based on improved YOLOv8 lightweight network model
CN117423135A
Crop identification and leaf disease detection method and system
CN118297877A
