Intelligent attendance recognition system and method based on target detection and face recognition

Through the intelligent attendance recognition system based on target detection and face recognition, multi-scale information transmission and semantic distillation technology are used to solve the problems of low efficiency and difficult supervision of traditional check-in methods, and achieve efficient and accurate student check-in management.

CN118537941BActive Publication Date: 2024-09-17GUANGZHOU HANMA WISDOM INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411017239.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-29
Publication Date
2024-09-17
Estimated Expiration
2044-07-29

AI Technical Summary

Technical Problem

The traditional method of student sign-in for class is inefficient, error-prone and difficult to supervise. There is a risk of cheating and it affects teaching management.

Method used

An intelligent attendance recognition system based on target detection and face recognition is used to collect face images through smart class cameras, and combine with the face database to perform multi-scale information transfer aggregation and semantic distillation enhancement processing, calculate hash similarity, generate attendance records and show.

Benefits of technology

It achieves efficient and accurate student sign-in management, avoids problems caused by manual sign-in and attendance card sign-in, and helps teachers and management better understand students' attendance status.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118537941B
    Figure CN118537941B
Patent Text Reader

Abstract

The present application discloses an attendance intelligent recognition system and method based on target detection and face recognition, which relates to the field of intelligent recognition. It obtains the face image of the detected object and extracts a collection of reference face images from a face database, and introduces an image processing and analysis algorithm based on artificial intelligence and machine learning at the back end to analyze and compare the face image of the detected object with each reference face image in the collection of reference face images, so as to match the identity of the detected object, thereby generating corresponding attendance record information, and displaying the attendance record information on the display screen of the smart class sign. In this way, a more intelligent attendance intelligent sign-in method can be realized, avoiding the problems caused by traditional manual sign-in and attendance card sign-in, thereby helping teachers and school management to better understand students' attendance and make corresponding management measures.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent recognition, and more specifically, to an attendance intelligent recognition system and method based on target detection and face recognition. Background Art

[0002] In school education management, student attendance is an important task, which is of great significance for school management, teaching evaluation and monitoring of student attendance. Attendance records not only reflect the attendance of students, but also are an important basis for evaluating student performance and participation.

[0003] Traditional methods of student attendance usually include manual attendance by students, manual recording by teachers, and the use of attendance cards, but these methods have some defects. For example, in a large class environment, traditional attendance methods (such as roll call and manual attendance) will take up a lot of class time, affecting teaching efficiency and progress. In addition, manual attendance and roll call methods are prone to errors. Teachers may cause misunderstandings due to unclear pronunciation or similar names of students, and students may be misremembered due to unclear handwriting. At the same time, students may sign for each other or use other means to cheat, making it difficult to effectively supervise.

[0004] Therefore, an optimized attendance intelligent recognition system is desired. Summary of the invention

[0005] In order to solve the above technical problems, this application is proposed.

[0006] According to one aspect of the present application, there is provided an attendance intelligent recognition system based on target detection and face recognition, which includes:

[0007] The detected object face image acquisition module is used to obtain the detected object's face image collected by the camera of the smart class sign set in front of the classroom door;

[0008] A reference face image extraction module is used to extract a set of reference face images from a face database;

[0009] A reference face image semantic information transfer enhancement module, used to perform face multi-scale information transfer aggregation and semantic distillation enhancement processing on each reference face image in the set of reference face images to obtain a set of enhanced face reference semantic feature maps;

[0010] A facial image semantic information transmission enhancement module is used to perform face multi-scale information transmission aggregation and semantic distillation enhancement processing on the facial image of the detected object to obtain an enhanced face detection semantic feature map;

[0011] A face semantic similarity calculation and matching module, used to respectively calculate the hash similarity between the enhanced face detection semantic feature map and each face reference semantic feature map in the set of face reference semantic feature maps to obtain a set of face semantic similarities;

[0012] an attendance record generating module, for matching the student object label corresponding to the maximum value with the detected object in response to the maximum value in the set of face semantic similarities being greater than or equal to a preset threshold, and generating an attendance record of the detected object, wherein the attendance record includes attendance time, attendance location and attendance event;

[0013] An attendance record display module, used to display the attendance record of the detected object on the display screen of the smart class card;

[0014] Wherein, the reference face image semantic information transmission enhancement module includes:

[0015] A face multi-scale feature information transmission unit, used to pass each reference face image in the set of reference face images through a pyramid-structured face multi-scale feature information transmission aggregation module to obtain a set of face reference semantic feature maps;

[0016] The face semantic enhancement unit is used to pass each face reference semantic feature map in the set of face reference semantic feature maps through a face semantic distillation enhancement module based on energy measurement attention to obtain the set of enhanced face reference semantic feature maps.

[0017] In the above-mentioned attendance intelligent recognition system based on target detection and face recognition, the face multi-scale feature information transmission unit includes:

[0018] A shallow feature extraction subunit, used for passing the reference face image through a convolution layer with a convolution kernel of 3×3 to obtain a shallow feature map of the reference face image;

[0019] A shallow feature residual fusion extraction subunit, used for fusing the shallow feature map of the reference face image through a face image shallow residual information fusion enhancement module to obtain a reference face image shallow residual fusion feature map;

[0020] A deep feature extraction subunit, used for passing the shallow residual fusion feature map of the reference face image through a convolution layer with a convolution kernel of 3×3 to obtain a deep feature map of the reference face image;

[0021] A deep feature residual fusion subunit, used for fusing the reference face image deep feature map through a face image deep residual information fusion enhancement module to obtain a reference face image deep residual fusion feature map;

[0022] A deep modulation feature extraction subunit, used for inputting the reference face image deep residual fusion feature map into a scale modulation module based on an SPPF layer to obtain a reference face image deep modulation feature map;

[0023] An upsampling subunit, used for upsampling the reference face image deep modulation feature map to obtain an upsampled reference face image deep modulation feature map;

[0024] A reference image multi-scale feature fusion subunit, used for fusing the upsampled reference face image deep modulation feature map with the reference face image shallow residual fusion feature map to obtain a reference face image multi-scale feature map;

[0025] The face reference semantic enhancement subunit is used to obtain the face reference semantic feature map by fusing the reference face image multi-scale feature map through the face image multi-scale residual information enhancement module.

[0026] In the above-mentioned attendance intelligent recognition system based on target detection and face recognition, the shallow feature residual fusion extraction subunit is used to:

[0027] The shallow feature map of the reference face image is subjected to channel dimensionality reduction modulation through a point convolution layer to obtain a channel dimensionality reduction modulated shallow feature map of the reference face image;

[0028] The shallow feature map of the channel dimensionality reduction modulated reference face image is subjected to feature extraction through a convolution layer with a convolution kernel of 3×3 to obtain a shallow implicit information feature map of the reference face image;

[0029] The shallow implicit information feature map of the reference face image is modulated by a point convolution layer to obtain a shallow feature map of the reference face image after channel modulation;

