Psychological analysis system, method, medium and device based on voice response scale

Through the psychological analysis system of the voice response scale, voice data features and semantic analysis models are used to evaluate the authenticity and validity of the answers, provide personalized guidance, and solve the problem that traditional technology cannot effectively consider the impact of the psychological state of voice data.

CN118412007BActive Publication Date: 2024-08-30SHANDONG UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410864683.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-01
Publication Date
2024-08-30
Estimated Expiration
2044-07-01

AI Technical Summary

Technical Problem

Traditional voice response scale assessment technology fails to effectively consider the impact of the respondent's voice data on the psychological state, making it difficult to assess the authenticity and validity of the answers.

Method used

A psychological analysis system based on the voice response scale is used to obtain voice data features through the feature extraction module to determine the identity of the respondent. The text validity determination module converts the voice data into text data, and uses the semantic analysis model to calculate emotional categories and scores, from Matching psychological guidance programs in the database.

Benefits of technology

Through identity verification and content relevance calculation, the authenticity and security of answers are ensured, the seriousness of answering questions is measured, invalid forms are eliminated, and personalized guidance is given.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118412007B
    Figure CN118412007B
Patent Text Reader

Abstract

The present invention belongs to the field of psychological state analysis. In order to solve the problem that the influence of the respondent's voice data on the psychological state is not currently considered, a psychological analysis system, method, medium and device based on a voice answer scale are provided. Among them, the psychological analysis system based on the voice answer scale includes a feature extraction module; a respondent judgment module, which is used to judge whether the respondent who answers the baseline question and the scale question is the same person; a text validity determination module is used to convert the second voice data when answering each question in the scale to obtain the corresponding text data when the respondent who answers the baseline question and the scale question is the same person, and determine the valid text data; a guidance program recommendation module, which is used to obtain the corresponding emotion category and its preset score, and then match and find the corresponding psychological guidance program from the database according to the score of the emotion category and recommend it. It can calculate the scale score and give personalized guidance according to the answer content.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of speech analysis, and in particular relates to a psychological analysis system, medium and equipment based on a speech answer scale. Background Art

