A method and system for detecting electric shock of personnel based on artificial intelligence
By collecting real-time video in areas prone to electric shock, analyzing human body behavior and electrical parameters, and combining stiffness and tremor, the problem of incorrect judgment of current changes in the existing technology is solved, achieving more accurate electric shock detection and reducing misjudgments.
Patent Information
- Application Number
- CN202110689429.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-22
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2041-06-22
AI Technical Summary
The existing technology uses current changes to determine the human body's electric shock due to misdetection, which makes it impossible to accurately analyze electric shock accidents, resulting in frequent power outages.
An artificial intelligence-based method is used to collect real-time videos of areas prone to electric shock, extract moving targets, determine whether the human body's behavioral state has mutated, calculate the stiffness and tremor of the human body, and combine the changes in power parameters to comprehensively judge the electric shock situation.
It improves the accuracy of electric shock detection, reduces frequent power outages caused by hardware misjudgments, and enhances the accuracy and timeliness of electric shock accidents.
Smart Images

Figure CN113536950B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to an artificial intelligence-based method and system for detecting electric shock of personnel. Background Art
[0002] With the rapid development of modern society and the continuous improvement of social outlook, there are more and more high-voltage boxes, electric poles, street lights and other equipment. While bringing convenience, it also leads to more and more widespread areas prone to electric shock and the risk of electric shock to people is gradually increasing. It is very important to accurately detect electric shock accidents, carry out rescue work in a timely manner, and ensure personal safety.
[0003] The current method of detecting electric shock and controlling leakage is mainly to monitor the area prone to electric shock, obtain the current changes in the area of electric shock, and determine whether there is an electric shock.
[0004] In practice, the inventors found that the above-mentioned prior art has the following defects:
[0005] The change in current is used as an indicator to judge whether a person is getting an electric shock. However, this type of hardware detection of electric shock behavior may result in false detections and cannot accurately analyze whether it is an electric shock accident, resulting in frequent power outages. Summary of the invention
[0006] In order to solve the above technical problems, the purpose of the present invention is to provide a method and system for detecting electric shock based on artificial intelligence. The technical solutions adopted are as follows:
[0007] In a first aspect, the present invention provides a method for detecting electric shock to a person, the method comprising collecting real-time video of an area susceptible to electric shock; extracting a moving target in the real-time video, and determining whether the moving target is a human body; when the moving target is a human body, identifying whether a sudden change occurs in the behavior state of the human body; for a sudden change in behavior, taking multiple joint angles of the human body in each frame image as a feature vector, analyzing the feature vectors in multiple consecutive frames of images, obtaining the stability of the feature vector and the degree of continuity of each joint angle, and obtaining the stiffness of the human body according to the stability and the degree of continuity;
[0008] The degree of tremor of the human body is obtained, and the electric shock index is obtained according to the changes in the stiffness, tremor, and power parameters of the area prone to electric shock. If the electric shock index is higher than the set electric shock threshold, it is considered that electric shock has occurred.
[0009] Preferably, the method for obtaining the stability of the feature vector includes obtaining a correlation coefficient sequence between multiple joint angles in multiple consecutive frames of images; calculating the fluctuation degree of the correlation coefficient sequence, and using the fluctuation degree as the stability.
[0010] Preferably, the method for obtaining the degree of continuity and invariance includes using a sliding window to extract the number of sliding windows in which the joint angles remain unchanged in multiple consecutive frames of images, and analyzing the degree of continuity and invariance of the joint angles.
[0011] Preferably, the method for obtaining the degree of tremor of a human body includes obtaining data of the same key point of a human body in multiple consecutive frames of images, and calculating the moving speed of the key point; calculating the tremor amplitude and tremor frequency of the human body based on the position information of the key point; and obtaining the tremor degree based on the moving speed, tremor amplitude and tremor frequency.
[0012] Preferably, the method used to extract the moving target in the real-time video is the background difference method.
[0013] Preferably, the method includes obtaining a two-dimensional skeleton image of a human body; detecting the behavioral state of the human body according to the two-dimensional skeleton image, and determining the mutation situation.
[0014] In a second aspect, an embodiment of the present invention provides a personnel electric shock detection system, which includes: a video acquisition module for acquiring real-time video of an area prone to electric shock; a personnel detection module for extracting moving targets in real-time video and determining whether the moving targets are human bodies; a motion mutation judgment module for identifying whether a sudden change occurs in the behavior state of a human body when the moving target is a human body; a stiffness acquisition module for analyzing the feature vectors in multiple consecutive frames of images, taking multiple joint angles of the human body in each frame of the image as a feature vector for the behavior that has undergone a sudden change, obtaining the stability of the feature vector and the degree of continuity of each joint angle, and obtaining the stiffness of the human body based on the stability and the degree of continuity; an electric shock index evaluation module for obtaining the degree of tremor of the human body, and obtaining the electric shock index based on the changes in the stiffness, tremor, and power parameters of the area prone to electric shock. If the electric shock index is higher than the set electric shock threshold, it is considered that an electric shock has occurred.
[0015] Preferably, the stiffness acquisition module further includes a correlation coefficient acquisition unit, which is used to acquire the correlation coefficients of different vectors by constructing a characteristic vector stability analysis model according to the joint angle; and a fluctuation degree calculation unit, which is used to calculate the fluctuation degree of the correlation coefficient sequence.
[0016] Furthermore, the stiffness acquisition module also includes a joint angle invariance degree acquisition unit, which is used to use sliding windows to extract the number of sliding windows in which the joint angles remain unchanged in multiple consecutive frames of images, and analyze the degree of continuity and invariance of the joint angles.
[0017] Furthermore, the tremor degree acquisition module also includes a moving speed acquisition unit, which is used to acquire the data of the same key point of the human body in multiple consecutive frames of images and calculate the moving speed of the key point; an amplitude and frequency acquisition unit, which is used to calculate the human body tremor amplitude and tremor frequency according to the position information of the key point; and a tremor degree acquisition unit, which is used to obtain the tremor degree according to the moving speed, tremor amplitude and tremor frequency.
[0018] The present invention has the following beneficial effects:
[0019] The artificial intelligence-based method for detecting electric shock to personnel collects real-time video of areas prone to electric shock, extracts foreground moving targets in the real-time video, and determines whether the moving target is a human body. When the moving target is a human body, it determines whether the behavior state of the human body has changed suddenly. Multiple joint angles of the human body are used as feature vectors, and the feature vectors of consecutive multiple frames of images are analyzed to obtain the stability of the feature vectors and the degree of continuity of the joint angles. The stiffness and tremor of the human body are calculated, and the changes in the power parameters in the areas prone to electric shock are combined to comprehensively judge the electric shock situation, thereby improving the accuracy of detection of people who are electrocuted and avoiding frequent power outages caused by hardware misjudgment. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0021] Figure 1 A flow chart of a method for detecting electric shock to a person provided by an embodiment of the present invention;
[0022] Figure 2 A system block diagram of a person electric shock detection system provided by an embodiment of the present invention;
[0023] Figure 3 A moving coordinate diagram of a right ankle key point provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0024] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the specific implementation method, structure, features and effects of a method and system for detecting electric shock based on artificial intelligence proposed by the present invention in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures, or characteristics in one or more embodiments may be combined in any suitable form.
[0025] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0026] The artificial intelligence-based personnel electric shock detection method is applicable to areas prone to electric shock, such as high-voltage lines, street lamps and other areas with leakage risks.
[0027] In order to accurately analyze whether an abnormal situation occurring in an electric shock-prone area is an electric shock accident, an embodiment of the present invention utilizes an artificial intelligence-based electric shock detection method to improve the accuracy of electric shock detection.
[0028] The specific scheme of the method and system for detecting electric shock of personnel based on artificial intelligence provided by the present invention is described in detail below with reference to the accompanying drawings.
[0029] See also Figure 1 , which shows a flow chart of a method for detecting electric shock of a person provided by an embodiment of the present invention,
[0030] The method for detecting electric shock of personnel based on artificial intelligence includes:
[0031] Step S110, collecting real-time video of the area prone to electric shock.
[0032] Cameras are deployed in high-voltage wires, street lamps and other areas prone to electric shock to collect real-time video of the areas prone to electric shock. It should be noted that the deployment of cameras ensures that the shooting range fully covers the areas prone to electric shock.
[0033] Step S120, extracting the moving target in the real-time video and determining whether the moving target is a human body.
[0034] According to the real-time video of the electric shock-prone area collected, the moving target is extracted. The method used to extract the moving target in the real-time video is the background difference method. A specific implementation process is given below:
[0035] 1) Perform background modeling on the real-time video images captured by the camera.
[0036] In an embodiment of the present invention, a Gaussian background modeling algorithm is used for background modeling; in other embodiments, the background modeling method may also adopt: Gaussian modeling, mixed Gaussian model, self-organizing background modeling or background modeling based on color information, etc.
[0037] 2) Use the established background image to extract the foreground of the moving target.
[0038] In the embodiment of the present invention, a background difference algorithm is used to extract foreground moving targets; in other embodiments, the foreground extraction algorithm may also use: a frame difference method, a background difference method, an optical flow method, etc.
[0039] 3) Analyze the abnormal prospects and determine whether the abnormal prospects belong to personnel.
[0040] The sum of the pixels of the foreground image of the moving target is statistically extracted, and a foreground target pixel and threshold are preset for the sum of the pixels of the foreground image of the moving target. When the sum of the pixels of the foreground image extracted exceeds the foreground target pixel and threshold, the foreground target is considered to be a human body.
[0041] It should be noted that in this embodiment, the abnormal foreground refers to the presence of a moving target in the image. If the system determines that a human body appears in the area, step S130 is executed, otherwise, step S130 is not executed. This can reduce system loss, reduce the impact of irrelevant factors, and reduce useless detection analysis of subsequent systems.
[0042] Step S130, when the moving target is a human body, identifying whether the behavior state of the human body changes suddenly.
[0043] 1) Obtain a two-dimensional skeleton image of the human body.
[0044] The embodiment of the present invention first uses a DNN network model to detect key points of the human body. The DNN network model is a key point detection encoder-key point detection decoder structure. The key points include the head, neck, left and right shoulders, elbows, wrists, hips, knees, and ankles, with a total of 14 key points. Label data is produced to mark the key points, and then the label data and image data containing the human body are sent to the network for iterative training. The mean square error loss function is used to continuously update the model parameters, and the output is a heat map of the key points of the human body.
[0045] Since there are more than one person in the area, in order to distinguish the key points of the human body and prevent the misidentification of the key points of multiple people, the embodiment of the present invention adopts a self-encoding method to encode the position and direction of the torso in the image domain through a series of two-dimensional vector fields, that is, each pixel on a torso corresponds to a two-dimensional vector, which represents the direction from one key point on the human body to another key point, and trains a multi-person key point distinction network model.
[0046] The multi-person key point distinction network adopts an end-to-end encoding and decoding structure, with the input being the heat map of the key points of the human body and the output being a two-dimensional skeleton map of the human body.
[0047] It should be noted that the label data for network training encodes the direction from one key point to another key point in the human body area and is represented by a vector. The data annotation includes a vector diagram of the key point position and direction.
[0048] 2) Detect the behavior state of the human body based on the two-dimensional skeleton diagram and determine the mutation situation.
[0049] The embodiment of the present invention uses the TCN network model of Encoder-Decoder-FC to detect and identify the two-dimensional skeleton image of the human body, marks the behavior skeleton sequences with mutations as 1, and marks the normal behavior sequences as 0, extracts and analyzes the features through the encoder and decoder, and finally identifies the abnormal behavior through the fully connected layer to analyze whether the behavior state of the human body has mutated.
[0050] Specifically, the network's label data is artificially generated label data, the network's output is the human behavior category, and the network uses a cross entropy loss function for iterative training.
[0051] Step S140, for the behavior that undergoes a sudden change, multiple joint angles of the human body in each frame image are used as a feature vector, and the feature vectors in multiple consecutive frames of images are analyzed to obtain the stability of the feature vector and the degree of continuity of each joint angle, and the stiffness of the human body is obtained based on the stability and the degree of continuity.
[0052] The embodiment of the present invention sets the left and right elbow joint angles of the human body in multiple consecutive frames. Left and right knee joint angle Select 50 consecutive frames of images, record their corresponding time as t=1, 2…, 50, and obtain the human joint angle sequence in the 50 consecutive frames of images. Perform limb stiffness analysis based on the changes in joint angles in the 50 consecutive frames. The specific analysis process is given below:
[0053] 1) Obtain the correlation coefficient sequence between multiple joint angles in multiple consecutive frame images.
[0054] First, the four joint angles in each frame of the image are taken as a feature vector, and the corresponding 50 feature vectors are obtained. The 50 feature vectors are used as a set of sequence data for subsequent analysis of the stability of the feature vectors. The sequence is recorded as {T1, T2, …, T 50},and: Constructing a characteristic vector stability analysis model, the present invention takes the interval time as 2, calculates the stability of the characteristic vector when the time interval is 2, and performs a longitudinal analysis on the vector. The characteristic vector stability analysis model is specifically:
[0055]
[0056] Among them, K i,i+2 is the correlation coefficient between the ith and i+2th eigenvectors, is the data mean of the i-th eigenvector, is the data mean of the i+2th eigenvector, is the jth joint angle in the i-th eigenvector, is the j-th joint angle in the i+2-th eigenvector.
[0057] 2) Calculate the volatility of the correlation coefficient sequence and use the obtained volatility as stability.
[0058] Specifically, according to the eigenvector stability analysis model, the correlation coefficient series of equally spaced eigenvectors {K 1,3 ,K 2,4 ,…,K 48,50}, and then calculate the volatility Δ of the correlation coefficient sequence:
[0059] Δ=K max -K min
[0060] In the formula, the smaller the fluctuation degree Δ, the smaller the fluctuation degree of the correlation coefficient sequence. According to a priori, the more stable the eigenvector is, the higher the corresponding human body stiffness is.
[0061] 3) Use sliding windows to extract the number of sliding windows where the joint angles remain unchanged in multiple consecutive frames of images, and analyze the degree of continuity of the joint angles.
[0062] The embodiment of the present invention performs a lateral analysis on the extracted joint angle sequence. That is, the angle sequences of the left and right elbow joints and knee joints in the selected time period are analyzed. The analysis method for each joint angle sequence in the selected 50 frames of images is as follows:
[0063] The embodiment of the present invention adopts a 1×7 window, performs a sliding window with a step size of 1 on the angle sequence of each joint, analyzes the state of 7 consecutive data in the window, and then sets conditions for subsequent analysis of changes in the corresponding joint angles based on the window data that meets different conditions. The specific condition settings are:
[0064] The embodiment of the present invention takes 50 frames of human left elbow joint angles selected as an example: when 7 consecutive angle values in a 1×7 window are exactly the same, the present invention sets the window as a window that meets the first condition, and records the number N1 of all windows that meet condition 1; considering the influence of noise in the angle data acquisition process, therefore, for the 7 consecutive angle values in the 1×7 window, when there is one different data, the window is regarded as a window that meets the second condition, and the total number N2 of the window in the angle sequence is recorded; when there are two different data among the 7 consecutive angle values in the window, the window is regarded as a window that meets the third condition, and the total number N3 of the window in the angle sequence is recorded.
[0065] The embodiment of the present invention detects the continuous and unchanged joint angle through the windows that meet the conditions, performs statistical analysis on the windows that meet different conditions, and constructs a joint angle analysis model to determine the changes in the joint angles of the human limbs. Taking the left elbow joint angle as an example, the joint angle analysis model is:
[0066] L1=N1*W1+N2*W2+N3*W3
[0067] Wherein, L1 is the degree of continuity of the left elbow joint angle of the human body, N1 is the number of times the window that meets the first condition appears, N2 is the number of times the window that meets the second condition appears, N3 is the number of times the window that meets the third condition appears, W1 is the model weight value of the window that meets the first condition, W2 is the model weight value of the window that meets the second condition, W3 is the model weight value of the window that meets the third condition, and W1>W2>W3.
[0068] According to the joint angle analysis model constructed according to the embodiment of the present invention, the larger the function value is, the higher the degree to which the joint angle remains continuous and unchanged is, and the corresponding human body stiffness will be higher.
[0069] Similarly, obtain the degree of continuity of the right elbow joint angle L2, the degree of continuity of the left knee joint angle L3, and the degree of continuity of the right knee joint angle L4.
[0070] 4) According to the stability of the overall feature vector and the analysis of the elbow and knee joint angle sequences, the degree of human stiffness is jointly determined, and a human stiffness evaluation model R is constructed:
[0071]
[0072] The larger the function value of the human body stiffness evaluation model R is, the higher the degree of human body stiffness is in multiple consecutive frames.
[0073] Step S150, obtaining the degree of tremor of the human body, and obtaining an electric shock index according to changes in the stiffness, tremor, and power parameters of the electric shock-prone area. If the electric shock index is higher than a set electric shock threshold, it is considered that an electric shock phenomenon has occurred.
[0074] In order to improve the detection accuracy of the system, the embodiment of the present invention will analyze the degree of human tremor through the following steps.
[0075] Step S151, firstly obtain the data of the same key point of the human body in multiple consecutive frames of images, and calculate the shaking speed of the same key point.
[0076] Considering that when a person is electrocuted, the trembling characteristics of footsteps are relatively obvious and easy to obtain, therefore, the embodiment of the present invention selects the key point of the right ankle of the human body to calculate the shaking speed of the key point. Calculate the shaking speed V of the key point of the right ankle in multiple consecutive frames:
[0077]
[0078] Among them, L is the average jitter amplitude of the same key point in multiple consecutive frames, and t is the time difference between adjacent frames.
[0079] In the embodiment of the present invention, L is a two-dimensional skeleton image of 10 consecutive frames.
[0080] It should be noted that the shaking speed of the key points can be analyzed according to the speed calculation model, and normalized to ensure that the function value is in [0,1]. When the shaking speed of the key points exceeds the preset shaking speed threshold, it is determined that the human body is shaking continuously. The shaking speed threshold value of the present invention is 0.8.
[0081] Step S152, calculating the human body tremor amplitude according to the position information of the same key point in step S151.
[0082] Specifically, the maximum horizontal movement range and the maximum vertical movement range of the right ankle joint of the human body in the two-dimensional skeleton image where the abnormal mutation behavior occurs are analyzed to analyze the tremor amplitude of the ankle joint in multiple consecutive frames.
[0083] Select 20 consecutive frames of 2D skeleton images, and calculate the maximum tremor range based on the position information of the right ankle key point as the tremor amplitude of the human body:
[0084] M H =Max(x)-Min(x)
[0085] M V =Max(y)-Min(y)
[0086] Where M H is the horizontal tremor range, M V is the vertical tremor range, Max(x) is the horizontal maximum value of the right ankle key point coordinates, and Min(x) is the horizontal minimum value of the right ankle key point coordinates.
[0087] Step S153, calculating the human body's trembling frequency according to the position information of the same key point in step S151.
[0088] Specifically, the tremor frequency of the right ankle joint of the human body in the two-dimensional skeleton diagram where abnormal mutation behavior occurs is analyzed.
[0089] Select 10 consecutive 2D skeleton images {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, fit the right ankle key points of the 10 frames based on the position information, and obtain the movement of the right ankle key points in these 10 frames, as shown in Figure 3As shown in the figure, the right ankle key point coordinates are grouped, and each group of 3 frames is divided into 8 groups, specifically {1,2,3}, {2,3,4}, {3,4,5}, {4,5,6}, {5,6,7}, {6,7,8}, {7,8,9}, {8,9,10}. The key point of the middle frame of each group is taken as the center point, and the angle formed by the three key points in each group is analyzed:
[0090] 1) The point whose coordinate position information relative to the two adjacent points on the left and right is regarded as the shaking point. Figure 3 The key point corresponding to the second frame in .
[0091] 2) When the angle is 180° horizontally or vertically, the center point is considered not to be a trembling point. Figure 3 The 9th frame in the figure cannot be used as a trembling point. Relative to the two adjacent points, only the y value changes, and its x value does not change.
[0092] Specifically, the y value is the horizontal movement distance of the right ankle key point, and the x value is the jitter amplitude of the right ankle key point.
[0093] Identify and determine the trembling points in each group, record the number of trembling points, and calculate the trembling frequency of the key points of the right ankle:
[0094]
[0095] Where C is the number of jitter points, f0 is the required jitter frequency, and t is the time difference between adjacent frames.
[0096] Step S154, constructing a tremor detection model according to the tremor speed calculated in step S151, the tremor amplitude calculated in step S152, and the tremor frequency calculated in step S153. The tremor detection model E T The expression is:
[0097]
[0098] In the formula, a and k are parameters greater than 1, and the embodiment of the present invention is set as a=5, k=3, and c=0.1.
[0099] According to the acquired human body rigidity and tremor, the embodiment of the present invention will construct an electric shock risk analysis model. The electric shock risk analysis model is based on the visually acquired human body rigidity and tremor detection results, and calculates the risk of electric shock to the human body. The electric shock risk model is:
[0100] F=αR+βE T
[0101] Where F is the risk value of electric shock, α is the weight value of the human body rigidity assessment model R, and β is the tremor detection model E. T The weight value of .
[0102] The value of the embodiment of the present invention is α=β=0.5.
[0103] In order to further more accurately identify the electric shock phenomenon, the embodiment of the present invention will conduct a joint analysis based on the changes in the power parameters of the electric shock prone area to obtain the electric shock index F′, and the function expression is:
[0104] F′=F*ln(σ+e)
[0105] Wherein, σ is the power parameter abnormality evaluation index. When an electric shock accident is detected, the power parameter abnormality evaluation index σ is 1, and when there is no electric shock, the power parameter abnormality evaluation index σ is 0.
[0106] The normalization method is used to normalize the electric shock index model to ensure that the function value is in [0,1], which is convenient for subsequent more intuitive analysis.
[0107] The embodiment of the present invention sets the function value of the electric shock index: when F′<0.3, it is considered that the behavior mutation does not belong to the electric shock behavior and no electric shock phenomenon occurs; when the function value is higher than 0.3, it is determined that an electric shock phenomenon occurs and the system will issue a warning in time.
[0108] Preferably, in the embodiment of the present invention, the power parameter adopts current. The current of each circuit within the easy electric shock area is collected, and whether leakage occurs is determined according to the current change of each circuit. If leakage occurs, the power parameter abnormality evaluation index is 1, and if no leakage occurs, the power parameter abnormality evaluation index is 0.
[0109] In summary, the method for detecting electric shock of personnel based on artificial intelligence collects real-time video of areas prone to electric shock, extracts foreground moving targets in the real-time video, and determines whether the moving target is a human body. When the moving target is a human body, it determines whether the behavior state of the human body has changed suddenly. Multiple joint angles of the human body are used as feature vectors, and the feature vectors of multiple consecutive frames of images are analyzed to obtain the stability of the feature vectors and the degree of continuity of the joint angles. The stiffness and tremor of the human body are calculated, and the changes in the power parameters in the areas prone to electric shock are combined to comprehensively judge the electric shock situation, thereby improving the accuracy of detection of personnel who are electrocuted and avoiding frequent power outages caused by hardware misjudgment.
[0110] Based on the same inventive concept as the above method embodiment, the present invention also provides a personnel electric shock detection system based on artificial intelligence.
[0111] Figure 2 A block diagram of a system for detecting electric shock to personnel provided in another embodiment of the present invention is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.
[0112] Reference Figure 2The personnel electric shock detection system block diagram 200 includes: a video acquisition module 210, a personnel detection module 220, a motion mutation judgment module 230, a stiffness acquisition module 240, and an electric shock index evaluation module 250.
[0113] The video acquisition module 210 is used to collect real-time video of areas prone to electric shock; the personnel detection module 220 is used to extract moving targets in the real-time video and determine whether the moving targets are human bodies; the motion mutation judgment module 230 is used to identify whether the human behavior state has undergone a mutation when the moving target is a human body; the stiffness acquisition module 240 is used to analyze the feature vectors in multiple consecutive frames of images, taking the multiple joint angles of the human body in each frame image as a feature vector for the behavior that has undergone a mutation, to obtain the stability of the feature vector and the degree of continuity of each joint angle, and to obtain the stiffness of the human body based on the stability and the degree of continuity; the electric shock index evaluation module 250 is used to obtain the tremor of the human body, and to obtain the electric shock index based on the changes in the stiffness, tremor, and power parameters of the area prone to electric shock. If the electric shock index is higher than the set electric shock threshold, it is considered that an electric shock has occurred.
[0114] Preferably, the stiffness acquisition module further includes:
[0115] The correlation coefficient acquisition unit is used to acquire the correlation coefficients of different vectors by constructing a characteristic vector stability analysis model according to the joint angle; the fluctuation degree calculation unit is used to calculate the fluctuation degree of the correlation coefficient sequence.
[0116] Preferably, the stiffness acquisition module further includes:
[0117] The joint angle invariance degree acquisition unit is used to use sliding windows to extract the number of sliding windows in which the joint angles remain unchanged in multiple consecutive frames of images, and analyze the degree of continuous invariance of the joint angles.
[0118] Preferably, the tremor degree acquisition module further includes:
[0119] The moving speed acquisition unit is used to acquire the data of the same key point of the human body in multiple consecutive frames of images and calculate the moving speed of the key point; the amplitude and frequency acquisition unit is used to calculate the human body trembling amplitude and trembling frequency according to the position information of the key point; the trembling degree acquisition unit is used to obtain the trembling degree according to the moving speed, trembling amplitude and trembling frequency.
[0120] In summary, the personnel electric shock detection system based on artificial intelligence collects real-time video of the electric shock-prone area through the video acquisition module, extracts the moving target in the real-time video using the personnel detection module, determines whether the moving target is a human body, and identifies whether the behavior state of the moving target is a human body through the action mutation judgment module. According to the stiffness acquisition module, multiple joint angles of the human body are used as a feature vector to analyze the feature vectors in continuous multiple frames of images, obtain the stability of the feature vector and the degree of continuity of the joint angle, calculate the stiffness and tremor of the human body, and use the electric shock index evaluation module to combine the stiffness, tremor of the human body, and the changes in the power parameters of the electric shock-prone area to obtain the electric shock index. Accurate detection of electric shock of personnel is achieved and the probability of misjudgment is reduced.
[0121] It should be noted that the sequence of the embodiments of the present invention described above is for description only and does not represent the advantages and disadvantages of the embodiments. The above describes specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0122] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
[0123] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for detecting electric shock based on artificial intelligence, characterized in that: The method comprises the following steps: Collect real-time video of areas prone to electric shock; Extracting a moving target in the real-time video, and determining whether the moving target is a human body; When the moving target is a human body, identifying whether a behavioral state of the human body suddenly changes; For the behavior that has undergone a sudden change, multiple joint angles of the human body in each frame of image are used as a feature vector, the feature vectors in multiple consecutive frames of image are analyzed to obtain the stability of the feature vector and the degree of continuity and invariance of each joint angle, and the stiffness of the human body is obtained according to the stability and the degree of continuity and invariance; Acquire the degree of tremor of the human body, and acquire an electric shock index according to the changes of the stiffness, the tremor, and the power parameter of the electric shock-prone area; if the electric shock index is higher than a set electric shock threshold, it is considered that an electric shock phenomenon occurs; The method for obtaining the stability of the characteristic vector comprises the following steps: Acquire a correlation coefficient sequence between a plurality of the joint angles in the continuous multi-frame images; The fluctuation degree of the correlation coefficient sequence is calculated, and the fluctuation degree is used as the stability.
2. The method for detecting electric shock based on artificial intelligence according to claim 1, characterized in that: The method for obtaining the degree of continuity and invariance comprises the following steps: The number of sliding windows in which the joint angles remain unchanged in the continuous multi-frame images is extracted by using sliding windows, and the degree of continuity of the joint angles is analyzed.
3. The method for detecting electric shock based on artificial intelligence according to claim 1, characterized in that: The method for obtaining the tremor degree of the human body comprises the following steps: Acquire the same key point data of the human body in the continuous multiple frames of images, and calculate the moving speed of the key point; Calculating the human body tremor amplitude and tremor frequency according to the position information of the key points; The shaking degree is obtained according to the moving speed, the shaking amplitude and the shaking frequency.
4. The method for detecting electric shock based on artificial intelligence according to claim 1, characterized in that: The method used for extracting the moving target in the real-time video is background difference method.
5. The method according to claim 1, characterized in that The method for identifying whether a sudden change occurs in the behavior state of the human body comprises the following steps: Acquire a two-dimensional skeleton image of the human body; The behavior state of the human body is detected according to the two-dimensional skeleton image to determine the mutation situation.
6. An artificial intelligence-based electric shock detection system, characterized in that: include: Video acquisition module, used to collect real-time video of areas prone to electric shock; A person detection module is used to extract a moving target in the real-time video and determine whether the moving target is a human body; A sudden motion judgment module, used for identifying whether a sudden motion state of the human body occurs when the moving target is a human body; A stiffness acquisition module is used to analyze the feature vectors in a plurality of consecutive frames of images, taking the multiple joint angles of the human body in each frame of the image as a feature vector for the behavior that has undergone a sudden change, to acquire the stability of the feature vector and the degree of continuity and invariance of each joint angle, and to obtain the stiffness of the human body according to the stability and the degree of continuity and invariance; an electric shock index evaluation module, used to obtain the degree of tremor of the human body, and obtain an electric shock index according to the degree of rigidity, the degree of tremor, and the change of the power parameter of the electric shock-prone area; if the electric shock index is higher than a set electric shock threshold, it is considered that an electric shock phenomenon occurs; The method for obtaining the stability of the characteristic vector comprises the following steps: Acquire a correlation coefficient sequence between a plurality of the joint angles in the continuous multi-frame images; The fluctuation degree of the correlation coefficient sequence is calculated, and the fluctuation degree is used as the stability.
7. The system according to claim 6, characterized in that The stiffness acquisition module further includes: A correlation coefficient acquisition unit is used to acquire the correlation coefficients of different vectors by constructing a characteristic vector stability analysis model according to the joint angle; and a sequence composed of all the correlation coefficients is used as a correlation coefficient sequence; The fluctuation degree calculating unit is used to calculate the fluctuation degree of the correlation coefficient sequence.
8. The system according to claim 6 or 7, characterized in that: The stiffness acquisition module further includes: The joint angle invariance degree acquisition unit is used to use sliding windows to extract the number of sliding windows in which the joint angles remain unchanged in the continuous multi-frame images, and analyze the degree of continuity and invariance of the joint angles.
9. The system according to claim 6, characterized in that The tremor degree acquisition module further includes: A moving speed acquisition unit, used to acquire data of the same key point of a human body in multiple consecutive frames of images, and calculate the moving speed of the key point; An amplitude and frequency acquisition unit, used for calculating the human body tremor amplitude and tremor frequency according to the position information of the key points; The tremor degree obtaining unit is used to obtain the tremor degree according to the moving speed, the tremor amplitude and the tremor frequency.