[0030] The shallow feature map of the reference face image after channel modulation and the shallow feature map of the reference face image modulated by channel dimension reduction are fused to obtain the shallow residual fusion feature map of the reference face image.

[0031] In the above-mentioned attendance intelligent recognition system based on target detection and face recognition, the deep modulation feature extraction subunit is used to:

[0032] The reference face image deep residual fusion feature map is passed through a scale modulation module based on a point convolution layer to obtain a scale-adjusted reference face image deep residual fusion feature map;

[0033] Performing maximum pooling processing on each feature matrix along the channel dimension in the deep residual fusion feature map of the scale-adjusted reference face image to obtain a deep residual fusion feature vector of the reference face image;

[0034] Based on the deep residual fusion feature vector of the reference face image, channel weighted enhancement is performed on the deep residual fusion feature map of the scale-adjusted reference face image to obtain the deep modulation feature map of the reference face image.

[0035] In the above-mentioned attendance intelligent recognition system based on target detection and face recognition, the face semantic enhancement unit includes:

[0036] A sequence number labeling subunit, used for labeling each face reference semantic channel feature vector of the face reference semantic feature map with a sequence number to obtain a sequence of face reference semantic labeling sequence numbers;

[0037] An energy function value calculation subunit, used for calculating the energy function values ​​of each face reference semantic channel feature vector to obtain a sequence of energy function values, wherein the energy function value is related to the mean and variance of each face reference semantic channel feature vector and the face reference semantic annotation sequence number;

[0038] An energy function reciprocal representation subunit, used for calculating the reciprocal of each energy function value in the sequence of energy function values ​​to obtain a sequence of energy function reciprocal representation values;

[0039] Activate subunits to utilize The function activates the sequence of reciprocal representation values ​​of the energy function to obtain a sequence of reciprocal representation values ​​of the activated energy function;

[0040] The enhanced face reference semantic channel feature calculation subunit is used to calculate the product between the corresponding inverse representation value of the activation energy function and the face reference semantic channel feature vector of each group in the sequence of the inverse representation value of the activation energy function and the sequence of the face reference semantic channel feature vector to obtain a plurality of enhanced face reference semantic channel feature vectors;

[0041] The dimension reconstruction subunit is used to reconstruct the dimensions of the multiple enhanced face reference semantic channel feature vectors according to the feature map channel dimension to obtain the enhanced face reference semantic feature map.

[0042] In the above-mentioned attendance intelligent recognition system based on target detection and face recognition, the energy function value calculation subunit is used to:

[0043] Calculating the mean and variance of predetermined face reference semantic channel feature vectors in each face reference semantic channel feature vector to obtain a face reference semantic mean and a face reference semantic variance;

[0044] Determine the face reference semantic annotation sequence number of the predetermined face reference semantic channel feature vector to obtain a predetermined face reference semantic annotation sequence number;

[0045] Calculating the sum of the face reference semantic variance and the face reference semantic mean and then multiplying the sum by a constant 4 to obtain a first face reference semantic modulation factor;

[0046] Calculate the face reference semantic variance and the product of the face reference semantic mean and a constant 2 respectively to obtain a double face reference semantic variance and a double face reference semantic mean;

[0047] After calculating the square of the difference between the face reference semantic annotation sequence number and the face reference semantic mean, the square is added to the double face reference semantic variance and the double face reference semantic mean to obtain a second face reference semantic modulation factor;

[0048] The division between the first face reference semantic modulation factor and the second face reference semantic modulation factor is calculated to obtain an energy function value corresponding to a predetermined face reference semantic channel feature vector.

[0049] In the above-mentioned attendance intelligent recognition system based on target detection and face recognition, the detected face image semantic information transmission enhancement module is used to: pass the face image of the detected object through the pyramid-structured face multi-scale feature information transmission aggregation module and the energy measurement attention-based face semantic distillation enhancement module to obtain the enhanced face detection semantic feature map.

[0050] In the above-mentioned attendance intelligent recognition system based on target detection and face recognition, it also includes a training module for training the pyramid-structure-based face multi-scale feature information transmission aggregation module and the energy-measurement-attention-based face semantic distillation enhancement module;

[0051] Wherein, the training module includes:

[0052] A training data acquisition unit is used to acquire training data, wherein the training data includes a face image of a training object collected by a camera of a smart class sign arranged in front of a classroom door; and a set of training reference face images is extracted from a face database;

[0053] A training reference image semantic information transfer enhancement unit, used to perform information transfer aggregation and semantic distillation enhancement processing based on multi-scale face on each training reference face image in the set of training reference face images to obtain a set of training enhanced face reference semantic feature maps;

[0054] A training detection image semantic information transfer enhancement unit is used to perform face multi-scale information transfer aggregation and semantic distillation enhancement processing on the face image of the training detected object to obtain a training enhanced face detection semantic feature map;

[0055] A training face semantic similarity calculation and matching unit, used to respectively calculate the hash similarity between the training enhanced face detection semantic feature map and each training face reference semantic feature map in the set of training face reference semantic feature maps to obtain a set of training face semantic similarities;

[0056] A difference loss calculation unit, used to calculate a difference loss function between the set of training face semantic similarities and the predicted hash similarity;

[0057] A training unit is used to train the pyramid-structured multi-scale facial feature information transfer aggregation module and the energy-metric attention-based facial semantic distillation enhancement module based on the difference loss function.

[0058] According to another aspect of the present application, there is provided an attendance intelligent recognition method based on target detection and face recognition, which comprises:

[0059] Obtaining a facial image of the detected object collected by a camera of a smart class sign installed in front of the classroom door;

[0060] extracting a set of reference face images from a face database;

[0061] Performing face multi-scale information transfer aggregation and semantic distillation enhancement processing on each reference face image in the set of reference face images to obtain a set of enhanced face reference semantic feature maps;

[0062] Performing face multi-scale information transfer aggregation and semantic distillation enhancement processing on the face image of the detected object to obtain an enhanced face detection semantic feature map;

[0063] Respectively calculating the hash similarity between the enhanced face detection semantic feature map and each face reference semantic feature map in the set of face reference semantic feature maps to obtain a set of face semantic similarities;

[0064] In response to the maximum value in the set of face semantic similarities being greater than or equal to a preset threshold, matching the student object label corresponding to the maximum value with the detected object, and generating an attendance record of the detected object, wherein the attendance record includes attendance time, attendance location, and attendance events;

[0065] The attendance record of the detected object is displayed on the display screen of the smart class card.

