Improved YOLOv5s-based energy storage power supply service module target detection method

By improving the YOLOv5s network and adaptive feature extraction module, combined with Focal Loss function, a multi-function energy storage power supply service cabin is designed, which solves the shortcomings of target detection and comprehensive analysis and diagnosis in the energy storage device, and achieves the high accuracy of the energy storage device and Safety detection.

CN119048816APending Publication Date: 2024-11-29STATE GRID CHONGQING ELECTRIC POWER CO ELECTRIC POWER RES INST +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411116052.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-14
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

The existing energy storage devices lack effective target detection methods and comprehensive analysis and diagnosis functions, resulting in unstable operation of energy storage devices and safety hazards.

Method used

The improved YOLOv5s network is adopted, combined with the adaptive feature extraction module and Focal Loss function, and a multi-function energy storage power supply service cabin is designed to detect abnormal operation conditions in the energy storage device and issue early warnings.

Benefits of technology

It improves the accuracy of target detection and the operation safety of the energy storage power supply service cabin, solves the problem of target detection and comprehensive analysis and diagnosis of energy storage devices, and realizes timely early warning and handling of abnormal situations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119048816A_ABST
    Figure CN119048816A_ABST
Patent Text Reader

Abstract

The invention discloses an energy storage and power supply service module target detection method based on improved YOLOv5s, and relates to the technical field of energy storage and power supply service module target detection, and the method comprises the following steps: designing a multifunctional energy storage and power supply service module based on a power supply service demand; the YOLOv5s network is optimized by adopting a self-adaptive feature extraction module and a Focal Loss function; and embedding the optimized YOLOv5s network into a management system of the multifunctional energy storage and power supply service module for detecting an abnormal operation condition in the multifunctional energy storage and power supply service module and giving out an early warning, thereby completing target detection of the energy storage and power supply service module based on the improved YOLOv5s. The problems that an existing energy storage device lacks an effective target detection method and lacks comprehensive analysis and diagnosis of all units in the energy storage device are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of target detection in an energy storage power supply service cabin, and in particular to a target detection method for an energy storage power supply service cabin based on improved YOLOv5s. Background Art

[0002] With the establishment of low-carbon goals, renewable energy such as wind power and photovoltaic power will usher in opportunities for rapid development as the main energy sources of the power system. However, renewable energy has characteristics such as volatility and intermittency, which have a huge impact on the reliable operation of the power system. The rise of various power storage technologies has effectively smoothed the fluctuations in renewable energy output, making it an effective flexibility resource for the power system.

[0003] At present, experts and scholars have conducted corresponding research on energy storage control strategies, mobile energy storage charging and discharging devices, etc., including proposing a battery-supercapacitor hybrid energy storage system and its energy management strategy, but there are fewer studies on abnormality detection of mobile energy storage devices; a method of using the YOLOv3 algorithm for real-time target detection of quadrotors was proposed; a hyperspectral target detection framework based on 3D-2D CNN and transfer learning was proposed, the preprocessed feature map was input into the 3D-2D CNN, and the softmax method was used to output the detection results.

[0004] Due to the short development time, most existing energy storage devices have the following problems in practical applications: the energy storage devices lack effective target detection methods; the various units in the energy storage devices have certain data interactions, but lack comprehensive analysis and diagnosis functions. Summary of the invention

[0005] In view of the above-mentioned deficiencies in the prior art, the present invention provides a target detection method for an energy storage power supply service cabin based on improved YOLOv5s, which solves the problems that the existing energy storage device lacks an effective target detection method and lacks comprehensive analysis and diagnosis of each unit in the energy storage device.

[0006] In order to achieve the above-mentioned invention object, the technical solution adopted by the present invention is: a target detection method for energy storage power supply service cabin based on improved YOLOv5s, comprising the following steps:

[0007] S1: Based on the power supply service requirements, design a multifunctional energy storage power supply service cabin;