[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.

[0003] A scale provides a standardized and systematic way to describe and measure various specific characteristics, situations or attributes so that professionals can analyze, compare and understand them. Traditional scales are mainly text-based, and respondents choose the answers they think best fit the scale questions based on their own circumstances. However, in the actual scale troubleshooting process, respondents often misread or miss questions, or misunderstand the options during the answering process. In order to solve these problems, voice-answered scales came into being. By announcing the scale questions in the form of voice broadcasts, respondents are encouraged to understand the questions, and are required to answer the questions in the form of voice to assist in understanding the respondent's psychological state when answering. However, the current evaluation technology based on voice-answered scales mainly considers the content of the respondent's answers, and does not consider the impact of the respondent's voice data on the psychological state. Summary of the invention

[0004] In order to solve the technical problems existing in the above-mentioned background technology, the present invention provides a psychological analysis system, medium and equipment based on a voice answer scale, which can perform text analysis according to the answer content, calculate the scale score and give personalized guidance.

[0005] In order to achieve the above object, the present invention adopts the following technical solution:

[0006] A first aspect of the present invention provides a psychological analysis system based on a speech response scale.

[0007] A psychological analysis system based on a speech response scale, comprising:

[0008] A feature extraction module, which is used to obtain the first voice data of the respondent when answering the baseline question and the second voice data when answering the scale question, and extract the first voice data features and the second voice data features;

[0009] A respondent determination module, which is used to calculate the similarity between the first voice data feature and the second voice data feature to determine whether the respondent who answers the baseline question and the scale question is the same person;

[0010] A text validity determination module, which is used to, when the respondent who answers the baseline question and the scale question is the same person, translate the second voice data when answering each question in the scale to obtain corresponding text data, and determine the valid text data according to the similarity between the translated text data and the scale question;

[0011] The guidance program recommendation module is used to use the semantic analysis model to process valid text data, obtain the corresponding emotional category and its preset score, and then match and find the corresponding psychological guidance program from the database according to the score of the emotional category and make a recommendation.

[0012] As an implementation mode, in the text validity determination module, the process of determining valid text data is:

[0013] Encode the translated text data and scale questions, and calculate the text content similarity;

[0014] The text data obtained by translating is segmented and the hit rate of the relationship between the segmented words and the scale questions is calculated;

[0015] Weights are assigned to the text content similarity and the hit rate of the relationship pair to obtain the content similarity, and the text data corresponding to the answer content is judged to be valid based on the threshold.

[0016] As an implementation mode, in the guidance scheme recommendation module, the Bert model is used to encode the valid text data and classify the sentiment category of the text content.

[0017] As an implementation manner, in the feature extraction module, before extracting the corresponding voice data features, it also includes:

[0018] The first voice data and the second voice data are respectively subjected to voice concatenation, voice activation detection and voice enhancement processing.

[0019] As an implementation manner, in the first feature extraction module and the second feature extraction module, the process of extracting the features of the speech data includes:

[0020] Sampling the corresponding speech data to obtain a one-dimensional speech signal;

[0021] The one-dimensional speech signal is processed in sequence by pre-emphasis, frame division, windowing, short-time Fourier transform, power spectrum and logarithm to obtain a spectrogram;

[0022] The spectrogram is input into the Mel filter bank for multiplication to obtain the corresponding speech Mel spectrum data as the corresponding speech data feature.

[0023] As an implementation mode, in the respondent determination module, cosine similarity is calculated based on pairing of speech mel-spectrogram data, and whether the speech questionnaire question data to be identified is from the same speaker is determined based on the calculation result.

[0024] A second aspect of the present invention provides a psychological analysis method based on a speech response scale.

[0025] A psychological analysis method based on a speech response scale, comprising:

[0026] Acquire the first voice data of the respondent when answering the baseline question and the second voice data of the respondent when answering the scale question, and extract the features of the first voice data and the second voice data;

[0027] Calculating the similarity between the first voice data feature and the second voice data feature to determine whether the respondent who answers the baseline question and the scale question is the same person;

[0028] When the person who answers the baseline questions and the scale questions is the same person, the second voice data when answering each question in the scale is translated to obtain corresponding text data, and valid text data is determined based on the similarity between the translated text data and the scale questions;

[0029] The semantic analysis model is used to process valid text data to obtain the corresponding emotional categories and their preset scores. Then, according to the scores of the emotional categories, the corresponding psychological guidance plans are matched and found from the database and recommended.

[0030] A third aspect of the present invention provides a computer-readable storage medium.

[0031] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:

[0032] Acquire the first voice data of the respondent when answering the baseline question and the second voice data of the respondent when answering the scale question, and extract the features of the first voice data and the second voice data;

[0033] Calculating the similarity between the first voice data feature and the second voice data feature to determine whether the respondent who answers the baseline question and the scale question is the same person;

[0034] When the person who answers the baseline questions and the scale questions is the same person, the second voice data when answering each question in the scale is translated to obtain corresponding text data, and valid text data is determined based on the similarity between the translated text data and the scale questions;

[0035] The semantic analysis model is used to process valid text data to obtain the corresponding emotional categories and their preset scores. Then, according to the scores of the emotional categories, the corresponding psychological guidance plans are matched and found from the database and recommended.

[0036] A fourth aspect of the present invention provides an electronic device.

[0037] An electronic device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the program:

[0038] Acquire the first voice data of the respondent when answering the baseline question and the second voice data of the respondent when answering the scale question, and extract the features of the first voice data and the second voice data;

[0039] Calculating the similarity between the first voice data feature and the second voice data feature to determine whether the respondent who answers the baseline question and the scale question is the same person;

[0040] When the person who answers the baseline questions and the scale questions is the same person, the second voice data when answering each question in the scale is translated to obtain corresponding text data, and valid text data is determined based on the similarity between the translated text data and the scale questions;

[0041] The semantic analysis model is used to process valid text data to obtain the corresponding emotional categories and their preset scores. Then, according to the scores of the emotional categories, the corresponding psychological guidance plans are matched and found from the database and recommended.

[0042] Compared with the prior art, the present invention has the following beneficial effects:

[0043] (1) The present invention performs identity authentication and content relevance calculation on the collected answering voice to obtain the authenticity and validity evaluation results of the answering results under voice characteristics; by calculating the voice of the respondent when answering the baseline question, the respondent's own voice characteristics are extracted to ensure that the respondent answers the scale later, thereby enhancing the authenticity and security of the answer.

[0044] (2) The present invention can measure whether the respondent answers the questions seriously by calculating the correlation between the voice content of the respondent when answering the scale and the questionnaire questions, thereby eliminating invalid forms and ensuring the validity of each question in the voice answering scale. Finally, based on the answer content, text analysis is performed to calculate the scale score and provide personalized guidance.

[0045] Advantages of additional aspects of the present invention will be given in part in the following description, and in part will become obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0047] Figure 1 Schematic diagram of the structure of a psychological analysis system based on a speech answer scale according to an embodiment of the present invention;