[0066] Compared with the prior art, the present application provides an attendance intelligent recognition system and method based on target detection and face recognition. When comparing and analyzing a face image with a reference face image in a face database to identify the identity of the detected object for attendance check-in, the face image of the detected object is obtained and a collection of reference face images is extracted from the face database, and an image processing and analysis algorithm based on artificial intelligence and machine learning is introduced at the back end to analyze and compare the face image of the detected object with each reference face image in the collection of reference face images, so as to match the identity of the detected object, thereby generating corresponding attendance record information, and displaying the attendance record information on the display screen of the smart class sign. In this way, a more intelligent attendance intelligent check-in method can be realized, avoiding the problems caused by traditional manual check-in and attendance card check-in, thereby helping teachers and school management to better understand students' attendance and make corresponding management measures. BRIEF DESCRIPTION OF THE DRAWINGS

[0067] By describing the embodiments of the present application in more detail in conjunction with the accompanying drawings, the above and other purposes, features and advantages of the present application will become more apparent. The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation of the present application. In the accompanying drawings, the same reference numerals generally represent the same components or steps.

[0068] Figure 1 A block diagram of an attendance intelligent recognition system based on target detection and face recognition according to an embodiment of the present application;

[0069] Figure 2 A system architecture diagram of an attendance intelligent recognition system based on target detection and face recognition according to an embodiment of the present application;

[0070] Figure 3 A block diagram of a training module of an attendance intelligent recognition system based on target detection and face recognition according to an embodiment of the present application;

[0071] Figure 4 A block diagram of a reference face image semantic information transmission enhancement module in an attendance intelligent recognition system based on target detection and face recognition according to an embodiment of the present application;

[0072] Figure 5 The present invention is a flowchart of an intelligent attendance recognition method based on target detection and face recognition according to an embodiment of the present application. DETAILED DESCRIPTION

[0073] Below, the exemplary embodiments according to the present application will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application, and it should be understood that the present application is not limited to the exemplary embodiments described here.

[0074] As shown in this application and claims, unless the context clearly indicates an exception, the words "a", "an", "an" and / or "the" do not refer to the singular and may also include the plural. Generally speaking, the terms "include" and "comprise" only indicate the inclusion of the steps and elements that have been clearly identified, and these steps and elements do not constitute an exclusive list. The method or device may also include other steps or elements.

[0075] Although the present application makes various references to certain modules in the system according to the embodiments of the present application, any number of different modules can be used and run on the user terminal and / or server. The modules are only illustrative, and different aspects of the system and method can use different modules.

[0076] Flowcharts are used in the present application to illustrate the operations performed by the system according to the embodiments of the present application. It should be understood that the preceding or following operations are not necessarily performed accurately in order. On the contrary, various steps may be processed in reverse order or simultaneously as required. Meanwhile, other operations may also be added to these processes, or a certain step or several steps of operations may be removed from these processes.

[0077] Below, the exemplary embodiments according to the present application will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application, and it should be understood that the present application is not limited to the exemplary embodiments described here.

[0078] With the rapid development of artificial intelligence technology, especially the application of machine learning and deep learning in the field of image recognition, intelligent recognition systems have become a reality. As an important branch of intelligent recognition technology, face recognition technology has been widely used in security monitoring, identity authentication, access control and other fields.

[0079] Traditional attendance methods, such as clocking in and signing, are inefficient and prone to cheating. With the development of technology, attendance methods based on biometrics have gradually become a new option to replace traditional methods. Face recognition attendance systems are an ideal choice for modern attendance systems because of their non-contact, high efficiency and difficulty in cheating.

[0080] Based on this, in the technical solution of this application, an attendance intelligent recognition system based on target detection and face recognition is proposed, which can place the smart class sign in front of the school classroom (or laboratory, computer room) and integrate a portrait collection camera. Before class, the camera is controlled by the intelligent sign-in system program so that the camera is facing the door, and the face image of the person entering is collected and transmitted to the background server. In the background server, the identity information of the detected object is identified by portrait comparison, so as to complete the sign-in and generate an attendance record, including the attendance time, attendance location and attendance event, for display on the display screen of the smart class sign.

[0081] In the technical solution of the present application, an attendance intelligent recognition system based on target detection and face recognition is proposed. Figure 1 It is a block diagram of an attendance intelligent recognition system based on target detection and face recognition according to an embodiment of the present application. Figure 2 FIG. 1 is a system architecture diagram of an attendance intelligent recognition system based on target detection and face recognition according to an embodiment of the present application. Figure 1 and Figure 2 As shown, according to the embodiment of the present application, the attendance intelligent recognition system 300 based on target detection and face recognition includes: a face image acquisition module 310 of the detected object, which is used to obtain the face image of the detected object collected by the camera of the smart class sign set in front of the classroom door; a reference face image extraction module 320, which is used to extract a set of reference face images from the face database; a reference face image semantic information transmission enhancement module 330, which is used to perform information transmission aggregation and semantic distillation enhancement processing based on multi-scale face on each reference face image in the set of reference face images to obtain a set of enhanced face reference semantic feature maps; a detection face image semantic information transmission enhancement module 340, which is used to perform information transmission aggregation based on multi-scale face on the face image of the detected object. and semantic distillation enhancement processing to obtain an enhanced face detection semantic feature map; a face semantic similarity calculation and matching module 350, used to respectively calculate the hash similarity between the enhanced face detection semantic feature map and each face reference semantic feature map in the set of face reference semantic feature maps to obtain a set of face semantic similarities; an attendance record generation module 360, used to match the student object label corresponding to the maximum value with the detected object in response to the maximum value in the set of face semantic similarities being greater than or equal to a preset threshold, and generate an attendance record of the detected object, wherein the attendance record includes attendance time, attendance location and attendance event; an attendance record display module 370, used to display the attendance record of the detected object on the display screen of the smart class board.

[0082] In particular, the detected object face image acquisition module 310 and the reference face image extraction module 320 are used to obtain the face image of the detected object collected by the camera of the smart class sign set in front of the classroom door; and extract a set of reference face images from the face database. In a specific example, before class, the camera is controlled by the intelligent sign-in system program so that the camera is facing the door, and the face image of the person entering the venue is collected to obtain the face image of the detected object, and the face image is transmitted to the background server. In the background server, a set of reference face images is extracted from the face database to identify the identity information of the detected object by portrait comparison, so as to complete the sign-in and generate attendance records, including attendance time, attendance location and attendance events, for display on the display screen of the smart class sign.

[0083] In particular, the reference face image semantic information transfer enhancement module 330 is used to perform face multi-scale information transfer aggregation and semantic distillation enhancement processing on each reference face image in the reference face image set to obtain a set of enhanced face reference semantic feature maps. In particular, in a specific example of the present application, Figure 4 As shown, the reference face image semantic information transfer enhancement module 330 includes: a face multi-scale feature information transfer unit 331, which is used to pass each reference face image in the set of reference face images through a face multi-scale feature information transfer aggregation module based on a pyramid structure to obtain a set of face reference semantic feature maps; a face semantic enhancement unit 332, which is used to pass each face reference semantic feature map in the set of face reference semantic feature maps through a face semantic distillation enhancement module based on energy measurement attention to obtain the set of enhanced face reference semantic feature maps.

