Distribution box hidden danger identification method, device and equipment and storage medium
Through deep learning models, the image data of the distribution box is trained and analyzed in real time to identify and alarm potential hidden dangers, solving the problem of traditional manual inspections that are time-consuming and labor-intensive and inability to monitor in real time, and achieving efficient and accurate hidden danger detection in the distribution box and monitor.
Patent Information
- Application Number
- CN202411072074.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-06
- Publication Date
- 2024-11-01
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The traditional distribution box safety inspection method relies on manual vision and regular maintenance, which is time-consuming and labor-intensive, easy to cause omissions and misjudgment. It is impossible to achieve real-time monitoring around the clock and cannot meet the high-standard needs of modern gas production safety.
The deep learning model is used to train based on the original image data inside the distribution box, and the hidden danger characteristics in the image stream are identified in real time, the hidden danger identification results are generated and the alarm is issued, including target detection and classification models, which are used to identify multiple potential hidden dangers.
Real-time and accurate identification of potential hidden dangers in the distribution box is achieved, detection efficiency and accuracy are improved, human factors are reduced, and uninterrupted monitoring is possible 24 hours a day to ensure the safe and stable operation of the electrical system.
Smart Images

Figure CN118887490A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of distribution box hidden danger detection, and in particular to a distribution box hidden danger identification method, device equipment and storage medium. Background Art
[0002] In the gas industry, the importance of safe production is self-evident. As a widely used energy source, the stable operation of gas facilities is directly related to the economic development of society and the safety of people's lives. However, any small mistake in gas facilities may bring unpredictable serious consequences, such as leakage, explosion and fire. Once these accidents occur, they will not only cause huge property losses, but also bring irreparable threats to the lives of workers and surrounding communities.
[0003] In gas facilities, the safety of the distribution box is particularly important as it is the core component of the electrical system. The electrical equipment in the distribution box carries the power supply of the entire facility. Any electrical problem may cause equipment failure, which in turn may cause fire and other safety accidents. Therefore, the safety monitoring and maintenance of the distribution box is a key link to ensure the safe and stable operation of gas facilities. However, traditional distribution box safety inspection methods mostly rely on manual visual inspections and regular maintenance inspections. Although this method can detect some safety hazards to a certain extent, it has many limitations. First, manual inspections are time-consuming and laborious, and require a lot of manpower and material resources. Secondly, the inspection results are often subject to the experience of the inspectors and the physical conditions at the time, and are prone to omissions and misjudgments. Finally, manual inspections cannot achieve all-weather real-time monitoring, and it is difficult to detect and deal with sudden safety hazards in a timely manner.
[0004] As gas facilities expand in size and complexity, traditional distribution box safety inspection methods can no longer meet the high standards of modern gas safety production. Therefore, the gas industry urgently needs to introduce new technical methods to improve the safety monitoring capabilities of distribution boxes and realize automated and real-time hidden danger identification. Summary of the invention
[0005] In view of the above problems, an embodiment of the present invention provides a method, device and storage medium for identifying hidden dangers in a distribution box to solve the existing technical problems.
[0006] In order to solve the above technical problems, the present invention provides the following technical solutions:
[0007] In a first aspect, the present invention provides a method for identifying hidden dangers in a distribution box, the method comprising:
[0008] Model training is performed based on the original image data inside various distribution boxes with different safety characteristics to obtain a trained deep learning model;
[0009] Use the trained deep learning model to identify in real time whether there are hidden dangers in the image stream of the distribution box taken from the industrial site, and obtain the hidden danger identification results of the distribution box;
[0010] The hidden danger identification result of the distribution box is displayed, and the hidden danger identification result of the distribution box includes hidden danger characteristics, position marks of hidden danger characteristics in the corresponding image and corresponding alarm information of hidden danger characteristics.
[0011] In one embodiment, the collecting of raw image data inside distribution boxes with different safety levels for model training to obtain a trained deep learning model includes:
[0012] Collecting raw image data of the interiors of various distribution boxes with different safety characteristics to obtain training image data;
[0013] Annotate the hidden danger feature points related to the safety of the distribution box in the training image data to obtain a training data set;
[0014] The training data set is input into the deep learning model for training to obtain a trained deep learning model.
[0015] In one embodiment, inputting the training data set into the deep learning model for training to obtain a trained deep learning model includes:
[0016] The training data set is divided into training set, validation set and test set according to three ratios;
[0017] The training set is used to make the model learn the mapping relationship from input data to output data. During the learning process, the pre-trained weights on the training data set are used as the initial weights.
[0018] The performance of the model is evaluated using a validation set, and the hyperparameters are adjusted according to the performance evaluation results until the model performance reaches a predetermined effect, thereby obtaining an initial deep learning model; the hyperparameters include a learning rate and the number of iterations, and the learning rate gradually decreases during the training process;
[0019] The test set is used to evaluate the generalization performance of the initial deep learning model, and the initial deep learning model whose generalization performance meets the expected effect is selected as the trained deep learning model.
[0020] In one embodiment, a preprocessing step of the training data set is further included, and the preprocessing step includes:
[0021] All images in the training dataset are scaled to 640×640 pixels;
[0022] The scaled image is enhanced, and the enhancement process includes flipping, rotating and random transformation.
[0023] In one embodiment, the hidden danger feature points include no warning signs, presence of debris, no circuit diagram, no switch signs, no information signs, exposed wires, no cross-wires and messy wiring; the trained deep learning model includes a target detection model and a classification model, the target detection model is used to identify the hidden danger feature points of no warning signs, presence of debris, no circuit diagram, no switch signs, no information signs, exposed wires and no cross-wires, and the classification model is used to classify messy wiring.
[0024] In one embodiment, it further includes:
[0025] Generate a target frame to select the hidden danger feature frame that will generate alarm information;
[0026] Draw the target box in the real-time captured image;
[0027] Annotate the target frame with corresponding alarm information;
[0028] Save the image including the target frame and alarm information to local files and databases.
[0029] In one embodiment, it further includes:
[0030] Regularly save images of distribution boxes taken from industrial sites to the server to obtain new image data;
[0031] The newly added image data is merged with the original image data to obtain iterative image data;
[0032] The deep learning model is updated by performing model training based on iterative image data.
[0033] In a second aspect, the present invention provides a device for identifying hidden dangers in a distribution box, the device comprising:
[0034] Model training module: used to train models based on the original image data inside various distribution boxes with different safety characteristics, and obtain a trained deep learning model;
[0035] Hidden danger identification module: It is used to use the trained deep learning model to identify in real time whether there are hidden dangers in the image stream of the distribution box taken from the industrial site, and obtain the hidden danger identification result of the distribution box;
[0036] Result display module: used to display the hidden danger identification results of the distribution box, which include hidden danger features, position marks of hidden danger features in the corresponding image and corresponding alarm information of hidden danger features.
[0037] In one embodiment, the model training module is specifically used for:
[0038] Collecting raw image data of the interiors of various distribution boxes with different safety characteristics to obtain training image data;
[0039] Annotate the hidden danger feature points related to the safety of the distribution box in the training image data to obtain a training data set;
[0040] The training data set is input into the deep learning model for training to obtain a trained deep learning model.
[0041] In one embodiment, inputting the training data set into the deep learning model for training to obtain a trained deep learning model includes:
[0042] The training data set is divided into training set, validation set and test set according to three ratios;
[0043] The training set is used to make the model learn the mapping relationship from input data to output data. During the learning process, the pre-trained weights on the training data set are used as the initial weights.
[0044] The performance of the model is evaluated using a validation set, and the hyperparameters are adjusted according to the performance evaluation results until the model performance reaches a predetermined effect, thereby obtaining an initial deep learning model; the hyperparameters include a learning rate and the number of iterations, and the learning rate gradually decreases during the training process;
[0045] The test set is used to evaluate the generalization performance of the initial deep learning model, and the initial deep learning model whose generalization performance meets the expected effect is selected as the trained deep learning model.
[0046] In one embodiment, a preprocessing module is further included, and the preprocessing module is used for preprocessing the training data set. The preprocessing steps include:
[0047] All images in the training dataset are scaled to 640×640 pixels;
[0048] The scaled image is enhanced, and the enhancement process includes flipping, rotating and random transformation.
[0049] In one embodiment, the hidden danger feature points include no warning signs, presence of debris, no circuit diagram, no switch signs, no information signs, exposed wires, no cross-wires and messy wiring; the trained deep learning model includes a target detection model and a classification model, the target detection model is used to identify the hidden danger feature points of no warning signs, presence of debris, no circuit diagram, no switch signs, no information signs, exposed wires and no cross-wires, and the classification model is used to classify messy wiring.
[0050] In one embodiment, a data storage module is further included, and the data storage module is used to:
[0051] Generate a target frame to select the hidden danger feature frame that will generate alarm information;
[0052] Draw the target box in the real-time captured image;
[0053] Annotate the target frame with corresponding alarm information;
[0054] Save the image including the target frame and alarm information to local files and databases.
[0055] In one embodiment, an iterative update module is further included, and the iterative update module is used to:
[0056] Regularly save images of distribution boxes taken from industrial sites to the server to obtain new image data;
[0057] The newly added image data is merged with the original image data to obtain iterative image data;
[0058] The deep learning model is updated by performing model training based on iterative image data.
[0059] In a third aspect, the present invention provides an electronic device, comprising:
[0060] processor, memory, and an interface for communicating with a gateway;
[0061] The memory is used to store programs and data, and the processor calls the program stored in the memory to execute a distribution box hidden danger identification method provided in any one of the first aspects.
[0062] In a fourth aspect, the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium includes a program, and when the program is executed by a processor, the program is used to execute a distribution box hidden danger identification method provided in any one of the first aspects.
[0063] The beneficial effects of the present invention are as follows: the present invention realizes real-time and accurate identification of various potential hidden dangers in the distribution box through a deep learning model. The deep learning model can continuously improve its accuracy and speed of identifying hidden dangers through a large amount of original image data training. By real-time monitoring of the inside of the distribution box, the collected image stream is processed and analyzed using a deep learning model to automatically identify the hidden dangers in the distribution box. Once the hidden danger is identified, the system will immediately display the location of the hidden danger and issue an alarm, and notify the management personnel so that timely measures can be taken to deal with it. Compared with traditional manual inspections, the present invention can identify various potential hidden dangers in the distribution box in real time and accurately, greatly improving the efficiency and accuracy of hidden danger detection. Due to the reduction of manual participation, the influence of human factors on the detection results is reduced, thereby reducing the situation of missed detection and false alarms. In addition, the distribution box and related electrical equipment can be monitored 24 hours a day to ensure the safe and stable operation of the electrical system. The present invention can only identify various potential hidden dangers in the distribution box in real time and accurately, greatly improving the accuracy of hidden danger detection in the distribution box, and greatly shortening the detection time. This significant improvement not only reduces the company's operating costs, but also greatly improves the efficiency and accuracy of electrical safety management. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] Figure 1 The figure is a schematic flow chart of a method for identifying hidden dangers of a distribution box provided by an embodiment of the present invention;
[0065] Figure 2 The figure is a schematic structural diagram of a hidden danger identification device for a distribution box provided by an embodiment of the present invention;
[0066] Figure 3 FIG. 1 is a schematic structural diagram of an electronic device in an embodiment of the present invention. DETAILED DESCRIPTION
[0067] In order to make the purpose, technical solution and advantages of the present invention clearer and more understandable, the present invention is further described below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0068] Based on the shortcomings of the prior art, the present invention provides a specific implementation method of a method for identifying hidden dangers in a distribution box, such as Figure 1 As shown, the method specifically comprises the following steps:
[0069] S110: Model training is performed based on the original image data inside various distribution boxes with different safety characteristics to obtain a trained deep learning model.
[0070] Specifically, different safety refers to different safety states, one is a safe state, corresponding to a state without hidden dangers; the other is an unsafe state, corresponding to a state with hidden dangers. A variety of distribution boxes refer to distribution boxes from different manufacturers, different models, and different usage environments. The original image refers to an unprocessed image taken directly by a camera, which contains positive and negative images of various distribution boxes. By selecting a suitable deep learning framework and algorithm to train the deep learning model based on the original image data, the model is given the ability to identify hidden dangers in the distribution box, and a trained deep learning model is obtained.
[0071] S120: Using the trained deep learning model, it is possible to identify in real time whether there are hidden dangers in the image stream of the distribution box taken from the industrial site, and obtain hidden danger identification results of the distribution box.
[0072] Specifically, the trained deep learning model has the ability to identify hidden dangers in distribution boxes, has learned the correspondence between various features of distribution box images and hidden danger manifestations, and has a deep understanding of the complex mapping relationship from input data to output data. When the image stream of the distribution box taken from the industrial site is input into the deep learning model, it automatically extracts key information from the image and judges whether there are hidden dangers in the distribution box based on the learned features and mapping relationships.
[0073] S130: Display the hidden danger identification result of the distribution box, which includes hidden danger features, position marks of the hidden danger features in the corresponding image and corresponding alarm information of the hidden danger features.
[0074] Specifically, the hidden danger identification results of the distribution box are input into the developed graphical user interface for display. The specific hidden danger characteristics are displayed through the user interface and marked with eye-catching location marks so that users can quickly locate the hidden danger and generate corresponding alarm information according to the type of hidden danger characteristics.
[0075] In this embodiment, the real-time and accurate identification of various potential hidden dangers in the distribution box is realized through the deep learning model. The deep learning model can continuously improve its accuracy and speed of identifying hidden dangers through a large amount of original image data training. By real-time monitoring of the inside of the distribution box, the collected image stream is processed and analyzed using the deep learning model to automatically identify the hidden dangers in the distribution box. Once the hidden danger is identified, the system will immediately display the location of the hidden danger and issue an alarm, and notify the management personnel so that timely measures can be taken to deal with it. Compared with traditional manual inspections, the present invention can identify various potential hidden dangers in the distribution box in real time and accurately, greatly improving the efficiency and accuracy of hidden danger detection. Due to the reduction of manual participation, the influence of human factors on the detection results is reduced, thereby reducing the situation of missed detection and false alarms. In addition, the distribution box and related electrical equipment can be monitored 24 hours a day to ensure the safe and stable operation of the electrical system. The present invention can only identify various potential hidden dangers in the distribution box in real time and accurately, greatly improve the accuracy of hidden danger detection in the distribution box, and greatly shorten the detection time. This significant improvement not only reduces the operating costs of the enterprise, but also greatly improves the efficiency and accuracy of electrical safety management.
[0076] In one embodiment of the present invention, collecting original image data of the inside of distribution boxes with different safety levels for model training in S110 to obtain a trained deep learning model specifically includes the following sub-steps:
[0077] First, collect the original image data of the interior of various distribution boxes with different safety characteristics to obtain training image data;
[0078] Then, the hidden danger feature points related to the safety of the distribution box in the training image data are marked to obtain the training data set.
[0079] Specifically, the characteristic points of hidden dangers include no warning signs, presence of debris, no circuit diagrams, no switch signs, no information signs, exposed wires, no cross-wires and messy wiring.
[0080] Finally, the training data set is input into the deep learning model for training to obtain a trained deep learning model.
[0081] More specifically, the method of training a deep learning model using a training dataset is as follows:
[0082] The training data set is divided into training set, validation set and test set according to three ratios;
[0083] The training set is used to make the model learn the mapping relationship from input data to output data. During the learning process, the pre-trained weights on the training data set are used as the initial weights. The model can use the YOLOv8 model.
[0084] The performance of the model is evaluated using the validation set, and the hyperparameters are adjusted according to the performance evaluation results until the model performance reaches the expected effect, thereby obtaining the initial deep learning model; wherein the hyperparameters include the learning rate and the number of iterations, and the learning rate gradually decreases during the training process;
[0085] The generalization performance of the initial deep learning model is evaluated using the test set, and the initial deep learning model whose generalization performance meets the expected effect is selected as the trained deep learning model. The trained deep learning model includes a target detection model and a classification model. The target detection model is used to identify the feature points of no warning signs, debris, no circuit diagrams, no switch signs, no information signs, exposed wires, and no hidden dangers of crossing wires. The classification model is used to classify the messy wiring.
[0086] In this embodiment, by marking various types of hidden danger feature points, the model can identify various types of hidden dangers. Using pre-trained weights as initial weights can significantly speed up the training speed of the model. By using pre-trained weights, the model can find the correct parameter direction faster, thereby accelerating the training process, greatly shortening the model training time, and improving the efficiency of research or application. In addition, since the pre-trained weights are trained on a large amount of data, they already have a certain generalization ability. When these weights are used as initial weights, the model can more easily learn new features, thereby better adapting to new data distributions and improving generalization ability. During the model training process, the learning rate gradually decreases. As the learning rate decreases, the step size updated by the model in each iteration gradually decreases, which helps the model converge more stably in the later stages of training. The loss fluctuations during the training process are usually small, making it easier to converge to the optimal solution and improve the stability of the model. Gradually reducing the learning rate helps the model to better generalize to unseen data in the later stages of training and avoid overfitting. It can achieve better performance in a shorter time, accelerate the training process, and use a strategy of gradually reducing the learning rate to save computing resources and reduce training costs. By using the trained target detection model and classification model, various hidden danger features can be identified and the recognition accuracy can be improved.
[0087] In one embodiment of the present invention, a preprocessing step of the training data set is further included, and the preprocessing step includes:
[0088] All images in the training dataset are scaled to 640×640 pixels;
[0089] The scaled image is enhanced, and the enhancement process includes flipping, rotating and random transformation.
[0090] In this embodiment, all images in the training data set are scaled to unify images of different sizes and resolutions to the same size to facilitate model training and reasoning. Specifically, in this embodiment, all images are scaled to 640×640 pixels. The selection of this size is usually based on the input requirements of the model, the limitations of computing resources, and the characteristics of the image content. Scaling can not only ensure that the model can process images of various sizes, but also improve computing efficiency and reduce the waste of computing resources. In this embodiment, three enhancement methods are used: flipping, rotation, and random transformation. The diversity of the data set is increased by flipping the distribution box image horizontally or vertically. By rotating the distribution box image at a certain angle, the distribution box image under different viewing angles can be simulated. Through rotation enhancement, the model can learn more target features under different postures. By randomly transforming the brightness, contrast, saturation and other attributes of the distribution box image to generate distribution box images with different appearances, it can help the model adapt to various complex lighting and color changes. Through the scaling and enhancement of the distribution box image, the performance and generalization ability of the model can be improved, so that it can better adapt to the recognition of distribution boxes in various complex application scenarios.
[0091] In one embodiment of the present invention, it also includes:
[0092] Generate a target frame to select the hidden danger feature frame that will generate alarm information;
[0093] Draw the target box in the real-time captured image;
[0094] Annotate the target frame with corresponding alarm information;
[0095] Save the image including the target frame and alarm information to local files and databases.
[0096] In this embodiment, the target frame is generated to accurately identify and locate the hidden danger features in the image. Once the hidden danger features of the alarm information are generated, the system will automatically generate the corresponding target frame and accurately select it. Drawing the target frame in the real-time captured image not only helps the operator to intuitively understand the specific location of the hidden danger, but also provides important reference information in the subsequent alarm information processing and storage. The process of drawing the target frame is usually completed by a computer vision library or a special image processing software, which can ensure the accuracy and stability of the target frame. Annotating the target frame with the corresponding alarm information is a key step to ensure that the safety hazards are handled in a timely manner. These alarm messages usually include key information such as the type, time, and location of the hidden dangers of the distribution box, as well as possible disposal suggestions or measures. This information can be displayed in various forms such as text, icons, or voice, so that the operator can quickly understand and respond. Finally, saving the image containing the target frame and the alarm information to a local file and database is to achieve long-term monitoring and retrospective analysis of safety hazards. These images with hidden danger features can be used as important evidence materials for subsequent safety accident investigations and accountability. At the same time, through the analysis of historical data, we can also discover the distribution patterns and changing trends of safety hazards, providing strong data support for future safety monitoring.
[0097] In one embodiment of the present invention, it also includes:
[0098] Regularly save images of distribution boxes taken from industrial sites to the server to obtain new image data;
[0099] The newly added image data is merged with the original image data to obtain iterative image data;
[0100] The deep learning model is updated by performing model training based on iterative image data.
[0101] In this embodiment, the image of the distribution box can be captured from the industrial site at regular intervals and saved to the server, thereby obtaining newly added image data. These newly added image data do not exist in isolation, but will be fused with the existing original image data. This fusion is not just a simple data superposition, but an organic combination of new and old data to form iterative image data. Such iterative image data not only contains more samples, but also retains the characteristics of the original data, providing rich materials for subsequent model training. The deep learning model is trained using iterative image data. Through continuous iteration and optimization, the recognition ability of the model is gradually enhanced, and the abnormal situation in the distribution box can be more accurately identified. This data-driven model training method can continuously adapt to new detection requirements and environmental changes. With the continuous collection of new data and the continuous discovery of new hidden danger types, the model is regularly iteratively trained and updated. This iterative update process not only improves the recognition accuracy of the model for the original target, but also enables the system to cope with more types of hidden dangers. Through such iterative updates, it is possible to always keep up with the times and provide a strong guarantee for the identification of hidden dangers in the distribution box. In short, by regularly capturing images of distribution boxes, fusing old and new data, training deep learning models, and iteratively updating models, we can not only improve the recognition accuracy of the original targets in the actual operating environment, but also effectively respond to new detection requirements and environmental changes.
[0102] Based on the same inventive concept, an embodiment of the present application also provides a distribution box hidden danger identification device, which can be used to implement a distribution box hidden danger identification method described in the above embodiment, as described in the following embodiment. Since the principle of solving the problem by a distribution box hidden danger identification device is similar to that of a distribution box hidden danger identification method, the implementation of the device can refer to the implementation of a distribution box hidden danger identification method, and the repeated parts will not be repeated. As used below, the term "unit" or "module" can be a combination of software and / or hardware that implements predetermined functions. Although the system described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.
[0103] The present invention provides a device for identifying hidden dangers in a distribution box, such as Figure 2 As shown. Figure 2 The device comprises:
[0104] Model training module 210: used to perform model training based on raw image data inside multiple distribution boxes with different safety characteristics to obtain a trained deep learning model;
[0105] Hidden danger identification module 220: used to use the trained deep learning model to identify in real time whether there are hidden dangers in the image stream of the distribution box taken from the industrial site, and obtain the hidden danger identification result of the distribution box;
[0106] Result display module 230: used to display the hidden danger identification result of the distribution box, which includes hidden danger features, position marks of hidden danger features in the corresponding image and corresponding alarm information of the hidden danger features.
[0107] In one embodiment of the present invention, the model training module 210 is specifically used for:
[0108] Collecting raw image data of the interiors of various distribution boxes with different safety characteristics to obtain training image data;
[0109] Annotate the hidden danger feature points related to the safety of the distribution box in the training image data to obtain a training data set;
[0110] The training data set is input into the deep learning model for training to obtain a trained deep learning model.
[0111] In one embodiment of the present invention, inputting the training data set into the deep learning model for training to obtain a trained deep learning model includes:
[0112] The training data set is divided into training set, validation set and test set according to three ratios;
[0113] The training set is used to make the model learn the mapping relationship from input data to output data. During the learning process, the pre-trained weights on the training data set are used as the initial weights.
[0114] The performance of the model is evaluated using a validation set, and the hyperparameters are adjusted according to the performance evaluation results until the model performance reaches a predetermined effect, thereby obtaining an initial deep learning model; the hyperparameters include a learning rate and the number of iterations, and the learning rate gradually decreases during the training process;
[0115] The test set is used to evaluate the generalization performance of the initial deep learning model, and the initial deep learning model whose generalization performance meets the expected effect is selected as the trained deep learning model.
[0116] In one embodiment of the present invention, a preprocessing module is further included, and the preprocessing module is used for preprocessing the training data set. The preprocessing steps include:
[0117] All images in the training dataset are scaled to 640×640 pixels;
[0118] The scaled image is enhanced, and the enhancement process includes flipping, rotating and random transformation.
[0119] In one embodiment of the present invention, the hidden danger feature points include no warning signs, presence of debris, no circuit diagram, no switch signs, no information signs, exposed wires, no cross-wires and messy wiring; the trained deep learning model includes a target detection model and a classification model, the target detection model is used to identify the hidden danger feature points of no warning signs, presence of debris, no circuit diagram, no switch signs, no information signs, exposed wires and no cross-wires, and the classification model is used to classify messy wiring.
[0120] In one embodiment of the present invention, a data storage module is further included, and the data storage module is used to:
[0121] Generate a target frame to select the hidden danger feature frame that will generate alarm information;
[0122] Draw the target box in the real-time captured image;
[0123] Annotate the target frame with corresponding alarm information;
[0124] Save the image including the target frame and alarm information to local files and databases.
[0125] In one embodiment of the present invention, an iterative update module is further included, and the iterative update module is used to:
[0126] Regularly save images of distribution boxes taken from industrial sites to the server to obtain new image data;
[0127] The newly added image data is merged with the original image data to obtain iterative image data;
[0128] The deep learning model is updated by performing model training based on iterative image data.
[0129] The embodiments of the present application also provide a specific implementation of an electronic device that can implement all the steps in the method in the above embodiments, see Figure 3 , the electronic device 300 specifically includes the following contents:
[0130] Processor 310, memory 320, communication unit 330 and bus 340;
[0131] The processor 310 , the memory 320 , and the communication unit 330 communicate with each other via the bus 340 ; the communication unit 330 is used to implement information transmission between server-side devices and terminal devices and other related devices.
[0132] The processor 310 is used to call the computer program in the memory 320. When the processor executes the computer program, all the steps in the method for identifying hidden dangers of a distribution box in the above embodiment are implemented.
[0133] Those skilled in the art should understand that the memory may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), etc. The memory is used to store programs, and the processor executes the programs after receiving the execution instruction. Furthermore, the software programs and modules in the above-mentioned memory may also include an operating system, which may include various software components and / or drivers for managing system tasks (such as memory management, storage device control, power management, etc.), and may communicate with various hardware or software components to provide an operating environment for other software components.
[0134] The processor may be an integrated circuit chip having the ability to process signals. The above-mentioned processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc. The methods, steps, and logic block diagrams disclosed in the embodiments of the present application may be implemented or executed. The general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0135] The present application also provides a computer-readable storage medium, which includes a program. When the program is executed by a processor, it is used to execute a distribution box hidden danger identification method provided by any of the aforementioned method embodiments.
[0136] Those skilled in the art should understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk, etc., various media that can store program codes, and the specific media type is not limited in this application.
[0137] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A method for identifying hidden dangers in distribution boxes. It is characterized in that The method comprises: Model training is performed based on the original image data inside various distribution boxes with different safety characteristics to obtain a trained deep learning model; Use the trained deep learning model to identify in real time whether there are hidden dangers in the image stream of the distribution box taken from the industrial site, and obtain the hidden danger identification results of the distribution box; The hidden danger identification result of the distribution box is displayed, and the hidden danger identification result of the distribution box includes hidden danger characteristics, position marks of hidden danger characteristics in the corresponding image and corresponding alarm information of hidden danger characteristics.
2. A method for identifying hidden dangers of a distribution box as claimed in claim 1, It is characterized in that The collecting of raw image data inside the distribution boxes with different safety levels for model training to obtain a trained deep learning model includes: Collecting raw image data of the interiors of various distribution boxes with different safety characteristics to obtain training image data; Annotate the hidden danger feature points related to the safety of the distribution box in the training image data to obtain a training data set; The training data set is input into the deep learning model for training to obtain a trained deep learning model.
3. A method for identifying hidden dangers of a distribution box as claimed in claim 2, It is characterized in that Inputting the training data set into the deep learning model for training to obtain a trained deep learning model includes: The training data set is divided into training set, validation set and test set according to three ratios; The training set is used to make the model learn the mapping relationship from input data to output data. During the learning process, the pre-trained weights on the training data set are used as the initial weights. The performance of the model is evaluated using a validation set, and the hyperparameters are adjusted according to the performance evaluation results until the model performance reaches a predetermined effect, thereby obtaining an initial deep learning model; the hyperparameters include a learning rate and the number of iterations, and the learning rate gradually decreases during the training process; The test set is used to evaluate the generalization performance of the initial deep learning model, and the initial deep learning model whose generalization performance meets the expected effect is selected as the trained deep learning model.
4. A method for identifying hidden dangers of a distribution box as claimed in claim 3, It is characterized in that The training data set is also preprocessed, and the preprocessing step includes: All images in the training dataset are scaled to 640×640 pixels; The scaled image is enhanced, and the enhancement process includes flipping, rotating and random transformation.
5. A method for identifying hidden dangers of a distribution box as claimed in claim 3, It is characterized in that The hidden danger feature points include no warning signs, presence of debris, no circuit diagram, no switch signs, no information signs, exposed wires, no cross-wires and messy wiring; the trained deep learning model includes a target detection model and a classification model, the target detection model is used to identify the hidden danger feature points of no warning signs, presence of debris, no circuit diagram, no switch signs, no information signs, exposed wires and no cross-wires, and the classification model is used to classify messy wiring.
6. A method for identifying hidden dangers of a distribution box as claimed in claim 1, It is characterized in that Also includes: Generate a target frame to select the hidden danger feature frame that will generate alarm information; Draw the target box in the real-time captured image; Annotate the target frame with corresponding alarm information; Save the image including the target frame and alarm information to local files and databases.
7. A method for identifying hidden dangers of a distribution box as claimed in claim 1, It is characterized in that Also includes: Regularly save images of distribution boxes taken from industrial sites to the server to obtain new image data; The newly added image data is merged with the original image data to obtain iterative image data; The deep learning model is updated by performing model training based on iterative image data.
8. A device for identifying hidden dangers in distribution boxes, It is characterized in that The device comprises: Model training module: used to train models based on the original image data inside various distribution boxes with different safety characteristics, and obtain a trained deep learning model; Hidden danger identification module: It is used to use the trained deep learning model to identify in real time whether there are hidden dangers in the image stream of the distribution box taken from the industrial site, and obtain the hidden danger identification result of the distribution box; Result display module: used to display the hidden danger identification results of the distribution box, which include hidden danger features, position marks of hidden danger features in the corresponding image and corresponding alarm information of hidden danger features.
9. An electronic device, It is characterized in that include: processor, memory, and an interface for communicating with a gateway; The memory is used to store programs and data, and the processor calls the program stored in the memory to execute the method for identifying hidden dangers of a distribution box as described in any one of claims 1 to 7.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium includes a program, and when the program is executed by a processor, it is used to execute a method for identifying hidden dangers in a distribution box as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Hidden danger entity labeling method based on reinforcement learning
CN117350289A
Belt wear state detection method based on improved YOLOv8-OfficientNet
CN117422696A
External damage detection method and system based on monocular distribution network machine patrol data
CN117635589A
Cited By
Distribution box potential safety hazard detection method and system
CN119226715A
Method, device and system for identifying hidden dangers of chemical equipment
CN119851204A