[0048] Figure 2 A flowchart of voice verification according to an embodiment of the present invention;

[0049] Figure 3 A partial knowledge graph generated based on the scale questions in an embodiment of the present invention;

[0050] Figure 4 A flowchart of calculating the relevance of answer content according to an embodiment of the present invention;

[0051] Figure 5 A flowchart of calculating the score of effective answer content according to an embodiment of the present invention;

[0052] Figure 6 The flowchart of the psychological analysis method based on the speech response scale of the embodiment of the present invention. DETAILED DESCRIPTION

[0053] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0054] It should be noted that the following detailed descriptions are all illustrative and intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.

[0055] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.

[0056] Embodiment 1

[0057] Figure 1 A schematic diagram of the structure of a psychological analysis system based on a speech response scale according to an embodiment of the present invention is given. Figure 1 , this embodiment provides a psychological analysis system based on a speech answering scale, which includes:

[0058] (1) Feature extraction module 101, which is used to obtain the first speech data of the respondent when answering the baseline questions and the second speech data of the respondent when answering the scale questions, and extract the features of the first speech data and the second speech data.

[0059] Specifically, in the feature extraction module 101, before extracting the corresponding voice data features, the method further includes: performing voice concatenation, voice activation detection and voice enhancement processing on the first voice data and the second voice data respectively.

[0060] For example, in a specific implementation process, when the first voice data or the second voice data contains multiple breakpoints, it is necessary to delete the blank time periods without any signals between the breakpoints and then splice them into corresponding voice data.

[0061] In this embodiment, the purpose of voice activation detection (VAD) is to detect whether the current voice signal contains a voice signal, that is, to judge the input signal, distinguish the voice signal from various background noise signals, and use different processing methods for the two signals.

[0062] The basic principle of voice activation detection is to analyze and calculate the speech coding parameters and their characteristic values, and then use certain logical judgment criteria to determine whether there is a voice signal in the current voice signal.

[0063] There are many methods for voice activation detection, such as using short-time energy and short-time zero-crossing rate to detect using energy features. Short-time energy refers to the energy of a frame of voice signal, and short-time zero-crossing rate refers to the number of times the time domain signal of a frame of voice signal crosses zero. In addition, voice activation detection can also integrate voice features in multiple dimensions, such as spectral features, cepstrum features, harmonic features, and long-term information features.

[0064] In the present embodiment, speech enhancement refers to extracting the purest possible original speech signal from noisy speech, or eliminating background noise. From the processing method, the method of speech enhancement can adopt the method of digital signal processing or the method of machine learning. For example, the method of digital signal processing includes spectral subtraction, Wiener filtering, a method based on a statistical model, a method based on adaptive filtering, and a method based on wavelet transform. The method of machine learning includes but is not limited to a speech enhancement method based on a hidden Markov model, a speech enhancement method based on non-negative matrix decomposition, and the like.

[0065] Wherein, in the feature extraction module, the process of extracting the features of the speech data includes:

[0066] Sampling the corresponding speech data to obtain a one-dimensional speech signal;

[0067] The one-dimensional speech signal is processed in sequence by pre-emphasis, frame division, windowing, short-time Fourier transform, power spectrum and logarithm to obtain a spectrogram;

[0068] The spectrogram is input into the Mel filter bank for multiplication to obtain the corresponding speech Mel spectrum data as the corresponding speech data feature.

[0069] The horizontal axis of the spectrogram is time, the vertical axis is frequency, and the coordinate point value is the energy of the speech data. The spectrogram can be used to observe the change of the signal strength of different frequency bands of speech over time. The Mel filter extracts the frequency band by passing the power spectrum through a set of Mel-scaled triangular filters.

[0070] (2) A respondent determination module 102 is used to calculate the similarity between the first voice data feature and the second voice data feature to determine whether the respondent who answers the baseline question and the scale question is the same person, such as Figure 2 shown.

