Online real-time monitoring and early warning system
Through the online real-time monitoring and early warning system, real-time monitoring of building environment changes and adaptively optimize monitoring strategies, the problem of insufficient environmental change monitoring in the existing technology is solved, and the reliability and efficiency of the monitoring system are improved.
Patent Information
- Application Number
- CN202410930772.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-11-01
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing building monitoring system is difficult to adapt to complex and changeable environmental changes, easily misses potential safety hazards, and relies on manual adjustment and static rules, and lacks real-time monitoring and adaptability.
An online real-time monitoring and early warning system was designed. By analyzing area division, video surveillance, preliminary video analysis, comprehensive analysis, monitoring quality division, switching and adaptive optimization modules, it monitors environmental changes in real time, generates early warning signals, and according to the video characteristics and The monitoring quality is adaptively optimized and the monitoring strategy is automatically adjusted.
Real-time monitoring and automatic adjustment of changes in building environments is realized, the reliability and efficiency of monitoring is improved, manual intervention is reduced, and the continuity and stability of monitoring is ensured, and it is suitable for complex environments.
Smart Images

Figure CN118890436A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of video monitoring technology, and more specifically, to an online real-time monitoring and early warning system. Background Art
[0002] With the acceleration of modern urbanization, the number and size of buildings have increased rapidly. The security monitoring system in the building plays a vital role in ensuring the safety of personnel and property. And with the development of science and technology and the increase in security needs, video surveillance has been widely used in various types of buildings, such as office buildings, residential areas, shopping malls, hospitals, etc. Through all-weather monitoring at multiple monitoring points (cameras), backtracking and investigation can be carried out when security incidents occur. In the prior art, traditional building monitoring systems usually rely on manual adjustment monitoring and preset static rules, which are difficult to adapt to complex and changeable environmental changes, and are prone to miss potential safety hazards. Therefore, an online real-time monitoring and early warning system is proposed. Summary of the invention
[0003] To achieve the above object, the present invention provides the following technical solutions:
[0004] An online real-time monitoring and early warning system, comprising an analysis area division module, a video monitoring module, a video preliminary analysis module, a comprehensive analysis module, a monitoring quality division module, a switching module, and an adaptive optimization module;
[0005] An analysis area division module divides the area for video analysis into several sub-areas, numbers the several sub-areas in sequence, and performs partition management on the area for video analysis;
[0006] The video monitoring module sets a main video monitoring device and a backup video monitoring device for each sub-area. When the main video monitoring device and the backup video monitoring device are in use, they monitor the same area from different monitoring angles respectively;
[0007] The video preliminary analysis module collects and performs preliminary analysis on the monitoring images of the main video monitoring device in each sub-area to determine whether the main video monitoring device has hidden dangers caused by environmental changes during the monitoring time window;
[0008] The comprehensive analysis module performs abnormal analysis on the monitoring video of the main video monitoring device to obtain the picture color change index and the picture clarity change index, and then substitutes the picture color change index and the picture clarity change index into the pre-trained machine learning model to generate a comprehensive monitoring quality coefficient;
[0009] A monitoring quality classification module, which divides the main video monitoring device into a stable monitoring device and a non-stable monitoring device based on the comprehensive monitoring quality coefficient, and generates two types of warning signals for the non-stable monitoring device;
[0010] A switching module switches to the backup video monitoring device to continue monitoring the same area from a different monitoring angle when the main video monitoring device is exposed to a hidden danger caused by environmental changes, and generates a type of early warning signal at the same time. When the main video monitoring device is classified as a stable monitoring device, the monitoring screen is switched back to the main video monitoring device for monitoring;
[0011] The adaptive optimization module determines the type of optimization that needs to be performed based on the picture color change index, picture clarity change index, and comprehensive monitoring quality coefficient, and performs adaptive optimization according to the determined optimization type until the main video monitoring device returns to a stable state.
[0012] In a preferred embodiment, judging whether the main video monitoring device has a hidden danger of being affected by environmental changes during the monitoring time window refers to:
[0013] Get the time series D of the brightness of the monitoring screen in the monitoring time window: D1, D2, ..., D n ; n is the total number of frames of the monitoring screen, and then the average screen brightness and the standard deviation of the screen brightness of the time series D are calculated, the average screen brightness is compared with the preset reference interval, and the standard deviation of the screen brightness is compared with the preset reference threshold. If the average screen brightness is within the preset reference interval and the standard deviation of the screen brightness is less than or equal to the preset reference threshold, a normal signal is generated. If the average screen brightness is not within the preset reference interval and the standard deviation of the screen brightness is less than or equal to the preset reference threshold, a hidden danger signal is generated. When the hidden danger signal is generated, it indicates that the main video monitoring device has a hidden danger of being affected by environmental changes.
[0014] In a preferred embodiment, performing abnormal analysis on the monitoring video of the main video monitoring device refers to:
[0015] Extract the color change characteristics of the surveillance video itself, reflect the environmental changes through the color changes of the surveillance video itself, and generate a color change index;
[0016] The picture clarity features of the surveillance video itself are extracted, and the changes in the surveillance picture are reflected by the changes in the picture clarity of the surveillance video itself, thereby generating a picture clarity change index.
[0017] In a preferred embodiment, the logic for obtaining the color change index is:
[0018] Extract continuous frames from the surveillance video and ensure that the time interval of frame extraction is consistent, convert each frame image from RGB color space to Lab color space, and extract color features from the converted Lab image, including brightness, red and green channels, and yellow and blue channels;
[0019] The color difference metric between two frames is calculated using the CIEDE2000 color difference formula, which is:
[0020]
[0021] ΔL′ represents the brightness difference, ΔC′ represents the color difference, ΔH′ represents the hue difference, and k L , k C , k H are adjustable scaling factors, S L , S C , S H are adjustment parameters, R T is a rotation item used to adjust the color distribution;
[0022] The color difference metric is calculated for each pixel and then averaged over the entire frame using the formula: ΔE t represents the average color difference metric of the t-th frame, and N represents the total number of pixels;
[0023] Introducing time weights to consider the impact of changes in different time periods on overall color changes, the formula is: ΔE t,weighted =α·ΔE t +(1-α)·ΔE t-1 ; α is the time weighting coefficient, ranging from 0 to 1, ΔE t,weighted The symbol representing the weighted color change measure of the tth frame;
[0024] Calculate the average color change in the total time window to get the color change index. The calculation formula is: T stands for total frames, and CVI stands for color variation index.
[0025] In a preferred embodiment, the logic for obtaining the picture clarity change index is:
[0026] Extract continuous frames from the surveillance video and ensure that the time interval of frame extraction is consistent, convert each frame image from RGB color space to grayscale image, use Sobel edge detection to extract edge information of each frame image, calculate the horizontal gradient Gx and vertical gradient Gy of the image, and then calculate the gradient amplitude map. The calculation formula is: M(i, j) represents the gradient magnitude of pixel (i, j), which indicates the edge strength of the pixel. x (i, j) represents the horizontal gradient of the image at pixel (i, j), G y (i, j) represents the vertical gradient of the image at pixel (i, j), then the gradient magnitude map is converted into a binary edge image, a reference threshold is set, and pixels greater than the reference threshold are retained as edges;
[0027] Calculate the average gradient amplitude of edge pixels using the following formula:
[0028] E t is the edge strength of the tth frame, which represents the average gradient amplitude of the edge pixels of the frame, N e represents the number of edge pixels, Edges(i, j) represents the binary edge image;
[0029] Calculate the local contrast of edge pixels using the following formula:
[0030] C t is the contrast of the tth frame, which represents the average local contrast of the edge pixels of the frame. represents the local neighborhood of pixel (i, j), Gray(m, n) represents the gray value of pixel (m, n), μ i,j represents the average gray value of pixels in the neighborhood, and k is the size of the neighborhood;
[0031] Calculate the comprehensive edge clarity of each frame, the calculation formula is: S t =β·E t +(1-β)·C t ; S t It represents the comprehensive edge clarity of the t-th frame, β is the weight coefficient of edge strength and contrast, and its value range is 0 to 1. The average value of all comprehensive edge clarity is calculated to obtain the picture clarity change index.
[0032] In a preferred embodiment, dividing the main video monitoring device into a stable monitoring device and a non-stationary monitoring device based on the comprehensive monitoring quality coefficient means:
[0033] For the main video surveillance device that has hidden dangers of being affected by environmental changes, the comprehensive monitoring quality coefficient generated by it is obtained, and the comprehensive monitoring quality coefficient is compared with the preset quality reference coefficient. If the comprehensive monitoring quality coefficient is greater than or equal to the preset quality reference coefficient, the main video surveillance device is classified as a stable monitoring device; if the comprehensive monitoring quality coefficient is less than the preset quality reference coefficient, the main video surveillance device is classified as a non-stable monitoring device.
[0034] In a preferred embodiment, fuzzy reasoning is applied to determine the type that needs to be optimized, and the fuzzy reasoning logic is: define the input variables as the picture color change index, the picture clarity change index, and the comprehensive monitoring quality coefficient, define the output variables as the type of main video surveillance device that needs to be optimized, fuzzify the input variables, and convert the values of the input variables into fuzzy sets, fuzzify the output variables, and convert the output variables into fuzzy sets, formulate fuzzy rules, describe the optimization requirements under different data type combinations, and reason the fuzzified input variables through fuzzy rules to determine the type of main video surveillance device that needs to be optimized.
[0035] Technical effects and advantages of the present invention:
[0036] The present invention extracts the color change index and clarity change index of the monitoring video and combines them with the comprehensive monitoring quality coefficient to monitor the changes in the building environment in real time, automatically adjust the monitoring strategy, and improve the reliability of monitoring. By applying fuzzy reasoning technology, based on the comprehensive evaluation of video characteristics and monitoring quality, the system can intelligently determine whether optimization processing is needed and take corresponding measures (such as image enhancement or equipment parameter adjustment or both), which greatly reduces the need for manual intervention.
[0037] The present invention divides the monitoring area into multiple sub-areas and performs zone management. The system can perform refined management according to the characteristics and needs of different areas, thereby improving the efficiency and effect of monitoring. A main video monitoring device and a backup video monitoring device are set for each sub-area, and monitoring is performed at different monitoring angles respectively. This dual monitoring mechanism can switch to the backup device in time when a problem occurs in the main monitoring device, thereby ensuring the continuity and real-time nature of monitoring. At the same time, through the comprehensive analysis module, in-depth analysis of abnormalities in the monitoring screen can be performed. It is suitable for complex building environments, and can effectively cope with various environmental changes and interferences both indoors and outdoors, thereby ensuring the stability and accuracy of the monitoring effect.
[0038] The present invention can divide the main video monitoring device into a stable monitoring device and a non-stable monitoring device according to the comprehensive monitoring quality coefficient, and generate two types of warning signals for the non-stable monitoring device to help management personnel take timely actions. When the main video monitoring device is affected by environmental changes, it automatically switches to the backup monitoring device and generates a type of warning signal. When the main video monitoring device returns to a stable state, it switches back to the main monitoring device to ensure a smooth transition of the monitoring process. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to facilitate understanding by those skilled in the art, the present invention is further described below in conjunction with the accompanying drawings;
[0040] Figure 1The figure is a schematic diagram of an online real-time monitoring and early warning system in the present invention. DETAILED DESCRIPTION
[0041] 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 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.
[0042] Embodiment 1: An online real-time monitoring and early warning system, comprising an analysis area division module, a video monitoring module, a video preliminary analysis module, a comprehensive analysis module, a monitoring quality division module, a switching module, and an adaptive optimization module; the analysis area division module, the video monitoring module, the video preliminary analysis module, the comprehensive analysis module, the monitoring quality division module, the switching module, and the adaptive optimization module are communicated with each other.
[0043] The analysis area division module divides the area for video analysis into several sub-areas, numbers the sub-areas in sequence, and manages the video analysis area in different areas; Area division: divide the entire monitoring area into multiple sub-areas according to the objectives and requirements of video monitoring; Specific steps:
[0044] Based on monitoring requirements (such as coverage, importance, etc.), preliminarily divide the area, use GIS (geographic information system) or other tools to accurately divide the monitoring area, ensure that the boundaries of each sub-area are clear, determine the number of sub-areas, ensure that the size of each sub-area is moderate to facilitate monitoring and management, number each sub-area sequentially for easy management and identification, formulate sub-area numbering rules (such as numbering from left to right, from top to bottom), number each sub-area, ensure that the numbers are unique and orderly, and record the numbering information in the system for subsequent calls and management.
[0045] The video surveillance module sets a main video surveillance device and a backup video surveillance device for each sub-area. When in use, the main video surveillance device and the backup video surveillance device monitor the same area from different monitoring angles respectively; deploy video surveillance equipment in each sub-area to ensure coverage of the entire area; select appropriate video surveillance equipment (such as camera type, resolution, etc.) according to monitoring requirements, determine the equipment installation location to ensure no blind spot coverage, install and debug the monitoring equipment to ensure its normal operation; initially, configure the parameters of the video surveillance equipment to ensure that the equipment runs in the best condition, set the camera's focal length, angle, exposure and other parameters, test the working status of the equipment to ensure a clear and smooth picture.
[0046] The video preliminary analysis module collects and performs preliminary analysis on the monitoring images of the main video monitoring device in each sub-area to determine whether the main video monitoring device has hidden dangers caused by environmental changes during the monitoring time window.
[0047] The comprehensive analysis module performs an abnormal analysis on the monitoring video of the main video monitoring device to obtain the picture color change index and the picture clarity change index, and then substitutes the picture color change index and the picture clarity change index into a pre-trained machine learning model to generate a comprehensive monitoring quality coefficient.
[0048] The monitoring quality classification module divides the main video monitoring device into a stable monitoring device and a non-stationary monitoring device based on the comprehensive monitoring quality coefficient, and generates two types of warning signals for the non-stationary monitoring device.
[0049] The switching module switches to the backup video surveillance device to continue monitoring the same area from a different monitoring angle when the main video surveillance device is at risk of being affected by environmental changes, and generates a type of early warning signal at the same time. When the main video surveillance device is classified as a stable monitoring device, the monitoring screen is switched back to the main video surveillance device for monitoring.
[0050] The adaptive optimization module determines the type of optimization that needs to be performed based on the picture color change index, the picture clarity change index, and the comprehensive monitoring quality coefficient, and performs adaptive optimization according to the determined optimization type until the main video monitoring device returns to a stable state. Returning to a stable state means being classified as a stable monitoring device. Adaptive optimization refers to the use of image enhancement technology to improve the visual effect and information availability of the picture when the quality of the monitoring image deteriorates, and when the parameters of the monitoring device itself are not properly set, the device parameters can be automatically adjusted to improve the monitoring effect. By integrating the above existing technologies, the adaptive optimization module can optimize the monitoring system in real time under different environments and conditions, ensure the clarity and stability of the monitoring picture, and improve the reliability of the monitoring system.
[0051] To determine whether the main video surveillance device has hidden dangers of environmental changes in the monitoring time window is to obtain the time sequence D of the brightness of the monitoring screen in the monitoring time window: D1, D2, ..., D n; n is the total number of frames of the monitoring screen, and then the average brightness value and the standard deviation of the screen brightness of the time series D are calculated, the average brightness value is compared with the preset reference interval, and the standard deviation of the screen brightness is compared with the preset reference threshold. If the average brightness value is within the preset reference interval and the standard deviation of the screen brightness is less than or equal to the preset reference threshold, a normal signal is generated. If the average brightness value is not within the preset reference interval and the standard deviation of the screen brightness is less than or equal to the preset reference threshold, a hidden danger signal is generated. When the hidden danger signal is generated, it indicates that the main video monitoring device has a hidden danger of being affected by environmental changes. Screen brightness is an important indicator reflecting changes in ambient lighting. Changes in light conditions (such as day and night, sunlight and shadow, light switches, etc.) will directly affect the brightness of the video screen. Light changes can significantly affect the monitoring effect. Too high or too low brightness will lead to a decrease in the quality of the monitoring image, which may cause monitoring blind spots or loss of details. The calculation of the screen brightness is relatively simple. It only needs to convert the RGB image into a grayscale image and calculate the average and standard deviation of the grayscale value. Compared with other more complex image processing methods (such as texture analysis, edge detection, etc.), brightness analysis has less computational complexity and is suitable for real-time monitoring applications. The mean and standard deviation are basic statistics that are simple and effective to calculate and can quickly reflect the overall level and changes in brightness. By setting reasonable reference intervals and thresholds, it can adapt to different environmental conditions. For example, in different scenes (indoors, outdoors) and different time periods (day, night), the reference intervals and thresholds can be dynamically adjusted to ensure the sensitivity and reliability of the monitoring system.
[0052] Performing abnormal analysis on the surveillance video of the main video surveillance device refers to:
[0053] The color change characteristics of the surveillance video itself are extracted, and the environmental changes are reflected through the color changes of the surveillance video itself to generate a color change index; the picture clarity characteristics of the surveillance video itself are extracted, and the changes in the surveillance picture are reflected through the picture clarity changes of the surveillance video itself to generate a picture clarity change index.
[0054] The logic for obtaining the color change index is:
[0055] Extract continuous frames from the surveillance video (for example, 10 frames per second, or adjust the extraction frequency as needed) and ensure that the time interval of frame extraction is consistent, convert each frame of the image from the RGB color space to the Lab color space, and extract color features from the converted Lab image, including brightness, red and green channels, and yellow and blue channels; the Lab color space is more suitable for analyzing color changes because it separates brightness, red and green channels, and yellow and blue channel information, and the Lab color space is closer to the perception characteristics of the human eye, improving the accuracy of color change analysis, extracting color features from the converted Lab image, including brightness, red and green channels, and yellow and blue channels. Extracting these color features helps to more comprehensively analyze color changes in the image, especially under different lighting conditions, the Lab color space can better show the stability of color, use Sobel edge detection to extract edge information of each frame of the image, and the CIEDE2000 formula can accurately measure the color difference between two frames of images, taking into account the sensitivity of the human eye to color changes, which helps to identify subtle color changes;
[0056] The color difference metric between two frames is calculated using the CIEDE2000 color difference formula, which is:
[0057]
[0058] ΔL′ represents the brightness difference, ΔC′ represents the color difference, ΔH′ represents the hue difference, and k L , k C , k H are adjustable scaling factors, S L , S C , S H are adjustment parameters, R T is a rotation item used to adjust the color distribution:
[0059] The color difference metric is calculated for each pixel and then averaged over the entire frame using the formula: ΔE t represents the average color difference metric of the t-th frame, and N represents the total number of pixels. By averaging the color difference of each frame, the overall color change of the frame can be obtained, avoiding the error caused by a single pixel change.
[0060] Introducing time weights to consider the impact of changes in different time periods on overall color changes, the formula is: ΔE t,weighted =α·ΔE t +(1-α)·ΔE t-1 ; α is the time weighting coefficient, ranging from 0 to 1, ΔE t,weightedThe symbol representing the weighted color change measure of the t-th frame; the temporal weight takes into account the temporal correlation of color changes, which can smooth short-term fluctuations, highlight continuous color changes, and increase the stability and reliability of the analysis;
[0061] Calculate the average color change in the total time window to get the color change index. The calculation formula is: T represents the total number of frames, and CVI represents the color change index, which can reflect the overall color change in the entire monitoring time window. Low value (close to 0): indicates that within the monitoring time window, the color of the video screen changes slightly, the environment changes less, and the monitoring system runs stably. Medium value: indicates that within the monitoring time window, the video screen has a certain color change, and there may be moderate environmental changes, which requires attention. High value (close to 1): indicates that within the monitoring time window, the color of the video screen changes greatly, the environment changes significantly, which may affect the monitoring effect, and measures need to be taken.
[0062] The logic for obtaining the picture clarity change index is:
[0063] Extract continuous frames from the surveillance video (for example, 10 frames per second, or adjust the extraction frequency as needed) and ensure that the time interval of frame extraction is consistent. Ensuring the consistency of frame extraction helps capture dynamic changes in the video and ensure the accuracy and continuity of the analysis results. Convert each frame image from the RGB color space to a grayscale image. The grayscale image only retains brightness information and eliminates the interference of color information. It is more suitable for edge detection and gradient calculation. Calculate the horizontal gradient Gx and vertical gradient Gy of the image, and then calculate the gradient amplitude map. The calculation formula is: M(i, j) represents the gradient magnitude of pixel (i, j), which indicates the edge strength of the pixel. x (i, j) represents the horizontal gradient of the image at pixel (i, j), reflecting the rate of change of the image in the horizontal direction at that point. The larger the value, the more drastic the change of the pixel in the horizontal direction, which usually corresponds to the edge or contour in the image. y (i, j) represents the vertical gradient of the image at pixel (i, j). The gradient magnitude map M(i, j) reflects the edge strength of each pixel in the image and is the basis for edge detection and clarity analysis. Among them, * represents the convolution operation, Gray represents the gray value of the image, such as Gray (i, j) represents the gray value of pixel (i, j). In image processing, the horizontal gradient intensity is used together with the vertical gradient intensity to detect the edge in the image. By calculating the gradient amplitude and direction of each pixel, the edge features in the image can be identified, and then the gradient amplitude map is converted into a binary edge image, a reference threshold is set, and pixels greater than the reference threshold are retained as edges; the binary edge image can intuitively display the edge area in the image, which is helpful for further analysis of the edge intensity and contrast;
[0064] Calculate the average gradient amplitude of edge pixels using the following formula:
[0065] E t is the edge strength of the tth frame, indicating the average gradient amplitude of the edge pixels of the frame, and the edge strength E t It reflects the clarity of the edge in the image. The higher the intensity, the more obvious the edge and the clearer the image. e Indicates the number of edge pixels, Edges(i, j) represents a binary edge image; in image processing and computer vision, edges refer to areas in an image where the brightness or color changes significantly. Edges usually represent the boundaries, contours, or other significant features of objects in an image. When using the Sobel operator for edge detection, edges represent edge pixels obtained after processing by the Sobel operator. These edge pixels are the areas with the largest brightness changes in the image. An appropriate threshold T is selected to distinguish edge pixels from non-edge pixels. When edge graphics are generated, the following conditions are satisfied: 1 represents edge pixels, and 0 represents non-edge pixels:
[0066] Calculate the local contrast of edge pixels using the following formula:
[0067] C t is the contrast of the tth frame, which represents the average local contrast of the edge pixels of the frame. represents the local neighborhood of pixel (i, j), Gray(m, n) represents the gray value of pixel (m, n), μ i,j represents the average gray value of pixels in the neighborhood, k is the size of the neighborhood; edge contrast C t It reflects the contrast changes in the edge areas of the image and can provide further information on edge clarity;
[0068] Calculate the comprehensive edge clarity of each frame, the calculation formula is: S t =β·E t +(1-β)·C t ; S tIt represents the comprehensive edge clarity of the t-th frame, combining edge strength and contrast to provide a more comprehensive image clarity evaluation index. β is the weight coefficient of edge strength and contrast, ranging from 0 to 1. The average of all comprehensive edge clarity is obtained to obtain the picture clarity change index. The picture clarity change index reflects the overall clarity change of the image in the entire monitoring time window. Low value (close to 0): indicates that within the monitoring time window, the clarity of the video picture changes little, and the monitoring image is stable and has high clarity. Medium value: indicates that within the monitoring time window, the video picture has a certain clarity change, and there may be moderate image blur or jitter, which requires attention. High value (close to 1): indicates that within the monitoring time window, the clarity of the video picture changes greatly, and the monitoring image may be significantly blurred or jittered, and measures need to be taken.
[0069] Substituting the picture color change index and the picture clarity change index into a pre-trained machine learning model to generate a comprehensive monitoring quality coefficient means: the machine learning model is not specifically limited here, and any model that can perform a comprehensive analysis of the data anomaly index and the transmission anomaly index to generate a data quality coefficient is acceptable. In order to implement the technical solution of the present invention, the present invention provides a specific implementation method, using a pre-trained linear regression model as an example:
[0070] CQF=w1·CVI+w2·CQI+b; CQF is the comprehensive monitoring quality coefficient, which indicates the overall quality of the monitoring video. w1 and w2 are pre-trained model weights, corresponding to CVI and CQI respectively. b is the pre-trained model bias term. CVI: Picture color change index, which indicates the degree of picture color change. The larger the CVI value, the more significant the picture color change, which may be affected by the change of ambient light. CQI: Picture clarity change index, which indicates the degree of picture clarity change. The larger the CQI value, the more significant the picture clarity change, and there may be problems such as image blur or jitter. w1 represents the weight of the model for CVI. The larger the weight, the greater the impact of color change on the comprehensive monitoring quality coefficient. w2 represents the weight of the model for CQI. The larger the weight, the greater the impact of clarity change on the comprehensive monitoring quality coefficient. The significance of the CQF value: low value (close to 0): indicates that the overall quality of the monitoring video is good, the picture color and clarity change is small, and the monitoring effect is stable. Medium value: indicates that the overall quality of the surveillance video is medium, and there are certain changes in the color and clarity of the picture, which requires attention. High value (close to 1 or greater): indicates that the overall quality of the surveillance video is poor, and the color and clarity of the picture change significantly, which may be affected by environmental or equipment problems, and measures need to be taken.
[0071] The classification of the main video monitoring device into a stable monitoring device and a non-stationary monitoring device based on the comprehensive monitoring quality coefficient refers to:
[0072] For the main video surveillance device that has hidden dangers of being affected by environmental changes, the comprehensive monitoring quality coefficient generated by it is obtained, and the comprehensive monitoring quality coefficient is compared with the preset quality reference coefficient. If the comprehensive monitoring quality coefficient is greater than or equal to the preset quality reference coefficient, the main video surveillance device is classified as a stable monitoring device; if the comprehensive monitoring quality coefficient is less than the preset quality reference coefficient, the main video surveillance device is classified as a non-stable monitoring device.
[0073] Fuzzy reasoning is used to judge the type that needs to be optimized. The fuzzy reasoning logic is:
[0074] Define the input variables as the picture color change index, the picture clarity change index, and the comprehensive monitoring quality coefficient; define the output variables as the type of main video surveillance device that needs to be optimized; fuzzify the input variables and convert the values of the input variables into fuzzy sets; fuzzify the output variables and convert the output variables into fuzzy sets; formulate fuzzy rules to describe the optimization requirements under different data type combinations; reason the fuzzified input variables through fuzzy rules to determine the type of main video surveillance device that needs to be optimized; convert the values of the input variables into fuzzy sets, and represent different input variable states by defining fuzzy sets. Input variable fuzzy set definition: CVI (color variation index): low, medium, high; CQI (picture clarity variation index): low, medium, high; CQF (comprehensive monitoring quality factor): good, medium, poor; Convert the output variable into a fuzzy set, and define fuzzy sets to represent different types of optimization requirements. Output variable fuzzy set definition: Image enhancement, adjustment of equipment parameters, all need to be optimized. According to different combinations of input variables, define fuzzy rules to determine the required optimization type. Example fuzzy rule: If CVI is high and CQI is low and CQF is poor, the optimization type is to adjust equipment parameters. If CVI is medium and CQI is medium and CQF is medium, the optimization type is image enhancement. The fuzzified input variables are inferred through fuzzy rules to determine the type of optimization that needs to be performed on the main video surveillance device. This method can systematically determine the type of optimization that needs to be performed on the main video surveillance device. This method combines the picture color change index, the picture clarity change index and the comprehensive monitoring quality coefficient, and uses fuzzy logic and rule reasoning to achieve flexible and accurate optimization decisions.
[0075] The above formulas are all dimensionless and numerical calculations. The formula is a formula for the most recent real situation obtained by collecting a large amount of data and performing software simulation. The preset parameters in the formula are set by technicians in this field according to actual conditions.
[0076] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not 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 embodiments of the present application.
[0077] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0078] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0079] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. An online real-time monitoring and early warning system, It is characterized in that It includes analysis area division module, video monitoring module, video preliminary analysis module, comprehensive analysis module, monitoring quality division module, switching module and adaptive optimization module; An analysis area division module divides the area for video analysis into several sub-areas, numbers the several sub-areas in sequence, and performs partition management on the area for video analysis; The video monitoring module sets a main video monitoring device and a backup video monitoring device for each sub-area. When the main video monitoring device and the backup video monitoring device are in use, they monitor the same area from different monitoring angles respectively; The video preliminary analysis module collects and performs preliminary analysis on the monitoring images of the main video monitoring device in each sub-area to determine whether the main video monitoring device has hidden dangers caused by environmental changes during the monitoring time window; The comprehensive analysis module performs abnormal analysis on the monitoring video of the main video monitoring device to obtain the picture color change index and the picture clarity change index, and then substitutes the picture color change index and the picture clarity change index into the pre-trained machine learning model to generate a comprehensive monitoring quality coefficient; A monitoring quality classification module, which divides the main video monitoring device into a stable monitoring device and a non-stable monitoring device based on the comprehensive monitoring quality coefficient, and generates two types of warning signals for the non-stable monitoring device; A switching module switches to the backup video monitoring device to continue monitoring the same area from a different monitoring angle when the main video monitoring device is exposed to a hidden danger caused by environmental changes, and generates a type of early warning signal at the same time. When the main video monitoring device is classified as a stable monitoring device, the monitoring screen is switched back to the main video monitoring device for monitoring; The adaptive optimization module determines the type of optimization that needs to be performed based on the picture color change index, picture clarity change index, and comprehensive monitoring quality coefficient, and performs adaptive optimization according to the determined optimization type until the main video monitoring device returns to a stable state.
2. An online real-time monitoring and early warning system according to claim 1, It is characterized in that The determination of whether the main video surveillance device has hidden dangers of environmental changes during the monitoring time window refers to: Get the time series D of the brightness of the monitoring screen under the monitoring time window: D 1 ,D 2 ,…,D n ; n is the total number of frames of the monitoring screen, and then the average screen brightness and the standard deviation of the screen brightness of the time series D are calculated, the average screen brightness is compared with the preset reference interval, and the standard deviation of the screen brightness is compared with the preset reference threshold. If the average screen brightness is within the preset reference interval and the standard deviation of the screen brightness is less than or equal to the preset reference threshold, a normal signal is generated. If the average screen brightness is not within the preset reference interval and the standard deviation of the screen brightness is less than or equal to the preset reference threshold, a hidden danger signal is generated. When the hidden danger signal is generated, it indicates that the main video monitoring device has a hidden danger of being affected by environmental changes.
3. An online real-time monitoring and early warning system according to claim 2, It is characterized in that Performing abnormal analysis on the surveillance video of the main video surveillance device refers to: Extract the color change characteristics of the surveillance video itself, reflect the environmental changes through the color changes of the surveillance video itself, and generate a color change index; The picture clarity features of the surveillance video itself are extracted, and the changes in the surveillance picture are reflected by the changes in the picture clarity of the surveillance video itself, thereby generating a picture clarity change index.
4. An online real-time monitoring and early warning system according to claim 3, It is characterized in that The logic for obtaining the color change index is: Extract continuous frames from the surveillance video and ensure that the time interval of frame extraction is consistent, convert each frame image from RGB color space to Lab color space, and extract color features from the converted Lab image, including brightness, red and green channels, and yellow and blue channels; The color difference metric between two frames is calculated using the CIEDE2000 color difference formula, which is: ΔL′ represents the brightness difference, ΔC′ represents the color difference, ΔH′ represents the hue difference, and k L , k C , k H are adjustable scaling factors, S L , S C , S H are adjustment parameters, R T is a rotation item used to adjust the color distribution; The color difference metric is calculated for each pixel and then averaged over the entire frame using the formula: ΔE t represents the average color difference metric of the t-th frame, and N represents the total number of pixels; Introducing time weights to consider the impact of changes in different time periods on overall color changes, the formula is: ΔE t,weighted =α·ΔE t +(1-α)·ΔE t-1 ; α is the time weighting coefficient, ranging from 0 to 1, ΔE t,weighted The symbol representing the weighted color change measure of the tth frame; Calculate the average color change in the total time window to get the color change index. The calculation formula is: T stands for total frames, and CVI stands for color variation index.
5. An online real-time monitoring and early warning system according to claim 4, It is characterized in that The logic for obtaining the picture clarity change index is: Extract continuous frames from the surveillance video and ensure that the time interval of frame extraction is consistent, convert each frame image from RGB color space to grayscale image, use Sobel edge detection to extract edge information of each frame image, calculate the horizontal gradient Gx and vertical gradient Gy of the image, and then calculate the gradient amplitude map. The calculation formula is: M(i, j) represents the gradient magnitude of pixel (i, j), which indicates the edge strength of the pixel. x (i, j) represents the horizontal gradient of the image at pixel (i, j), G y (i, j) represents the vertical gradient of the image at pixel (i, j), then the gradient magnitude map is converted into a binary edge image, a reference threshold is set, and pixels greater than the reference threshold are retained as edges; Calculate the average gradient amplitude of edge pixels using the following formula: E t is the edge strength of the tth frame, which represents the average gradient amplitude of the edge pixels of the frame, N e represents the number of edge pixels, Edges(i, j) represents the binary edge image; Calculate the local contrast of edge pixels using the following formula: C t is the contrast of the tth frame, which represents the average local contrast of the edge pixels of the frame. represents the local neighborhood of pixel (i, j), Gray(m, n) represents the gray value of pixel (m, n), μ i,j represents the average gray value of pixels in the neighborhood, and k is the size of the neighborhood; Calculate the comprehensive edge clarity of each frame, the calculation formula is: S t =β·E t +(1-β)·C t ; S t It represents the comprehensive edge clarity of the t-th frame, β is the weight coefficient of edge strength and contrast, and its value range is 0 to 1. The average value of all comprehensive edge clarity is calculated to obtain the picture clarity change index.
6. An online real-time monitoring and early warning system according to claim 5, It is characterized in that The classification of the main video monitoring device into a stable monitoring device and a non-stationary monitoring device based on the comprehensive monitoring quality coefficient refers to: For the main video surveillance device that has hidden dangers of being affected by environmental changes, the comprehensive monitoring quality coefficient generated by it is obtained, and the comprehensive monitoring quality coefficient is compared with the preset quality reference coefficient. If the comprehensive monitoring quality coefficient is greater than or equal to the preset quality reference coefficient, the main video surveillance device is classified as a stable monitoring device; if the comprehensive monitoring quality coefficient is less than the preset quality reference coefficient, the main video surveillance device is classified as a non-stable monitoring device.
7. An online real-time monitoring and early warning system according to claim 6, It is characterized in that Apply fuzzy reasoning to determine the type of optimization that needs to be performed.
8. An online real-time monitoring and early warning system according to claim 7, It is characterized in that The fuzzy reasoning logic is: Define the input variables as the picture color change index, the picture clarity change index, and the comprehensive monitoring quality coefficient; define the output variables as the type of main video surveillance device that needs to be optimized; fuzzify the input variables and convert the values of the input variables into fuzzy sets; fuzzify the output variables and convert the output variables into fuzzy sets; formulate fuzzy rules to describe the optimization requirements under different data type combinations; reason the fuzzified input variables through fuzzy rules to determine the type of main video surveillance device that needs to be optimized.
Citation Information
Cited By
High and large formwork construction safety monitoring system
CN119130765A
Interactive road sign system
CN119308243A
Enterprise internal management system
CN120075399A
Mountain debris flow disaster intelligent early warning system based on remote sensing network
CN120164095A