[0008] S2: Adaptive feature extraction module and Focal Loss function are used to optimize the YOLOv5s network;

[0009] S3: The optimized YOLOv5s network is embedded in the management system of the multifunctional energy storage power supply service cabin to detect abnormal operation conditions in the multifunctional energy storage power supply service cabin and issue early warnings, thereby completing target detection of the energy storage power supply service cabin based on the improved YOLOv5s.

[0010] The beneficial effect of the above scheme is: the present invention proposes a target detection method for an energy storage power supply service cabin based on improved YOLOv5s. In order to fully extract image features, the proposed method adopts an adaptive feature extraction module to improve the YOLOv5s network, and at the same time uses the Focal Loss function to reduce the influence of unbalanced samples, thereby further improving the accuracy of target detection, ensuring the safe operation of the energy storage power supply service cabin, and solving the problems of the lack of effective target detection methods in existing energy storage devices and the lack of comprehensive analysis and diagnosis of each unit in the energy storage device.

[0011] Furthermore, the multifunctional energy storage and power supply service cabin in S1 includes an energy storage battery, an inverter, an integrated air conditioner, a battery management unit BMS, a fire warning system, a controller, a remote monitoring platform and an image acquisition device. The energy storage battery is respectively connected to the battery management unit BMS and the inverter, and the controller is respectively connected to the energy storage battery, the inverter, the remote monitoring platform, the integrated air conditioner, the fire warning system and the image acquisition device. The energy storage battery and the battery management unit BMS are used to monitor the charging and discharging status of the battery, the inverter is used to receive input from external photovoltaic, mains and traditional oil engines, the controller is used to monitor and coordinate the status of each device and transmit the information to the remote monitoring platform, and the image acquisition device is used to obtain image data in the multifunctional energy storage and power supply service cabin.

[0012] The beneficial effect of the above further scheme is: since the existing energy storage cabin has a single function and weak information exchange capability, the present invention designs a multifunctional energy storage power supply service cabin that can meet various needs such as emergency power supply.

[0013] Furthermore, the fire warning system includes a plurality of sensors.

[0014] The beneficial effect of the above further scheme is: by adopting the above technical scheme, sensors are used to collect information inside the cabin, so that timely warnings can be issued when abnormal situations are detected.

[0015] Furthermore, the adaptive feature extraction module AFE in S2 is used to extract feature information from the input feature map, including the following sub-steps:

[0016] S2-1: Input the input feature map to the C3 module for feature extraction.

[0017] S2-2: Based on the feature extraction results, the weight parameters ω1 and ω2 are added to the feature map output by C3, and the two weighted feature maps are fused to obtain the fused feature map F;

[0018] S2-3: Pass the input feature map through the Sigmoid activation function to obtain the weights of different feature information, and multiply the weights with the fused feature map F to achieve weighted screening of the feature map;

[0019] S2-4: The feature graph after weighted screening is added by introducing short-circuited edges to extract feature information.

[0020] The beneficial effect of the above further scheme is that the feature extraction module is used to extract useful feature information from the input image and convert the image into a higher-level, more semantic representation, which is convenient for the target detection task. The receptive field of the low feature layer is smaller than that of the high feature layer. In order to ensure that the feature map obtained by the model in the feature extraction process can have a stronger target information expression ability, the idea of ​​the attention mechanism is introduced and an AFE module is proposed. It can dynamically adjust the weight distribution according to the different contexts of the input, improve the model's perception of features, and enable it to more accurately capture important feature information in the image.

[0021] Furthermore, the weighted screening formula of the feature map is:

[0022]

[0023] Among them, ω i is the value after weighted screening, ω i 'And ω' j is the network prediction weight, ξ is a constant, and i and j are feature maps.

[0024] The above further solution has the beneficial effect of normalizing the weight of the current position, that is, dividing it by the cumulative sum of the weights of all positions and adding a small constant to achieve adaptive adjustment of the weight. This helps to improve the efficiency of the model in capturing important features.