[0071] Among them, in the respondent judgment module 102, cosine similarity is calculated based on pairing of speech Mel-spectrogram data. For example, a threshold is set to 85%, and the calculation result is compared with the threshold to determine whether the speech questionnaire question data to be identified is from the same speaker.

[0072] (3) A text validity determination module 103, which is used to convert the second voice data when answering each question in the scale to obtain corresponding text data when the respondent who answers the baseline question and the scale question is the same person, and determine the valid text data based on the similarity between the converted text data and the scale question.

[0073] In the specific implementation process, the process of determining valid text data is:

[0074] By collecting a large amount of answer test data divided by question types, inputting the known ERNIE Chinese big model, and letting the big model score whether the answer content is relevant to the question, the score is 0-10 points, and the more relevant the answer content, the higher the score. At the same time, the collected data and scores are input into Bert model 1 to achieve the mapping from features to scores, and complete the training of model 1. In addition, extract the keywords of the scale questions, segment the answers with scores ≥ 7 points, and form relationship pairs with the keywords of the question for words that appear more than 20 times in the same question. In addition, the ERNIE Chinese big model will also mark the emotional categories of the answer content, which are divided into negative, neutral, and positive. The collected data and emotional categories are input into Bert model 2 to achieve the mapping from features to emotional categories, and complete the training of model 2. Figure 4 shown.

[0075] After collecting the new answer text, the trained model 1 is used to encode the translated text data and extract features, thereby obtaining a score, which is regarded as a content similarity index between the answer text data and the scale questions;

[0076] The escaped text data is processed by word segmentation, and the hit rate of the word segmentation and the above relationship pairs is calculated; Figure 3 As shown, the non-baseline question itself and the text data of the non-baseline question are segmented respectively, and relation pairs are formed, and the number of hits with the relation pairs in the knowledge graph is calculated.

[0077] For example, weights of 0.9 and 0.1 are assigned to the number of hits of the score and the relationship pair respectively, and the maximum number of hits is 10, to obtain the content similarity, and whether the text data corresponding to the answer content is valid is determined based on the set threshold of 7 points.

[0078] It should be noted here that the weights of the hit counts of the score and relationship pair and the threshold for determining whether the text data corresponding to the answer content is valid can be specifically set according to actual conditions and will not be described in detail here.

[0079] (4) Guidance program recommendation module 104, which is used to use the semantic analysis model to process valid text data, obtain the corresponding emotion category and its preset score, and then match and find the corresponding psychological guidance program from the database according to the score of the emotion category and make a recommendation.

[0080] For example, model 2 is used to encode valid text data and classify the sentiment categories of the text content, such as Figure 5 As shown. Specifically, the emotional categories are matched with the scores according to the different settings of the scale. When the MHT mental health scale is selected, the score of "positive" is "0", the score of "neutral" is "0.5", and the score of "negative" is "1". When the MHT mental health scale is selected, the corresponding psychological guidance plan is matched and found from the database and recommended.

[0081] In one or more embodiments, the psychological guidance program includes guidance opinions formed from eight aspects: anxiety about people, learning anxiety, loneliness tendency, self-blame tendency, allergy tendency, physical symptoms, fear tendency, and impulsive tendency.

[0082] Embodiment 2

[0083] Figure 6 A flow chart of a psychological analysis method based on a speech response scale according to an embodiment of the present invention is provided. Figure 6 , a psychological analysis method based on a speech answering scale of this embodiment includes:

[0084] S201: Acquire the first voice data of the respondent when answering the baseline question and the second voice data of the respondent when answering the scale question, and extract the first voice data features and the second voice data features.

[0085] Before extracting the corresponding voice data features, it also includes:

[0086] The first voice data and the second voice data are respectively subjected to voice concatenation, voice activation detection and voice enhancement processing.

[0087] For example, in a specific implementation process, when the first voice data or the second voice data contains multiple breakpoints, it is necessary to delete the blank time periods without any signals between the breakpoints and then splice them into corresponding voice data.

[0088] In this embodiment, the purpose of voice activation detection (VAD) is to detect whether the current voice signal contains a voice signal, that is, to judge the input signal, distinguish the voice signal from various background noise signals, and use different processing methods for the two signals.

