A non-commercial interactive live broadcast data intelligent analysis system
Through the multi-source data collection and analysis module, the shortcomings in the evaluation of live content quality and interaction in existing technologies are solved, in-depth analysis of different types of live content is achieved, and the timeliness and accuracy of data analysis are improved.
Patent Information
- Application Number
- CN202410881347.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-03
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-07-03
AI Technical Summary
Existing live broadcast data analysis technology lacks the ability to conduct in-depth analysis of live content, cannot effectively evaluate the quality of live content and audience interaction, and cannot adapt to different types of live content.
A non-commercial interactive live broadcast data intelligent analysis system is designed, which collects and analyzes the live broadcaster's audio, video and barrages in real time through multi-source data collection, vocal speed analysis, emotion analysis, barrage analysis and live broadcast type determination module. Data, evaluate the language expression, emotion and interaction quality of live broadcast content, and determine the type of live broadcast based on different data indicators.
It achieves in-depth evaluation of live content quality and audience interaction, improves the timeliness and accuracy of data analysis, can adapt to different types of live content, and provides more comprehensive and in-depth analysis results.
Smart Images

Figure CN118413708B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data analysis, and in particular to a non-commercial interactive live broadcast data intelligent analysis system. Background Art
[0002] With the rapid development of Internet technology, interactive live broadcasting has become a popular way of information dissemination and social interaction. However, existing live broadcast data analysis technologies are often limited to superficial data collection, such as the number of viewers and the amount of barrage, and lack the ability to conduct in-depth analysis of live broadcast content. This leads to deficiencies in the evaluation of live broadcast content quality and the in-depth understanding of the live broadcaster's performance, making it difficult to meet users' demand for high-quality live broadcast content.
[0003] Furthermore, most existing live broadcast data analysis systems focus on operational indicators, such as revenue and advertising effectiveness, rather than on non-operational indicators, such as the emotional expression of the live broadcaster, the professionalism of the language, the rationality and interactivity of the live broadcaster, which have a significant impact on improving the audience's viewing experience and the social interaction of the live broadcast. However, these indicators are often ignored by existing systems due to the lack of quantitative and systematic analysis methods.
[0004] In addition, real-time interaction during live broadcast, especially the interaction of bullet comments, is an important indicator for measuring live broadcast activity. When processing bullet comment data, existing technologies often only focus on quantity and ignore quality, and cannot effectively analyze the peak changes, fluctuation ratios, and interaction with the live broadcaster of the bullet comment, thus failing to fully evaluate the interactive quality of the live broadcast and the audience's participation.
[0005] Finally, there are various types of live broadcasts, such as atmospheric live broadcasts, complex live broadcasts, and professional live broadcasts, but existing live broadcast analysis systems often use a single analysis model that cannot adapt to different types of live broadcast content. Summary of the invention
[0006] Based on this, it is necessary for the present invention to provide a non-commercial interactive live broadcast data intelligent analysis system to solve at least one of the above-mentioned technical problems.
[0007] To achieve the above purpose, a non-commercial interactive live broadcast data intelligent analysis system includes the following modules:
[0008] The data collection module S1 is used to collect real-time multi-source data from the live broadcast room to obtain a live broadcast data set, where the live broadcast data set includes the live broadcaster's audio data, barrage interaction data, and live broadcast room video data; the language attribute distribution of the live broadcaster is calculated based on the live broadcaster's audio data to obtain language attribute distribution data;
[0009] The voice range and speech speed analysis module S2 is used to identify the voice range and speech speed of the live broadcaster based on the live broadcaster's audio data, and obtain the voice range data and speech speed data of the live broadcaster;
[0010] The emotion analysis module S3 is used to analyze the emotion proportion of the live broadcaster based on the video data of the live broadcast room to obtain the emotion proportion data of the live broadcaster; calculate the emotion richness of the live broadcaster based on the video data of the live broadcast room to obtain the emotion richness distribution data;
[0011] The bullet screen analysis module S4 is used to analyze the peak value change of the bullet screen volume in the live broadcast room according to the bullet screen interaction data to obtain the bullet screen peak jump frequency data; calculate the bullet screen peak fluctuation ratio of the live broadcast room according to the bullet screen interaction data to obtain the bullet screen peak fluctuation ratio distribution data; analyze the bullet screen interaction of the live broadcast room based on the live broadcaster audio data and the bullet screen interaction data to obtain the bullet screen interaction reply rate data;
[0012] The live broadcast type determination module S5 is used to identify the live broadcast content of the live broadcast room according to the audio data of the live broadcaster and the video data of the live broadcast room to obtain a live broadcast content type data set; determine the live broadcast type of the live broadcast room according to the language attribute distribution data, the vocal range data of the live broadcaster, the speech speed data of the live broadcaster, the proportion data of the live broadcaster's emotions, the distribution data of the richness of emotions, the peak jump frequency data of the barrage, the peak fluctuation ratio distribution data of the barrage, the interactive reply rate data of the barrage and the live content type data set to obtain the live broadcast type data.
[0013] In the present invention, through the real-time multi-source data acquisition module, the audio data, bullet screen interaction data and live broadcast room video data of the live broadcaster can be fully obtained, ensuring the multidimensionality and richness of the data, overcoming the shortcomings of single and one-sided data. Through the language attribute distribution calculation and range and speed analysis module, the range and speed data of the live broadcaster can be accurately identified, helping to deeply understand the language expression characteristics of the live broadcaster, thereby evaluating the orderliness and professionalism of the live broadcast content, and improving the accuracy and meticulousness of language analysis. Through the emotion analysis module, the emotional proportion and emotional richness of the live broadcaster are analyzed using video data, and the emotional state of the live broadcaster can be monitored and quantified in real time, providing intuitive data support for emotional changes, providing an important basis for the quality evaluation of live broadcast content, and filling the gap in the existing technology in emotional expression analysis. Through the analysis of the peak change of bullet screen volume, the peak fluctuation ratio of bullet screen and the interactive reply rate of bullet screen by the bullet screen analysis module, the audience interaction situation and the quality of bullet screen can be deeply understood, helping to evaluate the interactive activity and audience participation of the live broadcast room, and comprehensively reflecting the interactive quality of bullet screen, overcoming the limitation of only focusing on quantity and ignoring quality. The live broadcast type determination module combines multi-dimensional data to identify and determine the live broadcast content, ensuring that it can adapt to different types of live broadcast content, providing targeted data analysis and evaluation, and improving the adaptability and accuracy of live broadcast analysis. In summary, the present invention analyzes real-time data during the live broadcast process to ensure dynamic monitoring and immediate feedback of live broadcast interactions and content changes, thereby improving the timeliness and accuracy of data analysis; it also integrates the live broadcaster's audio, video data, and barrage data to comprehensively evaluate the live broadcast content from multiple angles, thereby overcoming the defects of one-sided data analysis and single indicators in the prior art, and providing more comprehensive and in-depth live broadcast data analysis results. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments thereof made with reference to the following drawings:
[0015] Figure 1 A module flow diagram of a non-commercial interactive live broadcast data intelligent analysis system according to an embodiment is shown.
[0016] Figure 2 A detailed step flow diagram of S3 of an embodiment is shown.
[0017] Figure 3 A schematic diagram of a detailed step flow of S37 of an embodiment is shown. DETAILED DESCRIPTION
[0018] The technical method of the present invention is described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by technicians in this field without creative work are within the scope of protection of the present invention.
[0019] In addition, the accompanying drawings are only schematic illustrations of the present invention and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. The functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor methods and / or microcontroller methods.
[0020] It should be understood that, although the terms "first", "second", etc. may be used herein to describe various units, these units should not be limited by these terms. These terms are used only to distinguish one unit from another unit. For example, without departing from the scope of the exemplary embodiments, the first unit may be referred to as the second unit, and similarly the second unit may be referred to as the first unit. The term "and / or" used herein includes any and all combinations of one or more of the listed associated items.
[0021] To achieve this, please refer to Figures 1 to 3 The present invention provides a non-commercial interactive live broadcast data intelligent analysis system, comprising the following modules:
[0022] The data collection module S1 is used to collect real-time multi-source data from the live broadcast room to obtain a live broadcast data set, where the live broadcast data set includes the live broadcaster's audio data, barrage interaction data, and live broadcast room video data; the language attribute distribution of the live broadcaster is calculated based on the live broadcaster's audio data to obtain language attribute distribution data;
[0023] The voice range and speech speed analysis module S2 is used to identify the voice range and speech speed of the live broadcaster based on the live broadcaster's audio data, and obtain the voice range data and speech speed data of the live broadcaster;
[0024] The emotion analysis module S3 is used to analyze the emotion proportion of the live broadcaster based on the video data of the live broadcast room to obtain the emotion proportion data of the live broadcaster; calculate the emotion richness of the live broadcaster based on the video data of the live broadcast room to obtain the emotion richness distribution data;
[0025] The bullet screen analysis module S4 is used to analyze the peak value change of the bullet screen volume in the live broadcast room according to the bullet screen interaction data to obtain the bullet screen peak jump frequency data; calculate the bullet screen peak fluctuation ratio of the live broadcast room according to the bullet screen interaction data to obtain the bullet screen peak fluctuation ratio distribution data; analyze the bullet screen interaction of the live broadcast room based on the live broadcaster audio data and the bullet screen interaction data to obtain the bullet screen interaction reply rate data;
[0026] The live broadcast type determination module S5 is used to identify the live broadcast content of the live broadcast room according to the audio data of the live broadcaster and the video data of the live broadcast room to obtain a live broadcast content type data set; determine the live broadcast type of the live broadcast room according to the language attribute distribution data, the vocal range data of the live broadcaster, the speech speed data of the live broadcaster, the proportion data of the live broadcaster's emotions, the distribution data of the richness of emotions, the peak jump frequency data of the barrage, the peak fluctuation ratio distribution data of the barrage, the interactive reply rate data of the barrage and the live content type data set to obtain the live broadcast type data.
[0027] In the present invention, through the real-time multi-source data acquisition module, the audio data, bullet screen interaction data and live broadcast room video data of the live broadcaster can be fully obtained, ensuring the multidimensionality and richness of the data, overcoming the shortcomings of single and one-sided data. Through the language attribute distribution calculation and range and speed analysis module, the range and speed data of the live broadcaster can be accurately identified, helping to deeply understand the language expression characteristics of the live broadcaster, thereby evaluating the orderliness and professionalism of the live broadcast content, and improving the accuracy and meticulousness of language analysis. Through the emotion analysis module, the emotional proportion and emotional richness of the live broadcaster are analyzed using video data, and the emotional state of the live broadcaster can be monitored and quantified in real time, providing intuitive data support for emotional changes, providing an important basis for the quality evaluation of live broadcast content, and filling the gap in the existing technology in emotional expression analysis. Through the analysis of the peak change of bullet screen volume, the peak fluctuation ratio of bullet screen and the interactive reply rate of bullet screen by the bullet screen analysis module, the audience interaction situation and the quality of bullet screen can be deeply understood, helping to evaluate the interactive activity and audience participation of the live broadcast room, and comprehensively reflecting the interactive quality of bullet screen, overcoming the limitation of only focusing on quantity and ignoring quality. The live broadcast type determination module combines multi-dimensional data to identify and determine the live broadcast content, ensuring that the system can adapt to different types of live broadcast content, providing targeted data analysis and evaluation, and improving the adaptability and accuracy of live broadcast analysis. In summary, the present invention analyzes real-time data during the live broadcast process to ensure dynamic monitoring and immediate feedback of live broadcast interactions and content changes, thereby improving the timeliness and accuracy of data analysis; it also integrates the live broadcaster's audio, video data, and barrage data to comprehensively evaluate the live broadcast content from multiple angles, thereby overcoming the defects of one-sided data analysis and single indicators in the prior art, and providing more comprehensive and in-depth live broadcast data analysis results.
[0028] In this embodiment, audio, video and bullet screen data are extracted from the live broadcast platform by using a dedicated API interface and real-time stream processing technology (such as Kafka or Flink). Then, based on the live broadcaster's audio data, natural language processing (NLP) technology (such as Google Cloud Speech-to-Text) is used to analyze the live broadcaster's language, identify the type and frequency of speech, and calculate and obtain language attribute distribution data. Use an audio signal processing tool (such as Librosa or Praat) to analyze the live broadcaster's audio data, identify the live broadcaster's range and speech rate through spectrum analysis and speech rate detection, and obtain the live broadcaster's range data and live broadcaster's speech rate data respectively. For example, the range can be determined by calculating the average frequency range of the audio signal, and the speech rate can be determined by detecting the number of words per minute. Computer vision and facial expression recognition model technology are used to detect and analyze the live broadcaster's facial expressions, calculate the emotional proportion, and obtain the live broadcaster's emotional proportion data. At the same time, through time series analysis, the frequency of emotional changes of the live broadcaster in different time periods is evaluated to obtain emotional richness distribution data. For example, the number of different emotions expressed by the live broadcaster per minute is identified to evaluate its emotional richness. Using data stream processing technology and peak detection algorithm, the change in the number of bullet screens per minute is calculated to obtain the bullet screen peak jump frequency data. Then, by analyzing the fluctuation of the number of bullet screens, the bullet screen peak fluctuation ratio distribution data is calculated. For the bullet screen interactive reply rate, by comparing the live broadcaster's audio data with the bullet screen interaction data, the live broadcaster's response to the bullet screen questions is identified, and the timely reply rate is calculated. Finally, using image recognition and text analysis technology, the content type in the live broadcast, such as product display and explanation content, is identified, and a live broadcast content type data set is generated. Then, the language attribute distribution data, the live broadcaster's voice range data, the live broadcaster's speech speed data, the live broadcaster's emotion proportion data, the emotion richness distribution data, the bullet screen peak jump frequency data, the bullet screen peak fluctuation ratio distribution data, and the bullet screen interactive reply rate data are compared and analyzed with the live broadcast content type data set. Through the preset live broadcast type template library (such as peaceful live broadcast and interactive live broadcast), the live broadcast type of the live broadcast room is determined, and the live broadcast type data is finally obtained.
[0029] Preferably, the data acquisition module S1 includes:
[0030] S11: Real-time multi-source data collection is performed on the live broadcast room to obtain a live broadcast data set, where the live broadcast data set includes live broadcaster audio data, bullet screen interaction data, and live broadcast room video data;
[0031] Specifically, the audio data of the live broadcaster is collected through a high-quality microphone and an audio capture card. Live broadcast software such as OBS (Open Broadcaster Software) is used to process the audio input and record it as an audio file (such as WAV or MP3 format), and finally the audio data of the live broadcaster is obtained. The live broadcast room's barrage data is captured in real time through barrage capture tools or APIs (such as Bilibili's barrage API). These APIs can provide barrage content, sending time, and information about the sending user. These data are recorded in a database or JSON file to obtain barrage interaction data. Next, a video capture card is used to input the live video signal into a computer, and live broadcast software (such as OBS) is also used to record video data in real time. OBS software can save live videos in multiple formats (such as MP4, FLV), thereby obtaining live broadcast room video data. Finally, all these data (audio, barrage, video) are synchronously stored in a structured live broadcast data set (such as an HDF5 file or a relational database).
[0032] S12: removing background noise from the live broadcaster's audio data to obtain clean human voice audio data;
[0033] Specifically, please refer to sub-step S12 for the specific processing flow of this embodiment.
[0034] S13: Performing automatic speech recognition on the clean human voice audio data to obtain text transcription data of the live broadcaster;
[0035] Specifically, Google Cloud Speech-to-Text is used to upload clean human voice audio data to Google Cloud Storage, and then the audio stream is transmitted to the service for real-time speech recognition through API calls. The recognition results will be returned in text form, and the live broadcaster's text transcription data will be obtained in the end.
[0036] S14: removing semantically irrelevant words from the live broadcaster's text transcription data to obtain valid text data of the live broadcaster;
[0037] Specifically, through natural language processing technology, common stop words in the live broadcaster's text transcription data, such as conjunctions, prepositions, and articles, are identified and listed. These words usually do not carry important information in text analysis. Then, use text editing tools or professional text analysis software to scan the transcribed text, mark and delete these stop words and meaningless repeated words and punctuation marks. For example, if a large number of filler words (such as "um" and "ah") appear in the live broadcaster's text transcription data, or repeated words such as "very, very" appear, these words are removed from the text through the find and replace function. In addition, common words that exceed a certain frequency can be identified and deleted by setting rules, and finally the live broadcaster's valid text data is obtained.
[0038] S15: Calculate the language attribute distribution of the live broadcaster according to the live broadcaster's valid text data to obtain language attribute distribution data.
[0039] Specifically, please refer to sub-step S15 for the specific processing flow of this embodiment.
[0040] The present invention ensures the comprehensiveness and timeliness of live broadcast data through real-time multi-source data collection, provides a sufficient and accurate data basis for subsequent analysis, and helps to fully understand the live broadcast situation. The quality of audio data can be improved by removing background noise, which is conducive to extracting clear voice information of the live broadcaster and improving the availability of audio data. By automatic speech recognition, the voice of the live broadcaster is converted into text data, which can improve the readability and analyzability of the voice information. By eliminating semantically irrelevant words, the interference of the data can be reduced, making the effective text data of the live broadcaster more representative and important, which helps to improve the accuracy and credibility of the language attribute distribution data. By calculating the language attribute distribution of the effective text data of the live broadcaster, the language characteristics and expressions of the live broadcaster can be deeply understood, which provides an important basis for subsequent language analysis and content evaluation, and improves the in-depth understanding and evaluation capabilities of the live broadcast content.
[0041] Preferably, S12 includes:
[0042] S121: removing background music from the live broadcaster's audio data to obtain audio data without background music;
[0043] Specifically, the live broadcaster audio data file is imported into audio editing software (such as Adobe Audition or Audacity). Next, the "Noise Reduction" function in the "Effects" menu of the software is used to select the background music part as the noise sample. The software will analyze the audio characteristics of the selected part and try to identify and eliminate similar sound patterns in the entire audio track. In addition, the "Spectrum Editing" tool is used to visually identify the frequency range where the background music is located, and try to attenuate or remove these frequencies, thereby eliminating the background music and finally obtaining audio data without background music.
[0044] S122: Count the loudspeakers of the audio data without background music to obtain loudspeaker counting result data;
[0045] Specifically, the audio data without background music was imported into Praat. Then, the "Sound Analysis" function in the "Sound" menu of the software was used, and the "Sound Signal Processing" option was selected to perform spectrum analysis on the audio. By observing the spectrum graph, the distribution of different frequency components can be identified. Next, the "Sound Source Separation" tool was used to distinguish and count independent sound sources in the audio based on the sound characteristics in the audio, such as pitch, volume, and timbre, to obtain the speaker counting result data.
[0046] S123: If the loudspeaker counting result data indicates that a single person is speaking, the audio data without background music is used as the anchor voice data, and S126 is executed;
[0047] Specifically, if it is confirmed that there is only a single speaker in the live broadcast audio, the audio data without background music is directly used as the host voice data, and S126 is executed.
[0048] S124: if the loudspeaker counting result data indicates that multiple people are speaking, voice separation is performed on the audio data without background music to obtain a mono voice data set, wherein the mono voice data set includes a plurality of mono voice data;
[0049] Specifically, if the speaker count result data shows that there are multiple speakers, the audio data without background music is separated and imported into the processing software (such as Spleeter). Spleeter is used to automatically analyze the audio and identify different sound sources. After the processing is completed, a mono voice data set containing multiple mono voices will be obtained, where the mono voice data set contains several mono voice data, that is, each mono channel contains the voice of an independent sound source.
[0050] S125: Acquire the current host audio fingerprint data, and perform host voice matching on the mono voice data set according to the current host audio fingerprint data to obtain the host voice data;
[0051] Specifically, before the live broadcast begins, use a microphone to actively record the audio data of the current host, and use tools such as Shazam or ACRCloud to extract the audio fingerprint of the current host's audio data to obtain the current host's audio fingerprint data. Use the current host's audio fingerprint data as a reference and use audio comparison software to match the mono voice data set. The software will analyze the characteristics of each mono voice and compare it with the host's audio fingerprint to find the best matching audio data, and finally obtain the host's voice data.
[0052] S126: Eliminate residual noise from the anchor's voice data to obtain clean human voice audio data.
[0053] Specifically, in Adobe Audition, a small audio sample containing only noise is selected from the host's voice data, and then the "Noise Reduction" effect is used to learn the characteristics of the noise. After learning is completed, the software will apply these parameters to the entire audio track of the host's voice data to eliminate noise, thereby obtaining clean human voice audio data.
[0054] The present invention helps to improve the clarity and purity of audio data by eliminating background music, making subsequent speech recognition and analysis more accurate and reliable. The speaker counting can accurately determine the vocalization of the live broadcaster, which helps to identify the situation of single or multiple speakers, provides guidance for subsequent audio processing, and ensures the accurate extraction of the live broadcaster's voice. When a single speaker is identified, the audio data without background music is directly used as the host's voice data, saving additional processing steps and improving processing efficiency and accuracy. For multiple speakers, a monophonic voice data set is obtained through voice separation, which helps to extract the independent voice information of each speaker. By matching the monophonic voice data set according to the current host audio fingerprint data, the host's voice information can be accurately extracted. The residual noise elimination improves the clarity and quality of the host's voice data, making subsequent speech recognition and analysis more accurate and reliable.
[0055] Preferably, S15 includes:
[0056] S151: performing word segmentation and part-of-speech tagging on the live broadcaster's valid text data to obtain live broadcaster's annotated valid text data;
[0057] Specifically, the live broadcaster's valid text data is input into the NLP tool. The tool splits the text according to delimiters (such as spaces and punctuation marks) to form a vocabulary list. Then, these words are tagged with parts of speech, and a part-of-speech tag is added to each word to obtain the live broadcaster's tagged valid text data. For example, for the sentence "The live broadcaster behaves very professionally in the live broadcast", the word segmentation result is ["live broadcaster", "in", "live broadcast", "in", "performance", "get", "very", "professional"], and the part-of-speech tagging result is ["noun", "preposition", "verb", "adverb", "adverb", "verb", "adverb", "adjective"].
[0058] S152: extracting semantic features from the live broadcaster's annotated valid text data to obtain a live broadcaster's valid semantic vector;
[0059] Specifically, a pre-trained word embedding model is selected, such as Google's Word2Vec model. Then, the vocabulary list of the live broadcaster's annotated valid text data is input into the word embedding model, and the model will generate a vector representation for each vocabulary. Next, these vectors are aggregated, such as taking the average or weighted sum, to form a semantic vector for the entire text, that is, the live broadcaster's effective semantic vector. For example, for a sentence's vocabulary list, the vector set obtained by the Word2Vec model may include [vector 1, vector 2, ..., vector n], and the semantic vector of the sentence is obtained by calculating the average of these vectors.
[0060] S153: performing similarity calculation on the effective semantic vector of the live broadcaster according to a preset language attribute corpus to obtain a semantic-attribute similarity matrix, wherein the preset language attribute corpus includes a feeling corpus, an emotional corpus, a professional corpus, a logical corpus, a story corpus, an interactive corpus, a guiding corpus, an introductory corpus, a recommended corpus and a logical corpus;
[0061] Specifically, a preset language attribute corpus is obtained, each corpus represents a language attribute, such as feeling type and emotional type. Then, the text in the corpus is converted into a vector form using the same word embedding model as step S152. Next, the similarity between the semantic vector of the live broadcaster and each corpus vector is calculated. For example, the cosine similarity formula is used to calculate the cosine value of the angle between the two vectors to obtain a similarity score. These scores are organized into a matrix, in which the rows represent the corpus, the columns represent the text data of the live broadcaster, and each element in the matrix is a similarity score, thereby obtaining a semantic-attribute similarity matrix.
[0062] S154: performing graph-theoretic clustering on the live broadcaster's effective semantic vectors based on the semantic-attribute similarity matrix to obtain live broadcaster's effective semantic clustering result data;
[0063] Specifically, first, a weighted graph is constructed based on the semantic-attribute similarity matrix, in which each node represents a text data point (such as a sentence or phrase), and the edge weights between nodes are determined by the similarity score. Then, the spectral clustering algorithm is used to determine the clustering structure of the nodes by calculating the eigenvectors of the Laplacian matrix of the graph. During the clustering process, the algorithm will identify tightly connected groups of nodes that represent text data sets with similar semantic features. By setting an appropriate clustering threshold or number of iterations, the final clustering result can be obtained. Each clustering result will contain a group of text data points with common semantic attributes, forming effective semantic clustering result data for live broadcasters.
[0064] S155: Perform language attribute classification and statistics on the live broadcaster's effective semantic clustering result data to obtain language attribute distribution data.
[0065] Specifically, first, the text data points in each clustering result of the live broadcaster's effective semantic clustering result data are reviewed by manual analysis or by using a machine learning classifier to identify its main language attribute characteristics. For example, if most of the sentences in a clustering result contain explanatory expressions, this cluster will be classified as "explanatory type". Next, the number of clusters or text data points in each language attribute category is counted. This is achieved by creating a language attribute distribution matrix, in which rows represent different language attribute categories, columns represent different clusters or text data points, and the elements in the matrix represent the results of the classification statistics. Finally, by analyzing the distribution matrix, the distribution of each language attribute in the live broadcaster's text data can be obtained, including their frequency or proportion of occurrence, thereby obtaining language attribute distribution data.
[0066] The present invention helps to perform more detailed semantic analysis on the live broadcaster's effective text data through word segmentation and part-of-speech tagging, thereby improving the ability to understand and process text data. Through semantic feature extraction, key semantic information can be extracted from the live broadcaster's annotated effective text data, which helps to deeply understand the live broadcaster's language characteristics and expressions. By performing similarity calculation on the live broadcaster's effective semantic vector according to a preset language attribute corpus, the similarity between the live broadcaster's semantics and various language attributes can be accurately evaluated. Through graph clustering, cluster analysis is performed on the live broadcaster's effective semantic vectors, which can effectively classify similar semantic features into the same category. By performing language attribute classification statistics on the live broadcaster's effective semantic clustering result data, the distribution of various language attributes in the live broadcaster's language expression can be accurately counted, which helps to fully understand the live broadcaster's language characteristics and expression style.
[0067] Preferably, the range and speech rate analysis module S2 includes:
[0068] S21: Perform spectral additive filtering enhancement on the live broadcaster's audio data to obtain live broadcaster enhanced audio data;
[0069] Specifically, the live broadcaster audio data is imported into a programming environment such as a signal processing module in Python's scipy library. A filter design function such as butter or cheby1 in the scipy.signal module is used to create a filter, and the lfilter function is applied to filter the live broadcaster audio data. The processed audio data will have clearer sound characteristics, thereby obtaining live broadcaster enhanced audio data.
[0070] S22: extracting the fundamental frequency trajectory of the live broadcaster's enhanced audio data to obtain the fundamental frequency trajectory data of the live broadcaster's audio;
[0071] Specifically, the live broadcaster enhanced audio data is preprocessed, such as sampling rate conversion and window function application, to prepare the data for fundamental frequency detection. Then, the pitches function in the librosa library in Python is used, which can apply algorithms such as YIN (an algorithm for estimating the fundamental frequency of an audio signal) to detect the fundamental frequency of the audio signal. By analyzing the fundamental frequency changes of the audio signal in the time series, the live broadcaster audio fundamental frequency trajectory data can be obtained, which reflects the pitch changes of the live broadcaster at different time points.
[0072] S23: performing vocal range statistics on the live broadcaster based on the audio fundamental frequency trajectory data of the live broadcaster to obtain the vocal range data of the live broadcaster;
[0073] Specifically, it is achieved by simply scanning the fundamental frequency trajectory data and finding the minimum and maximum values. Then, based on these extreme values, the width of the range is calculated, that is, the difference between the highest pitch and the lowest pitch, so as to obtain the live broadcaster's range data.
[0074] S24: segmenting the live broadcaster's audio data into pronunciation units to obtain the live broadcaster's pronunciation unit sequence data, and performing voice activity detection on the live broadcaster's audio data to obtain the live broadcaster's voice segmentation data;
[0075] Specifically, use Praat or Python's librosa library to load the live broadcaster's audio data. Use the algorithms of these tools to perform frame segmentation on the audio signal of the live broadcaster's audio data, that is, to divide the continuous audio signal into short segments. Next, extract features from each frame of audio, such as Mel-frequency cepstral coefficients (MFCCs), which can reflect the pronunciation characteristics of the audio signal. Then, apply the voice activity detection algorithm Gaussian mixture model (GMM) to distinguish between speech frames and non-speech frames, and obtain the live broadcaster's voice segmentation data, that is, mark which parts of the audio are speech and which parts are non-speech.
[0076] S25: Obtain a pronunciation rate reference table, and estimate the speaker's speaking rate based on the pronunciation rate reference table, the speaker's pronunciation unit sequence data, and the speaker's voice segmentation data to obtain the speaker's speaking rate data, wherein the speaker's speaking rate data includes byte speaking rate data and pronunciation unit speaking rate data.
[0077] Specifically, a pronunciation rate reference table is obtained by manual entry, which can be a database containing the average time required for each phoneme or word in different languages or dialects. The reference table provides standard pronunciation rates in different language environments based on previous experimental data. Then, the number of phonemes or words in the pronunciation unit sequence data of the live broadcaster and the actual pronunciation time corresponding to these phonemes or words are counted. This can be achieved by analyzing the speech segmentation data, that is, measuring the duration of each pronunciation unit or word. Next, the pronunciation rate reference table is used to estimate the baseline speaking rate of the live broadcaster. For example, if the reference table indicates that the average pronunciation rate in a language environment is 3 phonemes per second, and the live broadcaster actually sends 4 phonemes in the same time, then the live broadcaster's speaking speed is faster than the benchmark. Finally, the byte speaking rate data and pronunciation unit speaking rate data of the live broadcaster are calculated. The byte speaking rate data refers to the number of phonemes emitted per second, while the pronunciation unit speaking rate data refers to the number of syllables or words emitted per second, thereby obtaining the live broadcaster's speaking rate data.
[0078] The present invention helps to improve the clarity and audibility of audio data through spectral additive filtering enhancement. The fundamental frequency information in the audio can be accurately extracted through fundamental frequency trajectory extraction, which is helpful for statistical analysis of the vocal range of the live broadcaster. By performing vocal range statistics based on the audio fundamental frequency trajectory data of the live broadcaster, the vocal range and distribution of the live broadcaster can be accurately evaluated. Pronunciation unit segmentation and voice activity detection help to segment the audio data into voice activity segments and non-voice activity segments, and extract the pronunciation unit sequence data of the live broadcaster. By estimating the speaking speed of the live broadcaster according to the pronunciation rate reference table and the pronunciation unit sequence data and voice segmentation data of the live broadcaster, the speaking speed data of the live broadcaster is obtained. These data include byte speech rate data and pronunciation unit speech rate data, which help to evaluate the language expression speed and sense of rhythm of the live broadcaster.
[0079] Preferably, the sentiment analysis module S3 includes:
[0080] S31: Decode the live broadcast room video data to obtain a live broadcast room video frame sequence;
[0081] Specifically, FFmpeg is used through a command line tool to decode the video stream of the live broadcast room video data into an image sequence, thereby obtaining a live broadcast room video frame sequence.
[0082] S32: Performing video frame stabilization on the live broadcast room video frame sequence to obtain a stable video frame sequence of the live broadcast room;
[0083] Specifically, OpenCV is used to analyze the motion in the live video frame sequence, and the optical flow algorithm (OpticalFlow) is applied to estimate the motion vector between frames, which helps to detect and track moving objects or feature points in the video. Then, a stable transformation matrix such as translation, rotation, or scaling is calculated based on the motion vector to align the feature points in consecutive frames. The warpAffine function in OpenCV is used to apply this transformation to each frame to achieve frame stabilization and obtain a stable video frame sequence in the live broadcast room.
[0084] S33: extracting representative face video frames from the stable video frame sequence in the live broadcast room to obtain the best clear face image frame;
[0085] Specifically, the Haar cascade classifier in OpenCV is used to identify the face area in the stable video frame sequence of the live broadcast room. The algorithm can mark the position and size of the face in each frame. Then, the quality of the face image detected in each frame is evaluated, such as clarity, contrast, and integrity of facial features. A quality scoring mechanism can be designed to assign a score to each frame of the face image. Then, the frame with the highest score is selected as the best clear face image frame.
[0086] S34: performing face recognition matching on the best clear face image frame and a preset live broadcaster face image library to obtain live broadcaster identity data, and extracting a corresponding live broadcaster exclusive micro-expression recognition model from a preset live broadcaster exclusive micro-expression recognition model library according to the live broadcaster identity data to obtain a live broadcaster exclusive micro-expression recognition model;
[0087] Specifically, an image library containing facial features of different broadcasters is collected and established. This image library will serve as a reference data set for face recognition (i.e., a preset live broadcaster facial image library). Next, the FaceRecognizer class in the OpenCV library is used to process the best clear face image frame. The identity of the broadcaster is identified by comparing this frame with the image in the facial image library. After successful recognition, the corresponding model is extracted from the preset live broadcaster-exclusive micro-expression recognition model library based on the obtained live broadcaster identity data. This model library is trained in advance based on the expression data of each live broadcaster, and automatic matching and extraction can be achieved by calling the retrieval system of the model library.
[0088] S35: Detect and track micro-expressions of the stable video frame sequence in the live broadcast room using a micro-expression recognition model exclusive to the live broadcaster, and obtain micro-expression time series data of the live broadcaster;
[0089] Specifically, video processing software or libraries, such as OpenCV, are used to process the stable video frame sequence of the live broadcast room frame by frame. For each frame, a micro-expression recognition model dedicated to the broadcaster is used to detect whether there is a micro-expression. Micro-expressions are short-lived, imperceptible changes in facial expressions that can reveal the true emotional state of the broadcaster. Then, if the model detects a micro-expression, the type of micro-expression, the time point of occurrence, and the duration of the micro-expression are recorded. These data will be used to construct the micro-expression time series data of the broadcaster, that is, a data sequence containing micro-expression features and time information.
[0090] S36: classifying and counting the emotions of the live streamer's micro-expression time series data to obtain the live streamer's emotion proportion data;
[0091] Specifically, the time series data of the micro-expressions of the live streamers are sorted in the Python Pandas library to ensure that each record contains the emotion category label and the start and end time of the corresponding emotion event. Subsequently, the duration is calculated for each event of each emotion category, which is obtained by simply subtracting the start time from the end time. In the Python Pandas library, the duration is calculated by the corresponding time series operation. Next, in order to obtain the proportion of each emotion in the entire live broadcast period, the total duration of each emotion is divided by the known total live broadcast time, which is completed in Pandas by proportion calculation. In addition, the statistics of emotion frequency are also necessary, which is achieved by counting the events of each emotion category. The value_counts function is used in Pandas to quickly obtain the number of occurrences of each emotion. Through these steps, the key data of the duration, proportion and frequency of the live streamer's emotions can be obtained. The live streamer's emotion proportion data is summarized according to the key numbers obtained.
[0092] S37: Calculate the emotional richness of the live streamer based on the live streamer's micro-expression time series data to obtain emotional richness distribution data.
[0093] Specifically, please refer to sub-step S375 for the specific processing flow of this embodiment.
[0094] The present invention obtains a live broadcast room video frame sequence through video decoding, provides an accurate video data basis for subsequent video frame stabilization and face representative video frame extraction, and ensures the accuracy and reliability of emotional analysis. Video frame stabilization helps to reduce the jitter and shake of video frames, improves video quality and clarity, and makes subsequent face recognition and micro-expression detection more accurate and reliable. By extracting the best clear face image frame, the object accuracy of emotional analysis is ensured, which helps to improve the credibility and accuracy of emotional analysis. Through face recognition matching, the identity data of the live broadcaster is obtained, and the exclusive micro-expression recognition model of the live broadcaster is extracted, which ensures the object accuracy and personalized analysis of emotional analysis, and improves the pertinence and accuracy of emotional analysis. By using the exclusive micro-expression recognition model of the live broadcaster to detect and track the stable video frame sequence, the micro-expression time series data of the live broadcaster is obtained, which helps to deeply understand the emotional changes and expressions of the live broadcaster, and improves the meticulousness and depth of emotional analysis. By performing emotional classification and statistics on the micro-expression time series data, the emotional proportion data of the live broadcaster is obtained, which can accurately evaluate the emotional state of the live broadcaster and help to fully understand the emotional expression characteristics of the live broadcaster. By calculating the emotional richness of the live streamer based on the time series data of his / her micro-expressions, we can obtain the emotional richness distribution data, which helps to evaluate the richness and changing patterns of the live streamer's emotional expression and improves the depth and accuracy of emotional analysis.
[0095] Preferably, the preset live streamer-specific micro-expression recognition model library contains a plurality of live streamer-specific micro-expression recognition models, wherein the live streamer-specific micro-expression recognition model has a unique corresponding relationship with the live streamer, and the specific construction process of the live streamer-specific micro-expression recognition model includes:
[0096] S3401: Get a list of emotion categories;
[0097] Specifically, an emotion category list is obtained through manual entry, and the emotion category list includes multiple emotion categories, such as happiness, sadness, anger, surprise, fear, and disgust.
[0098] S3402: collecting facial expression images of each emotion of the live broadcaster according to the emotion category list to obtain a facial expression image set of the live broadcaster, wherein the facial expression image set of the live broadcaster includes a plurality of facial expression images of the live broadcaster, and the facial expression images of the live broadcaster correspond to the emotion categories in the emotion category list one by one;
[0099] Specifically, according to the list of emotion categories, the live broadcaster is guided to show the facial expression of each emotion in turn. Static image acquisition is adopted, that is, the live broadcaster is asked to maintain a certain emotional expression for a few seconds, and multiple photos are taken continuously. The clearest photo among the photos taken is used as the representative emotional facial expression image of the corresponding emotion category, and the corresponding emotion category is labeled for it. After traversing the emotion categories in the emotion category list in turn, a live broadcaster facial expression image set is finally obtained, wherein the live broadcaster facial expression image set contains a plurality of live broadcaster facial expression images, and the live broadcaster facial expression images correspond to the emotion categories in the emotion category list one by one.
[0100] S3403: Detect and annotate facial key points of the live broadcaster's facial expression image to obtain facial key point annotated data;
[0101] Specifically, use the dlib or face_recognition module in the OpenCV library to identify the key points in each live broadcaster's facial expression image. These tools can automatically detect facial features in the image and mark the corresponding key points on the image. Use image annotation software, such as LabelImg, to manually edit and confirm the location of the key points. Finally, save the facial key point annotation data, which usually includes the coordinates of each key point and related feature descriptions.
[0102] S3404: performing affine transformation data augmentation on the corresponding live broadcaster's facial expression image according to the facial key point annotation data to obtain an augmented facial expression image set, wherein the augmented facial expression image set includes a plurality of augmented facial expression images with the same emotion;
[0103] Specifically, according to the facial key point annotation data, image processing software or programming library, such as OpenCV, is used to perform affine transformation on the corresponding live broadcaster's facial expression image. Affine transformation includes but is not limited to translation, rotation, scaling and shearing operations, which can change the geometric properties of the image without changing the facial expression features. Then, a series of affine transformation parameters, such as rotation angle and scaling ratio, are designed to generate facial expression images of different variants. Next, these transformation parameters are applied to the original image to generate an augmented facial expression image. Each original image can generate multiple transformed images according to the designed parameter set, thereby forming an augmented facial expression image set.
[0104] S3405: traverse the live broadcaster's facial expression image set, execute S3403-S3404, and thus obtain several sets of augmented facial expression image sets;
[0105] Specifically, a preset automated script is used to sequentially process each image in the live broadcaster's facial expression image set. The script will perform key point detection and annotation on each image in turn, and then apply affine transformation according to the annotation results. Then, for each image, different affine transformation parameter sets are repeatedly applied to generate multiple sets of augmented facial expression image sets. Each set of augmented facial expression image sets will contain several facial expression images with the same emotion but with different transformations. Finally, the generated augmented images are saved in the corresponding image set, and each set of augmented facial expression image sets is associated with a specific original image and emotion category.
[0106] S3406: Obtaining a dictionary of emotional importance levels;
[0107] Specifically, the emotion importance level dictionary is obtained through manual entry. For example, a rating scale from 1 to 10 may be set, where 10 represents the most important emotion category.
[0108] S3407: dividing each group of augmented facial expression image sets into image sets according to the emotion importance level dictionary and the preset importance level image set division ratio, to obtain multiple groups of facial expression training image sets, multiple groups of facial expression verification image sets, and multiple groups of facial expression test image sets;
[0109] Specifically, first, according to the emotion importance level dictionary, determine the proportion of each emotion category in the image set. For example, for more important emotion categories, more images need to be allocated to the training set. Then, according to the preset importance level image set division ratio (such as 70% training set, 15% validation set and 15% test set), use a programming language (such as Python) to randomly divide the corresponding group of augmented facial expression image sets, while ensuring that the proportion of images of each emotion category in each set meets the preset requirements. This ratio can be adjusted according to actual needs and experience. Finally, multiple groups of facial expression training image sets, multiple groups of facial expression verification image sets and multiple groups of facial expression test image sets are obtained.
[0110] S3408: Use multiple sets of facial expression training image sets, multiple sets of facial expression verification image sets and multiple sets of facial expression test image sets to perform model training on a preset attention mechanism-based generative adversarial network to obtain a micro-expression recognition model exclusive to the live broadcaster.
[0111] Specifically, a suitable attention-based generative adversarial network (GAN) architecture, such as DCGAN or WGAN, is selected as the basis of the micro-expression recognition model. Then, multiple sets of facial expression training image sets are used to train the generator and discriminator of the GAN. The generator is responsible for generating realistic facial expression images, while the discriminator is responsible for distinguishing between real images and generated images. Next, the facial expression verification image set is used to adjust and optimize the parameters of the model, such as learning rate and batch size. Finally, the facial expression test image set is used to evaluate the final performance of the model, including recognition accuracy, recall rate, and F1 score indicators. Ensure that the model has good recognition capabilities on various emotion categories, especially those marked as important in the emotion importance level dictionary, and finally obtain a micro-expression recognition model exclusive to live broadcasters.
[0112] The present invention helps to clarify the type of emotion to be identified by obtaining a list of emotion categories, provides a clear direction and goal for subsequent image acquisition and model training, and ensures the pertinence and effectiveness of the model. By collecting facial expression images of each emotion of the live broadcaster, a facial expression image set corresponding to the emotion category is established, providing rich emotion expression samples for model training. Through key point detection and affine transformation data augmentation, the diversity and richness of the training data are increased, making the model more robust and generalizable, and improving the recognition accuracy of the model for facial expressions under different postures and lighting conditions. By traversing the facial expression image set of the live broadcaster, multiple groups of augmented facial expression image sets are obtained, which further enriches the diversity and quantity of the training data and helps to improve the training effect and generalization ability of the model. By dividing the ratio according to the emotional importance level dictionary and the preset importance level image set, multiple groups of training, verification and test image sets are obtained, which can effectively evaluate the performance and generalization ability of the model and improve the stability and reliability of the model. Using multiple groups of image sets to train the generative adversarial network based on the attention mechanism, a live broadcaster-exclusive micro-expression recognition model is obtained, which helps to improve the model's accurate recognition ability of the live broadcaster's micro-expressions.
[0113] Preferably, S37 includes:
[0114] S371: segmenting the micro-expression time series data of the live broadcaster by expression breakpoints according to a preset time segmentation window to obtain a micro-expression segment set of the live broadcaster, wherein the micro-expression segment set of the live broadcaster includes a plurality of micro-expression segments of the live broadcaster;
[0115] Specifically, determine the size of the preset time segmentation window, for example, select 1 minute or 2 minutes as the duration of a window. Use FFmpeg or OpenCV to traverse the micro-expression time series data of the live broadcaster. Segment the video frames according to the time window to ensure that each segmented segment contains continuous video frames, thereby obtaining a live broadcaster micro-expression segment set, wherein the live broadcaster micro-expression segment set contains several live broadcaster micro-expression segments.
[0116] S372: extracting emotion categories from each micro-expression segment of the live broadcaster in the micro-expression segment set to obtain a sequence set of emotion categories of the live broadcaster;
[0117] Specifically, the emotion annotations of each micro-expression clip of the live broadcaster in the micro-expression clip set are counted. Spreadsheet software (Microsoft Excel) or data analysis software (Python Pandas library) is used to calculate the number and order of occurrences of emotion categories in each micro-expression clip of the live broadcaster, thereby obtaining a sequence set of emotion categories of the live broadcaster.
[0118] S373: using the live broadcaster emotion category sequence set to emotion-label each live broadcaster micro-expression segment in the live broadcaster micro-expression segment set, to obtain a live broadcaster emotion labeling sequence set;
[0119] Specifically, the live broadcaster's micro-expression clip set is opened using video analysis software, and each clip is reviewed one by one. For each clip, its emotion category is determined according to the emotion category sequence set, and this category is recorded in the metadata of the clip. After completing the emotion labeling of all clips, the labeling information is organized into the live broadcaster's emotion labeling sequence set.
[0120] S374: counting emotion changes of each micro-expression segment of the live broadcaster in the micro-expression segment set according to the live broadcaster emotion annotation sequence set, and obtaining a frequency set of emotion changes of the live broadcaster;
[0121] Specifically, the set of live broadcaster micro-expression segments is traversed, and for each continuous segment in the sequence set, the number of times the live broadcaster's emotion category changes in each live broadcaster's micro-expression segment is counted according to the live broadcaster's emotion annotation sequence set, so as to obtain the live broadcaster's emotion change frequency set; for example, in a live broadcaster's micro-expression segment, the live broadcaster's emotion changes from joy to excitement, and then from excitement to surprise, then the live broadcaster's emotion change frequency of the segment is determined to be 2 times / min.
[0122] S375: Perform distribution modeling on the live broadcaster's emotion change frequency set to obtain emotion richness distribution data.
[0123] Specifically, arrange the frequency set of the live broadcaster's emotion changes in chronological order to ensure that the number of emotion changes in each time unit or time period is recorded and sorted. Determine the size of the time window for analysis. For example, it can be divided according to each hour, half hour or custom time period of the live broadcast. In each time window, count the number of emotion changes in all micro-expression fragments in the window to obtain the frequency of emotion changes in the time period. Analyze the distribution characteristics of the frequency of emotion changes in different time windows, including the central tendency, discreteness and skewness of the frequency. Select the Poisson distribution statistical distribution model to fit the data of the frequency of emotion changes. According to the fitted distribution model, calculate the emotion richness indicators, such as the diversity of emotion changes and the fluctuation range of frequency. Finally, the emotion richness distribution data is obtained.
[0124] The present invention performs expression breakpoint segmentation on the micro-expression time series data of the live broadcaster according to a preset time segmentation window, which can better analyze the micro-expressions, divide the long micro-expression sequence into multiple segments, and improve the resolution and accuracy of emotional changes. By extracting the emotion category of each live broadcaster micro-expression segment in the live broadcaster micro-expression segment set, it is helpful to extract the number of times the emotion appears in the time dimension from the live broadcaster micro-expression segment. Through emotion annotation, the emotion expressed by each micro-expression segment can be accurately identified, which provides an accurate basis for the calculation of the frequency of emotional changes. By counting the emotional changes of each micro-expression segment in the micro-expression segment set according to the emotion annotation sequence set, it is helpful to understand the changing rules and frequency of the live broadcaster's emotions. By performing distribution modeling on the emotion change frequency set, it is possible to quantify the changes in the emotions of the live broadcaster, provide an accurate data basis for the comprehensive evaluation of the emotions of the live broadcaster, and help understand the emotional expression characteristics and emotional change rules of the live broadcaster.
[0125] Preferably, the bullet comment analysis module S4 includes:
[0126] S41: performing a normalization process on the bullet chat interaction data to obtain normalized bullet chat timestamp data;
[0127] Specifically, for example, if the original timestamp of the bullet comment interaction data includes year, month, day, hour, minute, and second, and the analysis only needs to be done to the minute or second level, use a date and time processing library, such as Python's datetime module, to convert the timestamp to the required format. First, parse the original timestamp data into a datetime object, and then extract the minute or second value as needed as the normalized timestamp, thereby obtaining the normalized bullet comment timestamp data.
[0128] S42: Calculate the average barrage frequency of the live broadcast room according to the normalized barrage timestamp data and the barrage interaction data to obtain average barrage frequency data;
[0129] Specifically, for example, in Python, the Pandas library is used to process the normalized barrage timestamp data, the data is resampled through the resample method, and then the number of barrages in each time interval (such as 1 minute) is calculated, and finally the average is taken to obtain the average barrage frequency.
[0130] S43: Draw a barrage frequency sequence for the live broadcast room according to the normalized barrage timestamp data and the barrage interaction data to obtain a barrage frequency sequence line graph;
[0131] Specifically, in the programming environment Python, create a data pair based on the normalized bullet chat timestamp and the bullet chat number data. Then, use Python's Matplotlib library to draw a line chart. In Python, use Matplotlib's plot function to plot time series data, and use the show function to display the chart. The X-axis of the line chart represents time (normalized timestamp), and the Y-axis represents the number of bullet chats. By observing the fluctuations of the line chart, you can understand the density and changing trend of the bullet chat activity. Thus, a bullet chat frequency series line chart is obtained.
[0132] S44: Based on the barrage frequency sequence line graph, the barrage frequency peak jump statistics of the live broadcast room are performed according to the preset time window scale to obtain the barrage peak jump frequency data;
[0133] Specifically, define the criteria for "peak jump", for example, set it as a sudden increase in the number of barrages exceeding a certain percentage or absolute value threshold. Use chart analysis tools, such as Excel or Python's Matplotlib, to conduct a detailed review of the barrage frequency series line chart. According to the preset time window scale (such as every minute or every 5 minutes), check the peak number of barrages in each window. Determine the event of peak jump and set a threshold, such as the number of barrages increasing by more than 50% compared with the previous time window. Record the time and number of barrages of each peak jump, as well as the frequency of the event during the live broadcast, so as to obtain the barrage peak jump frequency data.
[0134] S45: extracting the peak value of the bullet screen and the corresponding time point from the bullet screen frequency sequence line graph to obtain a bullet screen frequency peak sequence and a bullet screen peak timestamp sequence;
[0135] Specifically, we use NumPy and Matplotlib libraries to identify the peak points in the barrage frequency series line graph, which represent the local maximum of the number of barrages. We record the number of barrages and the corresponding timestamp for each peak point. We create two sequences: one containing the number of all peak barrages and the other containing the corresponding timestamps. Finally, we get the barrage frequency peak sequence and the barrage peak timestamp sequence.
[0136] S46: Calculate the peak fluctuation ratio of the bullet screen according to the average bullet screen frequency data and the peak sequence of the bullet screen frequency to obtain distribution data of the peak fluctuation ratio of the bullet screen;
[0137] Specifically, the average barrage frequency data is used as a benchmark. For each peak barrage volume, calculate its ratio to the average barrage frequency, and this ratio is the fluctuation ratio. Using the Pandas library in Python, create a data frame (DataFrame), and use the average barrage frequency data and the barrage frequency peak sequence as columns of the data frame. Use the Pandas library in Python to operate the data frame, calculate the fluctuation ratio of each peak value through simple division, and finally obtain the barrage peak fluctuation ratio distribution data.
[0138] S47: Identify audience questions on the bullet screen interaction data to obtain an audience question dataset;
[0139] Specifically, use text analysis tools or natural language processing (NLP) libraries, such as Python's NLTK or spaCy, to process the bullet text data in the bullet interaction data. Define question recognition rules to identify questions. Question recognition rules include keyword recognition (such as "what", "how", "why"). Apply the defined rules to analyze each bullet, and mark the bullets that are identified as questions. Collect the identified question data to form a dataset of audience questions.
[0140] S48: Automatically perform speech recognition on the clean human voice audio data to obtain the live broadcaster's text transcription data, and calculate the interactive response rate of the live broadcast room based on the live broadcaster's text transcription data and the audience question data set to obtain the barrage interactive response rate data.
[0141] Specifically, the Google Speech-to-Text API is used to transcribe the live broadcaster's net human voice audio data to obtain the live broadcaster's text transcription data. The live broadcaster's text transcription data is matched with the audience question data set. This can be achieved by finding whether the live broadcaster's text directly answers the audience's questions. For each identified question, check whether there is a corresponding answer in the live broadcaster's subsequent speech. Set a time threshold, such as answers within one minute after the question is considered a valid interactive response. Record the number of valid interactive responses, that is, the number of audience questions actually answered by the live broadcaster. Calculate the barrage interactive response rate by dividing the number of valid interactive responses by the total number of questions. For example, in Excel, you can use the formula: Barrage interactive response rate data = number of valid responses ÷ total number of questions.
[0142] The present invention uses normalization processing to make the timestamp of the barrage data have a unified scale, which helps to improve the comparability and accuracy of the data. By calculating the average barrage frequency data, it can help understand the overall barrage interaction in the live broadcast room. By drawing a line graph of the barrage frequency sequence, the changing trend of the barrage is intuitively displayed, which helps to discover the high and low changing rules of the barrage activity. By counting the peak jump of the barrage frequency in the preset time window, it is helpful to find the sudden change of the barrage activity in the live broadcast room, and improve the perception of the change of the live interactive activity. By extracting the peak value and corresponding time point of the barrage frequency, it is helpful to understand the peak moment of the barrage interaction. By calculating the barrage peak fluctuation ratio according to the average barrage frequency data and the barrage frequency peak sequence, it is helpful to understand the fluctuation of the barrage activity, and provide quantitative data support for evaluating the quality of live interactive. By identifying the audience's questions, the focus and questions of the audience in the live broadcast room can be understood. By obtaining the live broadcaster's text transcription data through automatic speech recognition, and calculating the interactive response rate in combination with the audience's question data set, the efficiency and quality of the host's response to the audience's questions can be evaluated, providing guidance for improving the live interactive experience.
[0143] Preferably, the live broadcast type determination module S5 includes:
[0144] S51: performing speech segmentation and speech enhancement on the live broadcaster audio data to obtain a sequence of enhanced live broadcaster speech segments, and performing automatic speech recognition on the sequence of enhanced live broadcaster speech segments to obtain a sequence of live broadcaster speech text segments;
[0145] Specifically, Adobe Audition is used to reduce noise and cancel echoes on the live broadcaster's audio data. Praat or Python's librosa library is used to perform speech segmentation, and the non-speech parts (such as background music or long periods of silence) in the live broadcaster's audio data are removed from the audio, thereby obtaining a sequence of enhanced live broadcaster's speech segments. Google Cloud Speech-to-Text is used to recognize the sequence of enhanced live broadcaster's speech segments, and the speech is converted into text data, thereby obtaining a sequence of live broadcast speech text segments.
[0146] S52: performing topic classification on the live broadcast voice text segment sequence to obtain a live broadcaster voice topic label sequence;
[0147] Specifically, topic modeling techniques, such as Latent Dirichlet Allocation (LDA) or Non-negative Matrix Factorization (NMF), are applied to identify the main topics in the live speech text segment sequence. Using support vector machine (SVM) or random forest, the model is trained to classify the live speech text segments, and a topic label is assigned to each text segment based on the training results. The topic labels of all text segments are collected to form a sequence of live broadcaster speech topic labels.
[0148] S53: performing video decoding on the live broadcast room video data to obtain a live broadcast room video frame sequence, and performing visual scene recognition on the live broadcast room video frame sequence to obtain a live broadcast scene classification result sequence;
[0149] Specifically, use FFmpeg to decode the live video data, extract the video frame sequence, and obtain the live video frame sequence. Prepare a labeled scene dataset containing different types of live content scenes, such as interpretation, interaction, and product display. Use TensorFlow or PyTorch to train a scene recognition model. This involves using a convolutional neural network (CNN) to learn features and patterns in video frames. Apply the trained model to the live video frame sequence for real-time or batch scene recognition. For each video frame, the model will output a scene category label, such as "product display" or "explanatory content". Arrange the recognition results in the order of the video frames to construct a sequence of live scene classification results. This can be achieved through programming, associating the recognition results of each frame with a timestamp to form an ordered dataset, and finally obtaining a sequence of live scene classification results.
[0150] S54: performing a multimodal content fusion analysis on the live broadcast room based on the live broadcaster voice topic label sequence and the live broadcast scene classification result sequence to obtain a live broadcast content label sequence;
[0151] Specifically, the live broadcaster's voice topic label sequence is time-synchronized with the live broadcast scene classification result sequence, through the method of timestamp or frame alignment. For example, the voice topic label from the 10th minute to the 15th minute is "product introduction", while the scene classification result of the same time period is "product display". Then, a multimodal deep learning model is used to perform fusion analysis on the aligned data. For example, by combining the voice topic label of "product introduction" and the scene classification result of "product display", more descriptive live broadcast content labels such as "detailed product introduction" and "close-up product display" can be generated. Finally, according to the results of the fusion analysis, the final live broadcast content label sequence is generated through a rule engine or classifier (such as a decision tree, support vector machine), for example, including "detailed product introduction", "user interactive question and answer", and "promotion close-up".
[0152] S55: performing content type mapping on the live content tag sequence according to a preset live content tag corresponding rule to obtain a live content type data set;
[0153] Specifically, define a mapping rule table to clarify how live content labels are mapped to specific content types. For example, the label "product display" corresponds to "sales content" live broadcasts, while "interactive content" corresponds to "interactive content" live broadcasts. Use if-elif-else statements or dictionary mappings in Python to implement the mapping process, and convert the live content label sequence into specific content types according to the mapping rule table. For each live content label, determine its corresponding content type and record it in the live content type dataset.
[0154] S56: Compare and match the language attribute distribution data, the live broadcaster's vocal range data, the live broadcaster's speaking speed data, the live broadcaster's emotion proportion data, the emotion richness distribution data, the barrage peak jump frequency data, the barrage peak fluctuation ratio distribution data, the barrage interaction reply rate data, and the live broadcast content type data set with the preset live broadcast type template library to obtain the live broadcast type data.
[0155] Specifically, for example, assuming that the language attribute distribution data is that the guiding speech accounts for 30%, the introduction speech accounts for 20%, the recommendation speech accounts for 20%, the logical speech accounts for 10%, the professional speech accounts for 10%, and the storytelling speech accounts for 10%; the live broadcaster's voice range data is medium volume and medium pitch; the live broadcaster's speech speed data is medium speech speed (120 words / minute); the live broadcaster's emotional proportion data is that the neutral expression accounts for 40%, the thinking expression accounts for 30%, and the surprised expression accounts for 30%; the emotional richness distribution data is that the emotional change is no more than 1 time / min; the barrage peak jump frequency data is 2 times / min; the barrage peak fluctuation ratio distribution data is that the change ratio is not large; the barrage interaction reply rate data is that the untimely reply rate is 40%; the live broadcast content type data set is 50% for product display, 40% for product selling point keywords, and 10% for other content. According to the above multi-dimensional data and the corresponding attribute parameters in the preset live broadcast type template library, a one-to-one comparison is made, and the highest matching degree is obtained as the peaceful type live broadcast, and the peaceful type live broadcast is recorded as the live broadcast type data. Among them, the preset live broadcast type template library includes atmosphere-type live broadcast, compound live broadcast, professional live broadcast, impromptu live broadcast, peaceful live broadcast, explanation-type live broadcast, and performance-type live broadcast.
[0156] The present invention helps to extract a clear sequence of live broadcaster voice segments by performing voice segmentation and enhancement on the live broadcaster audio data, provides good input conditions for subsequent voice recognition, and improves the accuracy of voice recognition. By subject-classifying the live broadcast voice text segment sequence, the topics or contents mainly discussed by the live broadcaster during the live broadcast process can be understood, providing an important basis for judging the live broadcast type, and enhancing the understanding and grasp of the live broadcast content. By performing visual scene recognition on the live broadcast room video data, the category of the live broadcast scene can be identified, and the multi-dimensional understanding ability of the live broadcast content can be improved. By fusing and analyzing the live broadcaster voice topic label sequence with the live broadcast scene classification result sequence, the voice content and visual content can be comprehensively considered, and more comprehensive data support can be provided for the comprehensive analysis of the live broadcast content. According to the preset live broadcast content label corresponding rules, the live broadcast content label sequence is mapped to the content type, which helps to convert the analysis results into specific live broadcast types, and improves the accurate judgment of the live broadcast content type. By comparing and matching the analysis results with the preset live broadcast type template library, the live broadcast type data can be obtained, which provides a quantitative basis for the final live broadcast type judgment, and improves the accuracy and reliability of the live broadcast type judgment.
[0157] Therefore, the embodiments should be regarded as illustrative and non-restrictive from all points, and the scope of the present invention is limited by the appended claims rather than the above description, and it is therefore intended that all changes falling within the meaning and range of equivalent elements of the application documents are included in the present invention.
[0158] The above description is only a specific embodiment of the present invention, so that those skilled in the art can understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but should conform to the widest scope consistent with the principles and novel features invented herein.
Claims
1. A non-commercial interactive live broadcast data intelligent analysis system, It is characterized in that Includes the following modules: The data collection module S1 is used to collect real-time multi-source data from the live broadcast room to obtain a live broadcast data set, where the live broadcast data set includes the live broadcaster's audio data, barrage interaction data, and live broadcast room video data; the language attribute distribution of the live broadcaster is calculated based on the live broadcaster's audio data to obtain language attribute distribution data; The voice range and speech speed analysis module S2 is used to identify the voice range and speech speed of the live broadcaster based on the live broadcaster's audio data, and obtain the voice range data and speech speed data of the live broadcaster; The emotion analysis module S3 is used to analyze the emotion proportion of the live broadcaster based on the live broadcast room video data to obtain the emotion proportion data of the live broadcaster; Calculate the emotional richness of the live streamer based on the live streaming video data to obtain emotional richness distribution data; The sentiment analysis module S3 specifically includes: S31: Decode the live broadcast room video data to obtain a live broadcast room video frame sequence; S32: Performing video frame stabilization on the live broadcast room video frame sequence to obtain a stable video frame sequence of the live broadcast room; S33: extracting representative face video frames from the stable video frame sequence in the live broadcast room to obtain the best clear face image frame; S34: performing face recognition matching on the best clear face image frame and a preset live broadcaster face image library to obtain live broadcaster identity data, and extracting a corresponding live broadcaster exclusive micro-expression recognition model from a preset live broadcaster exclusive micro-expression recognition model library according to the live broadcaster identity data to obtain a live broadcaster exclusive micro-expression recognition model; S35: Detect and track micro-expressions of the stable video frame sequence in the live broadcast room using a micro-expression recognition model exclusive to the live broadcaster, and obtain micro-expression time series data of the live broadcaster; S36: classifying and counting the emotions of the live streamer's micro-expression time series data to obtain the live streamer's emotion proportion data; S37: Calculate the emotional richness of the live streamer according to the micro-expression time series data of the live streamer to obtain emotional richness distribution data; S37 specifically includes: S371: segmenting the micro-expression time series data of the live broadcaster by expression breakpoints according to a preset time segmentation window to obtain a micro-expression segment set of the live broadcaster, wherein the micro-expression segment set of the live broadcaster includes a plurality of micro-expression segments of the live broadcaster; S372: extracting emotion categories from each micro-expression segment of the live broadcaster in the micro-expression segment set to obtain a sequence set of emotion categories of the live broadcaster; S373: using the live broadcaster emotion category sequence set to emotion-label each live broadcaster micro-expression segment in the live broadcaster micro-expression segment set, to obtain a live broadcaster emotion labeling sequence set; S374: counting emotion changes of each micro-expression segment of the live broadcaster in the micro-expression segment set according to the live broadcaster emotion annotation sequence set, and obtaining a frequency set of emotion changes of the live broadcaster; S375: Perform distribution modeling on the live streamer's emotion change frequency set to obtain emotion richness distribution data; The bullet screen analysis module S4 is used to analyze the peak value change of the bullet screen volume in the live broadcast room according to the bullet screen interaction data to obtain the bullet screen peak jump frequency data; calculate the bullet screen peak fluctuation ratio of the live broadcast room according to the bullet screen interaction data to obtain the bullet screen peak fluctuation ratio distribution data; analyze the bullet screen interaction of the live broadcast room based on the live broadcaster audio data and the bullet screen interaction data to obtain the bullet screen interaction reply rate data; the bullet screen analysis module S4 specifically includes: S41: performing a normalization process on the bullet chat interaction data to obtain normalized bullet chat timestamp data; S42: Calculate the average barrage frequency of the live broadcast room according to the normalized barrage timestamp data and the barrage interaction data to obtain average barrage frequency data; S43: Draw a barrage frequency sequence for the live broadcast room according to the normalized barrage timestamp data and the barrage interaction data to obtain a barrage frequency sequence line graph; S44: Based on the barrage frequency sequence line graph, the barrage frequency peak jump statistics of the live broadcast room are performed according to the preset time window scale to obtain the barrage peak jump frequency data; S45: extracting the peak value of the bullet screen and the corresponding time point from the bullet screen frequency sequence line graph to obtain a bullet screen frequency peak sequence and a bullet screen peak timestamp sequence; S46: Calculate the peak fluctuation ratio of the bullet screen according to the average bullet screen frequency data and the peak sequence of the bullet screen frequency to obtain distribution data of the peak fluctuation ratio of the bullet screen; S47: Identify audience questions on the bullet screen interaction data to obtain an audience question dataset; S48: Automatically perform speech recognition on the clean human voice audio data to obtain live broadcaster text transcription data, and calculate the interactive response rate of the live broadcast room based on the live broadcaster text transcription data and the audience question data set to obtain bullet screen interactive response rate data; The live broadcast type determination module S5 is used to identify the live broadcast content of the live broadcast room according to the live broadcaster audio data and the live broadcast room video data to obtain a live broadcast content type data set; determine the live broadcast type of the live broadcast room according to the language attribute distribution data, the live broadcaster's vocal range data, the live broadcaster's speech speed data, the live broadcaster's emotional proportion data, the emotional richness distribution data, the bullet screen peak jump frequency data, the bullet screen peak fluctuation ratio distribution data, the bullet screen interactive reply rate data and the live broadcast content type data set to obtain the live broadcast type data; the live broadcast type determination module S5 specifically includes: S51: performing speech segmentation and speech enhancement on the live broadcaster audio data to obtain a sequence of enhanced live broadcaster speech segments, and performing automatic speech recognition on the sequence of enhanced live broadcaster speech segments to obtain a sequence of live broadcaster speech text segments; S52: performing topic classification on the live broadcast voice text segment sequence to obtain a live broadcaster voice topic label sequence; S53: performing video decoding on the live broadcast room video data to obtain a live broadcast room video frame sequence, and performing visual scene recognition on the live broadcast room video frame sequence to obtain a live broadcast scene classification result sequence; S54: performing a multimodal content fusion analysis on the live broadcast room based on the live broadcaster voice topic label sequence and the live broadcast scene classification result sequence to obtain a live broadcast content label sequence; S55: performing content type mapping on the live content tag sequence according to a preset live content tag corresponding rule to obtain a live content type data set; S56: Compare and match the language attribute distribution data, the live broadcaster's vocal range data, the live broadcaster's speaking speed data, the live broadcaster's emotion proportion data, the emotion richness distribution data, the barrage peak jump frequency data, the barrage peak fluctuation ratio distribution data, the barrage interaction reply rate data, and the live broadcast content type data set with the preset live broadcast type template library to obtain the live broadcast type data.
2. The non-commercial interactive live broadcast data intelligent analysis system according to claim 1, It is characterized in that The data acquisition module S1 includes: S11: Real-time multi-source data collection is performed on the live broadcast room to obtain a live broadcast data set, where the live broadcast data set includes live broadcaster audio data, bullet screen interaction data, and live broadcast room video data; S12: removing background noise from the live broadcaster's audio data to obtain clean human voice audio data; S13: Performing automatic speech recognition on the clean human voice audio data to obtain text transcription data of the live broadcaster; S14: removing semantically irrelevant words from the live broadcaster's text transcription data to obtain valid text data of the live broadcaster; S15: Calculate the language attribute distribution of the live broadcaster according to the live broadcaster's valid text data to obtain language attribute distribution data.
3. The non-commercial interactive live broadcast data intelligent analysis system according to claim 2, It is characterized in that S12 includes: S121: removing background music from the live broadcaster's audio data to obtain audio data without background music; S122: Count the loudspeakers of the audio data without background music to obtain loudspeaker counting result data; S123: If the loudspeaker counting result data indicates that a single person is speaking, the audio data without background music is used as the anchor voice data, and S126 is executed; S124: if the loudspeaker counting result data indicates that multiple people are speaking, voice separation is performed on the audio data without background music to obtain a mono voice data set, wherein the mono voice data set includes a plurality of mono voice data; S125: Acquire the current host audio fingerprint data, and perform host voice matching on the mono voice data set according to the current host audio fingerprint data to obtain the host voice data; S126: Eliminate residual noise from the anchor's voice data to obtain clean human voice audio data.
4. The non-commercial interactive live broadcast data intelligent analysis system according to claim 2, It is characterized in that S15 includes: S151: performing word segmentation and part-of-speech tagging on the live broadcaster's valid text data to obtain live broadcaster's annotated valid text data; S152: extracting semantic features from the live broadcaster's annotated valid text data to obtain a live broadcaster's valid semantic vector; S153: performing similarity calculation on the effective semantic vector of the live broadcaster according to a preset language attribute corpus to obtain a semantic-attribute similarity matrix, wherein the preset language attribute corpus includes a feeling corpus, an emotional corpus, a professional corpus, a logical corpus, a story corpus, an interactive corpus, a guiding corpus, an introductory corpus, a recommended corpus and a logical corpus; S154: performing graph-theoretic clustering on the live streamer's effective semantic vectors based on the semantic-attribute similarity matrix to obtain live streamer effective semantic clustering result data; S155: Performing language attribute classification and statistics on the live broadcaster's effective semantic clustering result data to obtain language attribute distribution data.
5. The non-commercial interactive live broadcast data intelligent analysis system according to claim 1, It is characterized in that The range and speech speed analysis module S2 includes: S21: Perform spectral additive filtering enhancement on the live broadcaster's audio data to obtain live broadcaster enhanced audio data; S22: extracting the fundamental frequency trajectory of the live broadcaster's enhanced audio data to obtain the fundamental frequency trajectory data of the live broadcaster's audio; S23: performing vocal range statistics on the live broadcaster based on the audio fundamental frequency trajectory data of the live broadcaster to obtain the vocal range data of the live broadcaster; S24: segmenting the live broadcaster's audio data into pronunciation units to obtain the live broadcaster's pronunciation unit sequence data, and performing voice activity detection on the live broadcaster's audio data to obtain the live broadcaster's voice segmentation data; S25: Obtain a pronunciation rate reference table, and estimate the speaker's speaking rate based on the pronunciation rate reference table, the speaker's pronunciation unit sequence data, and the speaker's voice segmentation data to obtain the speaker's speaking rate data, wherein the speaker's speaking rate data includes byte speaking rate data and pronunciation unit speaking rate data.
6. The non-commercial interactive live broadcast data intelligent analysis system according to claim 1, It is characterized in that The preset live broadcaster exclusive micro-expression recognition model library contains several live broadcaster exclusive micro-expression recognition models, wherein the live broadcaster exclusive micro-expression recognition model has a unique corresponding relationship with the live broadcaster, and the specific construction process of the live broadcaster exclusive micro-expression recognition model includes: S3401: Get a list of emotion categories; S3402: collecting facial expression images of each emotion of the live broadcaster according to the emotion category list to obtain a facial expression image set of the live broadcaster, wherein the facial expression image set of the live broadcaster includes a plurality of facial expression images of the live broadcaster, and the facial expression images of the live broadcaster correspond to the emotion categories in the emotion category list one by one; S3403: Detect and annotate facial key points of the live broadcaster's facial expression image to obtain facial key point annotated data; S3404: performing affine transformation data augmentation on the corresponding live broadcaster's facial expression image according to the facial key point annotation data to obtain an augmented facial expression image set, wherein the augmented facial expression image set includes a plurality of augmented facial expression images with the same emotion; S3405: traverse the live broadcaster's facial expression image set, execute S3403-S3404, and thus obtain several sets of augmented facial expression image sets; S3406: Obtaining a dictionary of emotional importance levels; S3407: dividing each group of augmented facial expression image sets into image sets according to the emotion importance level dictionary and the preset importance level image set division ratio, to obtain multiple groups of facial expression training image sets, multiple groups of facial expression verification image sets, and multiple groups of facial expression test image sets; S3408: Use multiple sets of facial expression training image sets, multiple sets of facial expression verification image sets and multiple sets of facial expression test image sets to perform model training on a preset attention mechanism-based generative adversarial network to obtain a micro-expression recognition model exclusive to the live broadcaster.
