Video analysis-based wall-tapping and top-asking action identification method

Through guide filtering and multi-scale Retinex algorithm, image data is processed and CBAM attention mechanism is introduced in the YOLOv5 model, the problem of poor image quality in coal mines is solved, the accuracy and efficiency of knock-on top recognition is improved, and automated monitoring is realized and security management.

CN119007084APending Publication Date: 2024-11-22SHANXI SANJI TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411145751.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-20
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

In the underground environment of coal mines, image data with poor image quality leads to a reduced detection performance of the knock-on top recognition model, and the problems of uneven light and noise are difficult to solve.

Method used

The guided filtering algorithm and multi-scale Retinex algorithm are used to process image data, enhance image quality, and introduce a CBAM attention mechanism in the YOLOv5 model to improve the model structure to improve feature selection and spatial focus capabilities.

Benefits of technology

It improves the accuracy and contrast of downhole image recognition, enhances the robustness and accuracy of the model, realizes the knock-and-tip process in automated identification of downhole operations, and reduces the time and cost of manual inspection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119007084A_ABST
    Figure CN119007084A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of intelligent coal mine industry and machine vision, and discloses a video analysis-based wall-knocking and top-asking action recognition method, and the specific technical scheme is as follows: obtaining source data of coal mine underground wall-knocking and top-asking process recognition; a guide filtering algorithm is combined with a multi-scale Retinex algorithm to process underground field image information to obtain image enhancement data, then the data after enhancement processing is input into a model of an improved YOLOv5 backbone network structure, an input feature group is separated, a CBAM attention mechanism is added in convolution transformation before a separation mechanism, and the CBAM attention mechanism is added in convolution transformation before the separation mechanism. According to the method, more detailed feature selection and space focusing are provided, a model is prompted to more accurately position and distinguish targets, identification information is sent out through a terminal according to an identification result, and the identification result is uploaded to an administrator terminal, so that whether a wall-knocking and top-asking process is carried out or not during underground operation is automatically identified, and the operation efficiency is improved. And the image recognition precision and the staff management efficiency are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of intelligent coal mining industry and machine vision technology, and specifically relates to a method for identifying knocking and top-asking actions based on video analysis. Background Art

[0002] Knocking on the roof is a safety measure routinely implemented in coal mines and other underground mines, aimed at preventing roof accidents and ensuring the safety of workers. Knocking on the roof is usually required in the following situations: 1. Pre-operation inspection: Before the start of each shift, especially in the manual excavation working face, knocking on the roof must be performed; 2. Before temporary support: Before temporary support or permanent support, knocking on the roof must be performed; 3. Any empty roof area (i.e., unsupported or insufficiently supported areas) visited by any personnel must implement the knocking on the roof system to ensure that the roof in these areas is safe and reliable. Therefore, whether to carry out the knocking on the roof process is an important indicator of coal mine safety supervision.

[0003] AI recognition of underground knocking and top checking uses artificial intelligence technology to identify and classify whether the knocking and top checking process has been carried out during underground operations, so as to realize automated supervision and management. First of all, recognition based on video analysis can cover areas that are difficult to reach manually or have poor visibility, ensuring that there are no blind spots in the safety monitoring of the entire working environment, making it convenient for supervisors to preview the real-life overview of the working area. Secondly, compared with traditional manual knocking and top checking, the recognition method based on video analysis can continuously and quickly analyze a large amount of monitoring data, reduce the time and labor costs of manual inspections, and improve work efficiency and productivity. At the same time, as part of the intelligent construction of coal mines, knocking and top checking recognition based on video analysis has promoted the development of mines towards digitalization and automation, which is in line with the development trend of modern mine safety management.