[0089] The basic principle of voice activation detection is to analyze and calculate the speech coding parameters and their characteristic values, and then use certain logical judgment criteria to determine whether there is a voice signal in the current voice signal.

[0090] There are many methods for voice activation detection, such as using short-time energy and short-time zero-crossing rate to detect using energy features. Short-time energy refers to the energy of a frame of voice signal, and short-time zero-crossing rate refers to the number of times the time domain signal of a frame of voice signal crosses zero. In addition, voice activation detection can also integrate voice features in multiple dimensions, such as spectral features, cepstrum features, harmonic features, and long-term information features.

[0091] In the present embodiment, speech enhancement refers to extracting the purest possible original speech signal from noisy speech, or eliminating background noise. From the processing method, the method of speech enhancement can adopt the method of digital signal processing or the method of machine learning. For example, the method of digital signal processing includes spectral subtraction, Wiener filtering, a method based on a statistical model, a method based on adaptive filtering, and a method based on wavelet transform. The method of machine learning includes but is not limited to a speech enhancement method based on a hidden Markov model, a speech enhancement method based on non-negative matrix decomposition, and the like.

[0092] The process of extracting the features of its voice data includes:

[0093] Sampling the corresponding speech data to obtain a one-dimensional speech signal;

[0094] The one-dimensional speech signal is processed in sequence by pre-emphasis, frame division, windowing, short-time Fourier transform, power spectrum and logarithm to obtain a spectrogram;

[0095] The spectrogram is input into the Mel filter bank for multiplication to obtain the corresponding speech Mel spectrum data as the corresponding speech data feature.

[0096] The horizontal axis of the spectrogram is time, the vertical axis is frequency, and the coordinate point value is the energy of the speech data. The spectrogram can be used to observe how the signal strength of different frequency bands of speech changes over time.

[0097] S202: Calculate the similarity between the first voice data feature and the second voice data feature to determine whether the person who answers the baseline question and the scale question is the same person.

[0098] The cosine similarity is calculated based on the pairwise pairing of the speech Mel spectrum data. For example, the threshold is set to 85%, and the calculation result is compared with the threshold to determine whether the speech questionnaire question data to be recognized is from the same speaker.

[0099] S203: When the person who answers the baseline question and the scale question is the same person, the second voice data when answering each question in the scale is translated to obtain corresponding text data, and valid text data is determined based on the similarity between the translated text data and the scale question.

[0100] In the specific implementation process, the process of determining valid text data is:

[0101] S2031: Encode the translated text data and the scale questions, and calculate the text content similarity;

[0102] S2032: performing word segmentation processing on the translated text data, and calculating the hit rate of the relationship between the word segmentation and the scale question;

[0103] S2033: Assign weights to the text content similarity and the hit rate of the relationship pair respectively to obtain the content similarity, and determine whether the text data corresponding to the answer content is valid based on the threshold.

[0104] For example, by collecting a large amount of test data divided by question types, inputting the known ERNIE Chinese big model, the big model is asked to score whether the answer content is relevant to the question, with a score of 0-10 points. The more relevant the answer content, the higher the score.

[0105] At the same time, the collected data and scores are input into Bert model 1 to achieve the mapping from features to scores and complete the training of Bert model 1. In addition, the keywords of the scale questions are extracted, the answers with scores ≥ 7 points are segmented, and the words that appear more than 20 times in the same question form a relationship pair with the keywords of the question. In addition, the ERNIE Chinese model will also mark the emotional categories of the answer content, dividing them into negative, neutral, and positive, and input the collected data and emotional categories into Bert model 2 to achieve the mapping from features to emotional categories and complete the training of Bert model 2. Figure 4 shown.

[0106] After collecting the new answer text, the trained Bert model 1 is used to encode the translated text data and extract features to obtain a score, which is regarded as an indicator of the content similarity between the answer text data and the scale questions;

[0107] The escaped text data is processed by word segmentation, and the hit rate of the word segmentation and the above relationship pairs is calculated; Figure 3 As shown, the non-baseline question itself and the text data of the non-baseline question are segmented respectively, and relation pairs are formed, and the number of hits with the relation pairs in the knowledge graph is calculated.

[0108] For example, weights of 0.9 and 0.1 are assigned to the number of hits of the score and the relationship pair respectively, and the maximum number of hits is 10, to obtain the content similarity, and whether the text data corresponding to the answer content is valid is determined based on the set threshold of 7 points.

