Subway network multi-level face clustering method and system
Through multi-level clustering methods and hierarchical processing, the problem of low computational efficiency and reduced accuracy of traditional face clustering under large-scale data is solved, the face clustering efficiency of the subway line network is improved, and the subway operation and Business applications of public security prevention and control.
Patent Information
- Application Number
- CN202410844638.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-10-01
AI Technical Summary
The traditional face clustering method has low computational efficiency and reduced accuracy when processing large-scale subway network data, and cannot be effectively combined with subway rail lines for business applications.
Using a multi-level clustering method, monitoring equipment is grouped by sites and lines, hierarchical clustering of facial features is performed through the first-level, second-level and global clustering modules, and MQ message middleware and multi-level clustering nodes are used for distribution and processing. Combined with the subway network track map, people's travel trajectories can be analyzed.
It reduces the data pressure of global clustering, solves the problem of insufficient single-machine hardware resources, improves the efficiency of face clustering, and realizes business applications in subway operations, security prevention and control, and smart transportation.
Smart Images

Figure CN118736645A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of computer technology, and in particular relates to a method and system for multi-level face clustering in a subway network. Background Art
[0002] Face recognition is a technology in the field of image processing that uses camera video streams to collect images containing faces, detects and tracks faces in images, and performs biometric identification and extraction based on people's facial feature information. With the improvement of security requirements and the growth of monitoring equipment, a large amount of face data has been generated in the rail transit subway network. The process of analyzing all the extracted facial features and determining the faces belonging to the same person is called clustering. How to combine the subway line scene, make full use of existing hardware resources, and efficiently analyze and cluster the data, collect and process a series of data such as the activity trajectory, activity frequency, passenger flow statistics, etc. of people in the subway network, and provide support for subway operations, public security prevention and control, and smart transportation.
[0003] Traditional face clustering methods cannot solve the problems of computing efficiency and decreased accuracy when the data volume and scale are large, and cannot be well combined with subway track lines for business applications. Summary of the invention
[0004] In view of the above problems, the present invention provides a system for multi-level face clustering in subway networks, which is used to reduce the data pressure of global clustering, solve the defect of insufficient hardware resources of a single machine, improve system availability, and improve the efficiency of face clustering under large amounts of data.
[0005] In order to solve the above technical problems, the present invention adopts the following technical solutions:
[0006] On one hand, the present invention provides a method for multi-level face clustering in a subway network, comprising the following steps:
[0007] The monitoring equipment in the subway network is grouped and managed according to stations and lines, which are divided into station-level grouping and line-level grouping;
[0008] By collecting image frames in the video stream through the acquisition monitoring device, the face is detected and tracked in the image;
[0009] Extract the detected facial feature information, store the features and send them to the corresponding first-level clustering module according to the site-level grouping id;
[0010] A first-level clustering module is used for first-level clustering. The first-level clustering module includes multiple first-level clustering task nodes. Each first-level clustering task node performs a site-level facial feature data clustering, receives and sends facial features, and clusters them according to the site-level grouping ID. After the first-level clustering facial feature clustering is completed, it is sent to the second-level clustering module of the corresponding line;
[0011] A secondary clustering module is used for secondary clustering. The secondary clustering module includes multiple secondary clustering nodes. Each secondary clustering node performs a line-level facial feature data clustering, receives the facial feature information sent by the primary clustering module, and clusters it according to the line group ID. Each line data corresponds to a secondary clustering module. After the secondary clustering facial feature clustering is completed, it is sent to the global clustering module.
[0012] A global clustering module is used for global clustering. The global clustering module includes a clustering service node, which corresponds to all personnel feature data in the subway network, receives feature information sent by the secondary clustering module, and performs face similarity threshold judgment. If the comparison is successful, it is determined to be the same type of face, and the class corresponding to the node is updated; otherwise, a new class is created at the node.
[0013] In a possible implementation, it further includes business applications, which combine the clustering result data at all levels with the subway network map to realize subway network-level, line-level, and station-level personnel travel conditions, trajectory analysis, and one-person-one-file business applications.
[0014] In a possible implementation, the method of collecting image frames in a video stream by collecting monitoring equipment and detecting and tracking faces in the images includes: calculating a face quality score, retaining only one optimal face in the same face sequence tracked, and determining factors for the quality score include occlusion, blur and deflection. When the feature quality score is lower than a quality score threshold, it is determined to be of low quality and discarded.
[0015] In a possible implementation, extracting the detected facial feature information includes: extracting features from the acquired facial image, writing the extracted features into a feature file, and sending the extracted features to a primary clustering module via an MQ message middleware.
[0016] In one possible implementation, each first-level clustering task node performs a site-level clustering of facial feature data, including: if the clustering node where the group is located does not exist, creating a grouping node; comparing the facial feature data with the class center of the corresponding first-level clustering task to determine whether the similarity between the face corresponding to the face image and a certain class of faces is higher than or equal to a preset similarity threshold; if the similarity is higher than or equal to a preset first similarity threshold, the comparison is made and it is determined to be the same class of faces, and the class center of the class is updated; otherwise, a new class is created at the node using the facial feature.
[0017] In one possible implementation, clustering according to the line group id includes: determining the face similarity threshold in the clustering process, if there is a similar face class feature in the task, it is determined to be the same class of face, and the class corresponding to the node is updated; otherwise, a new class feature is created at the task node.
[0018] Another aspect of the present invention provides a system for multi-level face clustering in a subway network, comprising a device management module, a face recognition module, a feature extraction module, a primary clustering module, a secondary clustering module and a global clustering module.
[0019] The device management module is used to group and manage the monitoring devices in the subway network according to stations and lines, which are divided into station-level groups and line-level groups;
[0020] The face recognition module is used to detect and track faces in images by collecting image frames in the video stream of the monitoring device;
[0021] The feature extraction module is used to extract the facial feature information detected by the face recognition module, store the features and send them to the corresponding first-level clustering module according to the site-level grouping id;
[0022] The first-level clustering module includes multiple first-level clustering task nodes, each of which performs a site-level facial feature data clustering, receives the sent facial features, clusters them according to the site-level grouping id, and sends the first-level clustering facial features to the corresponding line after clustering is completed;
[0023] The secondary clustering module includes multiple secondary clustering nodes, each of which performs a line-level facial feature data clustering, receives the facial feature information sent by the primary clustering module, and performs clustering according to the line group ID where it is located. Each line data corresponds to a secondary clustering module, and the secondary clustering facial feature clustering is sent to the global clustering module after completion;
[0024] The global clustering module includes a clustering service node, which corresponds to all personnel feature data in the subway network, receives feature information sent by the secondary clustering module, and performs face similarity threshold judgment. If the comparison is successful, it is determined to be the same type of face, and the class corresponding to the node is updated; otherwise, a new class is created at the node.
[0025] In a possible implementation, it further includes a business application module, which is used to combine the clustering result data at all levels with the subway network map to realize subway network-level, line-level, and station-level personnel travel conditions, trajectory analysis, and one-person-one-file business applications.
[0026] In one possible implementation, the face recognition module is used to detect and track faces in images by collecting image frames in a video stream of a monitoring device, including: calculating a face quality score, retaining only one optimal face in the same face sequence tracked, and determining factors for the quality score include occlusion, blur and deflection. When the feature quality score is lower than a quality score threshold, it is determined to be of low quality and is discarded.
[0027] In a possible implementation, the feature extraction module is used to extract facial feature information detected by the face recognition module, including: the feature extraction module performs feature extraction on the face image obtained by the face recognition module, writes the extracted features into a feature file, and sends them to the first-level clustering module through the MQ message middleware.
[0028] In one possible implementation, each first-level clustering task node performs a site-level clustering of facial feature data, including: if the clustering node where the group is located does not exist, creating a grouping node; comparing the facial feature data with the class center of the corresponding first-level clustering task to determine whether the similarity between the face corresponding to the face image and a certain class of faces is higher than or equal to a preset similarity threshold; if the similarity is higher than or equal to a preset first similarity threshold, the comparison is made and it is determined to be the same class of faces, and the class center of the class is updated; otherwise, a new class is created at the node using the facial feature.
[0029] In one possible implementation, clustering according to the line group id includes: determining the face similarity threshold in the clustering process, if there is a similar face class feature in the task, it is determined to be the same class of face, and the class corresponding to the node is updated; otherwise, a new class feature is created at the task node.
[0030] In a possible implementation, a plurality of graphics cards are provided in the global clustering module.
[0031] The use of the present invention has the following beneficial effects: Since the probability of the same person appearing in the same station and the same line is relatively high, the monitoring equipment is grouped and clustered separately according to subway stations and subway lines. The data generated after grouping and clustering is judged whether it needs to be archived or clustered at a subsequent level. The first-level and second-level clustering tasks can be assigned to different servers and graphics cards, corresponding to the station-level and line-level personnel appearance situations, respectively. Combined with the subway network track map, the station-level and line-level personnel trajectories, personnel appearance patterns, thermal statistics and other application displays can be realized without complex logical processing. The data pressure of global clustering is reduced, the defect of insufficient hardware resources of a single machine is solved, the system availability is improved, and the efficiency of face clustering under large amounts of data is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1This is a flowchart of the steps of the method for multi-level face clustering in a subway network according to an embodiment of the present invention;
[0033] Figure 2 This is a principle block diagram of a system for multi-level face clustering in a subway network according to an embodiment of the present invention. DETAILED DESCRIPTION
[0034] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0035] Reference Figure 1 , which is a flowchart of a method for multi-level face clustering in a subway network according to an embodiment of the present invention, includes the following steps:
[0036] S10, grouping and managing the monitoring equipment in the subway network according to stations and lines, into station-level groups and line-level groups;
[0037] S20, collecting image frames in the video stream by collecting monitoring equipment, and detecting and tracking human faces in the images;
[0038] S30, extracting the detected facial feature information, storing the features and sending them to the corresponding first-level clustering module according to the site-level grouping ID;
[0039] S40, using a first-level clustering module to perform first-level clustering, the first-level clustering module includes multiple first-level clustering task nodes, each first-level clustering task node performs a site-level facial feature data clustering, receives and sends facial features, and clusters them according to the site-level grouping ID. After the first-level clustering facial features are clustered, they are sent to the second-level clustering module of the corresponding line;
[0040] S50, using a secondary clustering module to perform secondary clustering, the secondary clustering module includes multiple secondary clustering nodes, each secondary clustering node performs a line-level facial feature data clustering, receives the facial feature information sent by the primary clustering module, and clusters it according to the line group ID where it is located. Each line data corresponds to a secondary clustering module, and after the secondary clustering facial feature clustering is completed, it is sent to the global clustering module;
[0041] S60, adopt the global clustering module to perform global clustering. The global clustering module includes a clustering service node, which corresponds to all the personnel feature data in the subway network, receives the feature information sent by the secondary clustering module, and performs face similarity threshold judgment. If the comparison is successful, it is determined to be the same type of face, and the class corresponding to the node is updated; otherwise, a new class is created at the node.
[0042] In the method for multi-level face clustering of a subway network in another embodiment of the present invention, in S10, the monitoring equipment name, longitude and latitude information, video stream address, etc. of the same site are added and maintained in the same group in the site-level grouping. In the line-level grouping, the relevant information of the sites and equipment of the same line is added and maintained in the same group. With the continuous construction of rail transit and the advent of the subway networking era, the monitoring equipment in the subway network is becoming more and more complete. The video stream address of the monitoring equipment in the subway is added to the system by line and site grouping or GB / T28181 protocol. The added information includes: line network name, line number, site name, entrance and exit, equipment name, longitude and latitude, etc. By connecting to the subway line map, the management of the corresponding monitoring equipment of the line and site is realized.
[0043] In a method for multi-level face clustering of a subway network in another embodiment of the present invention, in S20, image frames in a video stream are collected by collecting monitoring equipment, and faces are detected and tracked in the image, including: by calculating the face quality score, only one optimal face is retained for the same face sequence tracked, so as to reduce the pressure of repeated calculations in subsequent processes. The quality score is determined by factors including occlusion, blur and deflection. When the feature quality score is lower than the quality score threshold (generally set to 0.6), it is determined to be of low quality score. In order to avoid affecting the quality of subsequent face classes, it is discarded.
[0044] In a method for multi-level face clustering in a subway network in another embodiment of the present invention, in S30, extracting the detected facial feature information includes: performing feature extraction on the acquired face image, writing the extracted features into a feature file, and sending them to a first-level clustering module via MQ message middleware (RabbitMQ / Kafka).
[0045] In another embodiment of the present invention, a method for multi-level face clustering in a subway network, in S40, each first-level clustering task node performs a site-level face feature data clustering, including: if the clustering node where the group is located does not exist, create a grouping node; compare the face feature data with the class center of the corresponding first-level clustering task to determine whether the similarity between the face corresponding to the face image and a certain class of faces is higher than or equal to a preset similarity threshold; if the similarity is higher than or equal to the preset first similarity threshold, the comparison is made and it is determined to be the same class of faces, and the class center of the class is updated; otherwise, a new class is created at the node with the face feature. Since the amount of data for the first-level clustering and the second-level clustering is relatively small, too much computing power resources will not be used, and the tasks can be distributed on different servers. With the opening of new lines and sites in the future, new servers can be added to the platform distributed environment to achieve horizontal expansion of servers and increase the availability of the platform.
[0046] In another embodiment of the method for multi-level face clustering in a subway network of the present invention, in S50, clustering is performed according to the line group ID, including: determining the face similarity threshold during the clustering process, if there is a similar face class feature in the task, it is determined to be the same class of face, and the class corresponding to the node is updated; otherwise, a new class feature is created at the task node.
[0047] In another embodiment of the present invention, in the method for multi-level face clustering in a subway network, in S60, the global clustering module is the only clustering service node in the platform, corresponding to all personnel feature data in the subway network. Due to the high requirement for computing power, multiple graphics cards are included.
[0048] On the basis of the above-set method of multi-level face clustering of subway network including steps S10 to S60, another embodiment of the invention further includes S70, business application, which combines the clustering result data at all levels with the subway network map to realize the subway network level, line level, station level personnel travel situation, trajectory analysis and one-person-one-file business application. The subway network map is integrated into the business application, and the first-level, second-level, and global clustering node IDs and the corresponding equipment grouping ID association relationship, station information, capture time and other data information can be combined to realize the subway network level, line level, station level personnel travel situation, trajectory analysis, one-person-one-file, technical and combat judgment, thermal analysis and other business applications. Management or maintenance personnel at all levels can use the platform functions according to their own permissions.
[0049] Corresponding to the method embodiment, another embodiment of the present invention is a system for multi-level face clustering in a subway network, including a device management module 101, a face recognition module 102, a feature extraction module 103, a first-level clustering module 104, a second-level clustering module 105 and a global clustering module 106. The device management module 101 is used to group and manage the monitoring equipment in the subway network according to stations and lines, which are divided into station-level grouping and line-level grouping; the face recognition module 102 is used to detect and track faces in images by collecting image frames in the video stream of the monitoring equipment; the feature extraction module 103 is used to extract the facial feature information detected in the face recognition module, store the features and send them to the corresponding first-level clustering module according to the station-level grouping id; the first-level clustering module 104 includes multiple first-level clustering task nodes, each of which performs a station-level face Feature data clustering, receiving the facial features sent over, clustering them according to the station-level grouping id where they are located, and sending the first-level clustering facial features clustering to the second-level clustering module of the corresponding line after the first-level clustering is completed; the second-level clustering module 105 includes multiple second-level clustering nodes, each second-level clustering node performs a line-level facial feature data clustering, receives the facial feature information sent by the first-level clustering module, and clusters them according to the line grouping id where they are located. Each line data corresponds to a second-level clustering module. After the second-level clustering facial features are clustered, they are sent to the global clustering module; the global clustering module 106 includes a clustering service node, which corresponds to all the personnel feature data in the subway network, receives the feature information sent by the second-level clustering module, and performs facial similarity threshold judgment. If a match is found, it is determined to be the same type of face, and the class corresponding to the node is updated; otherwise, a new class is created at the node.
[0050] In a system for multi-level face clustering of a subway network in another embodiment of the present invention, in the equipment management module 101, the monitoring equipment name, longitude and latitude information, video stream address, etc. of the same site are added and maintained in the same group in the site-level grouping. In the line-level grouping, the relevant information of the sites and equipment of the same line are added and maintained in the same group. With the continuous construction of rail transit and the advent of the subway networking era, the monitoring equipment in the subway network is becoming more and more complete. The video stream address of the monitoring equipment in the subway or the GB / T28181 protocol is added to the system by line and site grouping. The added information includes: line network name, line number, site name, entrance and exit, equipment name, longitude and latitude, etc., and the management of the corresponding monitoring equipment of the line and site is realized by connecting to the subway line map.
[0051] In a system for multi-level face clustering of a subway network in another embodiment of the present invention, in a face recognition module 102, image frames in a video stream are collected by collecting monitoring equipment, and faces are detected and tracked in the image, including: by calculating the face quality score, only one optimal face is retained for the same face sequence tracked, so as to reduce the pressure of repeated calculations in subsequent processes, and the quality score is determined by factors including occlusion, blur and deflection. When the feature quality score is lower than the quality score threshold (generally set to 0.6), it is determined to be of low quality score, and is discarded to avoid affecting the quality of subsequent face classes.
[0052] In a system for multi-level face clustering of a subway network in another embodiment of the present invention, in the feature extraction module 103, extracting the detected face feature information includes: extracting features from the acquired face image, writing the extracted features into a feature file, and sending them to the first-level clustering module via the MQ message middleware.
[0053] In another embodiment of the present invention, a system for multi-level face clustering of a subway network, in the first-level clustering module 104, each first-level clustering task node performs a site-level face feature data clustering including: if the clustering node where the group is located does not exist, create a grouping node; compare the face feature data with the class center of the corresponding first-level clustering task to determine whether the similarity between the face corresponding to the face image and a certain class of faces is higher than or equal to a preset similarity threshold; if the similarity is higher than or equal to the preset first similarity threshold, the comparison is made and it is determined to be the same class of faces, and the class center of the class is updated; otherwise, a new class is created at the node using the face feature. Since the amount of data for the first-level clustering and the second-level clustering is relatively small, too much computing power resources will not be used, and the tasks can be distributed on different servers. With the opening of new lines and sites in the future, new servers can be added to the platform distributed environment to achieve horizontal expansion of servers and increase the availability of the platform.
[0054] In a system for multi-level face clustering of a subway network in another embodiment of the present invention, in the secondary clustering module 105, clustering is performed according to the line group ID, including: determining the face similarity threshold during the clustering process, if there are similar face class features in the task, they are determined to be the same class of faces, and the class corresponding to the node is updated; otherwise, a new class feature is created at the task node.
[0055] In a system for multi-level face clustering in a subway network according to another embodiment of the present invention, in the global clustering module 106, the global clustering module is the only clustering service node in the platform, corresponding to all personnel feature data in the subway network. Due to the high requirement for computing power, multiple graphics cards are included.
[0056] On the basis of the above-set subway network multi-level face clustering system, including the equipment management module 101, the face recognition module 102, the feature extraction module 103, the primary clustering module 104, the secondary clustering module 105 and the global clustering module 106, the subway network multi-level face clustering system of another embodiment of the invention further includes a business application module 107, which combines the clustering result data at all levels with the subway network line map to realize the subway network level, line level, station level personnel travel situation, trajectory analysis and one person one file business application. The subway network line map is integrated into the business application, and the first, second, and global clustering node ids and the corresponding equipment grouping id association relationship, station information, capture time and other data information can be combined to realize the subway network level, line level, station level personnel travel situation, trajectory analysis, one person one file, technical and combat judgment, thermal analysis and other business applications. Management or maintenance personnel at all levels can use the platform functions according to their own authority.
[0057] The above-mentioned method and system for multi-level face clustering of the subway network are deeply integrated with the subway network map, which can dynamically expand new server resources, reduce the complexity of rail business system integration, and solve the problems of computational efficiency and decreased accuracy of traditional face clustering methods when the data volume and scale are large.
[0058] It should be understood that the exemplary embodiments described herein are illustrative rather than restrictive. Although one or more embodiments of the present invention are described in conjunction with the accompanying drawings, it should be understood by those skilled in the art that various changes in form and detail may be made without departing from the spirit and scope of the present invention as defined by the appended claims.
Claims
1. A method for multi-level face clustering in a subway network, characterized in that: The following steps are involved: The monitoring equipment in the subway network is grouped and managed according to stations and lines, which are divided into station-level grouping and line-level grouping; By collecting image frames in the video stream through the acquisition monitoring device, the face is detected and tracked in the image; Extract the detected facial feature information, store the features and send them to the corresponding first-level clustering module according to the site-level grouping id; A first-level clustering module is used for first-level clustering. The first-level clustering module includes multiple first-level clustering task nodes. Each first-level clustering task node performs a site-level facial feature data clustering, receives and sends facial features, and clusters them according to the site-level grouping ID. After the first-level clustering facial feature clustering is completed, it is sent to the second-level clustering module of the corresponding line; A secondary clustering module is used for secondary clustering. The secondary clustering module includes multiple secondary clustering nodes. Each secondary clustering node performs a line-level facial feature data clustering, receives the facial feature information sent by the primary clustering module, and clusters it according to the line group ID. Each line data corresponds to a secondary clustering module. After the secondary clustering facial feature clustering is completed, it is sent to the global clustering module. A global clustering module is used for global clustering. The global clustering module includes a clustering service node, which corresponds to all personnel feature data in the subway network, receives feature information sent by the secondary clustering module, and performs face similarity threshold judgment. If the comparison is successful, it is determined to be the same type of face, and the class corresponding to the node is updated; otherwise, a new class is created at the node.
2. The method for multi-level face clustering of a subway network as claimed in claim 1, characterized in that: It further includes business applications, which combine the clustering result data at all levels with the subway network map to realize subway network-level, line-level, and station-level personnel travel conditions, trajectory analysis, and one-person-one-file business applications.
3. The method for multi-level face clustering of a subway network as claimed in claim 1, characterized in that: The method of collecting image frames in a video stream by collecting monitoring equipment and detecting and tracking faces in the images includes: calculating the face quality score, retaining only one optimal face in the same face sequence tracked, and determining factors of the quality score include occlusion, blur and deflection. When the feature quality score is lower than the quality score threshold, it is determined to be low in quality and discarded.
4. The method for multi-level face clustering of a subway network as claimed in claim 1, characterized in that: The extracting of the detected facial feature information includes: extracting features from the acquired facial image, writing the extracted features into a feature file, and sending the extracted features to a primary clustering module through an MQ message middleware.
5. The method for multi-level face clustering of a subway network as claimed in claim 1, characterized in that: Each first-level clustering task node performs a site-level clustering of facial feature data, including: if the clustering node where the group is located does not exist, create a grouping node; compare the facial feature data with the class center of the corresponding first-level clustering task to determine whether the similarity between the face corresponding to the face image and a certain class of faces is higher than or equal to a preset similarity threshold; if the similarity is higher than or equal to the preset first similarity threshold, then the comparison is made and it is determined to be the same class of faces, and the class center of the class is updated; otherwise, a new class is created at the node using the facial feature.
6. The method for multi-level face clustering in a subway network as claimed in claim 1, characterized in that: The clustering according to the line group id includes: determining the face similarity threshold in the clustering process, if there are similar face class features in the task, it is determined to be the same class of face, and the class corresponding to the node is updated; otherwise, a new class feature is created in the task node.
7. A system for multi-level face clustering in subway network, characterized in that: It includes device management module, face recognition module, feature extraction module, primary clustering module, secondary clustering module and global clustering module. The device management module is used to group and manage the monitoring devices in the subway network according to stations and lines, which are divided into station-level groups and line-level groups; The face recognition module is used to detect and track faces in images by collecting image frames in the video stream of the monitoring device; The feature extraction module is used to extract the facial feature information detected by the face recognition module, store the features and send them to the corresponding first-level clustering module according to the site-level grouping id; The first-level clustering module includes multiple first-level clustering task nodes, each of which performs a site-level facial feature data clustering, receives the sent facial features, clusters them according to the site-level grouping id, and sends the first-level clustering facial features to the corresponding line after clustering is completed; The secondary clustering module includes multiple secondary clustering nodes, each of which performs a line-level facial feature data clustering, receives the facial feature information sent by the primary clustering module, and performs clustering according to the line group ID where it is located. Each line data corresponds to a secondary clustering module, and the secondary clustering facial feature clustering is sent to the global clustering module after completion; The global clustering module includes a clustering service node, which corresponds to all personnel feature data in the subway network, receives feature information sent by the secondary clustering module, and performs face similarity threshold judgment. If the comparison is successful, it is determined to be the same type of face, and the class corresponding to the node is updated; otherwise, a new class is created at the node.
8. The system for multi-level face clustering of subway network as claimed in claim 7, characterized in that: It further includes a business application module, which is used to combine the clustering result data at all levels with the subway network map to realize subway network-level, line-level, and station-level personnel travel conditions, trajectory analysis, and one-person-one-file business applications.
9. The system for multi-level face clustering of subway network as claimed in claim 7, characterized in that: The face recognition module is used to detect and track faces in images by collecting image frames in the video stream of the monitoring device, including: by calculating the face quality score, only one optimal face is retained in the same face sequence tracked, and the quality score determination factors include occlusion, blur and deflection. When the feature quality score is lower than the quality score threshold, it is determined to be low in quality and discarded.
10. The system for multi-level face clustering of subway network as claimed in claim 7, characterized in that: The feature extraction module is used to extract the facial feature information detected by the face recognition module, including: the feature extraction module extracts features from the face image obtained by the face recognition module, writes the extracted features into a feature file, and sends them to the primary clustering module through the MQ message middleware.
11. The system for multi-level face clustering of subway network as claimed in claim 7, characterized in that: Each first-level clustering task node performs a site-level clustering of facial feature data, including: if the clustering node where the group is located does not exist, create a grouping node; compare the facial feature data with the class center of the corresponding first-level clustering task to determine whether the similarity between the face corresponding to the face image and a certain class of faces is higher than or equal to a preset similarity threshold; if the similarity is higher than or equal to the preset first similarity threshold, then the comparison is made and it is determined to be the same class of faces, and the class center of the class is updated; otherwise, a new class is created at the node using the facial feature.
12. The system for multi-level face clustering of subway network as claimed in claim 7, characterized in that: The clustering according to the line group id includes: determining the face similarity threshold in the clustering process, if there are similar face class features in the task, it is determined to be the same class of face, and the class corresponding to the node is updated; otherwise, a new class feature is created in the task node.
13. The system for multi-level face clustering of subway network as claimed in claim 7, characterized in that: A plurality of graphics cards are arranged in the global clustering module.