[0084] Specifically, the face multi-scale feature information transmission unit 331 is used to pass each reference face image in the set of reference face images through a face multi-scale feature information transmission aggregation module based on a pyramid structure to obtain a set of face reference semantic feature maps. Considering that in a pyramid network, the bottom network is mainly responsible for extracting low-level features and spatial detail information of the image, while the high-level network is responsible for extracting more abstract high-level features. However, in a traditional network structure, the position information extracted by the bottom network is difficult to directly affect the high-level network, resulting in distortion of the position information in feature extraction at different levels. In addition, in a pyramid network, the transmission of features usually requires a large amount of calculation, especially when processing large-scale image data. With the increase in the number of network layers, the amount of calculation increases exponentially, which may cause the training and reasoning process to become very time-consuming. Based on this, in order to be able to solve the problem that the shallow position information in the pyramid network is difficult to affect the deep features and will cause a large amount of calculation required when transmitting feature information, in the technical solution of the present application, each reference face image in the set of reference face images is further passed through a face multi-scale feature information transmission aggregation module based on a pyramid structure to obtain a set of face reference semantic feature maps. In particular, in the technical solution of the present application, the pyramid-structured multi-scale facial feature information transmission aggregation module includes a feature extraction network and a feature fusion network. In the feature fusion network, information transmission is achieved through residual fusion and jump connection to effectively fuse shallow features and deep features in the facial image. This can effectively transmit the position information extracted from the bottom layer to the upper layer, so that the deep features can better fuse the position information of the bottom layer, thereby improving the expressiveness and accuracy of the features. In addition, the pyramid structure is used to perform residual feature extraction and information transmission on facial features of different levels to reduce the amount of calculation in the feature transmission process. By extracting features and aggregating information at different scales, efficient transmission and utilization of feature information is achieved, while reducing unnecessary computing overhead and improving the computing efficiency and speed of the network.

[0085] In an embodiment of the present application, each reference face image in the set of reference face images is respectively passed through a face multi-scale feature information transmission aggregation module based on a pyramid structure to obtain a set of face reference semantic feature maps, including: passing the reference face image through a convolution layer with a convolution kernel of 3×3 to obtain a shallow feature map of the reference face image; passing the shallow feature map of the reference face image through a face image shallow residual information fusion enhancement module to obtain a shallow residual fusion feature map of the reference face image; passing the shallow residual fusion feature map of the reference face image through a convolution layer with a convolution kernel of 3×3 to obtain a deep feature map of the reference face image; passing the deep feature map of the reference face image through a face The deep residual information fusion enhancement module of the image is used to obtain a deep residual fusion feature map of the reference face image; the deep residual fusion feature map of the reference face image is input into the scale modulation module based on the SPPF layer to obtain a deep modulation feature map of the reference face image; the deep modulation feature map of the reference face image is upsampled to obtain a deep modulation feature map of the upsampled reference face image; the deep modulation feature map of the upsampled reference face image is fused with the shallow residual fusion feature map of the reference face image to obtain a multi-scale feature map of the reference face image; the multi-scale feature map of the reference face image is passed through the multi-scale residual information fusion enhancement module of the face image to obtain the face reference semantic feature map.

[0086] Among them, the process of passing the shallow feature map of the reference face image through the shallow residual information fusion enhancement module of the face image to obtain the shallow residual fusion feature map of the reference face image includes: passing the shallow feature map of the reference face image through a point convolution layer to perform channel dimensionality reduction modulation to obtain a shallow feature map of the reference face image modulated by channel dimensionality reduction; passing the shallow feature map of the reference face image modulated by channel dimensionality reduction through a convolution layer with a convolution kernel of 3×3 to perform feature extraction to obtain a shallow implicit information feature map of the reference face image; passing the shallow implicit information feature map of the reference face image through a point convolution layer to perform channel dimensionality increase modulation to obtain a shallow feature map of the reference face image after channel modulation; fusing the shallow feature map of the reference face image after channel modulation and the shallow feature map of the reference face image modulated by channel dimensionality reduction to obtain the shallow residual fusion feature map of the reference face image.

[0087] More specifically, the process of inputting the deep residual fusion feature map of the reference face image into a scale modulation module based on the SPPF layer to obtain the deep modulation feature map of the reference face image includes: passing the deep residual fusion feature map of the reference face image through a scale modulation module based on a point convolution layer to obtain a scale-adjusted deep residual fusion feature map of the reference face image; a maximum pooling secondary sub-unit, used to perform maximum pooling processing on each feature matrix along the channel dimension in the scale-adjusted deep residual fusion feature map of the reference face image to obtain a deep residual fusion feature vector of the reference face image; a channel weighted enhancement secondary sub-unit, used to perform channel weighted enhancement on the scale-adjusted deep residual fusion feature map of the reference face image based on the deep residual fusion feature vector of the reference face image to obtain the deep modulation feature map of the reference face image.

[0088] Specifically, the face semantic enhancement unit 332 is used to pass each face reference semantic feature map in the set of face reference semantic feature maps through a face semantic distillation enhancement module based on energy measurement attention to obtain the set of enhanced face reference semantic feature maps. Since each face reference semantic feature map in the set of face reference semantic feature maps contains multi-level fusion semantics and feature information about the reference face image, some of these reference face image features are closely related to the subsequent face feature comparison and student object identity recognition tasks, while some contribute less to the subsequent tasks. Based on this, in order to better distinguish the feature differences between different faces in the face recognition task and improve the accuracy of student object identity recognition, in the technical solution of the present application, each face reference semantic feature map in the set of face reference semantic feature maps is further passed through a face semantic distillation enhancement module based on energy measurement attention to obtain a set of enhanced face reference semantic feature maps. Through the processing of the face semantic distillation enhancement module based on energy measurement attention, the correlation relationship and importance features between the various features of the reference face image in the separate face reference semantic feature map can be automatically learned and captured, thereby identifying the key areas and features in the reference face image, which are crucial for face recognition. Then, the important face feature information is highlighted and irrelevant information is suppressed by adaptive weighting, thereby improving the expressiveness of the reference face features. In other words, through the face semantic distillation enhancement module based on the energy measurement attention mechanism, the face feature information of the key areas in the feature map can be further refined and strengthened, and the expressiveness of the features and the accuracy of recognition can be improved. This helps to better distinguish the feature differences between different faces in face recognition tasks and improve recognition accuracy.