[0109] It should be noted here that the weights of the hit counts of the score and relationship pair and the threshold for determining whether the text data corresponding to the answer content is valid can be specifically set according to actual conditions and will not be described in detail here.

[0110] S204: Use the semantic analysis model to process valid text data to obtain corresponding emotion categories and their preset scores, and then match and search for corresponding psychological guidance plans from the database based on the scores of the emotion categories and make recommendations.

[0111] In some embodiments, Bert model 2 is used to encode valid text data and classify the text content sentiment category, such as Figure 5 Specifically, the emotion categories and scores are matched according to the different settings of the scale.

[0112] For example, when selecting the MHT (Mental Health Test) mental health scale, the score for "positive" is "0", the score for "neutral" is "0.5", and the score for "negative" is "1". When selecting the MHT mental health scale, the corresponding psychological guidance plan is matched and found from the database and recommended.

[0113] In one or more embodiments, the psychological guidance program includes guidance opinions formed from eight aspects, namely, anxiety about people, learning anxiety, loneliness tendency, self-blame tendency, allergy tendency, physical symptoms, fear tendency, and impulsive tendency.

[0114] It should be noted here that the various steps in this embodiment are the same as the specific implementation process of each module in Example 1, and will not be described in detail here.

[0115] Embodiment 3

[0116] This embodiment provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the following steps are implemented:

[0117] Acquire the first voice data of the respondent when answering the baseline question and the second voice data of the respondent when answering the scale question, and extract the features of the first voice data and the second voice data;

[0118] Calculating the similarity between the first voice data feature and the second voice data feature to determine whether the respondent who answers the baseline question and the scale question is the same person;

[0119] When the person who answers the baseline questions and the scale questions is the same person, the second voice data when answering each question in the scale is converted to obtain corresponding text data;

[0120] Calculate the similarity between the escaped text data and the scale questions to determine the valid text data;

[0121] Use semantic analysis models to process valid text data and obtain corresponding sentiment categories;

[0122] The corresponding score is calculated according to the emotion category, and then the corresponding guidance suggestions are matched and found from the guidance database.

[0123] It should be noted here that the various steps in this embodiment are the same as the specific implementation process of each module in Example 1, and will not be described in detail here.

[0124] Embodiment 4

[0125] This embodiment provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the program:

[0126] Acquire the first voice data of the respondent when answering the baseline question and the second voice data of the respondent when answering the scale question, and extract the features of the first voice data and the second voice data;

[0127] Calculating the similarity between the first voice data feature and the second voice data feature to determine whether the respondent who answers the baseline question and the scale question is the same person;

[0128] When the person who answers the baseline questions and the scale questions is the same person, the second voice data when answering each question in the scale is converted to obtain corresponding text data;

[0129] Calculate the similarity between the escaped text data and the scale questions to determine the valid text data;

[0130] Use semantic analysis models to process valid text data and obtain corresponding sentiment categories;

[0131] The corresponding score is calculated according to the emotion category, and then the corresponding guidance suggestions are matched and found from the guidance database.

[0132] It should be noted here that the various steps in this embodiment are the same as the specific implementation process of each module in Example 1, and will not be described in detail here.

[0133] The present invention is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products of the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram and the combination of the processes and / or blocks in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0134] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A psychological analysis system based on a speech response scale, characterized in that: include: A feature extraction module, which is used to obtain the first voice data of the respondent when answering the baseline question and the second voice data when answering the scale question, and extract the first voice data features and the second voice data features; A respondent determination module, which is used to calculate the similarity between the first voice data feature and the second voice data feature to determine whether the respondent who answers the baseline question and the scale question is the same person; A text validity determination module, which is used to, when the respondent who answers the baseline question and the scale question is the same person, translate the second voice data when answering each question in the scale to obtain corresponding text data, and determine the valid text data according to the similarity between the translated text data and the scale question; The guidance program recommendation module is used to use the semantic analysis model to process valid text data, obtain the corresponding emotional category and its preset score, and then match and find the corresponding psychological guidance program from the database according to the score of the emotional category and make a recommendation.

