Multi-modal personality characteristic identification method and system based on audio and video
Through audio and video multi-modal feature fusion and deep learning model, the problem of micro-movement modeling and modal information integration in video personality trait recognition is solved, achieving more accurate and reliable personality trait recognition, which is suitable for multiple application fields.
Patent Information
- Application Number
- CN202410768593.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-09-10
AI Technical Summary
Existing video personality trait recognition methods lack modeling of facial expression micro-movements, resulting in insufficient comprehensive and accurate recognition performance. They also lack effective modal information integration methods and cannot efficiently fuse heterogeneous audio and visual data.
A multi-modal personality trait recognition method based on audio and video is used to extract face and scene features by evenly cropping video frames. Combined with audio features, Fourier transform and deep learning models are used for feature fusion and timing modeling to achieve Capture and integration of micro-actions and multimodal information.
It improves the accuracy and robustness of video personality trait recognition, can capture users' emotional traits and behavioral tendencies more comprehensively, and provides more reliable recognition results. It is suitable for fields such as human-computer interaction and mental health diagnosis.
Smart Images

Figure CN118628958A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of video personality trait recognition, and in particular to a multi-modal personality trait recognition method and system based on audio and video. Background Art
[0002] Personality trait recognition is increasingly used in human-computer interaction, personalized services, and human resources. However, due to the lack of micro-motion modeling and global information integration between audio and visual modalities, the recognition performance still has room for improvement.
[0003] The current mainstream methods focus on two aspects: 1. Extracting more robust feature information from a single modality; 2. Finding an efficient fusion mechanism to effectively fuse information from different modalities to enhance their complementarity. However, existing methods lack methods for modeling facial expression micro-movements. Existing methods process videos in a coarse-grained manner. The general method is: 1. Segment the video and extract frames; 2. Extract static features from each video segment; 3. Fusion through time series modeling or separate predictions for averaging.
[0004] Coarse-grained feature extraction may overlook key changes in movements. Previous methods of extracting static features by segmenting frames ignore the impact of rapidly changing movements on task accuracy. These include small but important movements such as facial expressions, gestures, and eye contact, which can reflect an individual's emotional state, cognitive patterns, and behavioral tendencies. The lack of these micro-movement information may lead to the model's incomplete and inaccurate understanding of individual traits in personality analysis.
[0005] Different modal information contains features of different importance. Treating different types of modal information in an indiscriminate manner cannot efficiently fuse different modal information and make their information complementary. Data of different modalities may be heterogeneous, that is, they differ in representation, scale, etc. Integrating these heterogeneous data requires considering how to perform effective feature mapping and normalization to ensure that they can be compared and integrated during the fusion process. Summary of the invention
[0006] Based on this, the embodiments of the present application provide a multimodal personality trait recognition method and system based on audio and video, which can integrate information between audio and visual modalities and obtain more accurate personality trait recognition results.
[0007] In a first aspect, a multimodal personality trait recognition method based on audio and video is provided, the method comprising:
[0008] Obtain the video to be detected and the audio data corresponding to the video to be detected;
[0009] The video to be detected is evenly cropped, and video frames are extracted from each cropped segment;
[0010] The extracted video frames are processed by the face branch and the scene branch to obtain the face features and the scene features;
[0011] Preprocess the audio data corresponding to the video to be detected, then perform windowing, convert each window into frequency domain information using Fourier transform, and then use the audio processing network to process and obtain audio features;
[0012] The obtained facial features, scene features and audio features are fused and input into the decoder for time series modeling. The result vector is then processed by a classifier based on a multi-layer perceptron to obtain the personality trait recognition result of the video to be detected.
[0013] Optionally, the video to be detected is uniformly cropped, and video frames are extracted from each cropped segment, including:
[0014] Crop a video evenly into s segments, and randomly extract 1 frame and n-1 frames adjacent to this frame from each segment, for a total of n frames.
[0015] Optionally, the extracted video frames are processed by the face branch and the scene branch to obtain face features and scene features, including:
[0016] Subtract the image frames in a video segment to obtain the inter-frame difference image; then obtain the motion change information of adjacent frames through the inter-frame difference module with a filter, and obtain clear motion information of two adjacent frames;
[0017] Then, a spatiotemporal attention is used to associate the relationship between multiple frame difference features to capture micro-motion features within a short period of time;
[0018] And use single frame images to obtain scene features.
[0019] Optionally, the audio data corresponding to the video to be detected is preprocessed, and then a windowing operation is performed, each window is converted into frequency domain information using Fourier transform, and then processed using an audio processing network to obtain audio features, including:
[0020] Including removing silent parts, adjusting audio gain, and reducing noise;
[0021] Divide the preprocessed audio signal into short-time windows;
[0022] Apply fast Fourier transform to each window to convert the time domain signal into frequency domain signal; FFT converts the signal from time domain representation to frequency domain representation to obtain the spectrum information of each window; perform modulus operation on the frequency domain signal obtained by FFT to obtain the complex amplitude spectrum;
[0023] This data is then fed into an audio processing network that uses two layers of one-dimensional convolution to reduce the audio feature dimension, and then further extracts the audio features using a standard encoder structure in a transformer.
[0024] Optionally, the obtained facial features, scene features and audio features are fused, including:
[0025] Use scene features X respectively g' Guide Facial FeaturesX f' Fusion obtains visual features X v ;
[0026] Then use the audio feature X a' Guided visual features X v The fusion feature F is obtained by fusion.
[0027] Optionally, the input decoder is modeled in time series, and the result vector is processed by a classifier based on a multi-layer perceptron to obtain the personality trait recognition result of the video to be detected, including:
[0028] The obtained fusion features are further condensed through a transformer encoder module;
[0029] The obtained condensed features are regressed through a sigmoid activation function to obtain the network's prediction results. Among them, the mean square error loss function is used during training.
[0030] In a second aspect, a multimodal personality trait recognition device based on audio and video is provided, the device comprising:
[0031] An acquisition module is used to acquire the video to be detected and the audio data corresponding to the video to be detected;
[0032] The cropping module is used to evenly crop the video to be detected and extract video frames from each cropped segment;
[0033] The video feature module is used to process the extracted video frames through the face branch and the scene branch to obtain face features and scene features;
[0034] The audio feature module is used to pre-process the audio data corresponding to the video to be detected, and then perform a windowing operation. Each window is converted into frequency domain information using Fourier transform, and then processed using an audio processing network to obtain audio features;
[0035] The multimodal fusion module is used to fuse the obtained facial features, scene features and audio features, input them into the decoder for time series modeling, and then process the result vector through a classifier based on a multi-layer perceptron to obtain the personality trait recognition result of the video to be detected.
[0036] In a third aspect, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the multimodal personality trait recognition method based on audio and video as described in any one of the first aspects above is implemented.
[0037] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the multimodal personality trait recognition method based on audio and video as described in any one of the first aspects above is implemented.
[0038] In a fifth aspect, a computer program product is provided, including a computer program / instruction, which, when executed by a processor, implements the multimodal personality trait recognition method based on audio and video as described in any one of the first aspects above.
[0039] The solution proposed in the present invention is of great significance in the field of video personality trait recognition and can effectively cope with challenges under conditions of complex information in multiple modalities. By comprehensively utilizing the multimodal information of the video, the method of the present application can provide more reliable and accurate video personality trait recognition results. This is of great significance in capturing user emotional traits, personalized recommendation systems, and assisting psychotherapy. The multimodal personality trait recognition solution proposed in this article can provide powerful tools and support for researchers and medical institutions in related fields. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the implementation methods of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for the implementation methods or the description of the prior art. Obviously, the drawings in the following description are only exemplary, and for ordinary technicians in this field, other implementation drawings can be derived from the provided drawings without creative work.
[0041] Figure 1 A flowchart of a method for multimodal personality trait recognition based on audio and video provided in an embodiment of the present application;
[0042] Figure 2 A schematic diagram of the overall structure of the multimodal personality trait recognition algorithm provided in the embodiment of the present application;
[0043] Figure 3 A schematic diagram of a micro-motion modeling submodule provided in an embodiment of the present application;
[0044] Figure 4 A block diagram of a multimodal personality trait recognition device based on audio and video provided in an embodiment of the present application;
[0045] Figure 5 A schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0046] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0047] In the description of the present invention, the terms "comprises", "has" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus comprising a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may also include other steps or units that are not explicitly listed but are inherent to these processes, methods, products or apparatuses, or steps or units added based on further optimization schemes conceived by the present invention.
[0048] The present application relates to the field of video personality trait recognition, and in particular, to the use of multimodal information in videos to achieve accurate personality trait recognition. Videos are ubiquitous in real life. In recent years, the use of videos for personality feature recognition has become increasingly widespread in the fields of human-computer interaction, mental health diagnosis, and human resources. Therefore, research and solutions for video personality trait recognition are of great significance. In the past few years, with the rapid development of artificial intelligence and deep learning technologies and the emergence of multimodal personality trait recognition datasets, it has become possible to fully explore the personality traits of users using multimodal information and deep learning technologies. In order to achieve this goal, the present application proposes a multimodal personality trait recognition algorithm based on audio and video.
[0049] The method proposed in this application combines multiple modal data such as facial features, scene features, micro-motion features, audio features, etc. to establish a comprehensive and accurate personality trait recognition model. Through the application of deep learning technology, this application can extract the key features of each modality in the video, and conduct comprehensive analysis and verification on it. The solution of this application is not limited to the data analysis of a single modality, but makes full use of the complementarity and correlation between different modalities in the video. By comprehensively considering information from multiple aspects such as audio, face, and micro-motion, the accuracy and robustness of personality trait recognition can be improved. In addition, the solution of this application also includes a set of advanced algorithms and models that can automatically learn and adapt to different types of video data. Through the training and iterative optimization of large-scale data sets, the system can continuously improve the accuracy of identification and have a certain generalization ability.
[0050] Please refer to Figure 1 , which shows a flowchart of a multimodal personality trait recognition method based on audio and video provided in an embodiment of the present application. The method may include the following steps:
[0051] S1, obtaining a video to be detected and audio data corresponding to the video to be detected.
[0052] In this step, the video to be detected is obtained including two groups of video frames and one group of audio frames.
[0053] S2, uniformly cropping the video to be detected, and extracting video frames from each cropped segment.
[0054] In this step, a video is evenly cut into s segments, and one frame and n-1 frames adjacent to this frame are randomly selected from each segment, for a total of n frames.
[0055] S3, the extracted video frames are processed by the face branch and the scene branch to obtain face features and scene features.
[0056] In this step, the image frames in a video segment are subtracted to obtain the inter-frame difference image. Then, the motion change information of adjacent frames is obtained through the inter-frame difference module with a filter, and clear motion information of two adjacent frames is obtained; then a spatiotemporal attention is used to associate the relationship between multiple inter-frame difference features to capture micro-motion features in a short period of time; and a single frame image is used to obtain scene features.
[0057] S4, preprocessing the audio data corresponding to the video to be detected, and then performing a windowing operation, converting each window into frequency domain information using Fourier transform, and then using an audio processing network to process to obtain audio features.
[0058] In this step, the silent part is removed, the audio gain is adjusted, and the noise is reduced; the preprocessed audio signal is divided into short-time windows; the fast Fourier transform is applied to each window to convert the time domain signal into the frequency domain signal; FFT converts the signal from the time domain representation to the frequency domain representation to obtain the spectrum information of each window; the frequency domain signal obtained by FFT is modulo-operated to obtain the complex amplitude spectrum; these data are then sent to the audio processing network, which uses two layers of one-dimensional convolution to reduce the audio feature dimension, and then uses a standard encoder structure in a transformer to further extract the audio features.
[0059] S5, the obtained facial features, scene features and audio features are integrated and input into the decoder for time series modeling, and then the result vector is processed by a classifier based on a multi-layer perceptron to obtain the personality trait recognition result of the video to be detected.
[0060] The model architecture of the multimodal personality trait recognition algorithm based on audio and video proposed in this application is as follows Figure 2 As shown in Figure 1, the input of the personality trait recognition model is two sets of video frames and one set of audio frames. First, a video is evenly cut into s segments, and 1 frame and n-1 frames adjacent to this frame are randomly selected from each segment, for a total of n frames. Formula 1 represents the facial input data X f , where each video The n frames of images in are expressed by Formula 2. The face data is obtained through a face detector. Similar to facial features, the scene information X g The input data is expressed by Formula 3 and Formula 4. In addition to the video input, another input data is audio data X a , the original audio is processed using the Mel Frequency Cepstral Coefficient (MFCC) method to obtain the audio input as shown in Formula 5. The prediction result of the entire network is expressed as The true value is represented by Y.
[0061]
[0062] like Figure 2 As shown in , the processing flow of the entire task is represented from top to bottom. The top branch is the facial feature extraction branch. In this branch, a micro-motion information modeling network is used to enhance the facial model's understanding of micro-expressions and micro-movements. The middle branch is the visual modality full-scene information extraction module. The features extracted by these two branches are fused through a fusion module to obtain fused visual features. This visual feature is a visual comprehensive feature with facial information with micro-expression information as the main body and full-scene information with micro-motion information as the auxiliary. The bottom branch is the audio feature extraction branch, through which segmented audio features with long-distance modeling information can be obtained. After fusing this feature with the obtained visual feature through a fusion network, a comprehensive multimodal feature can be obtained. Finally, the fused feature is used after time series modeling and sent to the regressor to obtain the analysis result of the personality. For the five dimensions of personality traits, the model will regress a value of 0-1 to represent the user's personality traits, that is,
[0063] In the embodiment of the present application, the specific processing of video features includes:
[0064] Get X f and X g After these image data, the above information is sent to Figure 3In the designed micro-motion information modeling module. In Formula 6, the present application subtracts the image frames in a video segment to obtain the inter-frame difference image. Then the motion change information of adjacent frames is obtained through the inter-frame difference module with a filter, as shown in Formula 7. At this point, the present application obtains clear motion information of two adjacent frames. Afterwards, a spatiotemporal attention module is used to associate the relationship between multiple inter-frame difference features, thereby realizing the capture of micro-motion features in a short period of time (Formula 9 and Formula 10).
[0065]
[0066] D=Conv(D)+AvgPooling(D) (7)
[0067]
[0068] In the above formula 8, Q, K, and V represent vectors in self-attention, and they all come from the same feature vector. Conv represents the convolution layer, and AvgPooling represents average pooling. Formula 9 and Formula 10 respectively represent encoding the N-1 frame difference images in a video segment in the time dimension and the spatial dimension to obtain the action information during this period. Among them, t represents the position in the time dimension, a represents the position in the spatial dimension, and M1 and M2 represent the length and width information of the feature block in the spatial dimension respectively. FFN represents the forward propagation module in the transformer network model.
[0069] At the same time, for the entire scene information, a single frame image is used to obtain static features, as shown in Figure 2 As shown at the bottom of the figure. By integrating static features and motion features, the model can effectively focus on micro-movement information in the video, including small but important movements such as facial expressions, gestures, and eye contact. These movements can reflect an individual's emotional state, cognitive patterns, and behavioral tendencies, and can help the model capture the user's personality traits more accurately.
[0070] It should be noted that the extraction methods of facial features and scene features are the same. So far, the image feature extraction is completed. The extracted facial features are represented by X f′ Indicated by X, scene features g′ express.
[0071] In the embodiment of the present application, the specific processing of audio features includes:
[0072] For the audio processing branch, first, the original audio signal needs to be preprocessed. This includes removing the silent part, adjusting the audio gain, and reducing noise. These steps help improve the accuracy of spectrum extraction. The preprocessed audio signal is divided into short-time windows, usually with a window length of 20-50 milliseconds. Each window can be windowed using a Hamming window or other window functions. Apply a Fast Fourier Transform (FFT) to each window to convert the time domain signal into a frequency domain signal. FFT converts the signal from the time domain representation to the frequency domain representation to obtain the spectrum information of each window. The frequency domain signal obtained by FFT is modulo-operated to obtain a complex amplitude spectrum. The amplitude spectrum represents the energy intensity of different frequency components. The spectrum is usually high-dimensional data, and the dimension can be reduced by compressing the spectrum. Common methods include Mel filter banks, cepstral coefficients, etc. These data are then fed into the audio processing network, where two layers of one-dimensional convolution are first used to reduce the audio feature dimension, and then a standard encoder structure in a transformer is used to further extract the audio features. This process can be expressed using Formula 11:
[0073] X a′ =Encoder(Conv1d(X a )) (11)
[0074] In the above formula, Encoder represents the standard encoder structure in the transformer model, and Conv1d represents the one-dimensional convolutional layer. Through the above model, the processed audio features are obtained, and X a′ express.
[0075] In the embodiment of the present application, the specific processing of multimodal fusion includes:
[0076] In multimodal tasks, it is crucial to effectively capture the features of each modality, but it is equally important to fuse information from multiple modalities to complement each other. It is believed that different information contributes differently to personality trait recognition, and facial information is crucial. Therefore, the goal is to comprehensively capture facial information and complement it with other modal information.
[0077] As Figure 2 As shown in , the scene features X are used in the model respectively. g′ Guide Facial FeaturesX f′ Fusion obtains visual features X v (Formula 12), and then use the audio feature X a′ Guided visual features X vThe fusion feature F is obtained by fusion (Formula 13). Then, as shown in Formula 14, the obtained fusion feature is further condensed through a transformer encoder module, and finally the obtained condensed feature is regressed through a sigmoid activation function to obtain the network prediction result. The mean square error loss function is used during training. The loss function is expressed as formula 15.
[0078] X v =FFN(Attention(X g′ , X f′ , X f′ )+X f′ ) (12)
[0079] F = FFN (Attention (X a′ , X v , X v )+X v ) (13)
[0080]
[0081] In formula 15, n is equal to 5, which indicates the personality trait dimension to be identified. Each prediction value has 5 dimensions to represent the score of personality traits, with a score range of 0-1. The experiment shows that the recognition effect is good, the robustness is high, and the ideas are clear.
[0082] From the above, it can be seen that the steps in the optional embodiments of the present application include:
[0083] Step 1: Input the video to be detected.
[0084] Step 2: extract a fixed S*N frame image from the video to be detected, and extract the audio information in the video separately and send it to the audio processing module. The S*N frame images are sent to the face branch and the scene branch respectively.
[0085] Step 3: The audio processing module first performs pre-processing such as noise reduction and gain adjustment on the sound, then performs windowing and converts it into frequency domain information using Fourier transform. The convolution and decoder network is then used to process the spectrum data to obtain audio features.
[0086] Step 4: S*N image frames are processed through the face branch and the scene branch to obtain the face features and scene features.
[0087] Step 5: The facial features, scene features, and audio feature vectors obtained in the previous step are fused through the fusion module and input into the decoder module for time series modeling. The result vector is then input into the classifier based on the multi-layer perceptron to obtain the personality trait recognition result of the input video.
[0088] The solution proposed in this invention is of great significance in the field of video personality trait recognition and can effectively cope with the challenges under the conditions of complex information of multiple modalities. By comprehensively utilizing the multimodal information of the video, this method can provide more reliable and accurate video personality trait recognition results. This is of great significance in capturing user emotional traits, recommendation systems with thousands of faces, and auxiliary psychotherapy. The multimodal personality trait recognition solution proposed in this article can provide powerful tools and support for researchers and medical institutions in related fields.
[0089] The logical argument that the multimodal personality trait recognition algorithm based on audio and video can have a better recognition effect is as follows:
[0090] 1. Multimodal information integration: The algorithm of this application comprehensively utilizes the multimodal information of the video, including audio information, facial features, micro-movements, etc. These information complement each other. By comprehensively considering information from different modalities, this application can more comprehensively characterize the personality traits of an individual. Compared with methods that rely solely on visual information, insufficient motion information capture, and unbalanced modal relationships, multimodal information integration can provide richer feature expressions, thereby improving recognition accuracy.
[0091] 2. Uniqueness of biological characteristics: The method of the present application uses biological characteristics for identification, and these characteristics are stable between individuals. For example, facial features, voice characteristics, etc. are usually stable in individuals. Therefore, introducing biological characteristics into personality trait identification can provide a more reliable basis for discrimination, thereby improving the effect of identification.
[0092] 3. Automatic learning ability of deep learning: This application uses a deep learning model for feature extraction and learning. The deep learning model has a strong automatic learning ability and can learn the relevant features and patterns of personality trait recognition from large-scale data. Through appropriate network architecture and training strategies, the deep learning model can automatically extract and learn useful features in the video without manual design and selection of features. This automatic learning ability can improve the representation ability of the model, thereby improving the recognition effect.
[0093] 4. Advantages of multi-task learning: The method of this application can adopt the framework of multi-task learning to learn different tasks at the same time, such as voiceprint recognition, facial recognition, etc. This multi-task learning can provide richer supervision signals and more adequate data utilization, and promote the learning of features and the improvement of representation capabilities. By jointly learning different tasks, this application can better capture the relevant features of personality trait recognition and further improve the recognition effect.
[0094] In summary, the personality trait recognition algorithm of the present application can provide more accurate and reliable personality trait recognition by integrating multimodal information, utilizing biometric features, and taking advantage of the automatic learning capabilities of deep learning and the advantages of multi-task learning, thereby achieving better recognition effects.
[0095] Please refer to Figure 4 , which shows a block diagram of a multi-modal personality trait recognition device based on audio and video provided in an embodiment of the present application. Figure 4 As shown, the device may include:
[0096] An acquisition module is used to acquire the video to be detected and the audio data corresponding to the video to be detected;
[0097] The cropping module is used to evenly crop the video to be detected and extract video frames from each cropped segment;
[0098] The video feature module is used to process the extracted video frames through the face branch and the scene branch to obtain face features and scene features;
[0099] The audio feature module is used to pre-process the audio data corresponding to the video to be detected, and then perform a windowing operation. Each window is converted into frequency domain information using Fourier transform, and then processed using an audio processing network to obtain audio features;
[0100] The multimodal fusion module is used to fuse the obtained facial features, scene features and audio features, input them into the decoder for time series modeling, and then process the result vector through a classifier based on a multi-layer perceptron to obtain the personality trait recognition result of the video to be detected.
[0101] For the specific definition of the multimodal personality trait recognition device based on audio and video, please refer to the definition of the multimodal personality trait recognition method based on audio and video above, which will not be repeated here. Each module in the above-mentioned multimodal personality trait recognition device based on audio and video can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0102] In one embodiment, an electronic device is provided. The electronic device may be a computer, and its internal structure diagram may be as follows: Figure 5As shown. The electronic device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the device is used to provide computing and control capabilities. The memory of the device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used for multimodal personality trait recognition data based on audio and video. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a multimodal personality trait recognition method based on audio and video is implemented.
[0103] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0104] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which involves all or part of the processes in the above-mentioned embodiment method.
[0105] In one embodiment, a computer program product is also provided, including a computer program / instruction, which involves all or part of the process in the above embodiment method.
[0106] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing related hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in M forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (SyMchliMk) DRAM (SLDRAM), memory bus (RaMbus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0107] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0108] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the patent application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent application shall be subject to the attached claims.
Claims
1. A multimodal personality trait recognition method based on audio and video, characterized in that: The method comprises: Obtain the video to be detected and the audio data corresponding to the video to be detected; The video to be detected is evenly cropped, and video frames are extracted from each cropped segment; The extracted video frames are processed by the face branch and the scene branch to obtain the face features and the scene features; Preprocess the audio data corresponding to the video to be detected, then perform windowing, convert each window into frequency domain information using Fourier transform, and then use the audio processing network to process and obtain audio features; The obtained facial features, scene features and audio features are fused and input into the decoder for time series modeling. The result vector is then processed by a classifier based on a multi-layer perceptron to obtain the personality trait recognition result of the video to be detected.
2. The multimodal personality trait identification method according to claim 1, characterized in that: The video to be detected is evenly cropped, and video frames are extracted from each cropped segment, including: Crop a video evenly into s segments, and randomly extract 1 frame and n-1 frames adjacent to this frame from each segment, for a total of n frames.
3. The multimodal personality trait identification method according to claim 1, characterized in that: The extracted video frames are processed by the face branch and the scene branch to obtain face features and scene features, including: Subtract the image frames in a video segment to obtain the inter-frame difference image; then obtain the motion change information of adjacent frames through the inter-frame difference module with a filter, and obtain clear motion information of two adjacent frames; Then, a spatiotemporal attention is used to associate the relationship between multiple frame difference features to capture micro-motion features within a short period of time; And use single frame images to obtain scene features.
4. The multimodal personality trait identification method according to claim 1, characterized in that: The audio data corresponding to the video to be detected is preprocessed, and then a windowing operation is performed. Each window is converted into frequency domain information using Fourier transform, and then the audio processing network is used to process the audio features, including: Including removing silent parts, adjusting audio gain, and reducing noise; Divide the preprocessed audio signal into short-time windows; Apply fast Fourier transform to each window to convert the time domain signal into frequency domain signal; FFT converts the signal from time domain representation to frequency domain representation to obtain the spectrum information of each window; perform modulus operation on the frequency domain signal obtained by FFT to obtain the complex amplitude spectrum; This data is then fed into an audio processing network that uses two layers of one-dimensional convolution to reduce the audio feature dimension, and then further extracts the audio features using a standard encoder structure in a transformer.
5. The multimodal personality trait identification method according to claim 1, characterized in that: The obtained facial features, scene features and audio features are integrated, including: Use scene features X respectively g' Guide Facial FeaturesX f' Fusion obtains visual features X v ; Then use the audio feature X a' Guided visual features X v The fusion feature F is obtained by fusion.
6. The multimodal personality trait identification method according to claim 5, characterized in that: The input decoder is modeled in time series, and the result vector is processed by a classifier based on a multi-layer perceptron to obtain the personality trait recognition result of the video to be detected, including: The obtained fusion features are further condensed through a transformer encoder module; The obtained condensed features are regressed through a sigmoid activation function to obtain the network's prediction results. Among them, the mean square error loss function is used during training.
7. A multimodal personality trait recognition device based on audio and video, characterized in that: The device comprises: An acquisition module is used to acquire the video to be detected and the audio data corresponding to the video to be detected; The cropping module is used to evenly crop the video to be detected and extract video frames from each cropped segment; The video feature module is used to process the extracted video frames through the face branch and the scene branch to obtain face features and scene features; The audio feature module is used to pre-process the audio data corresponding to the video to be detected, and then perform a windowing operation. Each window is converted into frequency domain information using Fourier transform, and then processed using an audio processing network to obtain audio features; The multimodal fusion module is used to fuse the obtained facial features, scene features and audio features, input them into the decoder for time series modeling, and then process the result vector through a classifier based on a multi-layer perceptron to obtain the personality trait recognition result of the video to be detected.
8. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Cited By
Micro-action recognition method and device, electronic equipment and storage medium
CN119206679A
Big language model enhanced text mapping processing method and system oriented to personality evaluation
CN119312928A
Multi-modal personality prediction method based on pre-training model and pyramid graph fusion
CN119337325A
Multimodal personality prediction method based on pre-training model and pyramid graph fusion
CN119337325B
Audio and video multi-mode identification method and system
CN119723428A
