Emotion recognition and video content matching system based on artificial intelligence
By extracting features from audio signals and constructing emotion annotation models, combined with multi-thread processing of video content data features, the problem of inaccurate emotion recognition and low video content matching efficiency is solved, and the user experience and efficiency of the matching algorithm are improved.
Patent Information
- Application Number
- CN202410905484.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-08
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-07-08
AI Technical Summary
The existing emotion recognition and video content matching system has inaccurate emotion recognition, resulting in a mismatch between the recommended video content and the user's true emotional state, reduced user experience, and information overload; the accuracy of emotion classification is not high and cannot meet user needs; Large-scale video data is difficult to accurately identify and match, resulting in a waste of bandwidth and storage resources.
Use feature extraction from audio signals to build an emotion recognition classification model, and update model parameters through gradient descent algorithms; build an emotion annotation model, calculate the correlation between emotion features and opinion features through tensors, and calculate attention scores for feature fusion; calculate video Set content data feature attributes, remove redundant data, mark overlapping areas, and use multi-threading methods to handle area matching tasks.
It improves the accuracy of emotion recognition and classification, improves user experience, meets user needs, reduces waste of bandwidth and storage resources, and improves the efficiency and real-time performance of the matching algorithm.
Smart Images

Figure CN118450176B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of data processing, and in particular to an emotion recognition and video content matching system based on artificial intelligence. Background Art
[0002] The emotion recognition and video content matching system is a combination of emotion recognition technology and multimedia content analysis technology. It uses deep learning models to capture and analyze the emotional state in the signal and understand the visual content in the video. It aims to make the character's emotions consistent with the video content, automatically label and classify large-scale media resources, and accurately push content that matches their emotional state based on the user's emotional feedback. It aims to help users find video content that matches their emotional state more quickly and accurately, and bring users an audio-visual experience that better meets their preferences and emotional needs. However, the existing emotion recognition and video content matching system has technical problems such as inaccurate emotion recognition, which leads to the mismatch between the recommended video content and the user's actual emotional state, resulting in a reduced user experience, and the system mistakenly pushes irrelevant information, causing information overload; there are technical problems such as low emotion classification accuracy, inability to better meet user needs, and inability to accurately target target customer groups; and large-scale video data, making it difficult to accurately identify and match video content, resulting in a waste of bandwidth and storage resources. Summary of the invention
[0003] In view of the above situation, in order to overcome the defects of the prior art, the emotion recognition and video content matching system based on artificial intelligence provided by the present invention aims at the technical problem that the emotion recognition is inaccurate, resulting in the mismatch between the recommended video content and the real emotional state of the user, resulting in a reduction in the user experience, the system mistakenly pushes irrelevant information, and brings information overload. The system extracts features from audio signals, constructs an emotion recognition classification model, performs model iteration, and updates the model parameters using a gradient descent algorithm. The process is iterated until the model converges. In view of the technical problem that the emotion classification accuracy is not high and the user needs cannot be better met and the target customer group is accurately targeted, an emotion annotation model is constructed, the correlation between the emotion feature and the opinion feature is calculated through tensors, the attention score is calculated, the emotion feature and the opinion feature are feature-fused, the final emotion information is obtained, and the accuracy of emotion classification is improved. In view of the technical problem that there is large-scale video data, it is difficult to accurately identify and match video content, resulting in a waste of bandwidth and storage resources, the characteristic attribute set of video content data is calculated, redundant data is deleted, the loss function is calculated, the overlapping area is marked, and the regional matching task is processed using a multi-threaded method to improve the efficiency and real-time performance of the matching algorithm.
[0004] The artificial intelligence-based emotion recognition and video content matching system provided by the present invention includes an emotion recognition module, an emotion labeling and classification module, a video content analysis module, a video content matching module and a practical application module;
[0005] The emotion recognition module specifically extracts features from audio signals, constructs an emotion recognition classification model, iterates the model, updates model parameters using a gradient descent algorithm, and iterates the process until the model converges;
[0006] The emotion annotation and classification module specifically constructs an emotion annotation model, calculates the correlation between emotion features and opinion features through tensors, calculates attention scores, and performs feature fusion of emotion features and opinion features to obtain final emotion information, thereby improving the accuracy of emotion classification;
[0007] The video content analysis module specifically performs video analysis and classifies the video content;
[0008] The video content matching module is constructed to calculate the characteristic attribute set of the video content data, delete redundant data, calculate the loss function, mark the overlapping area, and use a multi-threaded method to process the area matching task to improve the efficiency and real-time performance of the matching algorithm;
[0009] The actual application module specifically pushes video content that matches the user's emotional state to the user based on the user's emotional feedback and preferences, combined with the results of emotion recognition and video content matching, to improve the user experience and meet user needs.
[0010] Furthermore, in the emotion recognition module, there are provided a feature extraction unit, an emotion recognition classification model building unit and a model iteration unit, which specifically include the following contents:
[0011] A feature extraction unit calculates the sum of squares of the differences between the audio feature values and the average value, which is used to describe the distribution characteristics of the audio signal;
[0012] Construct an emotion recognition classification model unit, improve the traditional feedforward neural network, and construct a feedforward neural network model based on the Chebyshev orthogonal polynomial cluster for the distribution feature data of the audio signal. In the model, a single hidden layer is used to reduce the complexity of the entire model. The stimulation function of each neuron in the hidden layer uses a function in the Chebyshev orthogonal polynomial cluster to fit the distribution characteristics of the audio signal. The stimulation function of the neurons in other layers uses a linear stimulation function.
[0013] The model iteration unit calculates the activation value of each node in the neural network, propagates the gradient through the back-propagation algorithm, obtains the gradient value of each parameter, uses the gradient descent algorithm to update the model parameters, and iterates the process until the model converges to achieve emotion recognition.
[0014] Furthermore, in the sentiment labeling and classification module, there are a sentiment labeling model building unit, an attention score calculation unit and a feature fusion unit, which specifically include the following contents:
[0015] Construct a sentiment labeling model unit, define the model input data as the user's sentiment feature P and opinion feature O, and calculate the combination vector between sentiment features and opinion features through tensor operations. The formula used is as follows:
[0016] ;
[0017] ;
[0018] In the formula, Represents a combined vector, which is used to represent the degree of association between the i-th feature vector in the sentiment feature P and the j-th feature vector in the opinion feature O. i represents the i-th feature vector in the sentiment feature P, O j represents the jth feature vector in opinion feature O, G p It is a three-dimensional tensor with dimensions K×2d×2d, where K represents G p The hyperparameter represents the complex intrinsic correlation between sentiment features and opinion features. As the K value increases, the more information is extracted and the higher the complexity. 2d represents the dimension of each feature vector, i is the index of the feature vector of sentiment features, j is the index of the feature vector of opinion features, and tanh is the abbreviation of hyperbolic tangent function.
[0019] Calculate the attention score unit, after obtaining the combination vector between the sentiment feature and the opinion feature, calculate the attention score, the formula used is as follows:
[0020] ;
[0021] In the formula, Represents the attention score. The higher the attention score, the more information the i-th feature vector in the sentiment feature P captures about the j-th feature vector in the opinion feature O. is a weight vector, which is used to measure the importance of each value of the combination vector;
[0022] The feature fusion unit fuses the sentiment features and opinion features to obtain the final sentiment information. The formula used is as follows:
[0023] ;
[0024] In the formula, Represents the final emotional information, S p represents the sentiment feature vector, S o Represents the opinion feature vector, E pRepresents the matrix based on attention scores, softmax r represents a row-based softmax function, which is used to perform a softmax operation on each row of the attention score matrix, and the obtained weight vector is used to calculate S o Perform weighted fusion to improve the accuracy of sentiment classification and opinion extraction.
[0025] Furthermore, in the video content analysis module, a video parsing unit and a content classification unit are provided, which specifically include the following contents:
[0026] The video parsing unit parses the video and extracts the basic information and features of the video, including resolution, frame rate, and codec format;
[0027] The content classification unit classifies video content and annotates videos according to video themes and content features to facilitate retrieval and management.
[0028] Furthermore, in constructing the video content matching module, there are provided a unit for calculating feature attribute sets, a unit for deleting redundant data, a unit for calculating loss functions, a unit for marking overlapping regions, and a parallel computing unit, the specific contents of which are as follows:
[0029] The characteristic attribute set calculation unit collects video content data from the video content analysis module, stores it in a large-capacity data storage device, processes and transmits it as HLA distributed simulation data, and calculates the characteristic attribute set of the video content data. The formula used is as follows:
[0030] ;
[0031] In the formula, is the feature attribute set of video content data, q i is the number of video content data features after HLA distributed data classification, s is the feature content of video content data, n represents the total number of video content data features, and c is the parameter of HLA distributed data;
[0032] Delete redundant data units, delete non-feature attributes, reduce errors, increase the speed of collection, and calculate the removal benchmark. The formula used is as follows:
[0033] ;
[0034] In the formula, L represents the removal benchmark, which is used to determine whether to delete data that meets the benchmark. represents the vector representation of the filter request used when removing, q represents the scalar representation of the filter request used when removing, which is used to identify the characteristics of HLA distributed data, and e represents the existing redundant data removal request, which is used to remove non-feature attributes;
[0035] Calculate the loss function unit, define the input vector and label value, calculate the loss function, the formula used is as follows:
[0036] ;
[0037] In the formula, LL represents the loss function, is the input vector, representing the image features of the HLA distributed simulation evaluation effect, is the label value, which indicates the real category label corresponding to the HLA distributed simulation evaluation effect image. represents the category weight matrix, which is used to calculate the loss function in a weighted manner. T represents the transpose of the matrix. b j1 represents the error value of the category, m represents the number of training samples, i1 is the index of the training sample, n represents the number of training sample categories, j1 is the index of the training sample category, the training sample is a set of known HLA distributed simulation evaluation effect image features and their corresponding real category labels, the evaluation effect image features are used for video content matching, so as to quickly find videos that match the user's emotions;
[0038] Marking overlapping area unit, marking the overlapping area, the overlapping part indicates that there is repeated content between different parts of the video in the video content matching, processing the overlapping area is helpful to improve the accuracy and efficiency of video content matching, marking the label of each area, ensuring that each connected area has a unique label, starting from the overlapping row of the second to last row, processing one row at a time, for each pixel, check whether its adjacent pixels belong to the same connected area, if so, merge the two areas, update their labels to the same label, and continue to process the next row upward until all overlapping rows are processed;
[0039] The parallel computing unit divides multiple mobile matching tasks into different cores, each of which is responsible for processing different regional matching tasks; the multi-threading method is used to realize the parallel calculation of regional matching degree, and each core uses an independent thread to perform regional matching tasks; in the parallel computing process, reasonable data sharing and communication mechanisms are used to avoid repeated calculations, improve the computing power of regional matching capabilities, reduce the number of redundant calculations, and improve the actual efficiency of video content matching.
[0040] Furthermore, in the actual application module, based on the user's emotional feedback and preferences, combined with the results of emotion recognition and video content matching, the video content that matches the user's emotional state is accurately pushed to the user, thereby improving the user experience and meeting user needs.
[0041] The beneficial effects achieved by the present invention using the above scheme are as follows:
[0042] (1) In order to solve the technical problems of inaccurate emotion recognition, which leads to mismatch between recommended video content and users’ real emotional state, reduced user experience, and the system mistakenly pushing irrelevant information, resulting in information overload, we extract features from audio signals, build an emotion recognition classification model, iterate the model, and use the gradient descent algorithm to update the model parameters. We iterate the process until the model converges.
[0043] (2) In order to solve the technical problem that the sentiment classification accuracy is not high and it is unable to better meet the needs of users and accurately target the target customer groups, a sentiment labeling model is constructed. The correlation between the user's sentiment features and opinion features is calculated through tensors, the attention score is calculated, and the sentiment features and opinion features are fused to obtain the final sentiment information, thereby improving the accuracy of sentiment classification.
[0044] (3) In order to address the technical issues that large-scale video data makes it difficult to accurately identify and match video content, resulting in a waste of bandwidth and storage resources, we use a method to calculate the feature attribute set of video content data, delete redundant data, calculate the loss function, mark overlapping areas, and use a multi-threaded method to process regional matching tasks, thereby improving the efficiency and real-time performance of the matching algorithm. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 A schematic diagram of an artificial intelligence-based emotion recognition and video content matching system provided by the present invention;
[0046] Figure 2 Schematic diagram of the emotion recognition module;
[0047] Figure 3 Schematic diagram of the emotion labeling and classification module;
[0048] Figure 4 Schematic diagram of constructing a video content matching module.
[0049] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention together with the embodiments of the present invention and do not constitute a limitation of the present invention. DETAILED DESCRIPTION
[0050] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments; based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0051] In the description of the present invention, it should be understood that terms such as “upper”, “lower”, “front”, “back”, “left”, “right”, “top”, “bottom”, “inside” and “outside” indicating directions or positional relationships are based on the directions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore should not be understood as limiting the present invention.
[0052] Example 1, see Figure 1 The emotion recognition and video content matching system based on artificial intelligence provided by the present invention includes an emotion recognition module, an emotion labeling and classification module, a video content analysis module, a video content matching module and a practical application module;
[0053] The emotion recognition module specifically extracts features from audio signals, constructs an emotion recognition classification model, iterates the model, updates model parameters using a gradient descent algorithm, and iterates the process until the model converges;
[0054] The emotion annotation and classification module specifically constructs an emotion annotation model, calculates the correlation between emotion features and opinion features through tensors, calculates attention scores, and performs feature fusion of emotion features and opinion features to obtain final emotion information, thereby improving the accuracy of emotion classification;
[0055] The video content analysis module specifically performs video analysis and classifies the video content;
[0056] The video content matching module is constructed to calculate the characteristic attribute set of the video content data, delete redundant data, calculate the loss function, mark the overlapping area, and use a multi-threaded method to process the area matching task to improve the efficiency and real-time performance of the matching algorithm;
[0057] The actual application module specifically pushes video content that matches the user's emotional state to the user based on the user's emotional feedback and preferences, combined with the results of emotion recognition and video content matching, to improve the user experience and meet user needs.
[0058] Example 2, see Figure 1 and Figure 2 This embodiment is based on the above embodiment. In the emotion recognition module, a feature extraction unit, an emotion recognition classification model building unit and a model iteration unit are provided. Specifically, the following contents are included:
[0059] A feature extraction unit calculates the sum of squares of the differences between the audio feature values and the average value, which is used to describe the distribution characteristics of the audio signal;
[0060] Construct an emotion recognition classification model unit, improve the traditional feedforward neural network, and construct a feedforward neural network model based on the Chebyshev orthogonal polynomial cluster for the distribution feature data of the audio signal. In the model, a single hidden layer is used to reduce the complexity of the entire model. The stimulation function of each neuron in the hidden layer uses a function in the Chebyshev orthogonal polynomial cluster to fit the distribution characteristics of the audio signal. The stimulation function of the neurons in other layers uses a linear stimulation function.
[0061] The model iteration unit calculates the activation value of each node in the neural network, propagates the gradient through the back-propagation algorithm, obtains the gradient value of each parameter, uses the gradient descent algorithm to update the model parameters, and iterates the process until the model converges to achieve emotion recognition.
[0062] By performing the above operations, this solution extracts features from audio signals, builds an emotion recognition classification model, iterates the model, uses a gradient descent algorithm to update model parameters, and iterates the process until the model converges. This solves the technical problems of inaccurate emotion recognition, which leads to a mismatch between the recommended video content and the user's actual emotional state, resulting in a reduced user experience, and the system erroneously pushes irrelevant information, causing information overload.
[0063] Example 3, see Figure 1 and Figure 3 This embodiment is based on the above embodiment. In the emotion annotation and classification module, there are provided an emotion annotation model building unit, an attention score calculation unit and a feature fusion unit, which specifically include the following contents:
[0064] Construct a sentiment labeling model unit, define the model input data as the user's sentiment feature P and opinion feature O, and calculate the combination vector between sentiment features and opinion features through tensor operations. The formula used is as follows:
[0065] ;
[0066] ;
[0067] In the formula, Represents a combined vector, which is used to represent the degree of association between the i-th feature vector in the sentiment feature P and the j-th feature vector in the opinion feature O. i represents the i-th feature vector in the sentiment feature P, O j represents the jth feature vector in opinion feature O, G p It is a three-dimensional tensor with dimensions K×2d×2d, where K represents G pThe hyperparameter represents the complex intrinsic correlation between sentiment features and opinion features. As the K value increases, the more information is extracted and the higher the complexity. 2d represents the dimension of each feature vector, i is the index of the feature vector of sentiment features, j is the index of the feature vector of opinion features, and tanh is the abbreviation of hyperbolic tangent function.
[0068] Calculate the attention score unit, after obtaining the combination vector between the sentiment feature and the opinion feature, calculate the attention score, the formula used is as follows:
[0069] ;
[0070] In the formula, Represents the attention score. The higher the attention score, the more information the i-th feature vector in the sentiment feature P captures about the j-th feature vector in the opinion feature O. is a weight vector, which is used to measure the importance of each value of the combination vector;
[0071] The feature fusion unit fuses the sentiment features and opinion features to obtain the final sentiment information. The formula used is as follows:
[0072] ;
[0073] In the formula, Represents the final emotional information, S p represents the sentiment feature vector, S o Represents the opinion feature vector, E p Represents the matrix based on attention scores, softmax r represents a row-based softmax function, which is used to perform a softmax operation on each row of the attention score matrix, and the obtained weight vector is used to calculate S o Perform weighted fusion to improve the accuracy of sentiment classification and opinion extraction.
[0074] By performing the above operations, this solution adopts the construction of a sentiment labeling model, calculates the correlation between sentiment features and opinion features through tensors, calculates the attention score, and fuses the sentiment features and opinion features to obtain the final sentiment information, thereby improving the accuracy of sentiment classification and solving the technical problem of low sentiment classification accuracy, which cannot better meet user needs and accurately target target customer groups.
[0075] Example 4, see Figure 1 This embodiment is based on the above embodiment. In the video content analysis module, a video parsing unit and a content classification unit are provided, which specifically include the following contents:
[0076] The video parsing unit parses the video and extracts the basic information and features of the video, including resolution, frame rate, and codec format;
[0077] The content classification unit classifies video content and annotates videos according to video themes and content features to facilitate retrieval and management.
[0078] Example 5, see Figure 1 and Figure 4 This embodiment is based on the above embodiment. In constructing a video content matching module, a feature attribute set calculation unit, a redundant data deletion unit, a loss function calculation unit, an overlapping area marking unit and a parallel calculation unit are provided. The specific contents are as follows:
[0079] The characteristic attribute set calculation unit collects video content data from the video content analysis module, stores it in a large-capacity data storage device, processes and transmits it as HLA distributed simulation data, and calculates the characteristic attribute set of the video content data. The formula used is as follows:
[0080] ;
[0081] In the formula, is the feature attribute set of video content data, q i is the number of video content data features after HLA distributed data classification, s is the feature content of video content data, n represents the total number of video content data features, and c is the parameter of HLA distributed data;
[0082] Delete redundant data units, delete non-feature attributes, reduce errors, increase the speed of collection, and calculate the removal benchmark. The formula used is as follows:
[0083] ;
[0084] In the formula, L represents the removal benchmark, which is used to determine whether to delete data that meets the benchmark. represents the vector representation of the filter request used when removing, q represents the scalar representation of the filter request used when removing, which is used to identify the characteristics of HLA distributed data, and e represents the existing redundant data removal request, which is used to remove non-feature attributes;
[0085] Calculate the loss function unit, define the input vector and label value, calculate the loss function, the formula used is as follows:
[0086] ;
[0087] In the formula, LL represents the loss function, is the input vector, representing the image features of the HLA distributed simulation evaluation effect, is the label value, which indicates the real category label corresponding to the HLA distributed simulation evaluation effect image. represents the category weight matrix, which is used to calculate the loss function in a weighted manner. T represents the transpose of the matrix. b j1 represents the error value of the category, m represents the number of training samples, i1 is the index of the training sample, n represents the number of training sample categories, j1 is the index of the training sample category, the training sample is a set of known HLA distributed simulation evaluation effect image features and their corresponding real category labels, the evaluation effect image features are used for video content matching, so as to quickly find videos that match the user's emotions;
[0088] Marking overlapping area unit, marking the overlapping area, the overlapping part indicates that there is repeated content between different parts of the video in the video content matching, processing the overlapping area is helpful to improve the accuracy and efficiency of video content matching, marking the label of each area, ensuring that each connected area has a unique label, starting from the overlapping row of the second to last row, processing one row at a time, for each pixel, check whether its adjacent pixels belong to the same connected area, if so, merge the two areas, update their labels to the same label, and continue to process the next row upward until all overlapping rows are processed;
[0089] The parallel computing unit divides multiple mobile matching tasks into different cores, each of which is responsible for processing different regional matching tasks; the multi-threading method is used to realize the parallel calculation of regional matching degree, and each core uses an independent thread to perform regional matching tasks; in the parallel computing process, reasonable data sharing and communication mechanisms are used to avoid repeated calculations, improve the computing power of regional matching capabilities, reduce the number of redundant calculations, and improve the actual efficiency of video content matching.
[0090] By performing the above operations, this solution calculates the characteristic attribute set of video content data, deletes redundant data, calculates the loss function, marks overlapping areas, and uses a multi-threaded method to process regional matching tasks, thereby improving the efficiency and real-time performance of the matching algorithm, and solving the technical problem that large-scale video data makes it difficult to accurately identify and match video content, resulting in a waste of bandwidth and storage resources.
[0091] Example 6, see Figure 1 This embodiment is based on the above embodiment. In the actual application module, specifically, according to the user's emotional feedback and preferences, combined with the results of emotion recognition and video content matching, the video content that matches the user's emotional state is accurately pushed to the user, thereby improving the user experience and meeting the user's needs.
[0092] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0093] While the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that many changes, modifications, substitutions and variations can be made to the embodiments without departing from the principles and spirit of the invention.
[0094] The present invention and its embodiments are described above, and such description is not restrictive. The drawings show only one embodiment of the present invention, and the actual structure is not limited thereto. In short, if ordinary technicians in the field are inspired by it, without departing from the purpose of the invention, they can design a structure and embodiment similar to the technical solution without creativity, which should belong to the protection scope of the present invention.
Claims
1. The emotion recognition and video content matching system based on artificial intelligence is characterized by: It includes emotion recognition module, emotion labeling and classification module, video content analysis module, video content matching module and practical application module; The emotion recognition module specifically extracts features from audio signals, constructs an emotion recognition classification model, uses a gradient descent algorithm to update model parameters, and performs model iteration; The emotion annotation and classification module specifically constructs an emotion annotation model, calculates the correlation between emotion features and opinion features through tensors, calculates attention scores, and performs feature fusion on emotion features and opinion features to obtain final emotion information; The video content analysis module specifically performs video analysis and classifies the video content; The video content matching module is constructed to calculate the video content data feature attribute set, delete redundant data, calculate the loss function, mark the overlapping area, and use a multi-threaded method to process the area matching task; The practical application module specifically pushes video content according to the user's emotional feedback; In the sentiment labeling and classification module, there are sentiment labeling model building unit, attention score calculation unit and feature fusion unit, which specifically include the following contents: Construct a sentiment labeling model unit, define the model input data as the user's sentiment feature P and opinion feature O, and calculate the combination vector between sentiment features and opinion features through tensor operations. The formula used is as follows: ; ; In the formula, Represents a combined vector, which is used to represent the degree of association between the i-th feature vector in the sentiment feature P and the j-th feature vector in the opinion feature O. i represents the i-th feature vector in the sentiment feature P, O j represents the jth feature vector in opinion feature O, G p It is a three-dimensional tensor with dimensions K×2d×2d, where K represents G p The hyperparameter represents the complex intrinsic correlation between sentiment features and opinion features. As the K value increases, the more information is extracted and the higher the complexity. 2d represents the dimension of each feature vector, i is the index of the feature vector of sentiment features, j is the index of the feature vector of opinion features, and tanh is the abbreviation of hyperbolic tangent function. Calculate the attention score unit, after obtaining the combination vector between the sentiment feature and the opinion feature, calculate the attention score, the formula used is as follows: ; In the formula, Represents the attention score. The higher the attention score, the more information the i-th feature vector in the sentiment feature P captures about the j-th feature vector in the opinion feature O. is a weight vector, which is used to measure the importance of each value of the combination vector; The feature fusion unit fuses the sentiment features and opinion features to obtain the final sentiment information. The formula used is as follows: ; In the formula, Represents the final emotional information, S p represents the sentiment feature vector, S o Represents the opinion feature vector, E p Represents the matrix based on attention scores, softmax r represents a row-based softmax function, which is used to perform a softmax operation on each row of the attention score matrix, and the obtained weight vector is used to calculate S o Perform weighted fusion; In constructing the video content matching module, there are a unit for calculating feature attribute sets, a unit for deleting redundant data, a unit for calculating loss functions, a unit for marking overlapping areas, and a parallel computing unit. The specific contents are as follows: The characteristic attribute set calculation unit collects video content data from the video content analysis module, stores it in a large-capacity data storage device, processes and transmits it as HLA distributed simulation data, and calculates the characteristic attribute set of the video content data. The formula used is as follows: ; In the formula, is the feature attribute set of video content data, q i is the number of video content data features after HLA distributed data classification, s is the feature content of video content data, n represents the total number of video content data features, and c is the parameter of HLA distributed data; Delete redundant data units and calculate the removal benchmark using the following formula: ; In the formula, L represents the removal benchmark, which is used to determine whether to delete data that meets the benchmark. represents the vector representation of the filter request used when removing, q represents the scalar representation of the filter request used when removing, which is used to identify the characteristics of HLA distributed data, and e represents the existing redundant data removal request, which is used to remove non-feature attributes; Calculate the loss function unit, define the input vector and label value, calculate the loss function, the formula used is as follows: ; In the formula, LL represents the loss function, is the input vector, representing the image features of the HLA distributed simulation evaluation effect, is the label value, which indicates the real category label corresponding to the HLA distributed simulation evaluation effect image. represents the category weight matrix, which is used to calculate the loss function in a weighted manner. T represents the transpose of the matrix. b j1 represents the error value of the category, m represents the number of training samples, i1 is the index of the training sample, n represents the number of training sample categories, j1 is the index of the training sample category, and the training sample is a set of known HLA distributed simulation evaluation effect image features and their corresponding true category labels. Indicates the error value of the label; An overlapping area marking unit is used to mark the overlapping area. The overlapping part indicates that there is repeated content between different parts of the video in the video content matching. The overlapping area is processed and the label of each area is marked to ensure that each connected area has a unique label. The processing starts from the overlapping row of the second to last row, and one row is processed at a time until all the overlapping rows are processed; The parallel computing unit divides multiple mobile matching tasks into different cores, each of which is responsible for processing different regional matching tasks; the multi-threading method is used to realize the parallel calculation of regional matching degree, and each core uses an independent thread to perform regional matching tasks; in the parallel computing process, repeated calculations are avoided through reasonable data sharing and communication mechanisms; In the emotion recognition module, there are feature extraction unit, emotion recognition classification model building unit and model iteration unit, which specifically include the following contents: A feature extraction unit calculates the sum of squares of the differences between the audio feature values and the average value, which is used to describe the distribution characteristics of the audio signal; Construct an emotion recognition classification model unit, improve the traditional feedforward neural network, and construct a feedforward neural network model based on the Chebyshev orthogonal polynomial cluster for the distribution feature data of the audio signal. In the model, a single hidden layer is used to reduce the complexity of the entire model. The stimulation function of each neuron in the hidden layer uses a function in the Chebyshev orthogonal polynomial cluster to fit the distribution characteristics of the audio signal. The stimulation function of the neurons in other layers uses a linear stimulation function. The model iteration unit calculates the activation value of each node in the neural network, propagates the gradient through the back-propagation algorithm, obtains the gradient value of each parameter, uses the gradient descent algorithm to update the model parameters, and iterates the process until the model converges to achieve emotion recognition.
2. The emotion recognition and video content matching system based on artificial intelligence according to claim 1, characterized in that: In the video content analysis module, there are video parsing unit and content classification unit, which specifically include the following contents: The video parsing unit parses the video and extracts the basic information and features of the video; The content classification unit classifies the video content and labels the video according to the video theme and content features.
3. The emotion recognition and video content matching system based on artificial intelligence according to claim 1, characterized in that: In the actual application module, based on the user's emotional feedback and preferences, combined with the results of emotion recognition and video content matching, the system accurately pushes video content that matches the user's emotional state.