2. The psychological analysis system based on the speech response scale according to claim 1, characterized in that: In the text validity determination module, the process of determining valid text data is as follows: Encode the translated text data and scale questions, and calculate the text content similarity; The text data obtained by translating is segmented and the hit rate of the relationship between the segmented words and the scale questions is calculated; Weights are assigned to the text content similarity and the hit rate of the relationship pair respectively to obtain the content similarity, and the validity of the text data corresponding to the answer content is determined based on the threshold.

3. The psychological analysis system based on the speech response scale according to claim 1, characterized in that: In the guidance scheme recommendation module, valid text data is encoded and the sentiment category of the text content is classified.

4. The psychological analysis system based on the speech response scale according to claim 1, characterized in that: In the feature extraction module, before extracting the corresponding voice data features, it also includes: The first voice data and the second voice data are respectively subjected to voice concatenation, voice activation detection and voice enhancement processing.

5. The psychological analysis system based on the speech response scale according to claim 1, characterized in that: In the feature extraction module, the process of extracting the features of the speech data includes: Sampling the corresponding speech data to obtain a one-dimensional speech signal; The one-dimensional speech signal is processed in sequence by pre-emphasis, frame division, windowing, short-time Fourier transform, power spectrum and logarithm taking to obtain a spectrogram; The spectrogram is input into the Mel filter bank for multiplication to obtain the corresponding speech Mel spectrum data as the corresponding speech data feature.

6. The psychological analysis system based on the speech response scale according to claim 5, characterized in that: In the respondent determination module, cosine similarity is calculated based on pairing of speech mel-spectrogram data, and whether the speech questionnaire question data to be identified is from the same speaker is determined based on the calculation result.

7. A psychological analysis method based on a speech response scale, characterized in that: include: Acquire the first voice data of the respondent when answering the baseline question and the second voice data of the respondent when answering the scale question, and extract the features of the first voice data and the second voice data; Calculating the similarity between the first voice data feature and the second voice data feature to determine whether the respondent who answers the baseline question and the scale question is the same person; When the person who answers the baseline questions and the scale questions is the same person, the second voice data when answering each question in the scale is translated to obtain corresponding text data, and valid text data is determined based on the similarity between the translated text data and the scale questions; The semantic analysis model is used to process valid text data to obtain the corresponding emotional categories and their preset scores. Then, according to the scores of the emotional categories, the corresponding psychological guidance plans are matched and found from the database and recommended.

8. The psychological analysis method based on the speech response scale according to claim 7, characterized in that: The process of determining valid text data is: Encode the translated text data and scale questions, and calculate the text content similarity; The text data obtained by translating is segmented and the hit rate of the relationship between the segmented words and the scale questions is calculated; Weights are assigned to the text content similarity and the hit rate of the relationship pair respectively to obtain the content similarity, and the validity of the text data corresponding to the answer content is determined based on the threshold.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by the processor, the following steps are implemented: Acquire the first voice data of the respondent when answering the baseline question and the second voice data of the respondent when answering the scale question, and extract the features of the first voice data and the second voice data; Calculating the similarity between the first voice data feature and the second voice data feature to determine whether the respondent who answers the baseline question and the scale question is the same person; When the person who answers the baseline questions and the scale questions is the same person, the second voice data when answering each question in the scale is translated to obtain corresponding text data, and valid text data is determined based on the similarity between the translated text data and the scale questions; The semantic analysis model is used to process valid text data to obtain the corresponding emotional categories and their preset scores. Then, according to the scores of the emotional categories, the corresponding psychological guidance plans are matched and found from the database and recommended.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the following steps are implemented: Acquire the first voice data of the respondent when answering the baseline question and the second voice data of the respondent when answering the scale question, and extract the features of the first voice data and the second voice data; Calculating the similarity between the first voice data feature and the second voice data feature to determine whether the respondent who answers the baseline question and the scale question is the same person; When the person who answers the baseline questions and the scale questions is the same person, the second voice data when answering each question in the scale is translated to obtain corresponding text data, and valid text data is determined based on the similarity between the translated text data and the scale questions; The semantic analysis model is used to process valid text data to obtain the corresponding emotional categories and their preset scores. Then, according to the scores of the emotional categories, the corresponding psychological guidance plans are matched and found from the database and recommended.

Citation Information

Patent Citations

  • Comprehensive analysis system based on multi-dimensional psychological assessment

    CN110163118A

  • Similar text recommendation method and device, electronic equipment and storage medium

    CN110825867A