[0004] As we all know, the underground coal mine is a dark, humid, and narrow environment. Deep in the mine, the temperature is high, the humidity is high, the light is dim, the ventilation is poor, and the environment is relatively harsh. Specifically, the underground environment usually has irregular terrain and narrow space, which makes image capture and processing more difficult; there is often a lot of dust and fog in the underground environment, which will cause the image to be blurred and the contrast to be reduced; poor lighting conditions: the light in the underground environment is usually weak and uneven, and many areas may be in semi-darkness or complete darkness, which will have a great negative impact on the clarity and color reproduction of the image. Due to poor lighting conditions, the camera often needs to increase the ISO setting when working in the underground environment, which will cause a large amount of noise in the image. The combined effect of various factors will result in the underground images usually being of low quality, with problems such as loss of details, color distortion, and insufficient contrast being more prominent. Summary of the invention

[0005] In order to solve the technical problems existing in the prior art, the present invention provides a method for identifying knocks on the top and roof based on video analysis, which deeply integrates computer vision technology with video monitoring rules to meet the real-time video recognition needs of coal mines. That is, the guided filtering algorithm is combined with the multi-scale Retinex algorithm to process the underground scene image information to obtain image enhancement data, and then the YOLOv5 model structure is modified to perform knocks on the top and roof recognition. This method is proposed to address the situation where the quality of images collected in complex underground environments is poor, resulting in reduced model detection performance.

[0006] To achieve the above purpose, the technical solution adopted by the present invention is: a method for identifying knocking and asking for help actions based on video analysis, and the specific steps are as follows:

[0007] Step 1: Data acquisition: Get the source data for identifying the underground coal mine knocking and top asking process.

[0008] Step 2: Data preprocessing: First, use the guided filtering algorithm to denoise the original image and retain edge details, which helps to maintain the clarity and edges of the image while eliminating noise. Then add the multi-scale Retinex algorithm to the processed image for contrast enhancement and color restoration, which is convenient for processing images with uneven lighting, and can effectively restore the color of the image and enhance the contrast, and finally obtain the enhanced image data.

[0009] Step 3: Data labeling: Before labeling, divide the image data into training set, validation set and test set in a ratio of 6:2:2, use labelimg to label the image, and output the label in txt format;

[0010] Step 4. Improve the model network structure training: Select the YOLOv5 model as the preliminary pre-training weight model for knock-on question recognition, and improve the YOLOv5 backbone network structure. The specific improvement steps are: separate the input feature group, and add the CBAM attention mechanism in the convolution transformation before the separation mechanism for feature selection and spatial focusing, which helps the model to distinguish and locate the target more accurately, thereby enriching the model network structure and improving model performance. During the training process, the training parameters are continuously optimized and adjusted to achieve the best model detection effect.

[0011] Step 5: Model recognition: The image enhancement data is used to train the corresponding detection model through the improved YOLOv5 target detection method, and the camera video stream is pulled for real-time detection. When the knocking and asking the top detection is captured, the pictures and video recognition results of the knocking and asking the top are immediately uploaded to the management terminal.

[0012] In step one, high-definition cameras installed in designated work surface areas continuously capture video streams or images of different angles, lighting conditions, and time periods to ensure that the data covers all possible situations and maintains the richness of the data.

[0013] When the high-definition camera collects images of miners doing temporary support and other backgrounds, it also collects images of miners doing temporary support and other backgrounds as comparison data to distinguish the actions of knocking and asking the roof.

[0014] In step 2, preprocessing means that the video stream is converted into an analyzable data format in real time and data enhancement processing is performed to enhance data diversity and improve the generalization ability of the model. The specific steps are as follows:

[0015] Step S21, guide the enhancement process before filtering:

[0016] After the source data collection is completed, each image to be processed is set as p i , I i As the guide image, the final output image q is obtained after guided filtering. i , the specific processing formula is as follows:

[0017]

[0018] Among them, a k With b k is the coefficient variable in the filter window, a k With b k The value of is determined by the guide graph and the graph to be processed. The specific calculation formula is as follows:

[0019]

[0020]

[0021] W| is the local window W k The total number of pixels in , σ k is the variance of the pixels in the window, μ k is the mean value of the pixels in the window, ε is the penalty value, is the image to be processed p i Average value in a local window;

[0022] Step S22: multi-scale Rentinex post-enhancement processing:

[0023] F(x,y)=L(x,y)×R(x,y)

[0024] LogR(x,y)=LogF(x,y)-LogL(x,y)