[0089] In an embodiment of the present application, each face reference semantic feature map in the set of face reference semantic feature maps is respectively subjected to a face semantic distillation enhancement module based on energy measurement attention to obtain the set of enhanced face reference semantic feature maps, including: marking each face reference semantic channel feature vector of the face reference semantic feature map with a serial number to obtain a sequence of face reference semantic annotation serial numbers; calculating the energy function value of each face reference semantic channel feature vector to obtain a sequence of energy function values, wherein the energy function value is related to the mean and variance of each face reference semantic channel feature vector and the face reference semantic annotation serial number; calculating the reciprocal of each energy function value in the sequence of energy function values ​​to obtain a sequence of energy function reciprocal representation values; and using The function activates the sequence of inverse representation values ​​of the energy function to obtain a sequence of inverse representation values ​​of the activated energy function; calculates the product of each group of corresponding inverse representation values ​​of the activated energy function and the sequence of face reference semantic channel feature vectors to obtain multiple enhanced face reference semantic channel feature vectors; and reconstructs the multiple enhanced face reference semantic channel feature vectors according to the feature map channel dimension to obtain the enhanced face reference semantic feature map.

[0090] Among them, the energy function value of each face reference semantic channel feature vector is calculated to obtain a sequence of energy function values, wherein the process of the energy function value being related to the mean and variance of each face reference semantic channel feature vector and the face reference semantic annotation serial number includes: calculating the mean and variance of a predetermined face reference semantic channel feature vector among the various face reference semantic channel feature vectors to obtain a face reference semantic mean and a face reference semantic variance; determining the face reference semantic annotation serial number of the predetermined face reference semantic channel feature vector to obtain a predetermined face reference semantic annotation serial number; calculating the sum of the face reference semantic variance and the face reference semantic mean Then multiply it with a constant 4 to obtain a first face reference semantic modulation factor; calculate the product of the face reference semantic variance and the face reference semantic mean and the constant 2 respectively to obtain a double face reference semantic variance and a double face reference semantic mean; calculate the square of the difference between the face reference semantic annotation serial number and the face reference semantic mean, and then add it with the double face reference semantic variance and the double face reference semantic mean to obtain a second face reference semantic modulation factor; calculate the division between the first face reference semantic modulation factor and the second face reference semantic modulation factor to obtain the energy function value corresponding to the predetermined face reference semantic channel feature vector.

[0091] In summary, in the above embodiment, each face reference semantic feature map in the set of face reference semantic feature maps is respectively processed through the face semantic distillation enhancement module based on energy measurement attention to obtain the set of enhanced face reference semantic feature maps, including: each face reference semantic feature map in the set of face reference semantic feature maps is respectively processed through the face semantic distillation enhancement module based on energy measurement attention with the following energy measurement enhancement formula to obtain the set of enhanced face reference semantic feature maps; wherein the energy measurement enhancement formula is:

[0092] ;

[0093] ;

[0094] ;

[0095] ;

[0096] in, is the first in the sequence of human face reference semantic channel feature vectors obtained by vectorizing and expanding the human face reference semantic feature map along the channel dimension. Individual face reference semantic channel feature vector, For each face reference semantic channel feature vector Position feature values, is the length of the reference semantic channel feature vector for each face, is the mean of the reference semantic channel feature vectors for each face, is the variance of the reference semantic channel feature vector for each face, is the regularization hyperparameter, is the labeling sequence number of each face reference semantic channel feature vector in the set, is the energy function value of each face reference semantic channel feature vector, for function, is the Hadamard product, It is the feature vector of each enhanced face reference semantic channel in the enhanced face reference semantic feature map.

[0097] It is worth mentioning that in other specific examples of the present application, each reference face image in the set of reference face images can be subjected to multi-scale information transfer aggregation and semantic distillation enhancement processing based on the face in other ways to obtain a set of enhanced face reference semantic feature maps, for example: inputting the set of reference face images; performing multi-scale information transfer aggregation on each reference face image; using semantic distillation technology to extract semantic information from a deeper network, and passing this information back to a shallower network to enhance the semantic representation; combining the results of multi-scale information transfer aggregation and semantic distillation enhancement processing to obtain the set of enhanced face reference semantic feature maps.

[0098] In particular, the detected face image semantic information transmission enhancement module 340 is used to perform face multi-scale information transmission aggregation and semantic distillation enhancement processing on the face image of the detected object to obtain an enhanced face detection semantic feature map. In particular, in a specific example of the present application, the face image of the detected object is passed through the face multi-scale feature information transmission aggregation module based on the pyramid structure and the face semantic distillation enhancement module based on energy measurement attention to obtain the enhanced face detection semantic feature map. It should be understood that in order to better analyze and compare the differences between the facial features of the detected object and each reference facial feature, so as to more effectively and accurately identify the identity of the detected student object, so as to perform corresponding attendance management, in the technical solution of the present application, the face image of the detected object is processed in the same feature extraction method. Specifically, the face image of the detected object is passed through the face multi-scale feature information transmission aggregation module based on the pyramid structure and the face semantic distillation enhancement module based on energy measurement attention to obtain an enhanced face detection semantic feature map.

[0099] In particular, the face semantic similarity calculation and matching module 350 is used to respectively calculate the hash similarity between the enhanced face detection semantic feature map and each face reference semantic feature map in the set of face reference semantic feature maps to obtain a set of face semantic similarities. That is, by respectively calculating the hash similarity between the face detection semantic feature map and each face reference semantic feature map, the degree of similarity between them can be quantified. This similarity metric is an effective method for evaluating the feature similarity between two face images. It is worth mentioning that the hash method is usually robust to small changes, which means that even when the face image is affected by some noise or changes, the hash similarity can still accurately reflect the similarity between faces. Therefore, the calculation based on hash similarity can help the system determine whether two face images belong to the same person. When the hash similarity is high, it means that the features of the two face images are relatively similar and may come from the same person, thereby achieving accurate recognition and matching of faces.

[0100] In particular, the attendance record generation module 360 ​​and the attendance record display module 370 are used to match the student object label corresponding to the maximum value with the detected object in response to the maximum value in the set of face semantic similarity being greater than or equal to a preset threshold, and generate the attendance record of the detected object, wherein the attendance record includes the attendance time, attendance location and attendance event; and display the attendance record of the detected object on the display screen of the smart class card. It should be understood that in this way, the identity information of the detected object can be identified by portrait comparison, thereby generating corresponding attendance record information, and the attendance record information is displayed on the display screen of the smart class card. In this way, a more intelligent attendance smart sign-in method can be realized, avoiding the problems caused by traditional manual sign-in and attendance card sign-in, thereby helping teachers and school management to better understand students' attendance and make corresponding management measures.

[0101] It should be understood that before using the above-mentioned neural network model for inference, it is necessary to train the pyramid-structured face multi-scale feature information transmission aggregation module and the energy-measurement-attention-based face semantic distillation enhancement module. That is to say, the attendance intelligent recognition system 300 based on target detection and face recognition according to the present application also includes a training phase for training the pyramid-structured face multi-scale feature information transmission aggregation module and the energy-measurement-attention-based face semantic distillation enhancement module.

