Intelligent visual monitoring and early warning method for safety of tank entering operation personnel of tank car
Through computer vision and deep learning technology, the tank entry behavior of tank workers in chemical production is monitored in real time and an early warning mechanism is set up. This solves the problem of relying on manual supervision for the safety of tank workers in chemical production and realizes the intelligence of tank operations. Optimize safety monitoring and reduce the risk of accidents.
Patent Information
- Application Number
- CN202410668932.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-28
- Publication Date
- 2024-09-03
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In chemical production, the safety of workers who put tanks into tanks relies on manual supervision. There is a risk of safety accidents caused by insufficient supervision, and there is a lack of effective automated monitoring measures.
An intelligent visual monitoring method based on computer vision and deep learning is used to monitor the behavior of personnel entering the tank in real time through target detection and attitude estimation technology, set a timer and trigger an early warning mechanism to ensure safety inside and outside the tank.
It realizes intelligent safety monitoring of tank workers, reduces risks caused by human factors, reduces the occurrence of safety accidents, and improves the safety of the operation process.
Smart Images

Figure CN118587648A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer vision recognition technology, and in particular to an intelligent vision monitoring and early warning method for the safety of tank truck entry operators. Background Art
[0002] Tanks are a common storage equipment in chemical production, and inspection and testing are important measures to ensure the safety of tanks. Since there may be various toxic, harmful, flammable and explosive dangerous factors inside the tank, it is very easy to cause serious safety accidents if people enter the tank without permission or without taking necessary protective measures. At present, the safety of people entering the tank is still mainly to arrange additional supervisors to observe the situation of people in the tank near the manhole at all times. If the supervisors are not responsible, it is easy to cause safety accidents if the supervisors fail to provide adequate supervision when danger occurs.
[0003] Therefore, in order to improve the safety level of personnel entering the tank, introducing artificial intelligence and computer vision technology into the field of safe production, conducting intelligent monitoring and safety warnings on the entire process of tank entry operations, and reducing the adverse effects caused by human factors will definitely become an important direction for the future development of "Internet + safe production". Summary of the invention
[0004] The purpose of the present invention is to propose an intelligent visual monitoring method for the safety of tank truck entry operations. Based on the recognition technology of target detection and the posture estimation technology, the algorithm is used to capture, accurately locate and classify the personnel, tank truck tanks and other facilities appearing in the monitoring video in real time, and predict the behavior obtained from the key point information of the personnel's limbs. According to the movement of the personnel entering and exiting the tank and the position of the personnel near the manhole, it is judged that there is someone inside the tank undergoing a safety inspection, and then a timer is set to prevent the personnel from staying in the tank for a long time and causing a safety accident. When a person enters the tank for a safety inspection, the system turns on the safety monitoring state. When there is a lack of safety monitoring personnel outside the tank or the inspection personnel are in the tank for a long time, the early warning mechanism will be triggered immediately, and an alarm will be issued to the relevant personnel through various means such as sound and light to remind them to take countermeasures in time, so that the personnel entering the tank can be monitored more intelligently and safely to avoid safety accidents.
[0005] In order to achieve the above object, the technical solution adopted by the present invention is as follows:
[0006] A method for detecting the posture of entering and exiting a tank body comprises the following steps:
[0007] S1: Collect on-site monitoring videos of petrochemical plants under different light and dark conditions, capture images containing manholes and personnel as well as ordinary scene images at a ratio of 5:1, and use generative adversarial networks to expand the dataset;
[0008] S2: Divide the factory image dataset into a ratio of 8:2:1 to obtain the training set, validation set, and test set, and then annotate and label them;
[0009] S3: Use the "transfer learning" method and adaptive learning rate algorithm to train the target detection model to achieve manhole and personnel detection;
[0010] S4: Run the posture estimation model, extract the key points of the personnel, calculate the angles between the key point vectors, and identify the relevant actions of entering and exiting the tank, including squatting and bending;
[0011] S5: Determine whether a person actually enters or leaves the tank based on the relative position between the person and the manhole, the person's related actions, and the person's disappearance or appearance;
[0012] S6: When the personnel are working in the tank, a timer is set to randomly take 5 frames of images within 10 seconds. If the supervisor is not identified in the 5 frames, an alert for lack of supervisor is issued. When the timer reaches 120 minutes, if the personnel have not left the tank, an alert for long-term absence of personnel is issued.
[0013] Beneficial effects: The present invention provides an intelligent visual monitoring method for the safety of tank truck entry operations, which monitors personnel entering and exiting the tank in real time. Based on deep learning and posture estimation, personnel and related facilities and equipment are captured, timers are set, and a safety warning mechanism is constructed. The monitoring is mainly carried out from two aspects: monitoring of personnel outside the tank and limiting the time of stay in the tank, effectively eliminating safety hazards, thereby reducing the risk of misoperation when entering the tank, and monitoring the operation process more intelligently and safely to ensure the safety of the operators themselves. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 is a flow chart of the method of the present invention.
[0015] Figure 2 It is a structural diagram of the network model of target detection of the present invention.
[0016] Figure 3 This is an example of on-site real-time monitoring.
[0017] Figure 4 It is the detection result graph of the target detection model on the monitoring graph.
[0018] Figure 5 It is a visualization diagram of the key points extracted by the posture estimation model for the person in the monitoring image.
[0019] Figure 6 It is a visualization diagram of the three-step judgment of can entry detection. DETAILED DESCRIPTION
[0020] The technical solution of the present invention will be described below in conjunction with specific embodiments:
[0021] Example 1
[0022] The present invention provides an intelligent visual monitoring and early warning method for the safety of tank truck tank entry workers, comprising the following steps:
[0023] S1: Collect on-site monitoring videos of petrochemical plants under different light and dark conditions, capture images containing manholes and personnel as well as ordinary scene images at a ratio of 5:1, and use generative adversarial networks to expand the dataset;
[0024] S2: Divide the factory image dataset into a ratio of 8:2:1 to obtain training set, validation set and test set, and then annotate and label them; introduce a dynamic partitioning strategy based on data distribution to make the training set, validation set and test set more representative, ensuring that each set contains enough sample diversity;
[0025] S3: Use the "transfer learning" method and adaptive learning rate algorithm to train the target detection model to achieve manhole and personnel detection;
[0026] S4: Run the posture estimation model, extract the key points of the personnel, calculate the angles between the key point vectors, and identify the relevant actions of entering and exiting the tank, including squatting and bending;
[0027] S5: Determine whether the person actually enters or exits the tank based on the relative position between the person and the manhole, the person's related actions, and the person's disappearance or appearance.
[0028] The acquisition of on-site monitoring video images of the factory area and expansion of the data set described in S1 includes the following sub-steps:
[0029] S11. Under different light and dark conditions, collect 360° videos of safety inspection of tank trucks in chemical plants from four directions without blind spots, intercept images containing manholes and personnel and images of ordinary scenes from the video stream at a ratio of 5:1, intercept 5,000 images of personnel entering and exiting the tank and 1,000 images of ordinary scenes, and crop each image into several sub-images with a long side of 1,000 and a short side of 600;
[0030] S12. Use the incremental learning method to perform geometric transformation on the extracted initial image and combine it with the generative adversarial network GANs to expand the data set.
[0031] The specific method for geometric transformation of the image described in S12 is:
[0032] Horizontal Flip: Flip the image on the horizontal axis to generate samples with different perspectives.
[0033] Translation: Moving an image along the x-axis or y-axis in the image plane, simulating capturing the image at a different location.
[0034] Random Scaling: Enlarge or reduce the image at random ratios to increase the robustness of the model to images of different sizes.
[0035] The steps of expanding the data set by using a generative adversarial network described in S12 are as follows:
[0036] S121. Use the initial image dataset to train a GANs model. GANs consists of two neural networks: a generator and a discriminator. The task of the generator is to generate new images, while the task of the discriminator is to distinguish between generated images and real images.
[0037] S122. Use the generator to generate new image samples that are visually similar to the original dataset but have different details and variations.
[0038] S123, merging the new images generated by GANs with the original dataset (including the images expanded by geometric transformation) to form a larger dataset;
[0039] S2 divides the factory image dataset into 8:2:1 ratios to obtain training sets, validation sets, and test sets, and then annotates and labels them, including the following sub-steps:
[0040] S21. Classify the data set according to the monitoring location, ambient light brightness, and the number of key targets included;
[0041] S22. Divide the classified data set into a ratio of 8:2:1 to obtain a training set, a validation set, and a test set.
[0042] S23. Use semi-supervised learning for labeling. First, manually label a part of the data, then use these labeled data to train an initial model, and then use this model to automatically label the remaining data, thereby ensuring the labeling quality to a certain extent.
[0043] The training target detection model described in S3 uses the "transfer learning" method to train the YOLOv8 target detection model as follows:
[0044] S31. Network structure design. YOLOv8 has a total of 23 layers of network structure, which is mainly divided into three parts: Backbone, Head and Detect. Among them, layers 0 to 9 belong to the Backbone part, whose main function is to extract general features of images and are frozen during transfer learning; the Head part includes layers 10 to 21. Layers 10 and 13 adopt upsampling operations and use the nearest neighbor interpolation method to increase the size and spatial dimension of the feature map and improve the resolution of the feature map. Layers 12, 15, 18 and 21 adopt the C2f structure, which consists of a 3x3 convolution layer and a 1x1 convolution layer. The 3x3 convolution layer is used to extract features, while the 1x1 convolution layer is used to fuse these features. In order to better meet the needs of real-time detection, we cancel the residual structure of this part; the 22nd layer belongs to the Detect part, that is, the output layer, which selects the feature maps of the P3, P4 and P5 levels in the model, that is, the feature maps of the 15th, 18th and 21st layers as input to perform a target detection operation and output the target category and location information.
[0045] S32. Divide the data set. Use the k-fold cross-validation method to divide the data set marked in S2, that is, divide the data set into k subsets, each subset is used as a test set, and the rest is used as a training set, making full use of the data for model training and evaluation, reducing the randomness of model performance.
[0046] S33. Model training and evaluation. Try the learning rate starting from 0.001 and adjust it according to the change in loss during training. The batch size determines the number of samples used each time the model parameters are updated. A smaller batch size may make the training process more unstable but help escape the local minimum; a larger batch size may make the training more stable but may sacrifice some generalization ability. For a dataset of 6,000 images, try using batch sizes such as 32, 64, or 128 and observe their impact on training speed and stability. Evaluate the performance of the model using the following key indicators:
[0047] Confusion Matrix
[0048]
[0049] TP (True positives): the number of instances correctly classified as positive examples, that is, the number of instances that are actually positive examples and classified as positive examples by the classifier;
[0050] FP (False positives): The number of instances that are mistakenly classified as positive examples, that is, the number of instances that are actually negative examples but are classified as positive examples by the classifier;
[0051] FN (False negatives): The number of instances that are mistakenly classified as negative examples, that is, the number of instances that are actually positive examples but are classified as negative examples by the classifier;
[0052] TN (True negatives): the number of instances that are correctly classified as negative examples, that is, the number of instances that are actually negative examples and are classified as negative examples by the classifier;
[0053] Accuracy: The ratio of correctly classified samples to the total number of samples.
[0054] The formula is:
[0055] Among them, TP, TN, FP and FN are the relevant values in the above confusion matrix.
[0056] Precision: The proportion of samples predicted to be positive that are actually positive.
[0057] The formula is:
[0058] Among them, TP and FP are the relevant values in the above confusion matrix.
[0059] Recall: The proportion of all true positive examples that are predicted to be positive.
[0060] The formula is:
[0061] Among them, TP and FN are the relevant values in the above confusion matrix.
[0062] F1 score: The harmonic mean of precision and recall, used to comprehensively evaluate the performance of the model.
[0063] The formula is:
[0064] Among them, P and R are the precision and recall mentioned above.
[0065] ROC curve: It is drawn by the true positive rate and false positive rate under different thresholds and is used to evaluate the performance of the model.
[0066] AUC value: The area under the ROC curve, ranging from 0.5 to 1. The larger the AUC value, the better the performance of the model.
[0067] The steps for estimating the posture of a person described in S4 are as follows:
[0068] S41. Deploy the YOLOv8 model for posture estimation in the project and extract 17 key points of the human body in the video, including 0-nose, 1-left eye, 2-right eye, 3-left ear, 4-right ear, 5-left shoulder, 6-right shoulder, 7-left elbow, 8-right elbow, 9-left wrist, 10-right wrist, 11-left hip, 12-right hip, 13-left knee, 14-right knee, 15-left ankle and 16-right ankle.
[0069] S42. According to the coordinates of the key points, the limb vector is obtained, and the inner product formula of the vector is used to derive the limb angle through the inverse tangent function. According to different limb angles and their degrees, the judgment conditions are set to estimate the human body movements, including bending and squatting. The human body movement is combined with the position of the person to detect the entry and exit of the can. The specific calculation method is as follows:
[0070] ·Bend: Take the center point c between the left and right shoulders 1 , left hip and right hip center point c 2 and the left and right knee center points c 3 , calculate the vector and vector The limb angle θ is obtained according to the vector inner product formula.
[0071] Inner product formula:
[0072] Derived θ:
[0073] in, and are the upper body vector and the lower body vector respectively, and θ is the angle between the upper body and the lower body.
[0074] Judgment condition: θ<140°
[0075] Squat: Take the center point q between the left ankle and the right ankle 1 , left knee and right knee center point q 2 and the left and right hip center points q 3 , calculate the vector and vector The limb angle α is obtained according to the vector inner product formula.
[0076] Inner product formula:
[0077] Derived α:
[0078] in, and are the calf vector and thigh vector respectively, and α is the angle between the calf and thigh.
[0079] Judgment condition: α<45°
[0080] ·Entering the tank: There are three steps to detect. The first step is to detect that someone has entered the manhole area (with the manhole coordinates as the center, a square detection frame with a length and width of 100); the second step is that the person in the manhole area has the action before entering the tank (such as bending over, squatting, etc.); the third step is that someone disappears near the manhole (disappears in the manhole detection frame).
[0081] ·Tank exit: There are two steps to detect. The first step is to detect the presence of a person in the manhole area; the second step is to
[0082] People in the manhole area have movements to get out of the tank (such as squatting, standing up, etc.).
[0083] The target detection and posture estimation method of the present invention mainly includes three stages: model structure selection, training and testing. Since the final test is an end-to-end process, that is, the final monitoring result can be directly obtained by inputting the factory monitoring, this embodiment mainly describes the two stages of model structure selection and training.
[0084] 1. Model structure selection stage
[0085] like Figure 2 As shown in the figure, the target detection model structure adopted by the present invention includes the main part Backbone of the network, the feature fusion and conversion part Head and the final target detection part Detect, which is analyzed layer by layer:
[0086] Backbone
[0087] Backbone consists of a series of convolutional layers and C2f modules to extract features of the input image.
[0088] The first convolution layer:
[0089] Input: Original images read from the dataset.
[0090] Operation: Use 64 3x3 convolution kernels with a stride of 2 for convolution operation.
[0091] Output: The feature map size is halved (e.g., if the input is 640x640, the output is 320x320), and the number of channels becomes 64.
[0092] The second convolution layer:
[0093] Input: Output feature map from the previous step.
[0094] Operation: Use 128 3x3 convolution kernels with a stride of 2 for convolution.
[0095] Output: The feature map size is halved again (e.g., 160x160) and the number of channels becomes 128.
[0096] The first C2f module:
[0097] Input: Output feature map from the previous step.
[0098] Operation: The C2f module is a new convolutional module for feature extraction in YOLOv8, which combines the idea of CSP to achieve lightweight and high efficiency.
[0099] Number of repetitions: 3 times.
[0100] Output: Keep the feature map size unchanged (160x160), but further extract and fuse features.
[0101] Next is a similar structure, where the size of the feature map is halved and the number of channels is gradually increased:
[0102] The third convolution layer: the output feature map size is 80x80 and the number of channels is 256.
[0103] The second C2f module: maintains the size of 80x80 and the number of channels is still 256.
[0104] The fourth convolution layer: the output feature map size is 40x40 and the number of channels is 512.
[0105] The third C2f module: maintains the size of 40x40 and the number of channels is still 512.
[0106] The fifth convolution layer has an output feature map size of 20x20 and 1024 channels.
[0107] The fourth C2f module: maintains the size of 20x20 and the number of channels is still 1024.
[0108] SPPF module: The output of the last C2f module is further fused and enhanced. The output feature map size is still 20x20 and the number of channels is 1024.
[0109] Head part
[0110] The Head part mainly upsamples and fuses the feature maps output by Backbone to detect objects of different sizes.
[0111] First upsampling and feature fusion: Upsample the output of the SPPF module by a factor of 2 (using nearest neighbor interpolation). Perform feature fusion (via concatenation) with the output of the fourth C2f module in Backbone (P4 layer, size 40x40). Use the C2f module to further extract and fuse features.
[0112] Second upsampling and feature fusion: Upsample the output of the previous step by 2 times. Perform feature fusion with the output of the third C2f module in Backbone (P3 layer, size 80x80). Use the C2f module to further extract and fuse features.
[0113] Convolution operation: Perform a convolution operation on the output of the previous step to increase the number of channels and adjust the size of the feature map.
[0114] The third feature fusion: The output of the previous step is fused with the output of the second feature fusion in the Head (P4 layer, size 40x40). The C2f module is used to further extract and fuse features.
[0115] The fourth convolution operation: Perform a convolution operation on the output of the previous step to further adjust the size and number of channels of the feature map.
[0116] Fourth feature fusion: The output of the previous step is combined with the output of the first feature fusion in the Head (P5 layer, size 20x20). The C2f module is used for the final feature extraction and fusion.
[0117] Through the above steps, the Head part generates multiple feature maps of different scales, which will be used for subsequent object detection tasks, including bounding box prediction and category classification.
[0118] This design enables YOLOv8 to detect targets of different sizes at the same time, improving the detection performance of the model. At the same time, by optimizing the structure of Backbone and Head, YOLOv8 reduces the computational complexity and improves real-time performance while maintaining high accuracy.
[0119] 2. Model training stage
[0120] Select YOLOv8 as the target detection model and initialize the model parameters. Load pre-trained weights (if any) to speed up the training process and improve model performance.
[0121] According to the characteristics of the object detection task, the loss function should comprehensively consider multiple aspects such as bounding box regression loss, classification loss and object loss to comprehensively evaluate the difference between the model prediction and the true label.
[0122] The present invention selects loss functions DFL Loss and CIoU Loss. DFL Loss is a loss function designed for target detection tasks. Its core idea is to use the cross entropy function to optimize the probability distribution of the two positions near the label y, so that the output distribution of the network can be more concentrated near the label value. This design enables DFL Loss to take into account the correlation between features and the probability distribution of data, and is not easily disturbed by data outliers. CIoULoss is an improved version of YOLOv4 based on the original IOU (Intersection over Union) loss function. IOULoss measures the overlap between the two boxes by calculating the intersection over union ratio of the predicted box and the true box, and optimizes it as a loss. However, IOU Loss has some problems. For example, when the predicted box and the target box do not intersect, the IOU value is 0, which cannot reflect the distance between the two boxes. At this time, the loss function is not differentiable and cannot optimize the situation where the two boxes do not intersect. CIoULoss introduces a correction factor based on IOU, taking into account the shape information, center distance information and aspect ratio scale information of the bounding box, so that the loss is more robust to target boxes of different shapes.
[0123] The activation function used in the training model of the present invention is Swish, and the formula is as follows:
[0124] F(χ)=χ·sigmoid(χ) (14)
[0125] The Swish activation function is a nonlinear function that has received widespread attention in recent years. It was proposed by Google researchers Ramachandran et al. in 2017. It enables neural networks to model complex relationships between inputs and outputs, thereby capturing and representing complex patterns. The Swish function has the characteristics of being unbounded, smooth, and non-monotonic, which makes Swish more adaptable and efficient in processing various inputs. Compared with other commonly used activation functions such as ReLU, the Swish function works better on deep models. For example, simply replacing ReLU with a Swish unit can improve the top-1 classification accuracy of MobileNASNetA on ImageNet by 0.9%, and the classification accuracy of Inception-ResNet-v by 0.6%. This proves the effectiveness of the Swish function in improving model performance. The Swish function is a powerful and effective activation function, and its application in the field of deep learning has broad prospects and potential.
[0126] 1. Experimental conditions
[0127] The original data set used in the experiment of the present invention is from monitoring of multiple different positions in the on-site factory area. Surrounding the target detection area, multiple cameras are deployed to achieve coverage of monitoring blind spots, realize multi-way cross-validation of the same detection result, and realize disaster resistance and fault tolerance based on redundant equipment. 5,000 images of people entering and exiting the tank and 1,000 images of ordinary scenes are intercepted, and each image is cropped into several sub-images with a long side of 1,000 and a short side of 600, and more images that meet the requirements are generated by using a generative adversarial network as an expansion of the training set.
[0128] The experimental environment of the present invention: the operating system is Windows 11 64-bit Professional Edition, the processor is Intel (R) Core (TM) i7-9700F, the graphics card is NVIDIA GeForce RTX 4060Ti / 8G, the integrated development environment is Pycharm2023, and the database system is Mysql.
[0129] 2. Experimental content and results analysis
[0130] The experiment of the present invention takes the on-site monitoring video of the factory as the object, realizes target detection and posture estimation through advanced computer vision technology, and displays the experimental effect through a visualization method.
[0131] The experiment first uses deep learning methods to detect targets in surveillance videos. By training an efficient convolutional neural network model, we can accurately identify and locate target objects in the video, such as people and vehicles. The model is trained with a large amount of labeled data, learns the feature representation of the target, and achieves high detection accuracy on the test data.
[0132] Based on target detection, the experiment further introduces posture estimation technology. Pose estimation refers to determining the posture of the target object in an image or video, that is, the position and direction of the joint points, through computer vision methods. In this experiment, we use the posture estimation algorithm to analyze the posture of each detected target and extract the coordinate information of the key joint points.
[0133] In order to demonstrate the experimental results, we use a visualization method to present the results of target detection and posture estimation on the surveillance video. We draw a bounding box to mark the detected target object, and overlay a posture skeleton diagram on the target object to display its posture information. In this way, the experimenter can intuitively observe the position, movement trajectory, and posture changes of the target in the video.
[0134] Through experiments, we verified the effectiveness of the target detection and posture estimation algorithm in the on-site monitoring video of the factory area. The experimental results show that this method can accurately identify the target object in the video and accurately estimate its posture information. This has important application value in factory security monitoring, personnel behavior analysis, and abnormal event detection. The effect diagram is as follows Figure 5 , Figure 6 .
[0135] In addition, by visually displaying the experimental results, we provide plant managers with intuitive and easy-to-understand monitoring tools, which helps to improve monitoring efficiency and management level.
Claims
1. An intelligent visual monitoring and early warning method for the safety of tank truck entry workers, characterized in that: The steps include: S1: Collect monitoring videos of the work site under different light and dark conditions, capture images containing manholes and personnel as well as ordinary scene images at a ratio of 5:1, and use generative adversarial networks to expand the data set; S2: Divide the factory image dataset into a ratio of 8:2:1 to obtain the training set, validation set, and test set, and then annotate and label them; S3: Use the "transfer learning" method and adaptive learning rate algorithm to train the target detection model to achieve manhole and personnel detection; S4: Run the posture estimation model, extract the key points of the personnel, calculate the angles between the key point vectors, and identify the relevant actions of entering and exiting the tank, including squatting and bending; S5: According to the relative position of the person and the manhole, the person's related actions, and the disappearance or appearance of the person, determine whether the person's actual action is entering or exiting the tank.
2. According to claim 1, an intelligent visual monitoring and early warning method for the safety of tank truck entry workers is characterized in that: The step S1 of collecting video images of the operation site and expanding the data set includes: collecting 360° videos of the on-site tank truck safety inspection operation from four directions of monitoring in an environment with different light and dark conditions, intercepting images containing manholes and personnel and ordinary scene images from the video stream at a ratio of 5:1, and using a generative adversarial network to expand the data set, annotate the manholes and personnel, and construct a training set.
3. The intelligent visual monitoring and early warning method for the safety of tank truck entry workers according to claim 1 is characterized in that: In step S1, the steps of expanding the data set using the generative adversarial network are as follows: S121. Use the initial image dataset to train a GANs model. GANs consists of two neural networks: a generator and a discriminator. The generator's task is to generate new images, while the discriminator's task is to distinguish between generated images and real images. S122. Use the generator to generate new image samples that are visually similar to the original dataset but have different details and variations. S123. Merge the new images generated by GANs with the original dataset to form a larger dataset.
4. The intelligent visual monitoring and early warning method for the safety of tank truck entry workers according to claim 1 is characterized in that: The training target detection model in step S3 is based on the YOLOv8 pre-training model, and uses an adaptive learning rate algorithm to dynamically adjust the learning rate according to the gradient and loss in the model training process. The loss function selects DFL Loss combined with CIoULoss to improve the detection box positioning accuracy, adopts the transfer learning method to speed up the training model, sets the early stopping mechanism to avoid overfitting, and improves the generalization ability of the model.
5. The intelligent visual monitoring and early warning method for the safety of tank truck entry workers according to claim 1 is characterized in that: The posture estimation model described in step S4 selects the network structure YOLOv8-pose to extract the coordinates of the key points of the human body, and uses these coordinates to calculate the angles and the relative positions of various parts of the human body to determine the posture movements: when entering the tank, the personnel's movements are in the following order: squatting: the calf and thigh form an acute angle, and the knee joint is adjacent to the chest; the foot is inserted into the tank: the key points of the foot are blocked; the lower body enters the tank: the key points of the lower body are blocked; the upper body enters the tank: the key points of the upper body are blocked; when exiting the tank, the personnel's movements are in the following order: the hand or head exits the tank: the key points of the hand or head appear; the upper body exits the tank: the key points of the upper body appear; the lower body exits the tank: the key points of the lower body appear; squatting: the calf and thigh form an acute angle, and the knee joint is adjacent to the chest.
6. The intelligent visual monitoring and early warning method for the safety of tank truck entry workers according to claim 1 is characterized in that: The criteria for judging whether the actual action of the person is entering or exiting the tank in step S5 are as follows: the criteria for judging whether the person is entering the tank is first estimated by the posture in S4, and then the person is judged to have actually entered the tank based on whether the person is near the manhole, and finally the person disappears near the manhole; the criteria for judging whether the person is exiting the tank is: after the person enters the tank, the system is set to the state of entering the tank, and then detects whether there is anyone near the manhole at intervals of 2 seconds. After someone appears near the manhole, it is recognized that the person has related actions to exit the tank, and then it can be judged that the person has exited the tank.
7. The intelligent visual monitoring and early warning method for the safety of tank truck entry workers according to claim 5 or 6, characterized in that: Detect the entry and exit of the can. The specific calculation method is as follows: (1) Bending: Take the center point c1 of the left and right shoulders, the center point c2 of the left and right hips, and the center point c3 of the left and right knees, and calculate the vector and vector The limb angle θ is obtained according to the vector inner product formula; Inner product formula: Derived in, and are the upper body vector and the lower body vector respectively, and θ is the angle between the upper body and the lower body; Judgment conditions: θ<140°; (2) Squatting: Take the center point of the left ankle and right ankle q1, the center point of the left knee and right knee q2, and the center point of the left hip and right hip q3, and calculate the vector and vector The limb angle α is obtained according to the vector inner product formula; Inner product formula: Derived in, and are the calf vector and thigh vector respectively, and α is the angle between the calf and thigh; Judgment conditions: α<45°; (3) Entering the tank: There are three steps to detect. The first step is to detect that someone has entered the manhole area, which is a square detection frame with a length and width of 100, centered on the manhole coordinates. The second step is to detect that the person in the manhole area has the movement before entering the tank. The third step is to detect that someone disappears near the manhole. (4) Can exit: There are two steps to detect: the first step is to detect the presence of a person in the manhole area; the second step is to detect the person in the manhole area taking the action of exiting the can.
8. The intelligent visual monitoring and early warning method for the safety of tank truck entry workers according to claim 4 is characterized in that: The backbone network of the YOLOv8 pre-trained model adopts the C2f structure, which integrates high-level semantic features with low-level detail features, enabling the model to better identify objects in images and improve the accuracy of object detection. The head part of the model adopts a decoupled head structure to separate the classification and detection heads. The loss function combines DFL Loss with CIoU Loss; The DFL Loss function is: DFL(d κ ,d κ+1 )=((A κ -A)log(δ κ+1 )-(A-A κ+1 )log (δ κ )) (1) Where A is the true label value, Α κ and Alpha κ+1 is an integer close to the value of A, δ κ and δ κ+1 represents the predicted bounding box distribution probability, The CIoU Loss function is: L CIOU =1- CIOU (2) Among them, S1, S2 represent the intersection and union of two boxes, w1, h1 represent the width and height of the real box, w2, h2 represent the width and height of the predicted box, γ is the correction factor, IOU is an indicator to measure the degree of overlap between two bounding boxes, CIOU considers the complete intersection between target boxes on the basis of the original IOU and introduces a correction factor.
9. The intelligent visual monitoring and early warning method for the safety of tank truck entry workers according to claim 1 is characterized in that: In step S5, when it is determined that the person has entered the tank, a timer is set during the personnel entering the tank operation. Five frames of images are randomly taken within 10 seconds. If the supervisor is not identified in the five frames of images, a warning of lack of supervisor is issued; after the time reaches the set upper limit of the tank entry operation, if the person has not left the tank, a warning of long-term absence of the person from the tank is issued.
Citation Information
Patent Citations
A safety monitoring method for a gas station oil unloading process based on an intelligent video analysis technology
CN109271938A
Method and system for monitoring personnel intrusion in key area of oil tank truck
CN112949439A
Vision-based operator dangerous behavior detection method and system
CN114155601A
Safe tank steaming and washing process for dangerous goods transportation tank car
CN114291042A
Prison personnel abnormal behavior identification method based on target and key point detection
CN117037264A
Cited By
Visual confirmation method for leak hunting action in filling process of liquid tank truck
CN119380282A
A visual confirmation method for leak detection during the filling process of a liquid tank truck
CN119380282B
Visual detection method for crane pipe connection firmness confirmation action
CN119478825A