[0025] Furthermore, the Focal Loss function in S2 is:

[0026] FL(ρ t )=-α t (1-ρ t ) γ log(ρ t )

[0027] Among them, FL(·) is the Focal Loss function, ρ t and α t is the weight and γ is the modulation factor.

[0028] The beneficial effect of the above further solution is that the loss function in YOLO uses a binary cross entropy loss function, which may cause an imbalance between positive and negative samples. Therefore, the Focal Loss function used in the improved YOLOv5s network can effectively solve this problem. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 This is a flow chart of the target detection method for the energy storage power supply service cabin based on improved YOLOv5s.

[0030] Figure 2 This is the architecture diagram of the in-cabin target detection model based on improved YOLOv5s.

[0031] Figure 3 This is the structural diagram of the adaptive feature extraction module AFE.

[0032] Figure 4 A comparison chart of ablation experiment results.

[0033] Figure 5 Comparison chart of test results for battery packs. DETAILED DESCRIPTION

[0034] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.

[0035] like Figure 1 As shown, a target detection method for an energy storage power supply service cabin based on improved YOLOv5s includes the following steps:

[0036] S1: Based on the power supply service requirements, design a multifunctional energy storage power supply service cabin;

[0037] S2: Adaptive feature extraction module and Focal Loss function are used to optimize the YOLOv5s network;

[0038] S3: The optimized YOLOv5s network is embedded in the management system of the multifunctional energy storage power supply service cabin to detect abnormal operation conditions in the multifunctional energy storage power supply service cabin and issue early warnings, thereby completing target detection of the energy storage power supply service cabin based on the improved YOLOv5s.

[0039] The multifunctional energy storage and power supply service cabin in S1 includes an energy storage battery, an inverter, an integrated air conditioner, a battery management unit BMS, a fire warning system, a controller, a remote monitoring platform and an image acquisition device. The energy storage battery is connected to the battery management unit BMS and the inverter respectively, and the controller is connected to the energy storage battery, the inverter, the remote monitoring platform, the integrated air conditioner, the fire warning system and the image acquisition device respectively. The energy storage battery and the battery management unit BMS are used to monitor the charging and discharging status of the battery. The inverter is used to receive input from external photovoltaic, mains and traditional oil engines. The controller is used to monitor and coordinate the status of each device and transmit the information to the remote monitoring platform. The image acquisition device is used to obtain image data in the multifunctional energy storage and power supply service cabin.

[0040] The fire warning system consists of multiple sensors.

[0041] In one embodiment of the present invention, based on the power supply service requirements, the overall size of the energy storage cabin is designed to be 1457mm×2438mm×2100mm, and the cabin weight is 1500kg. The battery is connected to the BMS to monitor the battery charging and discharging status, and bidirectional inverter is realized between the battery and the inverter. At the same time, the inverter also receives input from external photovoltaic and city power or traditional oil engine. The other side of the inverter is AC output to supply external loads. The microgrid controller monitors and coordinates the status of the battery and inverter, and transmits the information to the remote monitoring platform. At the same time, the energy storage warehouse uses automotive-grade battery plug-in boxes, and effective shockproof measures are taken between the battery cells and the plug-in boxes. A single plug-in box module consists of 3 parallel 30 strings of 100Ah batteries, with a rated capacity of 300Ah, a rated voltage of 96V, and a rated energy of 2.8kWh. Each battery cluster consists of 8 battery modules and 1 high-voltage box, with a rated capacity of 300Ah, a rated voltage of 768V, and a rated energy of 230.4kWh. Each battery cluster is divided into 2 battery cabinets, with a total of 4 battery cabinets in the cabin. The battery cabinets and the cabin are connected with multi-directional military-grade seismic pads. EMS is based on the application of computers, networks and communication technologies to realize the functions of information collection, processing, monitoring, control, operation management, etc. for BMS, energy storage converters (PCS), step-up transformers, secondary equipment, environmental monitoring equipment, fire-fighting equipment and other auxiliary equipment in the energy storage power station. The fire warning system is equipped with smoke, temperature and combustible gas detectors. In the energy storage cabin, the alarm time of the fire warning system lags behind the occurrence time of thermal runaway of the lithium battery. The early safety warning system for the energy storage cabin can monitor the characteristic signals generated by the battery in the early stage of the failure, and issue early warning information in time to prevent the spread of accidents and ensure the safety of the energy storage cabin. The main characteristic signals of the battery energy storage cabin include:

[0042] 1) When the battery is overcharged or short-circuited, characteristic gas will be generated. The gas can leak from the battery shell into the energy storage compartment and be collected by the gas detector;

[0043] 2) When the battery fails, the gas generated inside will break through the safety valve, emitting a sound signal with a relatively high intensity and similar characteristics, which will be collected by the sound locator;

[0044] 3) After the battery safety valve is opened, the internal electrolyte vaporizes and escapes into the energy storage compartment to spread, generating gas-liquid overflow, which is collected by an image recognizer such as a camera.

[0045] YOLOv5 is the current mainstream target detection algorithm, which is divided into multiple models, but YOLOv5s is a lightweight network with high accuracy and real-time performance. Therefore, the YOLOv5 network is embedded in the energy storage power supply service cabin for target detection. The YOLOv5s network includes Backbone, Neck and Head networks. Backbone is responsible for extracting target features, and the Neck network is specifically PANet, which is used to enhance the features obtained by the Backbone network. The Head network contains three detection heads, which sample the original image 8 times, 16 times and 32 times respectively.

[0046] Since the energy storage power supply service cabin contains a large number of normal operation images, in order to pay more attention to abnormal images, the attention mechanism is introduced into the YOLOv5s network, an adaptive feature extraction module (adaptive feature extraction, AFE) is proposed, and the Focal Loss function is used to make it pay more attention to the feature information of abnormal conditions in the cabin. The energy storage power supply service cabin target detection model architecture based on the improved YOLOv5s network is shown in the figure. Figure 2 shown.

[0047] In the target detection model of the energy storage power supply service cabin, the images acquired by the camera and other acquisition devices in the cabin are first standardized and preprocessed. Then, the images are input into the improved YOLOv5s network, and the target features are extracted by the backbone network, in which the AFE module structure is integrated, and the features of the PANet network are enhanced. The final detection results are output by the head network, and the Focal Loss function is used. Finally, according to the target detection results, the background issues corresponding warnings so that the operation and maintenance personnel can take timely measures.

[0048] like Figure 3 As shown, the adaptive feature extraction module AFE in S2 is used to extract feature information from the input feature map, including the following steps:

[0049] S2-1: Input the input feature map to the C3 module for feature extraction.

[0050] S2-2: Based on the feature extraction results, the weight parameters ω1 and ω2 are added to the feature map output by C3, and the two weighted feature maps are fused to obtain the fused feature map F;

[0051] S2-3: Pass the input feature map through the Sigmoid activation function to obtain the weights of different feature information, and multiply the weights with the fused feature map F to achieve weighted screening of the feature map;

[0052] S2-4: The feature graph after weighted screening is added by introducing short-circuited edges to extract feature information.

[0053] The weighted screening formula of the feature map is:

[0054]

[0055] Among them, ω i is the value after weighted screening, ω i 'And ω' j is the network prediction weight, ξ is a constant, and i and j are feature maps.

[0056] The AFE module can effectively enhance and filter input features. This adaptive improvement provides a deeper feature expression, which helps improve model performance and makes it more suitable for target detection in complex scenes.

[0057] The Focal Loss function in S2 is:

[0058] FL(ρ t )=-α t (1-ρ t ) γ log(ρ t )

[0059] Among them, FL(·) is the Focal Loss function, ρ t and α t is the weight and γ is the modulation factor.