[0102] Figure 3 FIG. 1 is a block diagram of the training phase of the attendance intelligent recognition system based on target detection and face recognition according to an embodiment of the present application. Figure 3As shown, according to the embodiment of the present application, the attendance intelligent recognition system 300 based on target detection and face recognition includes: a training module 400, including: a training data acquisition unit 410, used to acquire training data, wherein the training data includes a face image of a training detected object collected by a camera of a smart class sign arranged in front of a classroom door; a set of training reference face images is extracted from a face database; a training reference image semantic information transfer enhancement unit 420, used to perform face multi-scale information transfer aggregation and semantic distillation enhancement processing on each training reference face image in the set of training reference face images to obtain a set of training enhanced face reference semantic feature maps; a training detection image semantic information transfer enhancement unit 43 ... The face image is subjected to multi-scale information transfer aggregation and semantic distillation enhancement processing based on the face to obtain a training enhanced face detection semantic feature map; a training face semantic similarity calculation matching unit 440 is used to respectively calculate the hash similarity between the training enhanced face detection semantic feature map and each training face reference semantic feature map in the set of training face reference semantic feature maps to obtain a set of training face semantic similarities; a difference loss calculation unit 450 is used to calculate the difference loss function between the set of training face semantic similarities and the predicted hash similarity; a training unit 460 is used to train the pyramid-structured multi-scale face feature information transfer aggregation module and the energy-measured attention-based face semantic distillation enhancement module based on the difference loss function.

[0103] In particular, considering that the set of enhanced face reference semantic feature maps further performs face semantic distillation enhancement based on energy measurement attention on the basis of multi-scale and multi-depth image semantic feature representation of each reference face image in the set of face reference semantic feature maps, compared with the multi-scale and multi-depth image semantic feature representation of the face image of the detected object by the enhanced face detection semantic feature map, the prior-posteriori image semantic probability causal association is missing due to the face semantic distillation enhancement based on energy measurement attention, so that when calculating the hash similarity between them, there is a lack of mapping association mapping to the common hash similarity domain, which will affect the calculation accuracy of the hash similarity.

[0104] Therefore, during the training process, the applicant of the present application optimizes the group of the enhanced face detection semantic feature maps and the face reference semantic feature maps based on the predicted hash similarity at each iteration for each group of the enhanced face detection semantic feature maps and the face reference semantic feature maps, that is, when the model is back-propagated based on the gradient descent parameter update based on the difference loss function between the true hash similarity and the predicted hash similarity, including:

[0105] Probabilize each feature value of the group of enhanced face detection semantic feature maps and the face reference semantic feature map based on a probability activation function, such as a softmax function, to obtain each probabilized feature value;

[0106] determining a cognitive symbol value based on a comparison of the respective probabilized feature values ​​with the predicted hash similarity, wherein the cognitive symbol value is equal to one, zero, and negative one in response to the respective probabilized feature values ​​being greater than, equal to, and less than the predicted hash similarity, respectively;

[0107] Each of the probabilistic eigenvalues ​​is multiplied by the cognitive symbol value and a first weight as a hyperparameter, and each of the probabilistic eigenvalues ​​is multiplied by a feature mean of the probabilistic eigenvalues ​​and a second weight as a hyperparameter, and then the two products are differentiated and their absolute values ​​are taken to obtain the optimized eigenvalues.

[0108] As shown below:

[0109] ;

[0110] ;

[0111] and is each probabilistic feature value of each group of the enhanced face detection semantic feature map and the face reference semantic feature map, is the predicted hash similarity, is the cognitive symbol function, and is a hyperparameter, It is the feature mean of each probabilistic feature value of each group of the enhanced face detection semantic feature map and the face reference semantic feature map.

[0112] That is, by comparing the probabilistic amplitude of the feature value of each group of the enhanced face detection semantic feature map and the face reference semantic feature map with the predicted hash similarity, the hash similarity cognitive phase transformation response of the enhanced face detection semantic feature map and the face reference semantic feature map is obtained, and the phase shift response of the feature value of the enhanced face detection semantic feature map and the face reference semantic feature map relative to the hash similarity representation of the feature as a whole is subjected to a feature distribution sequence invariance transformation based on differential distribution expansion, so as to realize the causal constraint of the posterior-prior image semantic feature distribution representation of the enhanced face detection semantic feature map and the face reference semantic feature map, and compensate for the mapping association loss when the enhanced face detection semantic feature map and the face reference semantic feature map are mapped to the common hash similarity domain, thereby improving the calculation accuracy of the hash similarity. In this way, the identity information of the student object can be more accurately identified, thereby generating the corresponding attendance record information for display on the display screen of the smart class card.

[0113] As described above, the attendance intelligent recognition system 300 based on target detection and face recognition according to the embodiment of the present application can be implemented in various wireless terminals, such as a server with an attendance intelligent recognition algorithm based on target detection and face recognition. In a possible implementation, the attendance intelligent recognition system 300 based on target detection and face recognition according to the embodiment of the present application can be integrated into the wireless terminal as a software module and / or a hardware module. For example, the attendance intelligent recognition system 300 based on target detection and face recognition can be a software module in the operating system of the wireless terminal, or can be an application developed for the wireless terminal; of course, the attendance intelligent recognition system 300 based on target detection and face recognition can also be one of the many hardware modules of the wireless terminal.

[0114] Alternatively, in another example, the intelligent attendance recognition system 300 based on target detection and face recognition and the wireless terminal may also be separate devices, and the intelligent attendance recognition system 300 based on target detection and face recognition may be connected to the wireless terminal via a wired and / or wireless network, and transmit interactive information in accordance with an agreed data format.

[0115] Furthermore, an attendance intelligent recognition method based on target detection and face recognition is also provided.

[0116] Figure 5 FIG. 1 is a flow chart of an intelligent attendance recognition method based on target detection and face recognition according to an embodiment of the present application. Figure 5As shown, according to the embodiment of the present application, the attendance intelligent recognition method based on target detection and face recognition includes the following steps: S1, obtaining a face image of the detected object collected by a camera of a smart class sign arranged in front of a classroom door; S2, extracting a set of reference face images from a face database; S3, performing information transfer aggregation and semantic distillation enhancement processing based on multi-scale face on each reference face image in the set of reference face images to obtain a set of enhanced face reference semantic feature maps; S4, performing information transfer aggregation and semantic distillation enhancement processing based on multi-scale face on the face image of the detected object to obtain an enhanced face reference semantic feature map. face detection semantic feature map; S5, respectively calculating the hash similarity between the enhanced face detection semantic feature map and each face reference semantic feature map in the set of face reference semantic feature maps to obtain a set of face semantic similarities; S6, in response to the maximum value in the set of face semantic similarities being greater than or equal to a preset threshold, matching the student object label corresponding to the maximum value with the detected object, and generating an attendance record of the detected object, wherein the attendance record includes attendance time, attendance location and attendance events; S7, displaying the attendance record of the detected object on the display screen of the smart class sign.

