A photovoltaic area fire video detection method based on deep learning and related device
By constructing a dual-stream feature extraction network and combining a deep learning method with prior information from photovoltaic areas, the problems of high false alarm rate and high false alarm rate in photovoltaic fire detection were solved, achieving efficient and accurate fire detection and alarm in photovoltaic areas.
Patent Information
- Application Number
- CN202611536158.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-30
- Publication Date
- 2026-11-20
AI Technical Summary
Existing technologies for detecting fires in photovoltaic areas suffer from high false alarm rates, high false negative rates, and poor environmental adaptability. The lack of universally recognized benchmark datasets and evaluation standards for fire video detection makes model training difficult and hinders accurate judgment in photovoltaic scenarios.
A deep learning-based approach is used to construct a dual-stream feature extraction network, including spatial and temporal branches. Fire detection is performed by combining prior information of the photovoltaic area scene. Static and dynamic features of flames and smoke are extracted through cross-modal fusion features to generate a spatiotemporal fusion feature map. Fire alarm is then performed by combining the photovoltaic module layout structure and electrical equipment location information.
It significantly improves the accuracy and real-time performance of fire detection in photovoltaic areas, reduces the false alarm rate, enhances fire detection capabilities in complex environments, and provides timely and accurate fire alarm support.
Smart Images