[0025] Wherein, (x, y) is the coordinate of the corresponding pixel point, F(x, y) is the image after guided filtering processing in step S21, R(x, y) is the reflection component of the target object carrying image detail information, and L(x, y) is the illumination component of the ambient light;

[0026] Gaussian blur is performed on the image at each scale to obtain the blurred image:

[0027] Log(R(x,y))=Log(R(x,y))+Weight(i)×(Log(F i (x,y))-Log(L i (x,y)))

[0028] Among them, i is the scale reading, and Weight(i) is the weight of each scale;

[0029] Finally, the image output is represented as:

[0030]

[0031]

[0032] Among them, G i (x,y) indicates that the scale parameter is δ i Gaussian function, N is the number of scales, generally N = 3 represents large, medium and small scales, λ i is a scale variable, which can be adjusted according to the specific situation. i is the Gaussian surround scaling function, with a value of 80-100.

[0033] The enhanced image data is obtained through the above steps and participates in the later model training.

[0034] In step 4, the specific improvement steps are as follows:

[0035] Step S41, separating the input feature groups:

[0036] According to the channel dimension, the input feature map is divided into K groups and used as the input basis array. A new parameter D is introduced to split the basis array. D represents the number of divisions within the basis array, and each split group is recorded as d. According to the setting of the parameter and channel dimension, the total number of input feature groups becomes G = KD.

[0037] Step S42: Intermediate representation transformation:

[0038] Each individual feature group is transformed into a separate series {F1, F2...F G}, the intermediate representation of each group is S i =F i(x)i∈{1,2…G}, add the CBAM module to each split basis array after the 1x1 convolution, perform adaptive attention processing on the channel dimension of the convolution feature map, and improve the model's learning ability for key feature points through the hybrid attention mechanism module. Perform adaptive attention processing on the channel dimension of the convolution feature map, and then input it into the subsequent 3x3 convolution operation to describe the features of the input image, so as to better describe the features of the input image and improve the performance of the model.

[0039] Step S43: separation mechanism transformation:

[0040] After the convolution transformation, the features after the intermediate representation are fused in a single basis array by summing the elements across multiple segments to obtain the combined representation of each basis array. The Kth basis array is represented as The specific representation is as follows:

[0041]

[0042] Among them, H is the height of the feature map image, W is the width of the feature map image, C is the number of channels of the feature map image, G = KD, K is the total number of groups of the input feature map base array, each base array is the kth group, D is the number of internal split groups of the input feature map base array, and U m is the intermediate representation of each basis array;

[0043] After global average pooling, we get the cth component

[0044]

[0045] The channel soft attention mechanism is used to weight the attention of each channel. The calculation formula is as follows:

[0046]

[0047] in, Represents the weight assigned by softmax;

[0048] Concatenate the base arrays to get V:

[0049] V = concat {V 1 ,V 2 …V K}

[0050] Connect the current input and output with a standard residual structure and use it as a new feature output Q:

[0051] Q=V+θ(X)

[0052] Among them, θ(x) is the skip connection mapping in the residual block;

[0053] After the subsequent convolution operation, the final feature map is obtained.

[0054] Compared with the prior art, the present invention has the following specific beneficial effects: the present invention uses a guided filtering algorithm combined with a multi-scale Retinex algorithm to process underground field image information to obtain image enhancement data, and then inputs the enhanced data into a model with an improved YOLOv5 backbone network structure, separates the input feature group, and adds a CBAM attention mechanism in the convolution transformation before the separation mechanism, providing more detailed feature selection and spatial focusing, enabling the model to more accurately locate and distinguish targets, and sends identification information through a terminal according to the recognition result, and uploads the recognition result to an administrator terminal, thereby realizing automatic identification of whether the knocking and top-asking process is performed during underground operations, and improving image recognition accuracy and staff management efficiency.

[0055] The algorithm of the present invention is trained based on the data source after image enhancement processing and the improved YOLOv5 model. The algorithm has better robustness and accuracy. The improved model after training is more accurate than other training models.