[0117] In summary, the attendance intelligent recognition method based on target detection and face recognition according to the embodiment of the present application is explained, which is used for attendance check-in by comparing and analyzing the face image and the reference face image in the face database to identify the identity of the detected object, by obtaining the face image of the detected object and extracting a set of reference face images from the face database, and introducing an image processing and analysis algorithm based on artificial intelligence and machine learning at the back end to analyze and compare the face image of the detected object with each reference face image in the set of reference face images, so as to match the identity of the detected object, thereby generating corresponding attendance record information, and displaying the attendance record information on the display screen of the smart class sign. In this way, a more intelligent attendance intelligent check-in method can be realized, avoiding the problems caused by traditional manual check-in and attendance card check-in, thereby helping teachers and school management to better understand students' attendance and make corresponding management measures.

[0118] In the technical solution of this application, the Android system can be used to interactively display smart class cards (electronic display screens), programmable electromagnetic locks, programmable zoom-type portrait collection pan-tilt cameras, central electronic whiteboards and other hardware devices, combined with integrated system management and data analysis software platforms, to achieve multimedia display, non-disruptive teaching inspections, classroom portrait access control, classroom intelligent portrait sign-in, classroom class status collection and real-time analysis and other functions. The specific embodiments are as follows;

[0119] Interactive smart class sign

[0120] The interactive smart class sign based on Android system is placed in front of the school classroom (or laboratory, computer room); it integrates a portrait collection camera. It is synchronized with the teaching system to obtain the information of students and teachers in the current classroom (or laboratory, computer room); check the attendance of students in the classroom; realize non-disruptive teaching inspection, and the teaching administrator can authenticate the identity on the screen, call up the camera in the classroom, and watch the teaching screen in the classroom.

[0121] Programmable electromagnetic lock

[0122] Through the operation of smart class card, the background authorization information is obtained, and through linkage, the door can be opened by facial recognition.

[0123] Programmable zoom portrait capture pan-tilt camera

[0124] Place a programmable zoom portrait collection pan-tilt camera in the center of the front of the classroom, laboratory, and computer room for portrait collection, and use the program to control the camera's rotation, zoom, scanning and other actions to obtain the video stream.

[0125] Before class, the camera is controlled by the intelligent sign-in system program so that it faces the door, collects images of people entering, and transmits the video stream to the background management program.

[0126] When the class starts, the program sends a command to the camera, and the camera periodically rotates and zooms to an angle that can capture images of students in class, collects images of students in class, and sends the video stream to the background analysis program.

[0127] 4) Central electronic whiteboard display

[0128] Display the current class attendance status for the class to observe, whether the class attendance status is recorded, whether the portrait is recognized and matched successfully. It allows the teacher to understand the real-time class attendance status and make corresponding operations.

[0129] 5) Portrait recognition and attendance statistics analysis system

[0130] Before class, the system receives the video stream transmitted by the camera, performs portrait comparison, records the entry information and time of the people, counts the number of people in class, and transmits the results to the smart class sign and the central electronic whiteboard large-screen control system for display, and also transmits them to the academic affairs system and APP client.

[0131] When the class starts, the system continuously obtains students’ image data, calculates students’ mood in class through algorithms, and analyzes their class status. The system also generates analysis results and reports for the management department to extract and use. Class attendance analysis can also be connected to the school’s teaching quality monitoring system to provide data reference.

[0132] 6) System Management Program

[0133] Interactive smart class signs can be managed in a unified manner, including device registration, camera registration, location information management, IP address management, display unit management, etc.

[0134] Programmable zoom-type portrait collection pan-tilt camera can be managed in a unified manner, including camera registration, location information management, collection area management, scanning frequency management, zoom management, etc. Without connecting to the educational system, the course schedule information, student information and teaching teacher information can be managed separately.

[0135] 7) Smart classroom APP client

[0136] If the face recognition fails, the student can sign in using the mobile APP and receive his / her own sign-in information. The teacher can obtain the real-time attendance information through the APP or mini program.