[0060] From the above formula, we can see that the weight α is introduced t , to solve the problem of imbalance between positive and negative samples, and introduce another weight parameter (1-ρ t )γ is used to solve the problem of imbalance between difficult and easy samples.

[0061] In one embodiment of the present invention, an energy storage power supply service cabin is designed based on a mobile power supply vehicle, which mainly includes functions such as a multifunctional power interface, an emergency repair unit (emergency lights, electric tools, drones, etc.), a business service unit (payment, business processing, etc.), and an audio and video service unit (interactive display, high-power speakers, adjustable cameras, etc.). At the same time, the target detection results of the multifunctional energy storage power supply service cabin are presented in the monitoring system platform, with good visibility. And the embedded algorithm uses the deep learning framework Pytorch 3.8.10, and the epoch in the experimental parameters is 250.

[0062] We selected abnormal images of multiple energy storage power supply service cabins that appeared within one year of operation as a sample set, totaling 3,150 images. Common images include battery pack deformation, high equipment temperature, battery pack smoking, fire, liquid leakage, etc.

[0063] In order to verify the performance of the improved YOLOv5s network, an ablation experiment was conducted based on the image set. The detection accuracy of different network models is as follows: Figure 4 shown.

[0064] Depend on Figure 4 It can be seen that the detection performance of the improved YOLOv5s network has been greatly improved by adding the AFE module and the Focal-Loss loss function, and the detection accuracy is about 95%, which is about 10% higher than the original YOLOv5s network. The introduction of the Focal-Loss loss function in the YOLOv5s network can reduce the influence of positive and negative samples, and the detection accuracy is improved by about 4%. At the same time, the YOLOv5s network can better focus on the characteristics of abnormal targets and ensure the detection effect by introducing the AFE module. It can be demonstrated that the improvements in each part have improved the performance of the model and verified the effectiveness of the improved YOLOv5s network.

[0065] In the energy storage power supply service cabin, the safe operation of the battery pack is very important. Therefore, the proposed method is used to detect the operating status image of the battery pack. Some detection results at different angles are shown in the figure below. Figure 5 shown.

[0066] Depend on Figure 5 It can be seen that no matter in dim or bright lighting environment, and at different shooting angles, the proposed method can accurately detect the vaporized electrolyte produced by the battery pack, has strong generalization ability, and basically meets the target detection application requirements of the energy storage power supply service cabin.

[0067] In order to verify the superiority of the proposed method, it is compared with the prior art 1 and the prior art 2. The detection accuracy of the three methods for various abnormal conditions in the energy storage power supply service cabin (equipment temperature is too high, battery pack deformation, smoke, fire, liquid leakage) is shown in Table 1.

[0068] Table 1 Detection accuracy of different methods

[0069]

[0070] As can be seen from Table 1, the proposed method uses the improved YOLOv5s network to detect the target of the energy storage power supply service cabin, and the average accuracy reaches 94.52%, and the detection time is 8.73s. This is because the proposed method combines the AFE module and the Focal-Loss loss function, solves the problem of sample imbalance, and improves the detection accuracy, especially the battery pack deformation with fewer samples and unclear features, and its detection accuracy exceeds 90%. Prior art 1 uses the improved YOLOv3 network for target detection. The network model used in this method is single, and the YOLOv3 network is not good at detecting adjacent targets and small targets, so the average detection accuracy is only 87.68%. Prior art 2 uses the GPONet network to realize target detection, and improves the detection effect through multi-level feature fusion. Its average accuracy is 2.87% higher than that of prior art 1. However, this method lacks the consideration of unbalanced samples, resulting in the detection effect not being optimal. Overall, the target detection effect of the proposed method is the most ideal.