[0056] The present invention reduces downtime caused by manual inspections through automated monitoring and avoids production interruptions caused by safety accidents, thereby improving the overall operating efficiency and production capacity of mines, bringing economic benefits to mining companies while also promoting the sustainable development of the mining industry and improving production efficiency.

[0057] The AI ​​recognition of the present invention can more accurately allocate safety inspection resources, deploy preventive measures in a targeted manner, and reduce unnecessary waste of personnel and materials. In addition, through the analysis of a large amount of monitoring data, the mining plan can be further optimized, the mining sequence and the layout of the working surface can be reasonably arranged, and the resource allocation can be optimized.

[0058] The present invention adopts AI technology to identify knocks and top problems, which helps mining enterprises meet or even exceed the requirements of safety regulations, reduce the risk of violations, and enhance the company's image of social responsibility.

[0059] The present invention promotes technological innovation in the mining industry, facilitates the transformation of traditional mining to intelligence and informatization, accelerates technological upgrading of the entire industrial chain, promotes the identification of knocking and top questions and improves its accuracy, and can be widely promoted and applied. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] Figure 1 The flowchart of the method for identifying knocking on the door based on video analysis.

[0061] Figure 2 This is a structural block diagram of a knock-on question recognition device based on video analysis.

[0062] Figure 3 This is the improved YOLOv5 structure diagram.

[0063] Figure 4 This is the performance evaluation chart of the improved YOLOv5 training results.

[0064] Figure 5 It is a knock-on-top identification diagram in the embodiment. DETAILED DESCRIPTION

[0065] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0066] like Figure 1-2 As shown, a method for identifying knocking-bang-asking actions based on video analysis includes a data acquisition module, an image enhancement processing module, a model training module, a recognition module and a communication module; wherein the data acquisition module is used to obtain knocking-bang-asking video data of different angles, different lighting conditions and different scenes; the image enhancement processing module is used to pre-process the acquired source data to obtain knocking-bang-asking image enhancement data; the model training module inputs the processed image data, divides the data set in order, and puts it into the model for training; the network model includes a separation input feature unit, an intermediate representation change unit, a separation mechanism transformation unit and a convolution unit; the recognition module is used to use the trained network model to continuously perform knocking-bang-asking process detection on the real-time video stream pulled from the camera; the communication module transmits the knocking-bang-asking recognition result to the management terminal via wireless.

[0067] Among them, the main performance parameters of the device are shown in Table 1:

[0068] Table 1 Identification device performance parameters

[0069]

[0070]

[0071] The specific steps of using the device to identify the knocking action are as follows:

[0072] S1. Source data acquisition: Source data is the foundation for achieving high accuracy of the model. Combined with the requirements of the later model training data set, the underground working environment is investigated on-site, and the lighting conditions and spatial layout of different tunnels are evaluated to determine the best installation position of the camera. However, considering the complex and harsh underground environment and the workers' working hours and activity patterns, the video stream of the monitoring camera is pulled to collect source data from different angles, lighting conditions, and time periods to fully cover the working area and capture different aspects of the knocking and top asking to ensure the comprehensiveness and diversity of the data. More importantly, while the camera collects the knocking and top asking images, it is also necessary to collect images of miners doing temporary support and other background images as comparison data to distinguish the knocking and top asking actions to avoid confusion in identification.

[0073] Specifically, after the camera is installed in a fixed working surface scene, the camera that meets the recognition conditions is added to the recognition device by obtaining basic information such as the camera IP, login name, password, and protocol type. The main performance parameters of the camera are shown in Table 2:

[0074] Table 2 Camera performance parameters

[0075]

[0076] After the recognition device pulls the camera video stream, it takes screenshots of the video stream at intervals: the video is intercepted at the set frame interval, saved in JPEG format, and the interception is stopped when the set maximum acquisition number is reached. During the implementation process, the interval frame number is set to 20 and the maximum acquisition number is set to 10000. The above is the specific process of the data acquisition module. After the data is collected, the data is input into the image enhancement processing module to enhance the source data, as follows:

[0077] S2. Data preprocessing: Preprocessing means that the video stream is converted into an analyzable data format in real time and data enhancement processing is performed to enhance data diversity and improve the generalization ability of the model.