[0137] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. An attendance intelligent recognition system based on target detection and face recognition, characterized in that: include: The detected object face image acquisition module is used to obtain the detected object's face image collected by the camera of the smart class sign set in front of the classroom door; A reference face image extraction module is used to extract a set of reference face images from a face database; A reference face image semantic information transfer enhancement module, used to perform face multi-scale information transfer aggregation and semantic distillation enhancement processing on each reference face image in the set of reference face images to obtain a set of enhanced face reference semantic feature maps; A facial image semantic information transmission enhancement module is used to perform face multi-scale information transmission aggregation and semantic distillation enhancement processing on the facial image of the detected object to obtain an enhanced face detection semantic feature map; A face semantic similarity calculation and matching module, used to respectively calculate the hash similarity between the enhanced face detection semantic feature map and each face reference semantic feature map in the set of face reference semantic feature maps to obtain a set of face semantic similarities; an attendance record generating module, for matching the student object label corresponding to the maximum value with the detected object in response to the maximum value in the set of face semantic similarities being greater than or equal to a preset threshold, and generating an attendance record of the detected object, wherein the attendance record includes attendance time, attendance location and attendance event; An attendance record display module, used to display the attendance record of the detected object on the display screen of the smart class card; Wherein, the reference face image semantic information transmission enhancement module includes: A face multi-scale feature information transmission unit, used to pass each reference face image in the set of reference face images through a pyramid-structured face multi-scale feature information transmission aggregation module to obtain a set of face reference semantic feature maps; A face semantic enhancement unit, used for respectively passing each face reference semantic feature map in the set of face reference semantic feature maps through a face semantic distillation enhancement module based on energy measurement attention to obtain the set of enhanced face reference semantic feature maps; Wherein, the face multi-scale feature information transmission unit includes: A shallow feature extraction subunit, used for passing the reference face image through a convolution layer with a convolution kernel of 3×3 to obtain a shallow feature map of the reference face image; A shallow feature residual fusion extraction subunit, used for fusing the shallow feature map of the reference face image through a face image shallow residual information fusion enhancement module to obtain a reference face image shallow residual fusion feature map; A deep feature extraction subunit, used for passing the shallow residual fusion feature map of the reference face image through a convolution layer with a convolution kernel of 3×3 to obtain a deep feature map of the reference face image; A deep feature residual fusion subunit, used for fusing the reference face image deep feature map through a face image deep residual information fusion enhancement module to obtain a reference face image deep residual fusion feature map; A deep modulation feature extraction subunit, used for inputting the reference face image deep residual fusion feature map into a scale modulation module based on an SPPF layer to obtain a reference face image deep modulation feature map; An upsampling subunit, used for upsampling the reference face image deep modulation feature map to obtain an upsampled reference face image deep modulation feature map; A reference image multi-scale feature fusion subunit, used for fusing the upsampled reference face image deep modulation feature map with the reference face image shallow residual fusion feature map to obtain a reference face image multi-scale feature map; A face reference semantic enhancement subunit, used for fusing the reference face image multi-scale feature map through a face image multi-scale residual information fusion enhancement module to obtain the face reference semantic feature map; Wherein, the shallow feature residual fusion extraction subunit is used for: The shallow feature map of the reference face image is subjected to channel dimensionality reduction modulation through a point convolution layer to obtain a channel dimensionality reduction modulated shallow feature map of the reference face image; The shallow feature map of the channel dimensionality reduction modulated reference face image is subjected to feature extraction through a convolution layer with a convolution kernel of 3×3 to obtain a shallow implicit information feature map of the reference face image; The shallow implicit information feature map of the reference face image is modulated by a point convolution layer to obtain a shallow feature map of the reference face image after channel modulation; The shallow feature map of the reference face image after channel modulation and the shallow feature map of the reference face image modulated by channel dimension reduction are fused to obtain the shallow residual fusion feature map of the reference face image; Wherein, the deep modulation feature extraction subunit is used for: The reference face image deep residual fusion feature map is passed through a scale modulation module based on a point convolution layer to obtain a scale-adjusted reference face image deep residual fusion feature map; Performing maximum pooling processing on each feature matrix along the channel dimension in the deep residual fusion feature map of the scale-adjusted reference face image to obtain a deep residual fusion feature vector of the reference face image; Based on the deep residual fusion feature vector of the reference face image, channel weighted enhancement is performed on the deep residual fusion feature map of the scale-adjusted reference face image to obtain the deep modulation feature map of the reference face image; Wherein, the face semantic enhancement unit comprises: A sequence number labeling subunit, used for labeling each face reference semantic channel feature vector of the face reference semantic feature map with a sequence number to obtain a sequence of face reference semantic labeling sequence numbers; An energy function value calculation subunit, used for calculating the energy function values ​​of each face reference semantic channel feature vector to obtain a sequence of energy function values, wherein the energy function value is related to the mean and variance of each face reference semantic channel feature vector and the face reference semantic annotation sequence number; An energy function reciprocal representation subunit, used for calculating the reciprocal of each energy function value in the sequence of energy function values ​​to obtain a sequence of energy function reciprocal representation values; Activate subunits to utilize The function activates the sequence of reciprocal representation values ​​of the energy function to obtain a sequence of reciprocal representation values ​​of the activated energy function; The enhanced face reference semantic channel feature calculation subunit is used to calculate the product between the corresponding inverse representation value of the activation energy function and the face reference semantic channel feature vector of each group in the sequence of the inverse representation value of the activation energy function and the sequence of the face reference semantic channel feature vector to obtain a plurality of enhanced face reference semantic channel feature vectors; A dimension reconstruction subunit, used for dimensionally reconstructing the plurality of enhanced face reference semantic channel feature vectors according to the feature map channel dimension to obtain the enhanced face reference semantic feature map; Wherein, the energy function value calculation subunit is used to: Calculating the mean and variance of predetermined face reference semantic channel feature vectors in each face reference semantic channel feature vector to obtain a face reference semantic mean and a face reference semantic variance; Determine the face reference semantic annotation sequence number of the predetermined face reference semantic channel feature vector to obtain a predetermined face reference semantic annotation sequence number; Calculating the sum of the face reference semantic variance and the face reference semantic mean and then multiplying the sum by a constant 4 to obtain a first face reference semantic modulation factor; Calculate the face reference semantic variance and the product of the face reference semantic mean and a constant 2 respectively to obtain a double face reference semantic variance and a double face reference semantic mean; After calculating the square of the difference between the face reference semantic annotation sequence number and the face reference semantic mean, the square is added to the double face reference semantic variance and the double face reference semantic mean to obtain a second face reference semantic modulation factor; The division between the first face reference semantic modulation factor and the second face reference semantic modulation factor is calculated to obtain an energy function value corresponding to a predetermined face reference semantic channel feature vector.

2. The attendance intelligent recognition system based on target detection and face recognition according to claim 1 is characterized in that: It also includes a training module for training the pyramid-structure-based multi-scale facial feature information transfer aggregation module and the energy-metric attention-based facial semantic distillation enhancement module; Wherein, the training module includes: A training data acquisition unit is used to acquire training data, wherein the training data includes a face image of a training object collected by a camera of a smart class sign arranged in front of a classroom door; and a set of training reference face images is extracted from a face database; A training reference image semantic information transfer enhancement unit, used to perform information transfer aggregation and semantic distillation enhancement processing based on multi-scale face on each training reference face image in the set of training reference face images to obtain a set of training enhanced face reference semantic feature maps; A training detection image semantic information transfer enhancement unit is used to perform face multi-scale information transfer aggregation and semantic distillation enhancement processing on the face image of the training detected object to obtain a training enhanced face detection semantic feature map; A training face semantic similarity calculation and matching unit, used to respectively calculate the hash similarity between the training enhanced face detection semantic feature map and each training face reference semantic feature map in the set of the training enhanced face reference semantic feature map to obtain a set of training face semantic similarities; A difference loss calculation unit, used to calculate a difference loss function between the set of training face semantic similarities and the predicted hash similarity; A training unit is used to train the pyramid-structured multi-scale facial feature information transfer aggregation module and the energy-metric attention-based facial semantic distillation enhancement module based on the difference loss function.

3. An attendance intelligent recognition method based on target detection and face recognition, using the attendance intelligent recognition system based on target detection and face recognition according to claim 1, characterized in that: include: Obtaining a facial image of the detected object collected by a camera of a smart class sign installed in front of the classroom door; extracting a set of reference face images from a face database; Performing face multi-scale information transfer aggregation and semantic distillation enhancement processing on each reference face image in the set of reference face images to obtain a set of enhanced face reference semantic feature maps; Performing face multi-scale information transfer aggregation and semantic distillation enhancement processing on the face image of the detected object to obtain an enhanced face detection semantic feature map; Respectively calculating the hash similarity between the enhanced face detection semantic feature map and each face reference semantic feature map in the set of face reference semantic feature maps to obtain a set of face semantic similarities; In response to the maximum value in the set of face semantic similarities being greater than or equal to a preset threshold, matching the student object label corresponding to the maximum value with the detected object, and generating an attendance record of the detected object, wherein the attendance record includes attendance time, attendance location, and attendance events; Displaying the attendance record of the detected object on the display screen of the smart class card; The steps of performing face multi-scale information transfer aggregation and semantic distillation enhancement processing on each reference face image in the set of reference face images to obtain a set of enhanced face reference semantic feature maps include: Each reference face image in the set of reference face images is passed through a pyramid-structured face multi-scale feature information transfer aggregation module to obtain a set of face reference semantic feature maps; Each face reference semantic feature map in the set of face reference semantic feature maps is respectively passed through a face semantic distillation enhancement module based on energy measurement attention to obtain the set of enhanced face reference semantic feature maps.