A non-contact method and system for detecting false audio of retained conversation
Through the non-contact audio detection method, the resonance change degree and contextual similarity analysis are used to improve the efficiency and accuracy of false audio detection, and solve the problem of low audio detection efficiency and accuracy in traditional methods.
Patent Information
- Application Number
- CN202411035296.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-07-31
AI Technical Summary
In non-contact audio detection methods, it is difficult to analyze subtle changes in the position of the target object, resulting in reduced accuracy and reliability in measuring psychophysiological characteristic parameters, and the efficiency and precision of traditional methods are low.
The non-contact false audio detection method of indwelling conversations is adopted. By collecting historical audio data and audio data to be detected, the local audio sequence is divided, the resonance change degree is constructed, the clustering is divided into two categories, and the emotion is calculated based on the context similarity and spectrogram difference. Fluctuation values and conversation confidence rates for fake audio detection.
It improves the efficiency and accuracy of false audio detection, reduces noise interference, and realizes personalized false audio detection.
Smart Images

Figure CN118588064B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of audio detection, and in particular to a contactless false audio detection method and system for retained conversations. Background Art
[0002] Any changes in human physiology will be associated with the physiological characteristics of the human body. In order to obtain comprehensive psychological and physiological information related to the human body, there have been many studies so far. Specifically known are contact methods and non-contact methods. Among them, the contact test method will cause the subjects to prepare in advance to conceal information before the test, and most people will have continuous stress and anxiety during the test. Therefore, the use of non-contact measurement methods can reduce the various problems and errors generated in the process of human state analysis and diagnosis.
[0003] However, when non-contact devices are measuring, the accuracy and reliability of measuring the target object's psychological and physiological characteristic parameters are reduced because it is extremely difficult to analyze the subtle changes in the target object's position in time and space.
[0004] Traditional non-contact emotion recognition devices often analyze historical relevant data of the person to be tested. Since there are many reference objects for comparison of the audio data of the person to be tested, a large number of useless and influential steps will occur when comparing the audio data of the person to be tested, resulting in low audio detection efficiency and accuracy. Summary of the invention
[0005] In order to solve the technical problem of low audio detection efficiency and accuracy, the present application provides a non-contact false audio detection method and system for retained conversations. The technical solution adopted is as follows:
[0006] In a first aspect, the present application proposes a non-contact method for detecting false audio of retained conversation, the method comprising the following steps:
[0007] Collect all historical audio data of the person to be tested and the audio data to be tested;
[0008] Each historical audio data and the audio data to be detected are divided into corresponding local audio sequences, and the resonance variation between the local audio sequences is constructed according to the difference between the resonance peaks in the local audio sequences;
[0009] Each audio data is clustered into two categories by resonance change degree, and a test audio set of the test person is determined in the test audio data according to the similarity between the test audio data and each category of the historical audio data;
[0010] Acquire the historical audio collection by acquiring the audio collection to be tested, obtain the context similarity between the audio collection to be tested and the historical audio collection according to the similarity between the texts corresponding to the audio collection to be tested and the historical audio collection and the matching degree of words, and filter the reference audio data according to the context similarity;
[0011] The emotion fluctuation value of the person to be tested is calculated based on the length of the text corresponding to the reference audio data and the audio data to be tested and the time characteristics of the audio set; the conversation confidence rate is constructed based on the difference in fluctuations in the spectrum graph of the reference audio set and the audio set to be tested and the similarity of the audio sets combined with the emotion fluctuation value, and false audio detection is completed based on the conversation confidence rate.
[0012] In the above scheme, the audio data sequence is analyzed according to the audio signal characteristics of the person to be tested in the audio database, the frequency spectrum of the audio signal is analyzed based on the differences in the speaking habits of different persons and the characteristics of the person to be tested, and the resonance change degree of the audio data sequence is constructed, thereby completing the extraction of the audio set to be tested in the audio data, completing the construction of context similarity based on the text data corresponding to the audio set to be tested and keyword matching, and then obtaining the historical audio set in the audio database, and adaptively constructing the conversation confidence rate based on the changes in the time-frequency domain characteristics of the historical audio set and the audio set to be tested, and completing the detection of false audio of the conversation based on the conversation confidence rate, thereby completing the personalized false audio detection of the person to be tested, and by obtaining the reference audio data, when compared with the audio to be tested, it has higher efficiency and is free of other noise interference, thereby improving the efficiency and accuracy of false audio detection.
[0013] In one embodiment, the method of dividing each historical audio data and the audio data to be detected into corresponding local audio sequences and constructing the resonance variation degree between the local audio sequences according to the difference between the resonance peaks in the local audio sequences is:
[0014] For historical audio data and audio data to be detected, the audio data is segmented into local audio sequences by using a speech segmentation algorithm;
[0015] The local audio sequence is converted into a spectrogram, the resonance peaks are extracted through the spectrogram, and the resonance variation between the local audio sequences is obtained according to the frequency difference, amplitude difference and the difference in the number of resonance peaks in the local audio sequence.
[0016] In one embodiment, the method of segmenting the historical audio data and the audio data to be detected into local audio sequences by using a speech segmentation algorithm is:
[0017] A number of speech endpoints are detected and obtained in the audio data through a speech segmentation algorithm. The speech endpoints are sorted in chronological order, with the first speech endpoint being the starting point, the next speech endpoint of the starting point being the ending point, and the next speech endpoint of the ending point being the starting point. All signals between the starting point and the next adjacent ending point are taken as local audio sequences.
[0018] In one embodiment, the method for obtaining the resonance variation between the local audio sequences according to the frequency difference, amplitude difference and the difference in the number of resonance peaks in the local audio sequences is:
[0019] For any local audio sequence, the formants in the formant set are sorted by the frequency of the formants to obtain a formant sequence;
[0020] For two resonance peak sequences, each resonance peak is taken as a data point, and the two resonance peak sequences are matched according to the time corresponding to the resonance peak sequences, and the resonance peaks that match each resonance peak in the resonance peak sequence in the other resonance peak sequence are obtained, and the matched resonance peaks are recorded as matching peaks;
[0021] For two resonance peak sequences, the frequency and amplitude of each resonance peak constitute a two-dimensional point recorded as the resonance two-dimensional point, and the distance between the resonance peak and the resonance two-dimensional point of its matching peak is calculated and recorded as the difference distance;
[0022] For two resonance peak sequences, the resonance peak and its matching peak are taken as a group of peaks. In a group of peaks, the maximum frequency value between the resonance peak and the matching peak is recorded as the maximum frequency.
[0023] The resonance peak distance is obtained according to the difference distance between all resonance peaks and their matching peaks and the maximum frequency; the resonance peak distance is positively correlated with the difference distance, and the resonance peak distance is positively correlated with the maximum frequency;
[0024] The resonance variation is obtained according to the resonance peak distance and the difference in the number of resonance peaks between local audio sequences; the resonance variation is positively correlated with the resonance peak distance, and the resonance variation is positively correlated with the difference in the number of resonance peaks.
[0025] In one embodiment, the method of clustering each audio data into two categories by resonance variation, and determining the audio set of the person to be tested in the audio data to be tested according to the similarity between the audio data to be tested and each category of the historical audio data is:
[0026] For the audio data to be detected or any historical audio data, all local audio sequences in an audio data are clustered by a clustering algorithm, and all local audio sequences are divided into two categories, which are recorded as a type I audio set and a type II audio set. The clustering distance is the resonance change degree of the two local audio sequences.
[0027] The audio set to be tested of the person to be tested is determined according to the similarity between each audio set in the audio data to be tested and the audio set in the historical audio data.
[0028] In one embodiment, the method for determining the audio set to be tested of the person to be tested according to the similarity between each audio set in the audio data to be tested and the audio set in the historical audio data is:
[0029] For the audio set in the audio data to be tested and the audio set in the historical audio data, the resonance variation degree is calculated pairwise through all the local audio sequences between the two audio sets, and the inverse of all the resonance variation degrees are taken and accumulated as the category similarity between the two audio sets;
[0030] For the audio data to be detected, obtain the category similarity between each audio set and the two audio sets of the historical audio data, record the maximum value as the maximum similarity corresponding to the audio set, and for the audio data to be detected, obtain the first maximum similarity and the second maximum similarity for the two audio sets respectively;
[0031] An audio set of the audio data to be detected and all the first maximum similarities obtained from all historical audio data are added as the feature value to be tested of the audio set; if there are two feature values to be tested in the audio data to be detected, the audio set with the largest feature value to be tested is taken as the audio set of the person to be tested.
[0032] In one embodiment, the method of obtaining the context similarity of the audio set to be tested and the historical audio set according to the similarity between the texts corresponding to the audio set to be tested and the historical audio set and the matching degree of words, and filtering the reference audio data according to the context similarity is:
[0033] Extract text from the historical audio set and the audio set to be tested, obtain the historical text sequence and the text sequence to be tested, and obtain the keyword sequence of the text sequence to be tested;
[0034] Calculate the edit distance between the text sequence to be tested and the historical text sequence, and use the reciprocal of the edit distance as the similarity between the text sequence to be tested and the historical text sequence; use the ratio of the matched keywords to the total number of keywords in the keyword matching as the keyword matching degree;
[0035] The context similarity is obtained based on the keyword matching and similarity, and the context similarity is positively correlated with the keyword matching and similarity respectively;
[0036] After normalizing the context similarity, a context judgment threshold is preset, and the historical audio set corresponding to the normalized context similarity being greater than or equal to the context judgment threshold is recorded as a reference audio set, and the historical audio data corresponding to the reference audio set is recorded as reference audio data.
[0037] In one embodiment, the method for calculating the emotion fluctuation value of the person to be tested according to the length of the text corresponding to the reference audio data and the audio data to be tested and the time characteristics of the audio set is:
[0038] For the audio data to be detected, all local audio sequences in the audio set to be detected are marked, and the minimum time of the marked adjacent voice endpoints of the local audio sequences is used as the pause duration between the two local audio sequences;
[0039] Taking the average of the pause durations of all adjacent local audio sequences in the audio set to be tested as the pause feature value of the audio data to be detected;
[0040] The ratio of the sequence length of the text sequence to be tested of the audio set to be tested in the audio data to be tested to the total time of the audio set to be tested is used as the speech speed feature value of the person to be tested;
[0041] For each reference audio data, the pause feature value and the speech rate feature value of the person to be tested in the reference audio data are obtained by obtaining the pause feature value and the speech rate feature value of the audio data to be tested;
[0042] The emotion fluctuation value is obtained by the difference in pause feature values and speech rate feature values between the audio data to be detected and the reference audio data. The emotion fluctuation value is positively correlated with the difference in pause feature values and speech rate feature values, respectively.
[0043] In one embodiment, the method for constructing the conversation confidence rate based on the difference in fluctuations in the spectrograms of the reference audio set and the audio set to be tested and the similarity of the audio sets combined with the emotion fluctuation value is:
[0044] For the reference audio set and the audio set to be tested, the product of the absolute value of the difference in the amplitude of the data points with the same frequency in the spectrum graphs corresponding to the two audio sets and the corresponding frequency value is taken as the fluctuation value of each data point, and the fluctuation values corresponding to all frequencies in the two spectrum graphs are accumulated to obtain the spectrum energy difference;
[0045] The cumulative sum of the ratios of the category similarity and the spectrum energy difference between the audio set to be tested and all reference audio sets is taken as the emotional stability of the person to be tested;
[0046] The conversation confidence rate is constructed according to the emotion stability and emotion fluctuation value; the conversation confidence rate is positively correlated with the emotion stability and emotion fluctuation value respectively.
[0047] In a second aspect, an embodiment of the present application also provides a contactless left-talk false audio detection system, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor implements the steps of any one of the above-mentioned contactless left-talk false audio detection methods when executing the computer program.
[0048] The beneficial effects of the present application are as follows: analyzing the audio data sequence according to the audio signal characteristics of the person to be tested in the audio database, analyzing the frequency spectrum of the audio signal based on the differences in the speaking habits of different persons and the characteristics of the person to be tested adaptively, constructing the resonance change degree of the audio data sequence, and then completing the extraction of the audio set to be tested in the audio data, completing the construction of context similarity based on the text data corresponding to the audio set to be tested and keyword matching, and then obtaining the historical audio set in the audio database, adaptively constructing the conversation confidence rate based on the changes in the time-frequency domain characteristics of the historical audio set and the audio set to be tested, completing the detection of false audio of the conversation based on the conversation confidence rate, completing the personalized false audio detection of the person to be tested, and by obtaining the reference audio data, when compared with the audio to be tested, it has higher efficiency and is free of other noise interference, thereby improving the efficiency and accuracy of false audio detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present application or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0050] Figure 1 A flow chart of a non-contact conversation false audio detection method provided by an embodiment of the present application;
[0051] Figure 2 A flowchart of a contactless conversation false audio detection method provided in one embodiment of the present application. DETAILED DESCRIPTION
[0052] In order to further explain the technical means and effects adopted by the present application to achieve the predetermined invention purpose, the following is a detailed description of a non-contact conversation false audio detection method and system proposed by the present application, its specific implementation method, structure, features and effects, in conjunction with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0053] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs.
[0054] A non-contact conversation false audio detection method and system embodiment:
[0055] The following is a detailed description of a non-contact conversation false audio detection method and system provided by the present application in conjunction with the accompanying drawings.
[0056] See also Figure 1 , which shows a flow chart of a non-contact conversation false audio detection method provided by an embodiment of the present application, the method comprising the following steps:
[0057] Step S001, collecting all historical audio data and audio data to be detected of the person to be tested.
[0058] The audio data of the conversation of the person to be tested is collected by the voice collection module in the non-contact emotion recognition device. The non-contact emotion recognition device also contains a storage module, and the storage module stores the information database of the person to be tested. For example, the conversation audio data accumulated in the organization where the person to be tested is located within a certain period of time in the past is stored in a dedicated data storage method and stored in the corresponding audio database.
[0059] The audio data to be detected of the person to be tested is obtained through a non-contact emotion recognition device, and all historical audio data of the person to be tested is obtained from an audio database.
[0060] At this point, the audio data to be tested and the historical audio data of the person to be tested are obtained.
[0061] Step S002: divide each historical audio data and each audio data to be detected into corresponding local audio sequences, and construct the resonance variation degree between the local audio sequences according to the difference between the resonance peaks in the local audio sequences.
[0062] For the audio data to be tested, since the audio data collection of the person to be tested is often conducted in the form of conversation, the acquired audio data often includes the voices of other persons in addition to the person to be tested. Similarly, the historical audio data sequence of the person to be tested is the same.
[0063] What is needed in this embodiment is the voice data of the person to be tested. Therefore, for the audio data to be tested of the person to be tested and each historical audio data, the audio data is detected by a voice segmentation algorithm. In this embodiment, the voice segmentation algorithm used is the VAD algorithm, and the implementer can also use other voice segmentation algorithms.
[0064] The role of the speech segmentation algorithm here is to detect the parts with and without sound, that is, it can detect the start and end points of the speech signal of a person's conversation, that is, the speech endpoints. All speech endpoints are sorted in the order of acquisition time. In the part with sound activity, two speech endpoints constitute a local audio sequence. The first speech endpoint is marked as the start point, the next speech endpoint of the start point is the end point, and the next speech endpoint of the end point is the start point, that is, there is a speech endpoint between the start points. Let the signal from the start point to the next adjacent end point be a local audio sequence. For example, the first speech endpoint and the second speech endpoint constitute a local audio sequence, and the third speech endpoint and the fourth speech endpoint constitute a local audio sequence.
[0065] Thus, each historical audio data of the person to be tested and the audio data to be detected are divided into a number of local audio sequences, wherein each local audio sequence represents a sentence in the conversation.
[0066] For all the historical audio data and audio data to be tested of the person to be tested, each local audio sequence is converted from the time domain to the frequency domain through Fourier transform. The signal of each local audio sequence in the frequency domain is recorded as a local frequency domain signal, and the local frequency domain signal is estimated by amplitude spectrum density to obtain its corresponding spectrum graph, that is, each local audio sequence corresponds to a spectrum graph.
[0067] According to prior knowledge, when there is no obvious change in emotion, each person's speech speed, tone and other speech features change little. Therefore, in this application, the spectrum of the local audio sequence is analyzed to extract the resonance peak frequency in the spectrum. The resonance peak frequency refers to the selective amplification of the sound frequency by the vocal tract resonance system (such as the mouth, throat and nasal cavity) when a person speaks, and the different resonance peaks formed at different frequencies. Due to different habits when different people speak, the resonance peaks they form are often different.
[0068] In this embodiment, the resonance peaks of the spectrum graph are extracted by spectral subtraction to obtain a set of resonance peaks corresponding to each spectrum graph, wherein each resonance peak has a corresponding frequency and amplitude, wherein spectral subtraction is a well-known technology, and is only used to obtain resonance peaks, and this embodiment will not be described in detail, and the implementer may also use other ways to obtain resonance peaks. Thus, it can be determined whether the local audio sequence is the local audio sequence corresponding to the person to be tested by the change of the resonance peak set in the local audio sequence.
[0069] The resonance variation between the local audio sequences is obtained according to the frequency difference, amplitude difference and the difference in the number of the resonance peaks in the local audio sequences.
[0070] For any local audio sequence, the formants in the formant set are sorted by the frequency of the formants to obtain a formant sequence, that is, each local audio sequence obtains a formant sequence, and for two formant sequences, each formant is regarded as a data point, and the two formant sequences are matched according to the time corresponding to the formant sequence. In this embodiment, the two formant sequences are matched by the DTW algorithm. The implementer may also use other sequence matching methods for matching.
[0071] The resonance peaks matched by each resonance peak in the resonance peak sequence in another resonance peak sequence are obtained, and the matched resonance peaks are recorded as matched peaks.
[0072] For two resonance peak sequences, the frequency and amplitude of each resonance peak constitute a two-dimensional point recorded as a resonance two-dimensional point. The distance between the resonance peak and the resonance two-dimensional point of its matching peak is calculated and recorded as a difference distance. In this embodiment, the Euclidean distance is used as an example for explanation. The implementer can also represent the distance by the absolute value of the difference between the horizontal and vertical coordinates of the resonance two-dimensional point. For two resonance peak sequences, the resonance peak and its matching peak are taken as a group of peaks. In a group of peaks, the maximum frequency value among the resonance peak and the matching peak is recorded as the maximum frequency.
[0073] Obtain the resonance peak distance according to the difference distance between all resonance peaks and their matching peaks and the maximum frequency;
[0074] There is a positive correlation between the formant distance and the difference distance, and there is a positive correlation between the formant distance and the maximum frequency.
[0075] Preferably, in one embodiment of the present application, the product of the maximum frequency of a group of peaks and the difference distance is taken as the first distance value, and the sum of the first distance values of all groups of peaks in the resonance peak sequence is taken as the resonance peak distance.
[0076] Preferably, in one embodiment of the present application, the product of the maximum frequency of a group of peaks and the difference distance is used as the first distance value, and the average of the first distance values of all group peaks in the resonance peak sequence is used as the resonance peak distance.
[0077] Among them, the maximum frequency value of the corresponding resonance peak is used as the weight because in spectrum analysis, low-frequency signals are usually more susceptible to factors such as environmental noise, electromagnetic infection, and the noise of the equipment itself. Therefore, using it as the weight makes the high-frequency signal have a greater impact on the construction of the resonance peak variation, reducing the impact of interference and improving the construction accuracy of the resonance variation.
[0078] It should be noted that positive correlation means that when one variable increases, the other variable also increases, and the two variables change in the same direction. When one variable changes from large to small or from small to large, the other variable also changes from large to small or from small to large. The specific relationship can be a multiplication relationship, an addition relationship, or the idempotence of an exponential function, which is determined by actual application and is not specifically limited in this application.
[0079] The resonance variation is obtained based on the formant distance and the difference in the number of formants between local audio sequences.
[0080] The resonance variation is positively correlated with the resonance peak distance, and the resonance variation is positively correlated with the difference in the number of resonance peaks.
[0081] Preferably, in one embodiment of the present application, the absolute value of the difference in the number of resonance peaks in two local audio sequences is used as the difference in the number of resonance peaks, and the product of the difference in number plus one and the resonance peak distance is used as the resonance change degree.
[0082] Preferably, in one embodiment of the present application, the absolute value of the difference in the number of resonance peaks in two local audio sequences is used as the difference in the number of resonance peaks, the difference in number is added by one and used as the exponent of the exponential function, the resonance peak distance is used as the base of the exponential function, and the result of the exponential function calculation is the resonance change degree.
[0083] The resonance variation degree represents the difference between two local audio sequences. The larger the resonance variation degree is, the greater the difference between the two local audio sequences is, and the less likely it is that the two local audio sequences are spoken by the same person.
[0084] At this point, the resonance variation between the local audio sequences is obtained.
[0085] Step S003: All audio data are divided into two categories, and a set of audio data to be tested of the person to be tested is determined in the audio data to be tested according to the similarity between the audio data to be tested and each category of the historical audio data.
[0086] The above steps can be used to obtain the resonance variation degree between any two local audio sequences. For the audio data to be detected or any historical audio data, all local audio sequences in an audio data are clustered by a clustering algorithm, and the resonance variation degree of each local audio sequence and all other local audio sequences in an audio data is calculated. The clustering metric distance is the resonance variation degree of the two local audio sequences.
[0087] In this embodiment, the clustering method used is the K-means algorithm, and the K value is set to 2, that is, the local audio sequences are divided into two categories, and any local audio sequence is used as the first clustering center, and the local audio sequence corresponding to the maximum value of the resonance change degree between the clustering center and the remaining local audio sequences is used as the second clustering center.
[0088] It should be noted that the K-means algorithm is only used to classify the local audio sequence into two categories by the resonance variation degree. Other clustering algorithms with fixed classification of 2 are also acceptable and implementers can choose them at their own discretion.
[0089] For any historical audio data or audio data to be tested, each audio data is divided into two categories through the above steps, which are recorded as the first audio set and the second audio set. Since the audio data of the person to be tested exists in each historical audio data, and the audio data is collected in different scenes, the person talking is often not the same. If it is assumed that the first audio set is the audio information of the person to be tested, then the second audio set may have the audio information of multiple people, and the local audio sequences inside it are also quite different.
[0090] For the audio data to be detected and each historical audio data, the category similarity is calculated for each audio set of the audio data to be detected and the audio set in the historical audio data through the resonance change degree between the local audio sequences.
[0091] Category similarity is negatively correlated with all resonance changes.
[0092] Preferably, in one embodiment of the present application, the method for calculating the category similarity is to calculate the resonance variation degree of all local audio sequences between the two audio sets in pairs, and to take the inverse of all the resonance variation degrees and then add them up as the category similarity between the two audio sets.
[0093] Preferably, in one embodiment of the present application, the method for calculating the category similarity is to calculate the resonance variation degree of all local audio sequences between two audio sets pairwise, add up all the resonance variation degrees and take a negative sign, and then solve them through an exponential function with a natural constant as the base, and use the result as the category similarity between the two audio sets.
[0094] It should be noted that negative correlation means that as one variable increases, the other variable decreases accordingly, and the two variables change in opposite directions. When one variable changes from large to small or from small to large, the other variable also changes from small to large or from large to small. The specific relationship can be a ratio relationship, a subtraction relationship, etc., which is determined by actual application, and this application does not impose any special restrictions.
[0095] Thus, for the audio data to be detected, the category similarity between each audio set and the two audio sets of the historical audio data is obtained, and the maximum value of the category similarity between the first audio set of the audio data to be detected and the two audio sets of the historical audio data is recorded as the first maximum similarity, and the maximum value of the category similarity between the second audio set of the audio data to be detected and the two audio sets of the historical audio data is recorded as the second maximum similarity;
[0096] Obtaining a number of first maximum similarities between a first audio set of the audio data to be detected and all historical audio data, and obtaining a number of second maximum similarities between a second audio set of the audio data to be detected and all historical audio data;
[0097] All the first maximum similarities are added as the feature value to be tested for the first audio set, and all the second maximum similarities are added as the feature value to be tested for the second audio set. The audio set with the largest feature value to be tested is the audio set to be tested of the person to be tested in the audio data to be detected.
[0098] At this point, the audio set to be tested of the person to be tested is obtained.
[0099] Step S004, obtaining a historical audio set by obtaining the audio set to be tested, obtaining the contextual similarity between the audio set to be tested and the historical audio set according to the similarity between the texts corresponding to the audio set to be tested and the historical audio set and the matching degree of words, and filtering the reference audio data according to the contextual similarity.
[0100] According to the above steps, the extraction of the audio set to be tested of the person to be tested in the audio data to be tested is completed.
[0101] Since the above-mentioned extracted audio sets to be tested are often different conversations in different scenarios, the present application first analyzes the audio set to be tested and extracts speech text data, extracts speech text data from the audio set to be tested based on a recurrent neural network, the input of the network is the audio set to be tested, the output of the network is a text data sequence, and the loss function is a CTC loss function. Then each audio set to be tested can obtain a corresponding text data sequence. The obtained text data sequence is subjected to keyword extraction by the LSA algorithm to complete the acquisition of keywords in the sentence, wherein the LSA algorithm extracts keywords as a known technology and will not be repeated here.
[0102] For each historical audio data, the first maximum similarity and the second maximum similarity are calculated for each audio set thereof and the audio sets of the remaining historical audio data. Through all the first maximum similarities and the second maximum similarities corresponding to each historical audio data, the feature values to be tested of the two audio sets in each historical audio data are obtained, and the audio set with the larger feature value to be tested is taken as the historical audio set of the historical audio data.
[0103] For each historical audio data, a historical audio set is obtained, and for each historical audio set, its corresponding text data sequence can be obtained through the LSA algorithm.
[0104] The text data sequence of the audio data to be tested is recorded as the text sequence to be tested, and the text data sequence of the historical audio collection is recorded as the historical text sequence. Through the above-mentioned extraction of keywords in the text sequence to be tested, all keywords of the text sequence to be tested constitute a sequence recorded as a keyword sequence.
[0105] The context similarity between the historical audio collection and the audio collection to be tested is constructed by matching the keyword sequence with the historical text sequence and the similarity between the text sequence to be tested and the historical text sequence.
[0106] First, the text sequence to be tested and the historical text sequence are analyzed to calculate the similarity between the text sequence to be tested and the historical text sequence. The similarity is obtained by calculating the difference between the text sequence to be tested and the historical text sequence. In this embodiment, the edit distance is used to represent the difference between the text sequence to be tested and the historical text sequence, and the reciprocal of the edit distance is used as the similarity between the text sequence to be tested and the historical text sequence. The calculation of the edit distance is a well-known technology and will not be described in detail here.
[0107] Further, the keyword sequence and the historical text sequence are matched to obtain the keyword matching degree. In this embodiment, the keywords in the keyword sequence are matched with the historical text sequence by the KMP algorithm to obtain the number of matching keywords, and the ratio of the number of matching keywords to the total number of keywords in the keyword sequence is used as the keyword matching degree. The KMP algorithm is a well-known technology and will not be described in detail here.
[0108] The context similarity between the historical text sequence and the text sequence to be tested is obtained based on the keyword matching and similarity.
[0109] Context similarity is positively correlated with keyword matching and similarity, respectively.
[0110] Preferably, in one embodiment of the present application, the product of the keyword matching degree and the similarity between the text sequence to be tested and the historical text sequence is used as the context similarity between the text sequence to be tested and the historical text sequence.
[0111] Preferably, in one embodiment of the present application, the similarity between the text sequence to be tested and the historical text sequence is used as the base of the exponential function, the keyword matching degree is used as the exponent of the exponential function, and the result of the exponential function is used as the contextual similarity between the historical audio set and the audio set to be tested.
[0112] Among them, the more similar the historical text sequence is to the text sequence to be tested, the greater the context similarity is, and the greater the keyword matching degree is, the greater the context similarity is. That is, the context similarity reflects the similar characteristics of the historical audio set and the audio set to be tested. The more similar the two are, the higher the reference degree of the historical audio set to the audio set to be tested and the greater the influence.
[0113] Thus, the contextual similarity between the audio set to be tested and each historical audio set is obtained, and the contextual similarity is normalized. In this embodiment, the normalization method is linear normalization, and the implementer can also use other normalization methods, such as maximum and minimum value normalization.
[0114] A context judgment threshold is set. If the normalized context similarity is greater than or equal to the context judgment threshold, the corresponding historical audio set is recorded as the reference audio set, otherwise it is not used as the reference audio set. In this embodiment, the value of the context judgment threshold is 0.8. The historical audio data corresponding to the reference audio set is recorded as the reference audio data.
[0115] At this point, all reference audio data has been acquired.
[0116] Step S005, calculate the emotion fluctuation value of the person to be tested according to the length of the text corresponding to the reference audio data and the audio data to be tested and the time characteristics of the audio set; construct a conversation confidence rate according to the difference in fluctuations in the spectrum graph of the reference audio set and the audio set to be tested and the similarity of the audio sets combined with the emotion fluctuation value, and complete the false audio detection according to the conversation confidence rate.
[0117] For the audio data to be detected, which contains several local audio sequences, the audio set to be tested is marked. If two marked local audio sequences are adjacent in the audio data to be detected, the minimum time between the voice endpoints of the two local audio sequences is taken as the pause duration. The adjacent relationship means that there are no other local audio sequences in between.
[0118] The average of the pause durations of all adjacent local audio sequences in the audio data to be detected is taken as the pause feature value of the audio data to be detected. The pause feature value represents the pause time between sentences when the person to be tested speaks multiple sentences.
[0119] The ratio of the sequence length of the text sequence to be tested in the audio set to be tested in the audio data to the total time of the audio set to be tested is used as the speech speed feature value of the person to be tested.
[0120] According to the above steps, the pause feature value and the speech rate feature value corresponding to the audio data to be detected are obtained.
[0121] For each reference audio data, the pause feature value and the speech rate feature value of the person to be tested in the reference audio data are obtained by obtaining the pause feature value and the speech rate feature value of the audio data to be tested.
[0122] The emotion fluctuation value is obtained by the difference in pause feature values and speech rate feature values between the audio data to be detected and the reference audio data.
[0123] The emotional fluctuation values are positively correlated with the differences in pause feature values and speech rate feature values, respectively.
[0124] Preferably, in one embodiment of the present application, the absolute value of the difference between the pause feature value of the audio data to be detected and the pause feature value between the reference audio data is recorded as the first pause difference, the absolute value of the difference between the speech rate feature value of the audio data to be detected and the speech rate feature value between the reference audio data is recorded as the first speech rate difference, and the product of the first pause difference and the first speech rate difference between the audio data to be detected and all reference audio data is accumulated as the emotional fluctuation value of the person to be tested.
[0125] Preferably, in one embodiment of the present application, the absolute value of the difference between the pause feature value of the audio data to be detected and the pause feature value between the reference audio data is recorded as the first pause difference, the absolute value of the difference between the speech rate feature value of the audio data to be detected and the speech rate feature value between the reference audio data is recorded as the first speech rate difference, and the average of the first pause difference and the first speech rate difference between the audio data to be detected and all reference audio data is accumulated as the emotional fluctuation value of the person to be tested.
[0126] For the reference audio set and the audio set to be tested, the product of the absolute value of the difference in the amplitude of the data points with the same frequency in the spectrograms corresponding to the two audio sets and the corresponding frequency value is taken as the fluctuation value of each data point, and the fluctuation values corresponding to all frequencies in the two spectrograms are accumulated to obtain the spectrum energy difference. The larger the value, the greater the difference in fluctuations between the two spectrograms, and the more dissimilar they are. Let the cumulative sum of the ratios of the category similarity to the spectrum energy difference in the audio set to be tested and all reference audio sets be taken as the emotional stability of the person to be tested. The greater the emotional stability, the more similar the speaking habits of the person to be tested are to the history, that is, the more normal the conversation is, the less likely the person to be tested is to lie in the current conversation, and the greater the confidence rate of the conversation.
[0127] Conversation confidence is constructed based on the emotional stability and emotional fluctuation values.
[0128] Conversation confidence rate was positively correlated with emotional stability and emotional fluctuation value respectively.
[0129] Preferably, in one embodiment of the present application, the ratio of the emotional stability and emotional fluctuation value of the person to be tested is used as the conversation confidence rate of the person to be tested.
[0130] Preferably, in one embodiment of the present application, the emotional stability of the person to be tested is used as the base of the exponential function, the opposite of the emotional fluctuation value is used as the exponent of the exponential function, and the result of the exponential function is used as the conversation confidence rate of the person to be tested.
[0131] The conversation confidence rate represents the probability that the subject to be tested is telling the truth in the audio data to be tested. The larger the conversation confidence rate, the smaller the possibility that the subject to be tested is lying, that is, the smaller the possibility that the conversation audio is false audio. The smaller the conversation confidence rate, the greater the possibility that the subject to be tested is lying, that is, the greater the possibility that the conversation audio is real audio. The conversation confidence rate is normalized. When the conversation confidence rate is greater than or equal to the preset threshold of 0.75, the audio is real audio. The preset threshold is set according to the experience value and can be adjusted by the implementer. The implementation flow chart for constructing the conversation confidence rate is shown below. Figure 2 shown.
[0132] Based on the same inventive concept as the above method, an embodiment of the present invention also provides a contactless left-talk false audio detection system, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor implements the steps of any one of the above-mentioned contactless left-talk false audio detection methods when executing the computer program.
[0133] It should be noted that the above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
[0134] The various embodiments in the present application are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
Claims
1. A non-contact method for detecting false audio of retained conversation, characterized in that: The method comprises the following steps: Collect all historical audio data of the person to be tested and the audio data to be tested; Each historical audio data and the audio data to be detected are divided into corresponding local audio sequences, and the resonance variation between the local audio sequences is constructed according to the difference between the resonance peaks in the local audio sequences; Cluster each audio data into two categories by resonance variation, and determine the audio set of the person to be tested in the audio data to be tested according to the similarity between the audio data to be tested and each category of the historical audio data; take any local audio sequence as a clustering center, and take the local audio sequence with the largest resonance variation with the clustering center as the second clustering center, and the clustering distance is the resonance variation. For the audio data to be tested, obtain a first-category audio set and a second-category audio set respectively; obtain the category similarity between each audio set and the audio set of the historical audio data, and the category similarity is negatively correlated with all the resonance variation of the audio set; obtain the feature value to be tested according to the maximum value of the category similarity between the audio set of the audio data to be tested and all the audio sets of the historical audio data, and determine the audio set to be tested based on the feature value to be tested; Acquire the historical audio collection by acquiring the audio collection to be tested, obtain the context similarity between the audio collection to be tested and the historical audio collection according to the similarity between the texts corresponding to the audio collection to be tested and the historical audio collection and the matching degree of words, and filter the reference audio data according to the context similarity; Calculate the emotion fluctuation value of the person to be tested according to the length of the text corresponding to the reference audio data and the audio data to be tested and the time characteristics of the audio set, take the minimum value of the adjacent local audio sequence speech endpoints belonging to the audio set to be tested as the pause duration, obtain the pause feature value according to all the pause durations, obtain the speech speed feature value of the person to be tested according to the sequence length of the text sequence to be tested of the audio set to be tested and the total time of the audio set to be tested, and obtain the emotion fluctuation value according to the difference in the pause feature value and the difference in the speech speed feature value between the audio data to be tested and the reference audio data; construct a conversation confidence rate according to the difference in fluctuations in the frequency spectrum of the reference audio set and the audio set to be tested and the similarity of the audio sets combined with the emotion fluctuation value, and complete the false audio detection according to the conversation confidence rate; The method of dividing each historical audio data and the audio data to be detected into corresponding local audio sequences and constructing the resonance variation degree between the local audio sequences according to the difference between the resonance peaks in the local audio sequences is: For historical audio data and audio data to be detected, the audio data is segmented into local audio sequences by using a speech segmentation algorithm; The local audio sequence is converted into a spectrogram, the formant is extracted through the spectrogram, and the resonance variation between the local audio sequences is obtained according to the frequency difference, amplitude difference and the difference in the number of formants in the local audio sequence; The method for obtaining the resonance variation between local audio sequences according to the frequency difference, amplitude difference and the difference in the number of resonance peaks in the local audio sequences is: For any local audio sequence, the formants in the formant set are sorted by the frequency of the formants to obtain a formant sequence; For two resonance peak sequences, each resonance peak is taken as a data point, and the two resonance peak sequences are matched according to the time corresponding to the resonance peak sequences, and the resonance peaks that match each resonance peak in the resonance peak sequence in the other resonance peak sequence are obtained, and the matched resonance peaks are recorded as matching peaks; For two resonance peak sequences, the frequency and amplitude of each resonance peak constitute a two-dimensional point recorded as the resonance two-dimensional point, and the distance between the resonance peak and the resonance two-dimensional point of its matching peak is calculated and recorded as the difference distance; For two resonance peak sequences, the resonance peak and its matching peak are taken as a group of peaks. In a group of peaks, the maximum frequency value between the resonance peak and the matching peak is recorded as the maximum frequency. The resonance peak distance is obtained according to the difference distance between all resonance peaks and their matching peaks and the maximum frequency; the resonance peak distance is positively correlated with the difference distance, and the resonance peak distance is positively correlated with the maximum frequency; The resonance variation is obtained according to the resonance peak distance and the difference in the number of resonance peaks between the local audio sequences; the resonance variation is positively correlated with the resonance peak distance, and the resonance variation is positively correlated with the difference in the number of resonance peaks; The method of obtaining the context similarity of the audio set to be tested and the historical audio set according to the similarity between the texts corresponding to the audio set to be tested and the historical audio set and the matching degree of words, and filtering the reference audio data according to the context similarity is: Extract text from the historical audio set and the audio set to be tested, obtain the historical text sequence and the text sequence to be tested, and obtain the keyword sequence of the text sequence to be tested; Calculate the edit distance between the text sequence to be tested and the historical text sequence, and use the reciprocal of the edit distance as the similarity between the text sequence to be tested and the historical text sequence; use the ratio of the matched keywords to the total number of keywords in the keyword matching as the keyword matching degree; The context similarity is obtained based on the keyword matching and similarity, and the context similarity is positively correlated with the keyword matching and similarity respectively; After normalizing the context similarity, a context judgment threshold is preset, and the historical audio set corresponding to when the normalized context similarity is greater than or equal to the context judgment threshold is recorded as a reference audio set, and the historical audio data corresponding to the reference audio set is recorded as reference audio data; The method for constructing a conversation confidence rate based on the difference in fluctuations in the spectrogram of the reference audio set and the audio set to be tested and the similarity of the audio sets combined with the emotion fluctuation value is: For the reference audio set and the audio set to be tested, the product of the absolute value of the difference in the amplitude of the data points with the same frequency in the spectrum graphs corresponding to the two audio sets and the corresponding frequency value is taken as the fluctuation value of each data point, and the fluctuation values corresponding to all frequencies in the two spectrum graphs are accumulated to obtain the spectrum energy difference; The cumulative sum of the ratios of the category similarity and the spectrum energy difference between the audio set to be tested and all reference audio sets is taken as the emotional stability of the person to be tested; The conversation confidence rate is constructed according to the emotion stability and emotion fluctuation value; the conversation confidence rate is positively correlated with the emotion stability and emotion fluctuation value respectively.
2. A non-contact false audio detection method for retained conversation as claimed in claim 1, characterized in that: The method for segmenting the historical audio data and the audio data to be detected into local audio sequences by using a speech segmentation algorithm is as follows: A number of speech endpoints are detected and obtained in the audio data through a speech segmentation algorithm. The speech endpoints are sorted in chronological order, with the first speech endpoint being the starting point, the next speech endpoint of the starting point being the ending point, and the next speech endpoint of the ending point being the starting point. All signals between the starting point and the next adjacent ending point are taken as local audio sequences.
3. A non-contact conversation false audio detection method as claimed in claim 1, characterized in that: The method of clustering each audio data into two categories by resonance variation, and determining the audio set of the person to be tested in the audio data to be tested according to the similarity between each category of the audio data to be tested and the historical audio data is as follows: For the audio data to be detected or any historical audio data, all local audio sequences in an audio data are clustered by a clustering algorithm, and all local audio sequences are divided into two categories, which are recorded as a type I audio set and a type II audio set. The clustering distance is the resonance change degree of the two local audio sequences. The audio set to be tested of the person to be tested is determined according to the similarity between each audio set in the audio data to be tested and the audio set in the historical audio data.
4. A non-contact left-talk false audio detection method as claimed in claim 3, characterized in that: The method for determining the audio set to be tested of the person to be tested according to the similarity between each audio set in the audio data to be tested and the audio set in the historical audio data is: For the audio set in the audio data to be tested and the audio set in the historical audio data, the resonance variation degree is calculated pairwise through all the local audio sequences between the two audio sets, and the inverse of all the resonance variation degrees are taken and accumulated as the category similarity between the two audio sets; For the audio data to be detected, obtain the category similarity between each audio set and the two audio sets of the historical audio data, record the maximum value as the maximum similarity corresponding to the audio set, and for the audio data to be detected, obtain the first maximum similarity and the second maximum similarity for the two audio sets respectively; An audio set of the audio data to be detected and all the first maximum similarities obtained from all historical audio data are added as the feature value to be tested of the audio set; if there are two feature values to be tested in the audio data to be detected, the audio set with the largest feature value to be tested is taken as the audio set of the person to be tested.
5. A non-contact left-talk false audio detection method as claimed in claim 1, characterized in that: The method for calculating the emotional fluctuation value of the person to be tested according to the length of the text corresponding to the reference audio data and the audio data to be tested and the time characteristics of the audio set is: For the audio data to be detected, all local audio sequences in the audio set to be detected are marked, and the minimum time of the marked adjacent voice endpoints of the local audio sequences is used as the pause duration between the two local audio sequences; Taking the average of the pause durations of all adjacent local audio sequences in the audio set to be tested as the pause feature value of the audio data to be detected; The ratio of the sequence length of the text sequence to be tested of the audio set to be tested in the audio data to be tested to the total time of the audio set to be tested is used as the speech speed feature value of the person to be tested; For each reference audio data, the pause feature value and the speech rate feature value of the person to be tested in the reference audio data are obtained by obtaining the pause feature value and the speech rate feature value of the audio data to be tested; The emotion fluctuation value is obtained by the difference in pause feature values and speech rate feature values between the audio data to be detected and the reference audio data. The emotion fluctuation value is positively correlated with the difference in pause feature values and speech rate feature values, respectively.
6. A contactless left-talk false audio detection system, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the computer program, the steps of the contactless left-talk false audio detection method as described in any one of claims 1-5 are implemented.