[0078] S21, guided filtering before enhancement processing: After the source data is collected, each image to be processed is set as p i , I i As the guide image, the final output image q is obtained after guided filtering. i , the specific processing formula is as follows:

[0079]

[0080] Among them, a k With b k are the coefficient variables in the filtering window, and their values ​​are determined by the guide graph and the graph to be processed. The calculation formula is as follows:

[0081]

[0082]

[0083] W| is the local window W k The total number of pixels in , σ k is the variance of the pixels in the window, μ k is the mean value of the pixels in the window, ε is the penalty value, is the image to be processed p i The average value in the local window.

[0084] S22, multi-scale Rentinex post-enhancement processing:

[0085] F(x,y)=L(x,y)×R(x,y)

[0086] LogR(x,y)=LogF(x,y)-LogL(x,y)

[0087] Where (x, y) is the coordinate of the corresponding pixel point, F(x, y) represents the image after guided filtering in step S21, R(x, y) is the reflection component of the target object carrying image detail information, and L(x, y) is the illumination component of the ambient light. Then, Gaussian blur processing is performed on the image at each scale to obtain the blurred image:

[0088] Log(R(x,y))=Log(R(x,y))+Weight(i)×(Log(F i (x,y))-Log(L i (x,y)))

[0089] Among them, i represents the scale reading, Weight(i) represents the weight of each scale, and the sum is 1. Finally, the image output is expressed as:

[0090]

[0091]

[0092] Among them, G i (x,y) is the scale parameter δ i Gaussian function, N is the number of scales, generally N = 3 represents large, medium and small scales, λ i It is a scale variable and needs to be adjusted according to the specific situation. i is a Gaussian surround scaling function with a value between 80 and 100. The enhanced image data is obtained through the above steps and is used in the later model training.

[0093] After preprocessing, the data will be saved in the storage path of the recognition device, and then transmitted to the client through the wireless transmission module in the device and saved in the specified path. The next step is to annotate the data:

[0094] S3. Data labeling: Use the labelimg labeling tool to label the data. In each image or video frame, label the entire body of each person who is labeling and the position of the tool in their hand. Ensure that the target frame covers the entire body of the person and the tool area as accurately as possible, and avoid including the surrounding background or other objects. After labeling, save the labeling information in a specific txt format for subsequent model training.

[0095] After the data is labeled, the data is input into the recognition device model training module. The module has embedded data partitioning and data training submodules in the program. The data partitioning module automatically divides the data into training set, verification set and test set according to the preset data ratio of 6:2:2. After the data is divided, it is put into the model training module; the network model includes a separation input feature unit, an intermediate representation change unit, a separation mechanism transformation unit and a convolution unit:

[0096] S4. Improve YOLOv5 model structure training: In the complex and special scene of underground mines, CBAM can provide more detailed feature selection and spatial focus due to its ability to consider both channel and spatial attention, which helps the model to distinguish and locate targets more accurately. Therefore, the YOLOv5 backbone network structure is improved: separate the input feature group, and add the CBAM attention mechanism to the convolution transformation before the separation mechanism, so that the model can better capture the spatial relationship of the target area and effectively cope with the challenges of the underground environment. The specific improved structure diagram is shown in the figure below. Figure 3 shown.

[0097] The specific improvement steps are as follows:

[0098] S41, separate input feature groups: divide the input feature map into K groups according to the channel dimension, each of which is represented as the kth group. These feature maps are used as the input base array. After the determination, a new parameter D is introduced to continue the splitting operation on the base array. D represents the number of divisions within the base array, and each split group is recorded as d. Therefore, according to the setting of the two parameters and the channel dimension, the total number of input feature groups becomes G = KD.

[0099] S42, intermediate representation transformation: Each individual feature group can perform a separate series of transformations {F1, F2…F G}, then the intermediate representation of each group is S i =F i(x)i∈{1,2…G}. The present invention mainly adds the CBAM module to each split basis array after the 1x1 convolution in the intermediate representation, performs adaptive attention processing on the channel dimension of the convolution feature map, and improves the model's learning ability for key feature points through the hybrid attention mechanism module. After being processed by the channel attention module, it is input into the later 3x3 convolution operation, so as to better describe the features of the input image, thereby improving the performance of the model.

