Equipment oil leakage monitoring method and related equipment based on convolutional neural network
Image screening and detection of real-time video streams through convolutional neural networks solves the problem of low efficiency in transformer oil leak monitoring, enables rapid and intelligent determination of monitoring results, and improves the timely detection of oil leaks.
Patent Information
- Application Number
- CN202110903193.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-06
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2041-08-06
AI Technical Summary
In the existing technology, the efficiency of transformer oil leakage monitoring is low, and oil leakage information cannot be grasped in real time, resulting in delayed response and inability to quickly deal with it.
An equipment oil leakage monitoring method based on convolutional neural networks is adopted to collect image frames through real-time video streams, filter ground and casing images, and use the target detection algorithm Cascade R-CNN and deep convolutional networks (such as YOLOV4-Tiny and MobileNet) to conduct Oil pollution and casing damage detection, automatically determine oil leakage monitoring results.
It realizes the determination of rapid intelligent monitoring results without manual intervention, improves the efficiency of oil leakage monitoring, and can detect oil leakage in time.
Smart Images

Figure CN113591752B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of safety monitoring, and in particular to a method for monitoring equipment oil leakage based on a convolutional neural network and related equipment. Background Art
[0002] There are many electrical appliances involved in the power grid, and the transformer is one of the important safety-related components. The transformer has an oil tank. The treatment of transformer oil leakage has always been the focus of substation maintenance work, and it is also an important technical indicator to measure whether the substation maintenance method is reasonable. In the existing method, substation oil leakage inspection and prevention require personnel to conduct regular inspections. Whether there is an oil leak is often not detected until some time after the incident. Important information cannot be obtained in real time, and there is no historical record. The operating personnel cannot respond quickly according to the on-site conditions, resulting in low efficiency in transformer oil leakage monitoring. Summary of the invention
[0003] The embodiments of the present invention provide a method, a device, a computer device and a storage medium for monitoring oil leakage of equipment based on a convolutional neural network, so as to improve the efficiency of monitoring oil leakage of a transformer.
[0004] In order to solve the above technical problems, the embodiment of the present application provides an equipment oil leakage monitoring method based on a convolutional neural network, comprising:
[0005] Collecting a real-time video stream and extracting an initial image frame from the real-time video stream;
[0006] Performing image screening on the initial image frame to obtain a first image frame and a second image frame, wherein the first image frame includes an image of a preset ground area corresponding to the device, and the second image frame includes an image of a casing;
[0007] Perform ground oil pollution detection on the first image frame based on the target detection algorithm Cascade R-CNN to obtain a first detection result;
[0008] Perform casing damage detection on the second image frame based on a preset deep convolutional network to obtain a second detection result;
[0009] An oil leakage monitoring result is determined based on the first detection result and the second detection result.
[0010] Optionally, extracting an initial image frame from the real-time video stream includes:
[0011] Extracting frame images from the real-time video stream at preset time intervals to obtain a frame image set including a preset number of frame images;
[0012] For each frame image in the frame image set, the similarity detection algorithm is used to calculate the similarity between the frame image and a preset first image and a preset second image, respectively, to obtain a first similarity and a second similarity;
[0013] Based on a preset similarity threshold and the first similarity and the second similarity of each of the frame images, an initial image frame is extracted from the frame images.
[0014] Optionally, the performing ground oil pollution detection on the first image frame based on the target detection algorithm Cascade R-CNN to obtain a first detection result includes:
[0015] Using a high-resolution network HRNet to extract a high-resolution feature map from the first image frame to obtain estimated key points;
[0016] The estimated key points are input into the target detection algorithm Cascade R-CNN to perform ground oil pollution detection to obtain the first detection result.
[0017] Optionally, the extracting a high-resolution feature map from the first image frame using a high-resolution network HRNet to obtain estimated key points includes:
[0018] Using multiple resolution subnets in parallel to perform feature extraction on the first image frame using HRNet;
[0019] The features extracted from each subnet are fused at multiple scales to obtain the estimated key points.
[0020] Optionally, the preset deep convolutional network includes a YOLOV4-Tiny model and a MobileNet model.
[0021] In order to solve the above technical problems, the embodiment of the present application further provides an equipment oil leakage monitoring device based on a convolutional neural network, comprising:
[0022] An image acquisition module, used for acquiring a real-time video stream and extracting an initial image frame from the real-time video stream;
[0023] An image screening module, used to screen the initial image frame to obtain a first image frame and a second image frame, wherein the first image frame includes an image of a preset ground area corresponding to the device, and the second image frame includes an image of a casing;
[0024] A first detection module, configured to perform ground oil pollution detection on the first image frame based on a target detection algorithm Cascade R-CNN to obtain a first detection result;
[0025] A second detection module, configured to perform casing damage detection on the second image frame based on a preset deep convolutional network to obtain a second detection result;
[0026] The result determination module is used to determine the oil leakage monitoring result based on the first detection result and the second detection result.
[0027] Optionally, the image acquisition module includes:
[0028] A frame image set extraction unit, used to extract frame images from the real-time video stream at preset time intervals to obtain a frame image set containing a preset number of frame images;
[0029] A similarity calculation unit, configured to calculate, for each frame image in the frame image set, the similarity between the frame image and a preset first image and a preset second image by using a similarity detection algorithm, to obtain a first similarity and a second similarity;
[0030] The initial image frame extraction unit is used to extract an initial image frame from the set of frame images based on a preset similarity threshold and the first similarity and the second similarity of each of the frame images.
[0031] Optionally, the first detection module includes:
[0032] A key point extraction unit, configured to extract a high-resolution feature map from the first image frame using a high-resolution network HRNet to obtain estimated key points;
[0033] The oil pollution detection unit is used to input the estimated key points into the target detection algorithm Cascade R-CNN to perform ground oil pollution detection to obtain the first detection result.
[0034] Optionally, the key point extraction unit includes:
[0035] A feature extraction subunit, configured to extract features of the first image frame by using multiple resolution subnets in parallel to perform HRNet;
[0036] The feature fusion subunit is used to perform multi-scale fusion on the features extracted by each subnet to obtain the estimated key points.
[0037] In order to solve the above technical problems, an embodiment of the present application also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned convolutional neural network-based equipment oil leakage monitoring method when executing the computer program.
[0038] In order to solve the above technical problems, an embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the steps of the above-mentioned equipment oil leakage monitoring method based on convolutional neural network.
[0039] The equipment oil leakage monitoring method, device, computer equipment and storage medium based on convolutional neural network provided by the embodiment of the present invention collect real-time video streams, extract initial image frames from the real-time video streams, perform image screening on the initial image frames to obtain first image frames and second image frames, wherein the first image frame includes a ground preset area image corresponding to the equipment, and the second image frame includes a casing image, performs ground oil pollution detection on the first image frame based on the target detection algorithm Cascade R-CNN to obtain a first detection result, performs casing damage detection on the second image frame based on a preset deep convolutional network to obtain a second detection result, and the preset deep convolutional network includes a YOLOV4-Tiny model and a MobileNet model. Based on the first detection result and the second detection result, the oil leakage monitoring result is determined, so as to realize fast and intelligent determination of the oil leakage monitoring result without manual intervention, which is conducive to improving the efficiency of oil leakage monitoring. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0041] Figure 1 is an exemplary system architecture diagram to which the present application may be applied;
[0042] Figure 2 is a flow chart of an embodiment of a method for monitoring oil leakage of equipment based on a convolutional neural network of the present application;
[0043] Figure 3 is a structural schematic diagram of an embodiment of an equipment oil leakage monitoring device based on a convolutional neural network according to the present application;
[0044] Figure 4 It is a structural diagram of an embodiment of a computer device according to the present application. DETAILED DESCRIPTION
[0045] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of the present application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit the present application; the terms "including" and "having" and any variations thereof in the specification and claims of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.
[0046] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0047] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are 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.
[0048] See also Figure 1 ,like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0049] Users can use terminal devices 101 , 102 , 103 to interact with server 105 via network 104 to receive or send messages, etc.
[0050] The terminal devices 101, 102, and 103 may be various electronic devices capable of acquiring real-time video streams / monitoring images, including but not limited to cameras, monitoring video servers, and the like.
[0051] The server 105 may be a server that provides various services, such as a background server that provides support for the video streams / surveillance images collected by the terminal devices 101 , 102 , and 103 .
[0052] It should be noted that the equipment oil leakage monitoring method based on convolutional neural network provided in the embodiment of the present application is executed by a server, and accordingly, the equipment oil leakage monitoring device based on convolutional neural network is arranged in the server.
[0053] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. According to the implementation requirements, there may be any number of terminal devices, networks and servers. The terminal devices 101, 102, 103 in the embodiment of the present application may specifically correspond to application systems in actual production.
[0054] See also Figure 2 , Figure 2 A method for monitoring oil leakage of equipment based on a convolutional neural network provided by an embodiment of the present invention is shown. The method is applied in Figure 1 The server in is used as an example to illustrate the details as follows:
[0055] S201: Acquire a real-time video stream and extract an initial image frame from the real-time video stream.
[0056] Specifically, according to actual needs, real-time video streams are collected, and initial image frames are extracted from the real-time video streams.
[0057] In this embodiment, considering that the occurrence of oil leakage defects requires the accumulation of waiting time, there is no need for real-time monitoring. It is only necessary to obtain the video stream of the camera at intervals, for example, to obtain and collect the real-time video stream once every 2 hours.
[0058] Extracting the initial image frame from the real-time video stream may specifically be performed by converting the real-time video stream into a frame image, and then selecting the frame image.
[0059] S202: Perform image screening on the initial image frame to obtain a first image frame and a second image frame, wherein the first image frame includes an image of a preset ground area corresponding to the device, and the second image frame includes an image of a casing.
[0060] Specifically, this embodiment takes into account that oil leakage from the equipment will form oil stains on the ground, and thus uses the image of a preset ground area corresponding to the equipment as the first image; when the casing is worn, it will cause oil leakage, and the casing image is used as the second image.
[0061] S203: Perform ground oil pollution detection on the first image frame based on the target detection algorithm Cascade R-CNN to obtain a first detection result.
[0062] Specifically, oil spills will produce certain shadows on the ground, but in rainy days and under poor lighting conditions, such shadow features will not be obvious, and ordinary target detection algorithms will find it difficult to distinguish. To address this problem, this embodiment uses a high-resolution network HRNet and a target detection algorithm Cascade R-CNN to detect ground oil pollution in the first image frame, and obtains a first detection result.
[0063] Among them, the target detection algorithm Cascade R-CNN is a pre-trained network model.
[0064] Among them, the first test result is that there is no oil stain on the ground and there is oil stain on the ground.
[0065] Preferably, the number of the extracted first image frames is 5-10.
[0066] Object detection network (also known as object detection algorithm) Cascade R-CNN is an advanced network of Faster-RCNN. The Cascade R-CNN algorithm cascades multiple detection networks to continuously optimize the prediction results. Unlike ordinary cascades, its multiple detection networks are trained based on positive and negative samples determined by different IOU thresholds.
[0067] Cascade-R-CNN is similar to the iterative bbox structure and Integral Loss. The biggest difference from the Faster-RCNN model is that the detection model in Cascade-R-CNN is trained based on the output of the previous stage, instead of the three detection models in Faster-RCNN being trained based on the initial data. The difference between Cascade-R-CNN and Integral Loss is also quite obvious. The input prediction box of each stage in Cascade R-CNN is the output of the prediction box of the previous stage, while Integral Loss only trains the detection model based on different IOU thresholds.
[0068] Among them, the full name of IoU is Intersection over Union, which is a very important function for calculating the mAP performance of the target detection algorithm. IoU calculates the ratio of the intersection and union of the "predicted bounding box" and the "real bounding box".
[0069] S204: Perform casing damage detection on the second image frame based on a preset deep convolutional network to obtain a second detection result.
[0070] Optionally, the preset deep convolutional network includes a YOLOV4-Tiny model and a MobileNet model.
[0071] Among them, Convolutional Neural Networks (CNN) is a type of feedforward neural network that includes convolution calculations and has a deep structure. It is one of the representative algorithms of deep learning. Convolutional neural networks have representation learning capabilities and can perform shift-invariant classification on input information according to their hierarchical structure. Therefore, they are also called "Shift-Invariant Artificial Neural Networks (SIANN)".
[0072] Among them, YOLOV4-Tiny is a type of YOLO (You Only Look Once: Unified, Real-Time Object Detection), which is a convolutional neural network that can predict multiple Box locations and categories at one time, and can achieve end-to-end target detection and recognition.
[0073] Among them, the basic unit of MobileNet is the depthwise separable convolution. The depthwise separable convolution is actually a factorized convolution operation, which can be decomposed into two smaller operations: depthwise convolution and pointwise convolution. Depthwise convolution is different from standard convolution. For standard convolution, the convolution kernel is used on all input channels, while depthwise convolution uses different convolution kernels for each input channel, that is, one convolution kernel corresponds to one input channel. Therefore, depthwise convolution is a depth-level operation. For depthwise separable convolution, it first uses depthwise convolution to convolve different input channels separately, and then uses pointwise convolution to combine the above outputs. In fact, the overall effect is similar to that of a standard convolution, but it will greatly reduce the amount of calculation and model parameters, and improve recognition efficiency.
[0074] The second detection result includes that the casing is not damaged and that the casing is damaged.
[0075] S205: Determine the oil leakage monitoring result based on the first detection result and the second detection result.
[0076] Specifically, when the first detection result is that there is no oil pollution on the ground and the second detection result is that the casing is not damaged, the oil leakage monitoring result is determined to be that there is no oil leakage scenario; otherwise, the oil leakage monitoring result is determined to be that there is an oil leakage scenario.
[0077] In this embodiment, by collecting real-time video streams and extracting initial image frames from the real-time video streams, the initial image frames are screened to obtain a first image frame and a second image frame, wherein the first image frame includes an image of a preset ground area corresponding to the equipment, and the second image frame includes an image of a casing. Based on the target detection algorithm Cascade R-CNN, ground oil pollution detection is performed on the first image frame to obtain a first detection result. Based on a preset deep convolutional network, casing damage detection is performed on the second image frame to obtain a second detection result. The preset deep convolutional network includes a YOLOV4-Tiny model and a MobileNet model. Based on the first detection result and the second detection result, the oil leakage monitoring result is determined, thereby realizing fast and intelligent determination of the oil leakage monitoring result without manual intervention, which is conducive to improving the efficiency of oil leakage monitoring.
[0078] In a specific optional implementation, in step S201, extracting the initial image frame from the real-time video stream includes:
[0079] Extracting frame images from the real-time video stream at preset time intervals to obtain a frame image set including a preset number of frame images;
[0080] For each frame image in the frame image set, a similarity detection algorithm is used to calculate the similarity between the frame image and a preset first image and a preset second image, respectively, to obtain a first similarity and a second similarity;
[0081] Based on a preset similarity threshold and the first similarity and the second similarity of each frame image, an initial image frame is extracted from the frame image set.
[0082] Specifically, the server extracts video frames from the received real-time video stream at preset time intervals to obtain a frame image set including multiple frame images.
[0083] For example, in a specific implementation, the preset time interval is the time corresponding to 8 consecutive video frames. After receiving the real-time video stream sent by the client, the server will obtain the real-time video stream containing 128 consecutive video frames, take 8 video frames as a video frame set, and obtain the last video frame image in each video frame set, so as to obtain a total of 128 / 8=16 video frame images, and take these 16 frame images as a frame image set.
[0084] It is easy to understand that the method of this embodiment is used to extract the frame image set, which reduces the number of frame images and improves the efficiency of subsequent data processing, which is conducive to improving security monitoring efficiency.
[0085] The preset first image is an image of a preset ground area corresponding to the device taken at a certain moment, and the preset second image is an image of the casing taken at a certain moment.
[0086] The similarity calculation may adopt an image similarity calculation algorithm, including but not limited to: a difference hash algorithm (dHash algorithm), block comparison, a perceptual hash algorithm (pHash algorithm, or mean hash algorithm), etc.
[0087] In this embodiment, frame images are extracted from the real-time video stream at preset time intervals to obtain a frame image set containing a preset number of frame images, thereby reducing the number of frame images, which is beneficial to improving the efficiency of subsequent data processing. At the same time, an image similarity calculation method is used to obtain images close to the preset first image and the preset second image for detection, thereby avoiding interference from other irrelevant images and improving detection efficiency.
[0088] In a specific optional implementation, in step S203, ground oil pollution detection is performed on the first image frame based on the target detection algorithm Cascade R-CNN, and the first detection result obtained includes:
[0089] A high-resolution network HRNet is used to extract high-resolution feature maps from the first image frame to obtain estimated key points;
[0090] The estimated key points are input into the target detection algorithm Cascade R-CNN to perform ground oil pollution detection and obtain the first detection result.
[0091] Object detection network (also known as object detection algorithm) Cascade R-CNN is an advanced network of Faster-RCNN. The Cascade R-CNN algorithm cascades multiple detection networks to continuously optimize the prediction results. Unlike ordinary cascades, its multiple detection networks are trained based on positive and negative samples determined by different IOU thresholds.
[0092] Cascade-R-CNN is similar to the iterative bbox structure and Integral Loss. The biggest difference from the Faster-RCNN model is that the detection model in Cascade-R-CNN is trained based on the output of the previous stage, instead of the three detection models in Faster-RCNN being trained based on the initial data. The difference between Cascade-R-CNN and Integral Loss is also quite obvious. The input prediction box of each stage in Cascade R-CNN is the output of the prediction box of the previous stage, while Integral Loss only trains the detection model based on different IOU thresholds.
[0093] Among them, the full name of IoU is Intersection over Union, which is a very important function for calculating the mAP performance of the target detection algorithm. IoU calculates the ratio of the intersection and union of the "predicted bounding box" and the "real bounding box".
[0094] Optionally, this embodiment prunes Cascade R-CNN to improve the processing speed of the model.
[0095] In a specific optional implementation, a high-resolution network HRNet is used to extract a high-resolution feature map from the first image frame to obtain estimated key points, including:
[0096] Multiple resolution sub-networks are used in parallel to perform feature extraction on the first image frame using HRNet;
[0097] The features extracted from each subnet are fused at multiple scales to obtain estimated key points.
[0098] Specifically, the high-resolution network (HRNet) can maintain the ability of high-resolution expression throughout the training and detection process. This embodiment starts with a high-resolution subnet as the first stage, gradually adding high resolution to low-resolution subnets (gradually adding high resolution to low-resolution subnets), forming more stages, and adding multi-resolution subnets in parallel. Throughout the process, multi-scale repeated fusion is performed by repeatedly exchanging information on parallel multi-resolution subnets, and key points are estimated through the high-resolution representation of the network output.
[0099] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
[0100] Figure 3FIG. 1 is a block diagram showing a device for monitoring oil leakage based on a convolutional neural network, which corresponds to the device oil leakage monitoring method based on a convolutional neural network in the above embodiment. Figure 3 As shown, the equipment oil leakage monitoring device based on convolutional neural network includes an image acquisition module 31, an image screening module 32, a first detection module 33, a second detection module 34 and a result determination module 35. The detailed description of each functional module is as follows:
[0101] The image acquisition module 31 is used to acquire the real-time video stream and extract the initial image frame from the real-time video stream;
[0102] An image screening module 32 is used to screen the initial image frame to obtain a first image frame and a second image frame, wherein the first image frame includes an image of a preset ground area corresponding to the device, and the second image frame includes an image of a casing;
[0103] A first detection module 33, configured to perform ground oil pollution detection on the first image frame based on a target detection algorithm Cascade R-CNN to obtain a first detection result;
[0104] A second detection module 34, configured to perform casing damage detection on the second image frame based on a preset deep convolutional network to obtain a second detection result;
[0105] The result determination module 35 is used to determine the oil leakage monitoring result based on the first detection result and the second detection result.
[0106] Optionally, the image acquisition module 31 includes:
[0107] A frame image set extraction unit is used to extract frame images from the real-time video stream at a preset time interval to obtain a frame image set containing a preset number of frame images;
[0108] A similarity calculation unit is used to calculate the similarity between each frame image in the frame image set and a preset first image and a preset second image by using a similarity detection algorithm to obtain a first similarity and a second similarity;
[0109] The initial image frame extraction unit is used to extract the initial image frame from the frame image set based on a preset similarity threshold and the first similarity and the second similarity of each frame image.
[0110] Optionally, the first detection module 33 includes:
[0111] A key point extraction unit, used to extract a high-resolution feature map from the first image frame using a high-resolution network HRNet to obtain estimated key points;
[0112] The oil pollution detection unit is used to input the estimated key points into the target detection algorithm Cascade R-CNN to perform ground oil pollution detection and obtain a first detection result.
[0113] Optionally, the key point extraction unit includes:
[0114] A feature extraction subunit, used for extracting features of the first image frame by using multiple resolution subnetworks in parallel to perform HRNet;
[0115] The feature fusion subunit is used to perform multi-scale fusion of the features extracted by each subnet to obtain estimated key points.
[0116] For the specific definition of the equipment oil leakage monitoring device based on convolutional neural network, please refer to the definition of the equipment oil leakage monitoring method based on convolutional neural network mentioned above, which will not be repeated here. Each module in the above-mentioned equipment oil leakage monitoring device based on convolutional neural network can be implemented in whole or in part by software, hardware and their combination. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0117] To solve the above technical problems, the present application also provides a computer device. Figure 4 , Figure 4 This is a basic structural block diagram of the computer device in this embodiment.
[0118] The computer device 4 includes a memory 41, a processor 42, and a network interface 43 that are interconnected through a system bus. It should be noted that the figure only shows a computer device 4 with components connected to the memory 41, the processor 42, and the network interface 43, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable gate arrays (Field-Programmable Gate Array, FPGA), digital processors (Digital Signal Processor, DSP), embedded devices, etc.
[0119] The computer device may be a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may interact with the user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device.
[0120] The memory 41 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or D interface display memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 41 can be an internal storage unit of the computer device 4, such as a hard disk or memory of the computer device 4. In other embodiments, the memory 41 can also be an external storage device of the computer device 4, such as a plug-in hard disk equipped on the computer device 4, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Of course, the memory 41 can also include both the internal storage unit of the computer device 4 and its external storage device. In this embodiment, the memory 41 is generally used to store the operating system and various application software installed on the computer device 4, such as the program code for controlling electronic files, etc. In addition, the memory 41 can also be used to temporarily store various types of data that have been output or are to be output.
[0121] The processor 42 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 42 is generally used to control the overall operation of the computer device 4. In this embodiment, the processor 42 is used to run the program code stored in the memory 41 or process data, such as running the program code for controlling the electronic file.
[0122] The network interface 43 may include a wireless network interface or a wired network interface. The network interface 43 is generally used to establish a communication connection between the computer device 4 and other electronic devices.
[0123] The present application also provides another embodiment, namely, providing a computer-readable storage medium, wherein the computer-readable storage medium stores an interface display program, and the interface display program can be executed by at least one processor to enable the at least one processor to perform the steps of the above-mentioned convolutional neural network-based equipment oil leakage monitoring method.
[0124] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0125] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0126] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to perform equivalent replacement of some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is similarly within the scope of patent protection of this application.
Claims
1. A method for monitoring equipment oil leakage based on convolutional neural network, characterized in that: The equipment oil leakage monitoring method based on convolutional neural network includes: Collecting a real-time video stream and extracting an initial image frame from the real-time video stream; Performing image screening on the initial image frame to obtain a first image frame and a second image frame, wherein the first image frame includes an image of a preset ground area corresponding to the device, and the second image frame includes an image of a casing; Perform ground oil pollution detection on the first image frame based on the target detection algorithm Cascade R-CNN to obtain a first detection result; Perform casing damage detection on the second image frame based on a preset deep convolutional network to obtain a second detection result; An oil leakage monitoring result is determined based on the first detection result and the second detection result.
2. The equipment oil leakage monitoring method based on convolutional neural network according to claim 1, characterized in that: The extracting of the initial image frame from the real-time video stream comprises: Extracting frame images from the real-time video stream at preset time intervals to obtain a frame image set including a preset number of frame images; For each frame image in the frame image set, using a similarity detection algorithm, respectively calculating the similarity between the frame image and a preset first image and a preset second image, to obtain a first similarity and a second similarity; Based on a preset similarity threshold and the first similarity and the second similarity of each of the frame images, an initial image frame is extracted from the frame images.
3. The equipment oil leakage monitoring method based on convolutional neural network according to claim 1, characterized in that: The first detection result obtained by performing ground oil pollution detection on the first image frame based on the target detection algorithm Cascade R-CNN includes: Using a high-resolution network HRNet to extract a high-resolution feature map from the first image frame to obtain estimated key points; The estimated key points are input into the target detection algorithm Cascade R-CNN to perform ground oil pollution detection to obtain the first detection result.
4. The equipment oil leakage monitoring method based on convolutional neural network as claimed in claim 3 is characterized in that: The step of extracting a high-resolution feature map from the first image frame using a high-resolution network HRNet to obtain estimated key points includes: Using multiple resolution sub-networks in parallel, and extracting features from the first image frame through each parallel sub-network; The features extracted from each subnet are fused at multiple scales to obtain the estimated key points.
5. The equipment oil leakage monitoring method based on convolutional neural network according to any one of claims 1 to 4, wherein: The preset deep convolutional network includes a YOLOV4-Tiny model and a MobileNet model.
6. An equipment oil leakage monitoring device based on convolutional neural network, characterized in that: The equipment oil leakage monitoring device based on convolutional neural network includes: An image acquisition module, used for acquiring a real-time video stream and extracting an initial image frame from the real-time video stream; An image screening module, used to screen the initial image frame to obtain a first image frame and a second image frame, wherein the first image frame includes an image of a preset ground area corresponding to the device, and the second image frame includes an image of a casing; A first detection module, configured to perform ground oil pollution detection on the first image frame based on a target detection algorithm Cascade R-CNN to obtain a first detection result; A second detection module, configured to perform casing damage detection on the second image frame based on a preset deep convolutional network to obtain a second detection result; The result determination module is used to determine the oil leakage monitoring result based on the first detection result and the second detection result.
7. The equipment oil leakage monitoring device based on convolutional neural network according to claim 6, characterized in that: The image acquisition module comprises: A frame image set extraction unit, used to extract frame images from the real-time video stream at preset time intervals to obtain a frame image set containing a preset number of frame images; A similarity calculation unit is used to use a similarity detection algorithm to calculate the similarity between each frame image in the frame image set and a preset first image and a preset second image, so as to obtain a first similarity and a second similarity; The initial image frame extraction unit is used to extract an initial image frame from the set of frame images based on a preset similarity threshold and the first similarity and the second similarity of each of the frame images.
8. The equipment oil leakage monitoring device based on convolutional neural network according to claim 6, characterized in that: The first detection module comprises: A key point extraction unit, configured to extract a high-resolution feature map from the first image frame using a high-resolution network HRNet to obtain estimated key points; The oil pollution detection unit is used to input the estimated key points into the target detection algorithm Cascade R-CNN to perform ground oil pollution detection to obtain the first detection result.
9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the equipment oil leakage monitoring method based on convolutional neural network as described in any one of claims 1 to 5 is implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the equipment oil leakage monitoring method based on a convolutional neural network as described in any one of claims 1 to 5 is implemented.