Figure CN123142127A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of fire safety monitoring technology for photovoltaic power plants, and relates to a video detection method and related device for fires in photovoltaic areas based on deep learning. Background Technology
[0002] Fire detection plays a crucial role in fire prevention and control systems. Timely and accurate detection of a fire buys valuable time for evacuation and firefighting, effectively reducing fire-related losses. Traditional fire detection methods, such as smoke detectors and temperature sensors, while improving fire prevention and control capabilities to some extent, suffer from problems such as response lag and high false alarm rates. For example, smoke detectors may be affected by environmental factors; well-ventilated areas may dilute the smoke, causing the detector to fail to respond promptly. Similarly, heat detectors may not issue an alarm in the early stages of a fire when the temperature has not yet risen significantly.
[0003] Vision-based fire detection algorithms have emerged, utilizing computer vision technology to analyze features such as flames and smoke in surveillance video images to achieve real-time fire monitoring and early warning. This method boasts advantages such as fast response time, wide monitoring range, and high sensitivity, effectively compensating for the shortcomings of traditional fire detection methods. For example, in large spaces like industrial plants and shopping malls, vision-based fire detection algorithms can quickly identify fire signs and issue timely alarms, providing ample time for fire suppression. It can also be integrated with other fire-fighting equipment to achieve automated fire prevention and control, improving the efficiency and accuracy of firefighting efforts. In-depth research into vision-based fire detection algorithms is of significant practical importance for improving fire prevention and control levels and protecting people's lives and property.
[0004] However, photovoltaic (PV) areas are typically located in open fields, facing extreme weather conditions such as rain, snow, fog, and dust storms, intense and variable sunlight such as direct sunlight, shadows, and glare from PV panels, as well as seasonal vegetation changes. These factors severely impact video image quality, making feature extraction difficult with traditional visual algorithms and prone to false alarms, such as misidentifying cloud shadows or water reflections as flames, or resulting in missed detections. Furthermore, video analytics equipment deployed at PV sites typically requires long-term stable operation in harsh environments, with strict limitations on power consumption, computing power, storage, and cost. The key to project success lies in how to lightweight adapt advanced visual algorithms to meet the low-power, high-efficiency deployment requirements at the edge while maintaining accuracy. In addition, algorithms that perform well on general datasets in laboratory environments may experience significant performance degradation in specific PV scenarios. Currently, there is a lack of universally accepted benchmark datasets and evaluation standards for fire video detection in PV scenarios, making objective horizontal comparisons and practical performance verification between different algorithms difficult. Authentic, precisely labeled video samples of fires in photovoltaic areas are extremely scarce, and the positive fire samples are highly imbalanced with the massive number of normal negative samples. This makes model training difficult, prone to overfitting, and unable to learn the essential characteristics of fires.
[0005] In summary, there is an urgent need for a deep learning-based video detection method and system for photovoltaic fires that can adapt to complex photovoltaic areas, balance detection accuracy and real-time performance, and make accurate judgments by combining prior information about the photovoltaic area scenario. This would address the problems of high false alarm rate, high false negative rate, and poor environmental adaptability in existing technologies. Summary of the Invention
[0006] The purpose of this invention is to provide a video detection method and related device for photovoltaic area fires based on deep learning, so as to solve the technical problems of high false alarm rate, high false alarm rate and poor environmental adaptability in the existing technology for photovoltaic area fire detection.
[0007] To achieve the above objectives, the present invention employs the following technical solution: In a first aspect, the present invention provides a video detection method for photovoltaic area fires based on deep learning, comprising the following steps: Acquire the monitoring video stream of the photovoltaic area, and perform frame extraction and preprocessing on the monitoring video stream to obtain the image sequence to be detected; A dual-stream feature extraction network is constructed, which includes a spatial stream branch and a temporal stream branch. The spatial stream branch is used to extract static appearance features of flames and smoke from a single frame image of the image sequence to be detected, and the temporal stream branch is used to extract flame flicker frequency and smoke diffusion dynamic features from multiple consecutive frames of the image sequence to be detected. The static appearance features and the dynamic features are fused across modes to generate a spatiotemporal fusion feature map; Based on the spatiotemporal fusion feature map, region proposals are generated to obtain candidate fire regions. Boundary box regression and category classification are then performed on the candidate fire regions to output flame regions, smoke regions and their corresponding confidence scores. Based on the spatial relationship between the flame area and the smoke area and the confidence level, a fire is determined by combining the prior information of the photovoltaic area scenario. The prior information of the scenario includes the photovoltaic module layout structure information and the location information of electrical equipment. When the fire conditions are met, a fire alarm signal is generated and the fire area location information is output.
[0008] Furthermore, the preprocessing steps include: performing denoising, histogram equalization, and size normalization on the extracted frame images, and assembling the normalized frame images into the image sequence to be detected in chronological order.
[0009] Furthermore, the spatial flow branch of the dual-flow feature extraction network uses a lightweight convolutional neural network as the backbone network, which includes depthwise separable convolutional layers and inverted residual structures, while the temporal flow branch is constructed using a three-dimensional convolutional neural network or a temporal displacement module.
[0010] Furthermore, the cross-modal fusion employs an attention mechanism, specifically including: calculating the channel attention weights and spatial attention weights of the static appearance features and the dynamic features respectively, and performing weighted fusion of the static appearance features and the dynamic features based on the attention weights to generate the spatiotemporal fusion feature map.
[0011] Furthermore, the region proposal generation step uses a region proposal network, which generates multiple anchor boxes of different scales and aspect ratios at each spatial location of the spatiotemporal fusion feature map, and filters overlapping candidate fire regions through nonmaximum suppression.
[0012] Furthermore, the fire determination step specifically includes: calculating the spatial distance between the flame area and the smoke area; when the spatial distance is less than a preset threshold and the confidence scores of both the flame area and the smoke area are greater than their respective confidence scores thresholds, a fire is determined to exist; when only the confidence score of the smoke area is greater than its threshold while the confidence score of the flame area is less than its threshold, a fire hazard is determined to exist and an early warning signal is generated.
[0013] Furthermore, the prior information of the scenario also includes geographical elevation data and wind direction data of the photovoltaic area. The fire determination step further includes: determining the positional relationship between the fire area and the arrangement of the photovoltaic modules based on the geographical elevation data, predicting the fire spread direction based on the wind direction data, and generating a graded alarm signal based on the positional relationship and the spread direction.
[0014] Secondly, the present invention provides a deep learning-based video detection system for photovoltaic area fires, comprising: The video data processing module is used to acquire the monitoring video stream of the photovoltaic area, extract and preprocess the monitoring video stream to obtain the image sequence to be detected; The feature extraction module is used to construct a dual-stream feature extraction network, which includes a spatial stream branch and a temporal stream branch. The spatial stream branch is used to extract static appearance features of flames and smoke from a single frame image of the image sequence to be detected, and the temporal stream branch is used to extract flame flicker frequency and smoke diffusion dynamic features from multiple consecutive frames of the image sequence to be detected. The feature fusion module is used to perform cross-modal fusion of the static appearance features and the dynamic features to generate a spatiotemporal fusion feature map. The fire area detection module is used to generate region proposals based on the spatiotemporal fusion feature map, obtain candidate fire areas, perform bounding box regression and category classification on the candidate fire areas, and output flame areas, smoke areas and their corresponding confidence scores. The fire detection and alarm module is used to determine a fire based on the spatial relationship between the flame area and the smoke area and the confidence level, combined with the prior information of the photovoltaic area scene. The prior information of the scene includes the photovoltaic module layout structure information and the electrical equipment location information. When the fire conditions are met, a fire alarm signal is generated and the fire area location information is output.
[0015] Thirdly, the present invention 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 executes the computer program to implement the steps of the deep learning-based photovoltaic area fire video detection method described above.
[0016] Fourthly, the present invention provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the deep learning-based photovoltaic area fire video detection method described above.
[0017] Compared with the prior art, the present invention has the following beneficial effects: This invention discloses a deep learning-based video detection method and related apparatus for photovoltaic area fires. By acquiring the monitoring video stream of the photovoltaic area and performing frame extraction and preprocessing, it can provide a stable and uniformly sized sequence of images to be detected for subsequent feature extraction, effectively reducing the impact of severe weather and complex lighting on image quality. A dual-stream feature extraction network including spatial and temporal branches is constructed. The spatial branch extracts static appearance features of flames and smoke from a single frame image, while the temporal branch extracts the flicker frequency of flames and the dynamic features of smoke diffusion from multiple consecutive frames. This simultaneously utilizes the discriminative information of fire in both spatial appearance and temporal dynamic dimensions, overcoming the deficiency of single-frame image detection being susceptible to interference from false fire sources. The static appearance features and dynamic features are fused across modalities to generate a spatiotemporal fusion feature map, enabling the static information such as the color, texture, and shape of flames and smoke to complement and enhance the dynamic information such as flicker and diffusion at the feature level, significantly improving feature representation ability and discriminative power. Based on spatiotemporal fusion feature maps, region proposal generation is performed to obtain candidate fire regions. Boundary box regression and category classification are then performed on these candidate fire regions, outputting flame regions, smoke regions, and their corresponding confidence scores. This enables end-to-end fire region detection and localization without relying on manually designed features. Furthermore, based on the spatial relationship and confidence scores of flame and smoke regions, combined with prior information about the photovoltaic area scene, including photovoltaic module layout information and electrical equipment location information, fire determination is performed. This effectively utilizes the unique scene structure constraints of the photovoltaic area to eliminate interference from reflections, cloud shadows, etc., reducing false alarm rates. When the fire conditions are met, a fire alarm signal is generated and the fire area location information is output, providing timely and accurate technical support for the fire safety of photovoltaic power plants. The overall method organically combines dual-stream feature extraction, cross-modal fusion, region proposal detection, and scene prior determination, forming a complete closed loop from video acquisition, feature learning, target detection, and fire determination. This significantly improves the accuracy, real-time performance, and robustness of fire detection in complex photovoltaic area scenes, while reducing on-site debugging costs and safety risks. Attached Figure Description
[0018] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0019] Figure 1 This is a flowchart of the method of the present invention; Figure 2 This is a schematic diagram of the system of the present invention. Detailed Implementation
[0020] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present application.
[0021] It should be noted that the terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such terms can be used interchangeably where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0022] It should be understood that in the embodiments of this application, "at least one" means one or more, and "more than one" means two or more. "And / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. The character " / " generally indicates that the related objects before and after it are in an "or" relationship. "Contains A, B and / or C" means containing any one, two, or three of A, B, and C.
[0023] It should be understood that in the embodiments of this application, "B corresponding to A", "B corresponding to A", "A corresponds to B" or "B corresponds to A" means that B is associated with A, and B can be determined based on A. Determining B based on A does not mean that B is determined solely based on A; B can also be determined based on A and / or other information.
[0024] This invention provides a deep learning-based video detection method for photovoltaic area fires, which can be executed by an electronic device, such as a terminal or server. The terminal can be a smartphone, tablet, laptop, or other similar device. The server can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. It is understood that this invention does not limit the specific entity executing this deep learning-based video detection method for photovoltaic area fires.
[0025] The technical solution of this application will be described in detail below through specific embodiments. It should be noted that the following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments described below are used to explain the technical solution of this application and are not intended to limit actual use.
[0026] See Figure 1 This invention discloses a video detection method for photovoltaic area fires based on deep learning, comprising the following steps: S1, acquire the monitoring video stream of the photovoltaic area, perform frame extraction and preprocessing on the monitoring video stream to obtain the image sequence to be detected.
[0027] Specifically, a monitoring video stream is acquired using visible light cameras and / or infrared thermal imaging cameras deployed in the photovoltaic area. Frames of the monitoring video stream are extracted according to a preset frame rate to obtain raw frame images. The extracted frame images undergo denoising, histogram equalization, and size normalization. The normalized frame images are then arranged in chronological order to form a sequence of images to be detected. Denoising can employ median filtering, Gaussian filtering, or bilateral filtering to suppress sensor noise and environmental interference. Histogram equalization enhances image contrast, making the distinction between flames and smoke and the background more pronounced. Size normalization scales the frame images to a uniform size to meet the input requirements of the subsequent dual-stream feature extraction network. The sequence of images to be detected includes both single-frame images for spatial flow branch processing and consecutive multi-frame images for temporal flow branch processing.
[0028] S2, Construct a dual-stream feature extraction network, which includes a spatial stream branch and a temporal stream branch. The spatial stream branch is used to extract static appearance features of flames and smoke from a single frame image of the image sequence to be detected. The temporal stream branch is used to extract flame flicker frequency and smoke diffusion dynamic features from multiple consecutive frames of the image sequence to be detected.
[0029] Specifically, the spatial flow branch employs a lightweight convolutional neural network as its backbone. This lightweight convolutional neural network includes depthwise separable convolutional layers and inverse residual structures, which significantly reduces the number of model parameters and computational cost while maintaining feature extraction capabilities, meeting the low-power and high-efficiency requirements of photovoltaic edge deployment. The spatial flow branch performs convolution, pooling, and activation operations on single-frame images to extract static appearance features such as color, texture, and shape of flames and smoke. Flames typically exhibit warm hues such as red, orange, or yellow, with hues concentrated in the red to yellow range in the HSV color space, exhibiting high saturation and brightness. Smoke colors are more complex, potentially appearing as white, gray, black, or brown, with more dispersed hues and lower saturation. Through multi-scale convolutional kernels and a feature pyramid structure, the spatial flow branch can simultaneously capture the static appearance features of flames and smoke at different scales.
[0030] The temporal flow branch is constructed using a 3D convolutional neural network or a temporal displacement module to perform temporal modeling on multiple consecutive frames of images, extracting the flicker frequency of flames and the dynamic features of smoke diffusion. During combustion, flames exhibit irregular jumping and swaying, with their flicker frequency and direction of movement constantly changing. Smoke spreads gradually from the fire source outwards, and its diffusion speed and range are closely related to the fire scale and ventilation conditions. By sliding the 3D convolutional kernel along the time dimension or by using a temporal displacement module to time-shift channels, the temporal flow branch can effectively capture the dynamic changes in flames and smoke, thus distinguishing real fires from distractors such as wind-blown leaves and fluttering flags—objects with similar colors but different dynamic characteristics.
[0031] S3, perform cross-modal fusion of the static appearance features and the dynamic features to generate a spatiotemporal fusion feature map.
[0032] Specifically, cross-modal fusion employs an attention mechanism, calculating channel attention weights and spatial attention weights for static and dynamic features respectively. Based on these attention weights, the static and dynamic features are weighted and fused to generate a spatiotemporal fusion feature map. Channel attention weights measure the importance of different feature channels, making the network focus more on fire-related feature channels; spatial attention weights measure the importance of different spatial locations, making the network focus more on areas where flames and smoke may appear. Through this attention mechanism, static and dynamic features can achieve adaptive weighted fusion in both channel and spatial dimensions, thereby fully leveraging the complementary advantages of the two types of features in fire identification and generating a more discriminative spatiotemporal fusion feature map.
[0033] S4. Based on the spatiotemporal fusion feature map, region proposal is generated to obtain candidate fire regions. Boundary box regression and category classification are performed on the candidate fire regions to output flame regions, smoke regions and their corresponding confidence scores.
[0034] Specifically, the region proposal generation step utilizes a region proposal network, which generates multiple anchor boxes of different scales and aspect ratios at each spatial location in the spatiotemporal fusion feature map. Overlapping candidate fire regions are then filtered using non-maximum suppression. The scale and aspect ratio of the anchor boxes can be set according to the typical morphology of flames and smoke in photovoltaic areas to cover fire targets of different sizes and shapes. For the filtered candidate fire regions, a bounding box regression network finely adjusts the position and size of the candidate boxes. A classification network outputs the probability of each candidate region belonging to the category of flame, smoke, or background, i.e., flame region, smoke region, and their corresponding confidence scores. This achieves end-to-end fire region detection without the need for manual feature design and can adapt to the diversity of flame and smoke morphologies in complex photovoltaic scenarios.
[0035] S5. Based on the spatial relationship between the flame area and the smoke area and the confidence level, and combined with the prior information of the photovoltaic area scene, a fire determination is made. The prior information of the scene includes the photovoltaic module layout structure information and the electrical equipment location information. When the fire conditions are met, a fire alarm signal is generated and the fire area location information is output.
[0036] Specifically, the fire detection steps include: calculating the spatial distance between the flame area and the smoke area; when the spatial distance is less than a preset threshold and the confidence scores of both the flame area and the smoke area are greater than their respective confidence thresholds, a fire is detected; when only the confidence score of the smoke area is greater than its threshold while the confidence score of the flame area is less than its threshold, a fire hazard is detected and an early warning signal is generated. The spatial distance between the flame area and the smoke area can be calculated using methods such as the Euclidean distance between the center points of their bounding boxes or the intersection-union ratio (IUU) between the bounding boxes. When the flame and smoke are spatially adjacent and both have high confidence scores, it indicates that the detection results have high consistency and a fire can be detected; when only smoke is detected and the flame confidence score is insufficient, it may be in the early stages of a fire or there may be a smoldering hazard, in which case an early warning signal is generated to remind maintenance personnel to pay attention.
[0037] Furthermore, the prior information for the scene also includes geographical elevation data and wind direction data of the photovoltaic area. The fire determination steps also include: determining the positional relationship between the fire area and the arrangement of photovoltaic modules based on the geographical elevation data, predicting the direction of fire spread based on the wind direction data, and generating graded alarm signals based on the positional relationship and spread direction. For example, when the fire area is located in a densely populated area of photovoltaic modules and is downwind, a high-level alarm signal can be generated; when the fire area is located at the edge of the photovoltaic area and is upwind, a low-level alarm signal can be generated. By combining the prior information of the photovoltaic area scene, interference from photovoltaic panel reflections, cloud shadows, etc., can be effectively eliminated, improving the accuracy and targeting of fire determination, while providing a reference for fire spread trends for fire rescue.
[0038] See Figure 2This invention discloses a deep learning-based video detection system for photovoltaic area fires, comprising a video data processing module, a feature extraction module, a feature fusion module, a fire area detection module, and a fire determination and alarm module. The video data processing module acquires a monitoring video stream of the photovoltaic area, performs frame extraction and preprocessing on the monitoring video stream to obtain a sequence of images to be detected. The feature extraction module constructs a dual-stream feature extraction network, which includes a spatial stream branch and a temporal stream branch. The spatial stream branch extracts static appearance features of flames and smoke from single frames of the image sequence to be detected, while the temporal stream branch extracts flame flicker frequency and smoke characteristics from multiple consecutive frames of the image sequence to be detected. The system includes: a diffusion dynamic feature module; a feature fusion module for cross-modal fusion of the static appearance features and the dynamic features to generate a spatiotemporal fusion feature map; a fire area detection module for generating a region proposal based on the spatiotemporal fusion feature map to obtain candidate fire areas, and performing bounding box regression and category classification on the candidate fire areas to output flame areas, smoke areas and their corresponding confidence scores; and a fire determination and alarm module for determining a fire based on the spatial relationship between the flame areas and the smoke areas and the confidence scores, combined with prior information about the photovoltaic area scene, including photovoltaic module layout structure information and electrical equipment location information. When the fire conditions are met, a fire alarm signal is generated and the fire area location information is output.
[0039] In one embodiment of the present invention, a computer device is provided, comprising a processor and a memory. The memory stores a computer program, which includes program instructions. The processor executes the program instructions stored in the computer storage medium. The processor may be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. It is the computing and control core of the terminal, suitable for implementing one or more instructions, specifically suitable for loading and executing one or more instructions in the computer storage medium to achieve a corresponding method flow or corresponding function. The processor described in this embodiment of the present invention can be used in the operation of a deep learning-based photovoltaic area fire video detection method.
[0040] This invention also provides a storage medium, specifically a computer-readable storage medium (Memory), which is a memory device in a computer device used to store programs and data. It is understood that the computer-readable storage medium here can include both the built-in storage medium in the computer device and extended storage media supported by the computer device. The computer-readable storage medium provides storage space that stores the terminal's operating system. Furthermore, this storage space also stores one or more instructions suitable for loading and execution by a processor. These instructions can be one or more computer programs (including program code). It should be noted that the computer-readable storage medium here can be high-speed RAM or non-volatile memory, such as at least one disk storage device. The processor can load and execute one or more instructions stored in the computer-readable storage medium to implement the corresponding steps of the deep learning-based photovoltaic area fire video detection method in the above embodiments.
[0041] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0042] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0043] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1The function specified in one or more boxes.
[0044] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0045] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that modifications or equivalent substitutions can still be made to the specific implementation of the present invention. Any modifications or equivalent substitutions that do not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.
Claims
1. A video detection method for photovoltaic area fires based on deep learning, characterized in that, Includes the following steps: Acquire the monitoring video stream of the photovoltaic area, and perform frame extraction and preprocessing on the monitoring video stream to obtain the image sequence to be detected; A dual-stream feature extraction network is constructed, which includes a spatial stream branch and a temporal stream branch. The spatial stream branch is used to extract static appearance features of flames and smoke from a single frame image of the image sequence to be detected, and the temporal stream branch is used to extract flame flicker frequency and smoke diffusion dynamic features from multiple consecutive frames of the image sequence to be detected. The static appearance features and the dynamic features are fused across modes to generate a spatiotemporal fusion feature map; Based on the spatiotemporal fusion feature map, region proposals are generated to obtain candidate fire regions. Boundary box regression and category classification are then performed on the candidate fire regions to output flame regions, smoke regions and their corresponding confidence scores. Based on the spatial relationship between the flame area and the smoke area and the confidence level, a fire is determined by combining the prior information of the photovoltaic area scenario. The prior information of the scenario includes the photovoltaic module layout structure information and the location information of electrical equipment. When the fire conditions are met, a fire alarm signal is generated and the fire area location information is output.
2. The video detection method for photovoltaic area fires based on deep learning according to claim 1, characterized in that, The preprocessing steps include: denoising the extracted frame images, histogram equalization, and size normalization, and then assembling the normalized frame images into the image sequence to be detected in chronological order.
3. The video detection method for photovoltaic area fires based on deep learning according to claim 1, characterized in that, The spatial flow branch of the dual-flow feature extraction network uses a lightweight convolutional neural network as its backbone network. The lightweight convolutional neural network includes depthwise separable convolutional layers and inverted residual structures. The temporal flow branch is constructed using a three-dimensional convolutional neural network or a temporal displacement module.
4. The video detection method for photovoltaic area fires based on deep learning according to claim 1, characterized in that, The cross-modal fusion employs an attention mechanism, specifically including: calculating the channel attention weights and spatial attention weights of the static appearance features and the dynamic features respectively; and performing weighted fusion of the static appearance features and the dynamic features based on the attention weights to generate the spatiotemporal fusion feature map.
5. The video detection method for photovoltaic area fires based on deep learning according to claim 1, characterized in that, The region proposal generation step uses a region proposal network, which generates multiple anchor boxes of different scales and aspect ratios at each spatial location of the spatiotemporal fusion feature map, and filters overlapping candidate fire regions through nonmaximum suppression.
6. The video detection method for photovoltaic area fires based on deep learning according to claim 1, characterized in that, The fire detection steps specifically include: calculating the spatial distance between the flame area and the smoke area; when the spatial distance is less than a preset threshold and the confidence levels of both the flame area and the smoke area are greater than their respective confidence thresholds, a fire is detected; when only the confidence level of the smoke area is greater than its threshold while the confidence level of the flame area is less than its threshold, a fire hazard is detected and an early warning signal is generated.
7. The video detection method for photovoltaic area fires based on deep learning according to claim 6, characterized in that, The prior information of the scenario also includes the geographical elevation data and wind direction data of the photovoltaic area. The fire determination steps also include: determining the positional relationship between the fire area and the arrangement of the photovoltaic modules based on the geographical elevation data, predicting the fire spread direction based on the wind direction data, and generating a graded alarm signal based on the positional relationship and the spread direction.
8. A video detection system for photovoltaic area fires based on deep learning, characterized in that, include: The video data processing module is used to acquire the monitoring video stream of the photovoltaic area, extract and preprocess the monitoring video stream to obtain the image sequence to be detected; The feature extraction module is used to construct a dual-stream feature extraction network, which includes a spatial stream branch and a temporal stream branch. The spatial stream branch is used to extract static appearance features of flames and smoke from a single frame image of the image sequence to be detected, and the temporal stream branch is used to extract flame flicker frequency and smoke diffusion dynamic features from multiple consecutive frames of the image sequence to be detected. The feature fusion module is used to perform cross-modal fusion of the static appearance features and the dynamic features to generate a spatiotemporal fusion feature map; The fire area detection module is used to generate region proposals based on the spatiotemporal fusion feature map, obtain candidate fire areas, perform bounding box regression and category classification on the candidate fire areas, and output flame areas, smoke areas and their corresponding confidence scores. The fire detection and alarm module is used to determine a fire based on the spatial relationship between the flame area and the smoke area and the confidence level, combined with the prior information of the photovoltaic area scene. The prior information of the scene includes the photovoltaic module layout structure information and the electrical equipment location information. When the fire conditions are met, a fire alarm signal is generated and the fire area location information is output.
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, it implements the steps of the deep learning-based photovoltaic area fire video detection method as described in any one of claims 1-7.
10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the deep learning-based photovoltaic area fire video detection method as described in any one of claims 1-7.