[0100] S43, split-attention: After the convolution transformation, the features after the intermediate representation are fused in a single basis array, and then fused by summing the elements across multiple segments to obtain the combined representation of each basis array. The Kth basis array is represented as The specific expression is as follows:

[0101]

[0102] Where H is the height of the feature map image, W is the width of the feature map image, C is the number of channels of the feature map image, G = KD. K is the total number of input feature map base arrays, each base array is the kth group, D is the number of internal split groups of the input feature map base array, U m is the intermediate representation of each basis array.

[0103] After global average pooling, we get the cth component To reduce the dimension of the feature map output by the convolutional layer:

[0104]

[0105] Then, each channel is weighted by the channel soft attention mechanism, and the cth channel The calculation formula is as follows:

[0106]

[0107] in, Represents the weights assigned by softmax, and then concatenates the basis arrays to get V:

[0108] V = concat {V 1 ,V 2 …V K}

[0109] Then the current input and output are connected with the standard residual structure and used as the new feature output Q:

[0110] Q=V+θ(X)

[0111] Among them, θ(x) is the skip connection mapping in the residual block, and after the subsequent convolution operation, the final feature map is obtained.

[0112] Improved results: The Yolov5 model parameters after training are as follows Figure 4 As shown in Table 3, the Precision rate reaches 89.5%, the Recall rate reaches 87.6%, the mAP value reaches 91.2%, and the F1 score is 95.2%. The comparison with the Yolov5 training evaluation performance is shown in Table 3:

[0113] Table 3 Comparison of Yolov5 improved structure and Yolov5 training evaluation performance

[0114]

[0115] After improving the Yolov5 structure, the performance comparison with Yolov5 shows that the recall values ​​of the two are roughly the same, but the precision, mAP value and F1 score of the improved Yolov5 are higher than those of Yolov5, and the model detection performance is better.

[0116] After the model training is completed, the model package is generated and deployed to the edge of the recognition device. The corresponding recognition rules are configured: duration: 1s; alarm interval: 600s; confidence: 60; after the configuration, the model recognition starts:

[0117] S5. Model recognition: A corresponding detection model is trained according to the image enhancement data through an improved YOLOv5 target detection method, and the camera video stream is pulled for real-time detection. When knocking on the top is detected, the frame of the image with the knocking on the top action is automatically captured and saved to the images saving path in the recognition device by default. At the same time, the background terminal is set to save the video of the thirty seconds before and after the frame of the knocking on the top action to the record path. Finally, the image and video data are immediately uploaded to the management terminal through the communication module of the recognition device using wireless transmission to facilitate the management personnel to query.

[0118] Furthermore, the present invention also provides a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to execute the above-mentioned method for determining the behavior of asking for favors based on image recognition.

[0119] 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 and improvements made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims

1. A method for identifying knocking and asking for directions based on video analysis, characterized in that: The specific steps are as follows: Step 1: Data acquisition: Acquire the source data for the identification of the underground coal mine knocking and top-asking process; Step 2: Data preprocessing: Use the guided filtering algorithm to denoise the original image and retain edge details, add the multi-scale Retinex algorithm to the processed image to perform contrast enhancement and color restoration, and obtain the enhanced image data; Step 3: Data labeling: Before labeling, divide the image data into training set, validation set and test set in a ratio of 6:2:2, use labelimg to label the image, and output the label in txt format; Step 4: Improve the model network structure training: Select the YOLOv5 model as the preliminary pre-training weight model for knock-on question recognition, improve the YOLOv5 backbone network structure, and the specific improvement steps are: separate the input feature group, and add the CBAM attention mechanism to the convolution transformation before the separation mechanism for feature selection and spatial focusing, distinguish and locate the target, and continuously optimize and adjust the training parameters during the training process; Step 5: Model recognition: The image enhancement data is used to train the corresponding detection model through the improved YOLOv5 target detection method, and the camera video stream is pulled for real-time detection. When the miners are captured performing knocking and asking about the top, the recognition results are uploaded to the management terminal.

