Marine personnel trajectory tracking method
Through face recognition, multi-target tracking and human posture recognition technology, combined with historical trajectory analysis, it solves the problem of inability to detect safety hazards in real time in traditional ship operation and maintenance, realizes real-time monitoring and safety management of personnel in ship cabins, and improves efficiency. Operation and maintenance efficiency and security.
Patent Information
- Application Number
- CN202410844497.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-09-27
AI Technical Summary
Traditional ship operation and maintenance relies on the experience and skills of professionals and cannot systematically detect safety hazards in the cabin in real time, resulting in safety risks and low operation and maintenance efficiency.
It uses face recognition, multi-target tracking and human posture recognition technology, combined with historical trajectory analysis, to realize real-time monitoring and trajectory data collection of personnel in the cabin, automatically identify and save the trajectory data of operation and maintenance personnel, and determine their identity, behavior and actions. Discover potential dangers promptly.
It achieves comprehensive real-time monitoring of personnel in ship cabins, prevents unauthorized personnel from entering, improves operation and maintenance safety and efficiency, and optimizes site layout and resource management.
Smart Images

Figure CN118710684A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of integrated ship control systems, and more specifically, relates to a ship personnel trajectory tracking method. Background Art
[0002] Due to the large number of equipment and pipelines in the ship's cabin and the complex situation, the trajectory and behavior of on-site operators are unpredictable. Traditional ship operation and maintenance mainly rely on professional personnel to monitor the cabin situation by stationing or taking turns on duty. Fault repair, inspection and on-duty mainly rely on the professional skills, work responsibility and rules and regulations of the staff. Danger warning and fault handling rely on the experience and judgment of the staff. Due to the lack of professional experience of the staff, the limited scope and time of the inspection, etc., the existing safety hazards cannot be exposed in a timely and full range. In order to ensure the personal safety and environmental safety of operation and maintenance personnel, realize efficient and systematic control of cabin personnel, improve the reliability of cabin equipment and reduce operation and maintenance costs, personnel trajectory tracking technology is proposed to effectively monitor and manage the activity range of operation and maintenance personnel, improve operation and maintenance efficiency, and timely discover potential dangers. Summary of the invention
[0003] Traditional ship operation and maintenance relies on the professional skills and experience of on-site staff and cannot systematically discover safety hazards in real time. The present invention combines face recognition, personnel tracking, human posture recognition and historical trajectory analysis to achieve multi-lens cross-lens tracking and identification of personnel in the cabin. While locating the personnel's position, the trajectory of the operation and maintenance personnel can be tracked in real time and an action route map can be drawn. The system automatically saves the trajectory data of the operation and maintenance personnel, and the historical trajectory of the personnel can be viewed at any time, thereby achieving comprehensive real-time monitoring of the personnel in the cabin.
[0004] To achieve the above object, the present invention provides a method for tracking a trajectory of a ship's personnel, comprising:
[0005] Perform facial recognition on personnel to confirm their identity and determine whether they have permission to enter the cabin;
[0006] The appearance and motion features of the maintenance personnel entering the cabin are extracted, the matching degree between adjacent image frames is calculated, a tracking ID is assigned to each maintenance personnel, and real-time identification and tracking of personnel is achieved through multi-target tracking technology. The trajectory data is stored locally to generate historical trajectory data.
[0007] Extract the target key points of the maintenance personnel entering the cabin, input the key point positioning data into the classifier to determine the specific actions of the maintenance personnel entering the cabin, and output the posture type of the personnel;
[0008] Use historical trajectory data to detect and identify abnormal personnel activities and conduct statistical analysis on the historical trajectories of operation and maintenance personnel.
[0009] In some optional implementation schemes, the facial recognition of the personnel, confirming the identity of the personnel, and judging whether the personnel have the authority to enter the cabin include:
[0010] The FaceNet algorithm is used to perform facial recognition on people in the cabin to confirm their identities, determine the passability of the area based on their permissions, and determine whether they are authorized operation and maintenance personnel. An alarm message is issued when unauthorized personnel appear.
[0011] In some optional implementation schemes, the appearance features and motion features of the operation and maintenance personnel entering the cabin are extracted, the matching degree between adjacent image frames is calculated, a tracking ID is assigned to each operation and maintenance personnel, real-time identification and tracking of personnel are achieved through multi-target tracking technology, and the trajectory data is stored locally to generate historical trajectory data, including:
[0012] For the operation and maintenance personnel entering the cabin, the DeepSORT algorithm is used to detect the target in each frame of the video sequence acquired by the camera, and the position information of the target in the video frame is output. The target is tracked using the detection frame and ID information is assigned to the target. Targets with the same ID information are in the same track.
[0013] The Kalman filter is used to confirm and predict the trajectory state. The Kalman filter is initialized. When the trajectory matches successfully for three consecutive frames, it is in the confirmation state. When the target trajectory matches the detection, the Kalman prediction is performed to predict the position of the trajectory at the next moment and update the Kalman filter.
[0014] In some optional implementation schemes, the target key points of the operation and maintenance personnel entering the cabin are extracted, the key point positioning data is input into a classifier to determine the specific actions of the operation and maintenance personnel entering the cabin, and the posture type of the personnel is output, including:
[0015] For the operation and maintenance personnel entering the cabin, the posture information of the operation and maintenance personnel entering the cabin is traversed through the cascade pyramid network to extract as the action feature. After the feature integration, the posture information is input into the MLPClassifier classifier to identify and judge the action type.
[0016] In some optional implementation schemes, the CPN network is divided into two stages: a GlobalNet network and a RefineNet network. The GlobalNet network is used to locate simple visible key points of a person, and the RefineNet network corrects the results predicted by the GlobalNet network.
[0017] In some optional implementation schemes, the use of historical trajectory data to detect and identify abnormal personnel activities and conduct statistical analysis on the historical trajectories of operation and maintenance personnel includes:
[0018] Statistical analysis and visualization of personnel location data over a period of time are performed. The activity hotspots of personnel in a specific time period are analyzed through historical trajectory data, and danger zones are delineated. When a person's trajectory approaches a danger zone, a pre-alarm is issued. At the same time, the historical trajectory data of personnel are plotted into a path map to show the movement path of personnel within a specific time.
[0019] In general, the above technical solution conceived by the present invention can achieve the following beneficial effects compared with the prior art and the traditional ship operation and maintenance method:
[0020] (1) Based on deep learning methods, face recognition is used to strengthen personnel control in the cabin. Unauthorized personnel are strictly prohibited from entering the cabin to prevent leaks and accidents that threaten personal safety.
[0021] (2) The multi-target tracking method realizes real-time tracking of personnel, can check the location information of personnel in the cabin at any time, automatically save the trajectory data of personnel, and realize intelligent personnel management.
[0022] (3) Human posture recognition can accurately judge the body movements of people, and perform real-time recognition and analysis of people’s postures and movements, thereby determining whether people are working and whether danger has occurred.
[0023] (4) Historical trajectory statistics can be used to understand the range of activities, common routes, and preferred behaviors of personnel, thereby optimizing site layout and improving personnel mobility. Based on the results, management decisions such as site planning and resource allocation can be made. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 is a block diagram of a personnel trajectory tracking system provided by an embodiment of the present invention;
[0025] Figure 2 This is a personnel trajectory tracking algorithm process provided by an embodiment of the present invention;
[0026] Figure 3 is a schematic diagram of a multi-target tracking algorithm provided by an embodiment of the present invention;
[0027] Figure 4 A DeepSORT algorithm process provided by an embodiment of the present invention;
[0028] Figure 5 This is a historical trajectory acquisition process provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0029] In order to make the purpose, technical solutions and advantages of 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. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0030] Aiming at the monitoring work in the ship cabin, the present invention proposes a personnel trajectory tracking method, which mainly includes a face recognition method based on FaceNet algorithm, a multi-target tracking method, a human posture recognition method, and historical trajectory statistical analysis.
[0031] (1) Face recognition based on FaceNet algorithm
[0032] FaceNet is a face recognition algorithm based on deep learning. It uses a convolutional neural network (CNN) to learn the Euclidean spatial features of the input face image. The output features are expressed as f(x)∈R d , that is, mapping a face image to a d-dimensional space, and restricting the feature space to a d-dimensional hypersphere, that is, ||f(x)||2=1. The purpose of training is to ensure that the feature distance between two face images of the same person is smaller than the feature distance between the image and any other person's face image, as shown in the following formula:
[0033]
[0034] Among them, x i a represents the anchor face image, x i p represents another face image of the same person as the anchor image, x i n represents another warm image of a different person from the anchor image, α represents the interval value between the two images, and τ represents all possible triplet pairs in the training set. The input face image is mapped to a low-dimensional vector space through convolution, pooling and nonlinear activation functions, and the model is trained using the triplet loss function. The FaceNet algorithm is used to perform face recognition on the personnel in the cabin to confirm their identity, determine the passability of the area based on the personnel's authority, and determine whether they are authorized operation and maintenance personnel. When unauthorized personnel appear, an alarm message should be issued, and basic data should be provided for the subsequent personnel trajectory tracking.
[0035] (2) Multi-target tracking method
[0036] Personnel trajectory tracking is performed based on target detection, and multi-target recognition and tracking is achieved through the DeepSORT algorithm. The algorithm detects the target in each frame of the video sequence acquired by the camera, outputs the position information of the target in the video frame, and expresses it in the form of the position and size of the detection frame. The detection frame is used to track the target and assign ID information to the target. Targets with the same ID information are on the same trajectory.
[0037] The Kalman filter is used to confirm and predict the trajectory state. The Kalman filter is initialized. When the trajectory matches successfully for three consecutive frames, it is in the confirmation state. When the target trajectory matches the detection, the Kalman prediction is performed. The formula is as follows:
[0038]
[0039] In the formula, represents the prior state estimate at time k, represents the posterior state estimate at time k-1, A is the state transfer matrix, u k-1 is the control vector, and B is the control vector u k-1 Converted into a state matrix, the result at time k is predicted based on the best estimate at the previous time (time k-1), thereby predicting the position of the trajectory at the next time and updating the Kalman filter. Kalman update uses the measurement value at the current time to correct the prior estimate of the prediction stage and obtain the posterior estimate at the current time.
[0040]
[0041] Among them, K k is the filter gain matrix, i.e., the Kalman coefficient, is the prior estimated covariance at the current moment, that is, The covariance of , H is the transformation matrix from state variables to observations, R is the measurement noise covariance, and is the known condition of the filter. Repeat the above process until the end of the video frame.
[0042] The DeepSORT algorithm adds target appearance feature information to reduce the phenomenon of target ID switching when occlusion occurs, and introduces cascade matching to prevent the increase of Kalman filter prediction uncertainty due to long-term occlusion.
[0043] Through computer vision algorithms, personnel trajectory tracking analyzes each frame in a video stream or image sequence, detects areas in the image where personnel exist, accurately locates and marks the specific location of personnel, and achieves real-time tracking of personnel between multiple lenses in the surveillance screen. The real-time location information is stored for more in-depth behavior analysis and early warning.
[0044] (3) Human posture recognition method
[0045] Human posture recognition refers to the use of computer vision technology and machine learning methods to identify and analyze human postures, movements, and action series from images or videos, so as to determine whether personnel are working and whether there is any danger. The pipes in the cabin are complex and the environment is relatively crowded. In order to solve the problems of multi-person posture interaction, overlap, and key occlusion, a Cascaded Pyramid Network (CPN) algorithm is proposed to effectively solve the problem of personnel occlusion in complex backgrounds.
[0046] The CPN network is divided into two stages: GlobalNet and RefineNet. The GlobalNet network is a feature pyramid network that is used to locate simple visible key points, such as eyes and hands, and the loss function used is L2loss. Before each elem-sum operation, a 1*1 convolution operation is used on the feature map; the RefineNet network corrects the results predicted by GolbalNet. The network explicitly solves the detection problem of occluded points by integrating multi-level features from the GolbalNet network, transmitting information between different layers, and receiving feature information from all pyramid layers.
[0047] The CPN network is used to traverse the posture information of characters in different categories in the data set to extract action features. After feature integration, the information is input into the MLPClassifier classifier to identify and judge the action type.
[0048] (4) Statistical analysis of historical trajectories
[0049] Historical trajectories are mainly used to perform statistical analysis and visual display of personnel location data over a period of time. Through historical trajectory data analysis, the activity hotspots of personnel in a specific time period, that is, the areas where personnel concentrate their activities, are identified, and danger zones are demarcated. When a person's trajectory approaches a danger zone, a pre-alarm is issued. At the same time, the historical trajectory data of personnel are plotted into a path map to show the movement path of personnel within a specific time period.
[0050] Combined with Figure 1 , 2 , 3, 4, 5 further explain this intellectual achievement from the aspects of system composition architecture, software and hardware composition, algorithm implementation process, etc.
[0051] (1) Hardware components required for personnel trajectory tracking methods
[0052] like Figure 1As shown in the figure, the hardware platform of the personnel trajectory tracking method is mainly composed of the front-end information acquisition terminal and the back-end image acquisition storage and processing equipment. Among them, the information acquisition terminal type I uses an industrial-grade image recognition camera unit, which is mainly used for face recognition of personnel entering the cabin; the information acquisition terminal type II uses a gun-ball integrated camera, which is composed of a gun camera and a ball camera connected by a bracket. The gun and ball are linked to form a global monitoring of the area. The horizontal range of the linked ball camera is 360° and the vertical range is -15° to 90°. With the global picture of the gun camera as a reference, the ball camera with a small field of view can be controlled by linkage, which can expand the monitoring range, output local detail images for detail monitoring, and realize automatic intelligent monitoring; the information acquisition terminal type III uses a depth camera to collect video image information of the target object and its surroundings for image analysis and processing.
[0053] Type I information collection terminal is arranged at the entrance of the cabin to effectively monitor people entering and leaving and prevent unauthorized people from entering the cabin; Type II information collection terminal is arranged to avoid being blocked as much as possible to ensure that the entire cabin can be covered; Type III information collection terminal is arranged in dangerous areas and easily blocked areas, and cameras are installed in dangerous areas for key monitoring to promptly detect people approaching dangerous areas. Cameras are installed in blocked areas to reduce monitoring blind spots, thereby achieving all-round personnel position monitoring.
[0054] (2) Trajectory tracking implementation process
[0055] The specific process of personnel trajectory tracking is as follows: Figure 2 As shown in the figure, firstly, face recognition is performed on the personnel to confirm their identity and determine whether they have the right to enter the cabin. Then, trajectory tracking and human posture recognition are performed on the personnel entering the cabin. At the same time, the trajectory data is stored locally to generate historical trajectories. After the video stream is input, the operation and maintenance personnel in the monitoring area are identified by image recognition technology, and the appearance features and motion features of the operation and maintenance personnel are extracted. The matching degree between adjacent image frames is calculated, and a tracking ID is assigned to each operation and maintenance personnel. The real-time identification and tracking of personnel are realized through multi-target tracking technology. Multiple targets in the continuous video images of a single camera and multiple cameras are tracked. When the operation and maintenance personnel are detected, a TrackID is assigned to each target and the trajectory of the personnel is recorded. Human posture recognition is mainly realized by the CPN algorithm. To perform human posture recognition, the recognition object must be confirmed first, and then the key points of the target are extracted. The key point positioning data is input into the classifier to determine the specific action of the recognition object, and finally the posture type of the personnel is output.
[0056] (3) Multi-target tracking algorithm flow
[0057] Multi-target tracking algorithms such as Figure 3As shown in the figure, first use a dynamic or static camera to capture the external environment, output the captured video frame sequence, use the DeepSORT algorithm to implement personnel tracking, use the trained target detection model to detect the target in each frame of the video sequence, and output the target's position information, pass it to the tracking algorithm, assign corresponding ID information to the target in the video sequence, and assign targets with the same ID information to the same track, where targets that cannot match the existing track are assigned new IDs. The DeepSORT algorithm process is as follows Figure 4 .
[0058] (4) Historical trajectory analysis process
[0059] The trajectory tracking algorithm stores the acquired trajectory data in the local database, and the database can be queried to retrieve historical trajectories. The specific process is as follows: Figure 5 As shown in the figure, the historical trajectory data is used to detect and identify abnormal personnel activities, and finally the historical trajectory of the operation and maintenance personnel is statistically analyzed according to actual needs.
[0060] It should be pointed out that, according to the needs of implementation, the various steps / components described in this application can be split into more steps / components, and two or more steps / components or partial operations of steps / components can be combined into new steps / components to achieve the purpose of the present invention.
[0061] It will be easily understood by those skilled in the art that 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 principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for tracking the trajectory of ship personnel, characterized in that: include: Perform facial recognition on personnel to confirm their identity and determine whether they have permission to enter the cabin; The appearance and motion features of the maintenance personnel entering the cabin are extracted, the matching degree between adjacent image frames is calculated, a tracking ID is assigned to each maintenance personnel, and real-time identification and tracking of personnel is achieved through multi-target tracking technology. The trajectory data is stored locally to generate historical trajectory data. Extract the target key points of the operation and maintenance personnel entering the cabin, input the key point positioning data into the classifier to determine the specific actions of the operation and maintenance personnel entering the cabin, and output the posture type of the personnel; Historical trajectory data is used to detect and identify abnormal personnel activities and behaviors, and statistical analysis is performed on the historical trajectories of operation and maintenance personnel.
2. The method according to claim 1, characterized in that The facial recognition of the personnel, confirmation of the personnel's identity, and determination of whether the personnel has the authority to enter the cabin include: The FaceNet algorithm is used to perform facial recognition on people in the cabin to confirm their identities, determine the passability of the area based on their permissions, and determine whether they are authorized operation and maintenance personnel. An alarm message is issued when unauthorized personnel appear.
3. The method according to claim 2, characterized in that The operation and maintenance personnel entering the cabin are extracted from the appearance features and motion features, the matching degree between adjacent image frames is calculated, a tracking ID is assigned to each operation and maintenance personnel, and real-time identification and tracking of personnel are achieved through multi-target tracking technology, and the trajectory data is stored locally to generate historical trajectory data, including: For the operation and maintenance personnel entering the cabin, the DeepSORT algorithm is used to detect the target in each frame of the video sequence acquired by the camera, and the position information of the target in the video frame is output. The target is tracked using the detection frame and ID information is assigned to the target. Targets with the same ID information are in the same track. The Kalman filter is used to confirm and predict the trajectory state. The Kalman filter is initialized. When the trajectory matches successfully for three consecutive frames, it is in the confirmation state. When the target trajectory matches the detection, the Kalman prediction is performed to predict the position of the trajectory at the next moment and update the Kalman filter.
4. The method according to claim 3, characterized in that: The target key points of the operation and maintenance personnel entering the cabin are extracted, and the key point positioning data is input into the classifier to determine the specific actions of the operation and maintenance personnel entering the cabin, and the posture type of the personnel is output, including: For the operation and maintenance personnel entering the cabin, the posture information of the operation and maintenance personnel entering the cabin is traversed through the cascade pyramid network to extract as the action feature. After the feature integration, the posture information is input into the MLPClassifier classifier to identify and judge the action type.
5. The method according to claim 4, characterized in that The CPN network is divided into two stages: GlobalNet network and RefineNet network. The GlobalNet network is used to locate the simple visible key points of people, and the RefineNet network corrects the results predicted by the GlobalNet network.
6. The method according to any one of claims 1 to 5, characterized in that: The use of historical trajectory data to detect and identify abnormal personnel activities and conduct statistical analysis on the historical trajectories of operation and maintenance personnel includes: Statistical analysis and visualization of personnel location data over a period of time are performed. The activity hotspots of personnel in a specific time period are analyzed through historical trajectory data, and danger zones are delineated. When a person's trajectory approaches a danger zone, a pre-alarm is issued. At the same time, the historical trajectory data of personnel are plotted into a path map to show the movement path of personnel within a specific time.