[0071] This paper proposes a target detection method for energy storage power supply service cabin based on improved YOLOv5s. In the overall architecture of the designed energy storage power supply service cabin, various sensors are used to collect information inside the cabin, and the improved YOLOv5s network is used for analysis to detect abnormal operation conditions in the cabin and issue early warnings. The experimental results based on the energy storage power supply service cabin operation sample set show that:

[0072] (1) The optimization of the AFE module and Focal Loss function in the improved YOLOv5s network is effective, and its accuracy is improved by about 10% compared with the original YOLOv5s network.

[0073] (2) The target detection result of the energy storage power supply service cabin is ideal, and it can quickly and accurately detect abnormal situations. The average detection accuracy reaches 94.52%, and the detection time is 8.73s.

[0074] Those skilled in the art will appreciate that the embodiments described herein are intended to help readers understand the principles of the present invention, and should be understood that the protection scope of the present invention is not limited to such specific statements and embodiments. Those skilled in the art can make various other specific variations and combinations that do not deviate from the essence of the present invention based on the technical revelations disclosed by the present invention, and these variations and combinations are still within the protection scope of the invention.

Claims

1. A target detection method for energy storage power supply service cabin based on improved YOLOv5s, characterized in that: The following steps are involved: S1: Based on the power supply service requirements, design a multifunctional energy storage power supply service cabin; S2: Adaptive feature extraction module and Focal Loss function are used to optimize the YOLOv5s network; S3: The optimized YOLOv5s network is embedded in the management system of the multifunctional energy storage power supply service cabin to detect abnormal operation conditions in the multifunctional energy storage power supply service cabin and issue early warnings, thereby completing target detection of the energy storage power supply service cabin based on the improved YOLOv5s.

2. The target detection method for energy storage power supply service cabin based on improved YOLOv5s according to claim 1 is characterized in that: The multifunctional energy storage and power supply service cabin in S1 includes an energy storage battery, an inverter, an integrated air conditioner, a battery management unit BMS, a fire warning system, a controller, a remote monitoring platform and an image acquisition device. The energy storage battery is connected to the battery management unit BMS and the inverter respectively. The controller is connected to the energy storage battery, the inverter, the remote monitoring platform, the integrated air conditioner, the fire warning system and the image acquisition device respectively. The energy storage battery and the battery management unit BMS are used to monitor the charging and discharging status of the battery. The inverter is used to receive input from external photovoltaic, mains and traditional oil engines. The controller is used to monitor and coordinate the status of each device and transmit the information to the remote monitoring platform. The image acquisition device is used to obtain image data in the multifunctional energy storage and power supply service cabin.

3. The target detection method for energy storage power supply service cabin based on improved YOLOv5s according to claim 1 is characterized in that: The fire warning system includes a plurality of sensors.

4. The target detection method for energy storage power supply service cabin based on improved YOLOv5s according to claim 1 is characterized in that: The adaptive feature extraction module AFE in S2 is used to extract feature information from the input feature map. The following steps are included: S2-1: Input the input feature map to the C3 module for feature extraction. S2-2: Based on the feature extraction results, the weight parameters ω1 and ω2 are added to the feature map output by C3, and the two weighted feature maps are fused to obtain the fused feature map F; S2-3: Pass the input feature map through the Sigmoid activation function to obtain the weights of different feature information, and multiply the weights with the fused feature map F to achieve weighted screening of the feature map; S2-4: The feature graph after weighted screening is added by introducing short-circuited edges to extract feature information.

5. The target detection method for energy storage power supply service cabin based on improved YOLOv5s according to claim 4 is characterized in that: The weighted screening formula of the feature map is: Among them, ω i is the value after weighted screening, ω i 'And ω' j is the network prediction weight, ξ is a constant, and i and j are feature maps.

6. The energy storage power supply service cabin target detection method based on improved YOLOv5s according to claim 1 is characterized in that: The Focal Loss function in S2 is: FL(r t )=-a t (1-p t ) γ log(ρ t ) Among them, FL(·) is the Focal Loss function, ρ t and α t is the weight and γ is the modulation factor.