2. The method for identifying knocking and asking for help actions based on video analysis according to claim 1 is characterized in that: In step one, a high-definition camera installed in a designated work surface area continuously captures video streams or images at different angles, lighting conditions, and time periods; When the high-definition camera collects images of miners doing temporary support and other backgrounds, it also collects images of miners doing temporary support and other backgrounds as comparison data to distinguish the actions of knocking and asking the roof.

3. The method for identifying knocking and asking for help actions based on video analysis according to claim 1 is characterized in that: In step 2, the specific steps are as follows: Step S21, guide the enhancement process before filtering: After the source data collection is completed, each image to be processed is set as p i , I i As the guide image, the final output image q is obtained after guided filtering. i , the specific processing formula is as follows: Among them, a k With b k is the coefficient variable in the filter window, a k With b k The value of is determined by the guide graph and the graph to be processed. The specific calculation formula is as follows: W| is the local window W k The total number of pixels in , σ k is the variance of the pixels in the window, μ k is the mean value of the pixels in the window, ε is the penalty value, is the image to be processed p i Average value in a local window; Step S22: multi-scale Rentinex post-enhancement processing: F(x,y)=L(x,y)×R(x,y) LogR(x,y)=LogF(x,y)-LogL(x,y) Wherein, (x, y) is the coordinate of the corresponding pixel point, F(x, y) is the image after guided filtering processing in step S21, R(x, y) is the reflection component of the target object carrying image detail information, and L(x, y) is the illumination component of the ambient light; Gaussian blur is performed on the image at each scale to obtain the blurred image Log(R(x,y)): Log(R(x,y))=Log(R(x,y))+Weight(i)×(Log(F i (x,y))-Log(L i (x,y))) Where i is the number of scales, Weight(i) is the weight of each scale; F i (x, y) is the i-th scale of the image carrying the reflection component of the target object: L i (x, y) is the i-th scale of the image carrying the ambient light illumination component; Finally, the image output is represented as: Among them, G i (x,y) indicates that the scale parameter is δ i Gaussian function, N is the number of scales, λ i is a scale variable, δ i is the Gaussian surround scaling function, with a value of 80-100.

4. The method for identifying knocking and asking for help actions based on video analysis according to claim 1 is characterized in that: In step 4, the specific improvement steps are as follows: Step S41, separating the input feature groups: According to the channel dimension, the input feature map is divided into K groups and used as the input basis array. A new parameter D is introduced to split the basis array. D represents the number of divisions within the basis array, and each split group is recorded as d. According to the setting of the parameter and the channel dimension, the total number of input feature groups becomes G = KD. Step S42: Intermediate representation transformation: Each individual feature group is transformed into a separate series {F1, F2...F G }, the intermediate representation of each group is S i =F i (x)i∈{1,2…G}, add the CBAM module to each split basis array after the 1x1 convolution, perform adaptive attention processing on the channel dimension of the convolution feature map, and then input it into the subsequent 3x3 convolution operation to describe the features of the input image; Step S43: separation mechanism transformation: After the convolution transformation, the features after the intermediate representation are fused in a single basis array by summing the elements across multiple segments to obtain the combined representation of each basis array. The Kth basis array is represented as The specific representation is as follows: Among them, H is the height of the feature map image, W is the width of the feature map image, C is the number of channels of the feature map image, G = KD, K is the total number of groups of the input feature map base array, each base array is the kth group, D is the number of internal split groups of the input feature map base array, and U m is the intermediate representation of each basis array; After global average pooling, we get the cth component The channel soft attention mechanism is used to weight the attention of each channel. The calculation formula is as follows: in, Represents the weight assigned by softmax; Concatenate the base arrays to get V: V=concat{V 1 ,V 2 …In K } Connect the current input and output with a standard residual structure and use it as a new feature output Q: Q=V+θ(X) Among them, θ(x) is the skip connection mapping in the residual block; After the subsequent convolution operation, the final feature map is obtained.