Semi-structured interview system based on fine-tuning large language model

By using a semi-structured interview system based on a fine-tuned large language model, and leveraging speech recognition and multimodal sentiment analysis technologies, personalized interview outlines are automatically generated and extension questions are generated in real time. This solves the problem that chatbot systems cannot flexibly adjust interview questions, achieving automation and intelligence in interviews and improving interview quality and efficiency.

CN118886503APending Publication Date: 2024-11-01ZHEJIANG UNIV +1
View PDF 0 Cites 8 Cited by

Patent Information

Application Number
CN202410914624.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-09
Publication Date
2024-11-01

AI Technical Summary

Technical Problem

Existing chatbot systems struggle to flexibly adjust interview questions based on respondents' answers and cannot utilize multimodal information such as voice and facial expressions to enrich the interview process and result analysis, resulting in low interview quality and efficiency.

Method used

A semi-structured interview system based on fine-tuning of a large language model is adopted, including a large language model fine-tuning module, an interview outline generation module, an interactive interview module, and a multimodal data collection module. It utilizes speech recognition, speech synthesis, and multimodal sentiment analysis technologies to automatically generate personalized interview outlines, generate extension questions in real time, and record data in various forms.

Benefits of technology

It improves the relevance and comprehensiveness of interviews, provides a natural and convenient interactive method, enhances interview efficiency and quality, and automates and intelligentizes the interview process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118886503A_ABST
    Figure CN118886503A_ABST
Patent Text Reader

Abstract

The invention discloses a semi-structured interview system based on a fine-tuning large language model, and the system comprises a large language model fine-tuning module which carries out the fine tuning of a large language model according to the part of an introduction, participant features and an interview outline in a human-computer interaction paper in combination with a domain knowledge graph; the interview outline generation module is used for inputting research purposes, problems and participant feature information into the fine-tuned large language model, automatically generating a semi-structured interview outline, and meanwhile, adaptively adjusting an interview outline generation strategy according to feedback suggestions of researchers; according to the interactive interview module, a large language model carries out voice interactive interview with the participants based on the generated interview outline, and an extension question is generated in real time according to the answer content of the participants; and the multi-modal data collection module is used for recording voice and video information in the interview process, recording answer texts of the participants and identifying and recording emotional information contained in answers of the participants. According to the invention, the interview efficiency and quality can be greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent speech technology, and in particular to a semi-structured interview system based on a fine-tuned large language model. Background Art

[0002] In recent years, semi-structured interviews have been widely used in fields such as human-computer interaction, psychology, and sociology. Compared with fully structured questionnaires, semi-structured interviews can explore research issues more flexibly and in depth. However, traditional semi-structured interviews often rely on researchers to manually design interview outlines. The design of interview questions requires a lot of time and professional knowledge, and the pertinence and comprehensiveness of the questions are difficult to guarantee. In addition, the interview process is usually conducted manually, and researchers need to ask follow-up questions immediately based on the interviewees' answers, which places high demands on the researchers' professionalism and on-the-spot adaptability. The interview process lacks norms and standards, and the quality of interviews by different researchers varies greatly.

[0003] With the development of artificial intelligence technology, especially the advancement of large language models, speech recognition, speech synthesis, sentiment analysis and other technologies, it has become possible to use artificial intelligence to assist and replace manual interviews. Some studies have tried to apply chatbots to interview scenarios and interact with interviewees through a preset dialogue process.

[0004] For example, a Chinese patent document with publication number CN116011542A discloses an intelligent questionnaire interview method based on human-computer dialogue, including obtaining voice input by a user in the current dialogue interview round; converting the voice into corresponding voice text, and encoding the voice text to obtain a semantic feature vector of the voice text; performing feature extraction on the voice to obtain a corresponding voice feature vector; generating a fused feature vector based on the semantic feature vector and the voice feature vector; and obtaining question and answer option content matching the voice based on the fused feature vector.

[0005] A Chinese patent document with publication number CN113780012A discloses a method for generating depression interview dialogues based on a pre-trained language model, including collecting basic information of users through fixed questions; extracting some questions from a preset question library according to a strategy to construct a main question stream to ask questions to the user; classifying the emotional polarity of user replies and selecting corresponding reply sentences as responses to user emotions; using a fine-tuned pre-trained language model GPT-2 to generate follow-up questions related to the user's reply based on the current question and user reply.

[0006] However, most existing chatbots are built based on rule-based or retrieval-based dialogue models, which makes it difficult to flexibly adjust interview questions based on the interviewee's answers. In addition, such systems usually only support text interaction and cannot use multimodal information such as voice and expressions to enrich the interview process and result analysis.

[0007] Therefore, there is an urgent need for a new technical solution that can use advanced artificial intelligence models to automate and intelligentize semi-structured interviews, reduce the workload of manually designing interview outlines, and improve the pertinence and comprehensiveness of interview questions. Summary of the invention

[0008] The present invention provides a semi-structured interview system based on a fine-tuned large language model, which applies artificial intelligence technology to all aspects of semi-structured interviews, greatly improves the efficiency and quality of interviews, fills the gap in the prior art, and has significant technological advancement and practical value.

[0009] A semi-structured interview system based on fine-tuning a large language model, comprising a large language model fine-tuning module, an interview outline generation module, an interactive interview module and a multimodal data collection module;

[0010] The large language model fine-tuning module is used to fine-tune the large language model according to the introduction, participant characteristics and interview outline in the human-computer interaction paper, combined with the domain knowledge graph, to obtain a fine-tuned large language model;

[0011] The interview outline generation module is used to input the research purpose, research questions, and participant feature information into the fine-tuned large language model to automatically generate a semi-structured interview outline. At the same time, the fine-tuned large language model adaptively adjusts the interview outline generation strategy according to the feedback from the researchers.

[0012] In the interactive interview module, the large language model conducts an interactive voice interview with the participants based on the generated interview outline, and generates extended questions in real time according to the participants' answers;

[0013] The multimodal data collection module is used to record voice and video information during the interview process, automatically record the participant's answer text using voice recognition technology, and use multimodal sentiment analysis technology to identify and record the emotional information contained in the participant's answer.

[0014] The specific working process of the large language model fine-tuning module is as follows:

[0015] Download papers related to human-computer interaction, use Python to parse all downloaded papers to extract text content, and use the natural language processing tool NLTK for text preprocessing;

[0016] Using the preprocessed paper data, we construct a knowledge graph in the field of human-computer interaction and user research through named entity recognition and relationship extraction technology, and store the constructed knowledge graph in the form of RDF triples; we use the TransE knowledge graph embedding method to embed the knowledge graph and map entities and relationships into a low-dimensional continuous vector space;

[0017] Use regular expressions to match keywords in the preprocessed text, extract the paragraphs corresponding to the introduction, participant characteristics, and interview outline content, construct a structured data set based on the fine-tuning format, and randomly divide the fine-tuning data set into training, validation, and test sets;

[0018] Use the pre-trained DeepSeek-V2-Lite as the base model, and use the stratified importance sampling AdamW algorithm to fine-tune the model; after each training round, use the validation set to evaluate the performance of the model, and adjust the model's hyperparameters and fine-tuning strategy based on the evaluation results of the validation set; after training, use the test set to evaluate the final performance of the model; save the fine-tuned model parameters to the cloud, and provide an API interface to allow the interview outline generation module to call the model.

[0019] Furthermore, during the training process, at the input end of the large language model training, the text input in the fine-tuning dataset is converted into a token sequence, and the learned knowledge graph embedding is used to add the corresponding entity embedding representation to each token; during the fine-tuning process, the model uses the attention mechanism to simultaneously focus on the text input and the corresponding entity embedding, capturing the relationship between the input text and domain knowledge, thereby generating an interview outline that better meets research needs.

[0020] Furthermore, an incremental update mechanism for the knowledge graph is designed to regularly crawl the latest published paper data, preprocess, name entity recognize, and extract relationships for the new data, and integrate it with the existing knowledge graph.

[0021] The stratified importance sampling AdamW algorithm is used to fine-tune the model, specifically:

[0022] Improvements are made to LoRA. To address the skewed distribution of cross-layer weight norms in LoRA, different layers are sampled to freeze to simulate the update mode of LoRA, avoiding the inherent defects of LoRA in limited low-rank representation capability and simulating its fast process.

[0023] The specific working process of the interview outline generation module is as follows:

[0024] The researchers input the research purpose, research questions, and participant characteristics into the fine-tuned large language model, which then generates relevant interview outlines based on the input information. The researchers manually review and modify the interview outlines as the output of the final report.

[0025] In the subsequent interview outline generation process, the interview outline generation strategy is adaptively adjusted according to the feedback from researchers through multi-task learning strategy and adaptive reward mechanism based on entropy regularization.

[0026] The specific working process of the interactive interview module is as follows:

[0027] Participants answered questions through voice input, and DeepSpeech2 was used to build an end-to-end speech recognition model to convert voice answers into text answers in real time, and pycorrector was used for error correction and optimization;

[0028] TF-IDF technology is used to extract keywords from the participants' text answers. The large language model further generates personalized extended questions based on the extracted keywords, research purpose, research questions and participant feature information.

[0029] The pre-trained TacotronV2 model is used to extract acoustic features from the text of all semi-structured interview questions (including interview outlines and extended questions), including Mel-frequency cepstral coefficients and fundamental frequency. The extracted acoustic features are input into WaveRNN for speech generation, converting the text into natural and fluent speech output.

[0030] The generated extended questions and their contextual information are stored to form a new interview question dataset; this dataset is used to train and optimize the fine-tuned large language model to improve the quality and diversity of questions generated by the system.

[0031] In the multimodal data collection module, speech recognition technology is used to automatically record the participant's answer text. The specific process is as follows:

[0032] Use a microphone array to collect the voice information of the participants; use MFCC to pre-process the original voice signal in the video, and convert the original voice signal into voice feature parameters by pre-emphasis, framing and windowing the extracted voice data;

[0033] Use DeepSpeech2 to build an end-to-end speech recognition model, convert the original speech into text in real time, and use pycorrector for error correction and optimization; for text data, use NLTK to segment the text and remove stop words; use the word2vec model to convert the text into word vector form and build a word vector dictionary.

[0034] In the multimodal data collection module, multimodal sentiment analysis technology is used to identify and record the emotional information contained in the participants' answers, specifically:

[0035] A high-resolution camera is used to collect the video information of the participants, and the video frames are encoded and compressed in real time. The improved Inception-ResnetV2 neural network model is used to obtain the facial expression characteristics of the participants during the interview. The one-dimensional convolutional layer and pooling layer in the shallow feature extraction network are used to process the speech feature parameters to obtain the shallow features of the speech, and then the Embedding and BiLSTM layers in the shallow feature extraction network are used to process the word vector dictionary to obtain the shallow features of the text. The correlation between speech and text features is strengthened through the cross-attention fusion module. The fusion features of speech and text are spliced ​​with the expression features and input into BiLSTM to process the forward and backward information at the same time. An attention layer is added after BiLSTM to finally output the sentiment classification results.

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

[0037] 1. The present invention uses a fine-tuned large language model to automatically generate a semi-structured interview outline, and generates personalized and targeted interview questions according to the research purpose, questions and participant characteristics, which reduces the workload of researchers in manually designing interview outlines and improves the professionalism and comprehensiveness of the interview outlines.

[0038] 2. During the interview process, the present invention generates extended questions in real time according to the participants' answers, making the interview more flexible and in-depth. The application of voice interaction and speech synthesis technology provides participants with a more natural and convenient interaction method, improving the interview experience.

[0039] 3. The present invention uses a multimodal data collection module to record data in various forms such as voice, video, and text during the interview process, and uses technologies such as voice recognition and sentiment analysis for intelligent processing, thereby obtaining more comprehensive and in-depth participant information, providing high-quality data support for subsequent interview analysis.

[0040] 4. The present invention applies artificial intelligence technologies such as large language models, speech recognition, speech synthesis, and sentiment analysis to all aspects of semi-structured interviews, realizes the automation and intelligence of the interview process, reduces the intervention of manual operations, and improves the efficiency and standardization of interviews.

[0041] 5. The method provided by the present invention is not only applicable to the field of human-computer interaction, but can also be expanded to various scenarios that require semi-structured interviews, such as psychological counseling, human resources, and market research. It provides a general technical support for interview practice and has broad application prospects. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 This is a flow chart of the implementation of a semi-structured interview system based on a fine-tuned large language model according to the present invention;

[0043] Figure 2 This is a flow chart of the large language model fine-tuning module in the present invention;

[0044] Figure 3 A flow chart of the interview outline generation module in the present invention;

[0045] Figure 4 This is a flow chart of the interactive interview module in the present invention;

[0046] Figure 5 This is a flow chart of the multimodal data collection module in the present invention. DETAILED DESCRIPTION

[0047] The present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be pointed out that the embodiments described below are intended to facilitate the understanding of the present invention and do not have any limiting effect on the present invention.

[0048] like Figure 1 As shown in the figure, a semi-structured interview system based on fine-tuning a large language model includes the following modules:

[0049] The large language model fine-tuning module fine-tunes the large language model based on the introduction, participant characteristics, and interview outline in the human-computer interaction paper, combined with the domain knowledge graph;

[0050] In the interview outline generation module, researchers input the research purpose and questions, as well as the characteristics of the participants. The fine-tuned large language model automatically generates a semi-structured interview outline based on the input information. Based on the feedback from the researchers, the large language model will adaptively adjust the interview outline generation strategy.

[0051] Interactive interview module: The large language model conducts interactive voice interviews with participants based on the generated interview outline, and generates extended questions in real time based on the answers;

[0052] The multimodal data collection module records voice and video information during the interview process, uses speech recognition technology to automatically record the text of participants' answers, and uses multimodal sentiment analysis technology to identify and record the emotional information contained in the participants' answers.

[0053] The process of fine-tuning the large language model module is as follows Figure 2 As shown, the following steps are included:

[0054] 1. Acquisition and preprocessing of paper data, including: setting search keywords (Human-Computer Interaction, Participant, Interview, User Study, Semi-structure Interview, etc.), using the academic paper database (ACM Digital Library) to search, downloading PDF files and metadata information (title, author, abstract, keywords, etc.) of relevant papers in the field of human-computer interaction in the past five years. Use Python to parse all PDF files to extract text content. After obtaining the extracted text content, use the natural language processing tool NLTK to preprocess the text, including word segmentation, unifying upper and lower case, stem extraction to remove stop words, and remove special characters.

[0055] 2. Construction and update of domain knowledge graph, including: using pre-processed paper data, through named entity recognition and relationship extraction technology, to build knowledge graphs in the field of human-computer interaction and user research. The knowledge graph contains important concepts in the field (such as user experience, usability, interaction design, user research methods, etc.) and the relationships between concepts (such as "influence", "include", "apply to", etc.). The identified entities and relationships are normalized and deduplicated to build a high-quality knowledge graph. The constructed knowledge graph is stored in the form of RDF triples, each of which includes (head entity, relationship, tail entity). The TransE knowledge graph embedding method is used to embed the knowledge graph and map entities and relationships to a low-dimensional continuous vector space. TransE learns the embedding representation by minimizing the distance between the head (entity vector + relationship vector) and the tail entity vector, so that in the embedding space, the distance between valid triples is small and the distance between invalid triples is large. In order to adapt to the dynamic update of domain knowledge, an incremental update mechanism for the knowledge graph is designed. Regularly crawl the latest published paper data, pre-process the new data, extract entity relationships, and integrate them with the existing knowledge graph. Use incremental learning methods to update the structure and content of the knowledge graph, and update the TransE knowledge graph embedding model to dynamically adjust the embedding vectors of entities and relationships.

[0056] 3. Fine-tuning dataset construction, including: The introduction of a paper usually contains the purpose of the research and the research questions. Use regular expressions to match keywords (Introduction, Participant, interview guide, interview questions, etc.) on the preprocessed text to extract the corresponding paragraphs. According to the data features of the large language model instruction fine-tuning, the extracted introduction, participant characteristics, and interview outline content are used to construct a structured dataset in the fine-tuning format (for example, {"instrution":"Please output a semi-structured interview outline based on the following research content and participant characteristics.", "input":"Study college students' views on generative artificial intelligence, the participants are 15 college students in a certain university", "output":"1. How old are you? 2. Have you ever used generative artificial intelligence?"}). The fine-tuning dataset is randomly shuffled and divided into training set, validation set, and test set in a ratio of 8:1:1.

[0057] 4. Model training and testing, including: using the pre-trained DeepSeek-V2-Lite as the base model, and fine-tuning the model using the hierarchical importance sampling AdamW algorithm. The specific method is that, in response to the skewed distribution of cross-layer weight norms in LoRA, different layers are sampled to freeze to simulate the update mode of LoRA, which can avoid the inherent defects of LoRA in limited low-rank representation capabilities and simulate its fast process. Assuming that each layer has the same global learning rate, the layer with a smaller weight norm in LoRA should also have a smaller probability of being sampled and unfrozen in the full parameter setting, so that the desired learning rate in each iteration can be kept unchanged. In the full parameter setting, the present invention does not apply different learning rates η for each layer. t To simulate the update of LoRA Instead, we obtain the same expected learning rate through sampling, namely importance sampling:

[0058]

[0059] Since the weight norms of all layers in LoRA are small except the bottom and top layers, we adopt Where γ controls the expected number of unfrozen layers during optimization, which acts as a compensation factor to bridge the difference between LoRA and full parameter tuning, allowing the layered importance sampling AdamW to simulate a layered update pattern similar to LoRA. To further control memory consumption in practical settings, the γ layer is randomly sampled each time to limit the maximum number of unfrozen layers during training. The pseudo code of the layered importance sampling AdamW algorithm is as follows:

[0060]

[0061]

[0062] At the input end of model training, the text input in the fine-tuning dataset is converted into a token sequence, and the knowledge graph embedding learned in step 2 is used to add a corresponding entity embedding representation to each token. Specifically, for each entity that appears in the input text, find its corresponding embedding vector in the knowledge graph, concatenate or aggregate the entity embedding with the token embedding to form a knowledge-enhanced input representation. During the fine-tuning process, the model uses the attention mechanism to simultaneously focus on the text input and the corresponding entity embedding, capturing the relationship between the input text and domain knowledge, thereby generating a more professional interview outline that meets research needs. After each training round, the validation set is used to evaluate the performance of the model. Based on the evaluation results of the validation set, the model's hyperparameters and fine-tuning strategies are adjusted to obtain the best performance. After training, the test set is used to evaluate the final performance of the model to ensure the generalization ability of the model.

[0063] 5. Model preservation and deployment, including: saving the fine-tuned model parameters to the cloud, providing an API interface to allow the interview outline generation module to call the model. At the same time, the embedding vector of the domain knowledge graph is also saved to enhance knowledge during model reasoning.

[0064] The process of the interview outline generation module is as follows: Figure 3 As shown, the steps are as follows:

[0065] 1. Information input, including: The researcher first enters the research purpose and specific questions in the interface. These questions include but are not limited to research objectives, research hypotheses, survey topics, etc. For example, researchers may enter "Study the learning motivation of college students" and related specific questions, such as "What factors affect the learning motivation of college students?". Researchers also need to enter the characteristic information of the participants, including but not limited to the number of participants, age, gender, educational background, socioeconomic status, etc. This characteristic information will help the large language model generate more targeted interview questions. For example, the interview outline for college students may be different from that for adults or young children.

[0066] 2. Generate a preliminary interview outline, including: input the pre-processed data into the fine-tuned large language model through the provided API interface. The model understands the input research purpose, questions and participant characteristics, and generates relevant interview questions. The interview outline includes open and closed questions, aiming to guide participants to provide meaningful answers while ensuring that all research questions are fully explored.

[0067] 3. Manual review and modification, including: researchers can modify and supplement the interview outline according to actual needs to ensure that the final outline meets the research objectives and actual conditions. This step ensures the flexibility and practicality of the interview outline. The feedback from researchers will serve as a reward signal for reinforcement learning to drive the dynamic optimization of the model. The interview outline after manual review and modification will be used as the final output.

[0068] 4. Dynamically optimize the outline, including: based on the PPO algorithm, a multi-task learning strategy and an adaptive reward mechanism based on entropy regularization are proposed, which can adaptively adjust the interview outline generation strategy according to the feedback from researchers. The specific steps are as follows:

[0069] a) State representation: The research objectives, questions, participant characteristics, and current interview outline input by the researcher are represented as a state vector s t , digitized using word embedding, sentence embedding, etc. The state vector s t It can be expressed as:

[0070] s t =[e purpose ;e question ;e participant ;e outline ]

[0071] Among them, e purpose 、e question 、e participant 、e outline Embedding vectors representing the research purpose, questions, participant characteristics, and the current interview outline, respectively.

[0072] b) Define the action space: Define the action space A of the large language model when generating the interview outline, including operations such as adding, deleting, modifying questions, and adjusting the order of questions. Each action a t ∈A corresponds to a modification of the interview outline. For example, adding a question can be expressed as:

[0073] a add =[w1,w2,…,w n ]

[0074] Among them, [w1,w2,…,w n ] represents the word vector sequence of the question to be added.

[0075] c) Design reward function: Design reward function based on the researcher’s feedback on the generated interview outline. Feedback can be acceptance, partial modification, or deletion of questions. Design positive and negative reward signals:

[0076] R=α·A accept -β·A modify-γ·A delete +η·H

[0077] Among them, A accept , A modify , A delete They represent the number of accept, modify and delete operations respectively, α, β, γ are the corresponding weight coefficients, H is the entropy regularization term, and η is the weight coefficient of the entropy regularization term. The entropy regularization term is used for exploration to improve the diversity of generated problems.

[0078] d) Multi-task learning strategy: Two neural networks are used as the policy network π(a|s) and the value network V(s). The policy network is based on the current state s t Output the modification action of the interview outline a t , the value network is used to estimate the expected cumulative reward under the current state. The value network shares some parameters θ with the policy network shared , which is used to reduce variance and improve training stability. Based on the policy network and value network, the interview outline generation task is divided into multiple subtasks, such as question addition, question deletion, question modification, and question sorting. The networks of different subtasks share some parameters to improve training efficiency and model generalization ability. The policy network and value network of subtask i are represented as π i (a|s) and V i (s) Design a multi-task loss function, taking into account the loss of each subtask:

[0079] L total =∑ i w i ·L i

[0080] Among them, L i is the loss function of the ith subtask, w i is the corresponding weight coefficient. The loss function L of subtask i i Including strategy losses and value loss

[0081]

[0082] in, The new and old strategies are in state s t Next, take action α t The probability ratio of is the generalized advantage estimate, is the target value, c1 and c2 are balance factors, and ε is the clip range, usually 0.1 to 0.3.

[0083] e) Adaptive entropy regularization: In order to improve the diversity of the generated problems and avoid the model from converging to a suboptimal solution too early, adaptive entropy regularization is proposed. Specifically, the entropy value H of the current policy π(a|s) is calculated as:

[0084]

[0085] The higher the entropy value H, the greater the randomness of the policy. Adding the entropy regularization term η·H to the reward function R improves the policy's exploration ability. Dynamically adjust the entropy regularization coefficient η:

[0086] η=η0·e -δH

[0087] Among them, η0 is the initial value and δ is the attenuation coefficient.

[0088] f) Algorithm training and iteration: Collect training data through interaction with researchers. Each interaction generates a trajectory τ = (s0, a0, r0, s1, a1, r1, …, s T ), which contains a series of states, actions, and rewards. Then, a multi-task learning strategy is used to minimize the total loss L total , update the parameters of the policy network π(a|s) and the value network V(s). At the same time, the adaptive entropy regularization method is used to dynamically adjust the exploration rate. By repeatedly interacting with researchers, more training data is collected and the interview outline generation strategy is optimized until the stopping condition is met (such as reaching the preset number of interactions or performance indicators).

[0089] The pseudo code of the entire dynamic optimization outline generation algorithm is as follows:

[0090]

[0091]

[0092] The interactive interview module process is as follows Figure 4 As shown, the steps are as follows:

[0093] 1. Speech recognition, including: participants answer questions through voice input, use DeepSpeech2 to build an end-to-end speech recognition model, convert speech into text in real time, and use pycorrector for error correction and optimization.

[0094] 2. Answer understanding and analysis, including: using TF-IDF technology to extract keywords from participants’ text answers. The large language model further generates personalized extended questions based on the extracted keywords, research purpose, questions, and participant feature information.

[0095] 3. Speech synthesis, including: using the pre-trained TacotronV2 model to extract acoustic features from the text of semi-structured interview questions. These features include acoustic information such as Mel-frequency cepstral coefficients (MFCC) and fundamental frequency. The extracted acoustic features are input into WaveRNN for speech generation, converting the text into natural and fluent speech output.

[0096] 4. Data enhancement, including: storing the generated extended questions and their contextual information to form a new interview question dataset. This dataset is used for model training and optimization to improve the quality and diversity of questions generated by the system.

[0097] The process of the multimodal data collection module is as follows: Figure 5 As shown, the steps are as follows:

[0098] 1. Speech feature extraction, including: using a microphone array to collect the voice information of the participants, using MFCC to pre-process the original speech signal in the video, and converting the original speech signal into speech feature parameters by pre-emphasis, framing and windowing the extracted speech data.

[0099] 2. Speech-to-text feature extraction, including: using DeepSpeech2 to build an end-to-end speech recognition model, converting the original speech into text in real time, and using pycorrector for error correction and optimization. For text data, use NLTK to segment the text, remove stop words, and avoid interference from useless information. Use the word2vec model to convert the text into word vector form and build a word vector dictionary.

[0100] 3. Expression feature extraction, including: using high-resolution cameras to collect video information of participants, and encoding and compressing video frames in real time to reduce storage and transmission overhead. Using the improved Inception-ResnetV2 neural network model to obtain the expression features of participants during the interview. The improved method is to combine 3D convolution with 2D convolution, first use 2D convolution to extract spatial features, and then use 3D convolution to capture the features of the time dimension, which can not only form a deeper feature representation, but also effectively improve the recognition efficiency of facial expressions.

[0101] 4. Multimodal sentiment analysis, including: first, using the one-dimensional convolution layer and pooling layer in the shallow feature extraction network to process the speech feature parameters to obtain the shallow features of the speech, and then using the Embedding and BiLSTM layers in the shallow feature extraction network to process the word vector dictionary to obtain the shallow features of the text. Since there is a close temporal and feature coupling relationship between the two modalities of text and speech, the correlation between speech and text features is strengthened through the cross-attention fusion module. The fusion features of speech and text are spliced ​​with the expression features and input into BiLSTM to process the forward and backward information at the same time. In order to improve the model's ability to perceive and utilize key information, an attention layer is added after BiLSTM, and finally the sentiment classification result is output.

[0102] 5. User portrait management, including: creating a user portrait for each participant, recording their basic information, interview voice, interview text, interview video, and emotional information, to provide multi-dimensional data for subsequent semi-structured interview analysis.

[0103] The embodiments described above provide a detailed description of the technical solutions and beneficial effects of the present invention. It should be understood that the above are only specific embodiments of the present invention and are not intended to limit the present invention. Any modifications, supplements and equivalent substitutions made within the scope of the principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A semi-structured interview system based on a fine-tuned large language model, characterized in that: It includes a large language model fine-tuning module, an interview outline generation module, an interactive interview module, and a multimodal data collection module; The large language model fine-tuning module is used to fine-tune the large language model according to the introduction, participant characteristics and interview outline in the human-computer interaction paper, combined with the domain knowledge graph, to obtain a fine-tuned large language model; The interview outline generation module is used to input the research purpose, research questions, and participant feature information into the fine-tuned large language model to automatically generate a semi-structured interview outline. At the same time, the fine-tuned large language model adaptively adjusts the interview outline generation strategy according to the feedback from the researchers. In the interactive interview module, the large language model conducts an interactive voice interview with the participants based on the generated interview outline, and generates extended questions in real time according to the participants' answers; The multimodal data collection module is used to record voice and video information during the interview process, automatically record the participant's answer text using voice recognition technology, and use multimodal sentiment analysis technology to identify and record the emotional information contained in the participant's answer.

2. The semi-structured interview system based on fine-tuning large language model according to claim 1 is characterized in that: The specific working process of the large language model fine-tuning module is as follows: Download papers related to human-computer interaction, use Python to parse all downloaded papers to extract text content, and use the natural language processing tool NLTK for text preprocessing; Using the preprocessed paper data, we construct a knowledge graph in the field of human-computer interaction and user research through named entity recognition and relationship extraction technology, and store the constructed knowledge graph in the form of RDF triples; Use the TransE knowledge graph embedding method to embed knowledge graphs and map entities and relationships into low-dimensional continuous vector spaces; Use regular expressions to match keywords in the preprocessed text to extract the paragraphs corresponding to the introduction, participant characteristics, and interview outline content; construct a structured data set based on the extracted paragraphs in a fine-tuned format, and randomly divide the fine-tuned data set into a training set, a validation set, and a test set; Use the pre-trained DeepSeek-V2-Lite as the base model and use the hierarchical importance sampling AdamW algorithm to fine-tune the model; After each training round, the validation set is used to evaluate the performance of the model. Based on the evaluation results of the validation set, the model's hyperparameters and fine-tuning strategies are adjusted. After training, the test set is used to evaluate the final performance of the model; the fine-tuned model parameters are saved to the cloud, and an API interface is provided to allow the interview outline generation module to call the model.

3. The semi-structured interview system based on fine-tuning large language model according to claim 2 is characterized in that: During the training process, at the input end of the large language model training, the text input in the fine-tuning dataset is converted into a token sequence, and the learned knowledge graph embedding is used to add the corresponding entity embedding representation to each token; during the fine-tuning process, the model uses the attention mechanism to simultaneously focus on the text input and the corresponding entity embedding, capturing the relationship between the input text and domain knowledge, thereby generating an interview outline that better meets research needs.

4. The semi-structured interview system based on fine-tuning large language model according to claim 2 is characterized in that: Design an incremental update mechanism for the knowledge graph, regularly crawl the latest published paper data, preprocess, name entity recognize, and extract relationships for the new data, and integrate it with the existing knowledge graph.

5. The semi-structured interview system based on fine-tuning large language model according to claim 2, characterized in that: The stratified importance sampling AdamW algorithm is used to fine-tune the model, specifically: Improvements are made to LoRA. To address the skewed distribution of cross-layer weight norms in LoRA, different layers are sampled to freeze to simulate the update mode of LoRA, avoiding the inherent defects of LoRA in limited low-rank representation capability and simulating its fast process.

6. The semi-structured interview system based on fine-tuning large language model according to claim 1, characterized in that: The specific working process of the interview outline generation module is as follows: The researchers input the research purpose, research questions, and participant characteristics information into the fine-tuned large language model, and the fine-tuned large language model generates relevant interview outlines based on the input information; The researcher manually reviewed and revised the interview outline as the output of the final report; In the subsequent interview outline generation process, the interview outline generation strategy is adaptively adjusted according to the feedback from researchers through multi-task learning strategy and adaptive reward mechanism based on entropy regularization.

7. The semi-structured interview system based on fine-tuning large language model according to claim 1, characterized in that: The specific working process of the interactive interview module is as follows: Participants answered questions through voice input, and DeepSpeech2 was used to build an end-to-end speech recognition model to convert voice answers into text answers in real time, and pycorrector was used for error correction and optimization; TF-IDF technology is used to extract keywords from the participants' text answers. The large language model further generates personalized extended questions based on the extracted keywords, research purpose, research questions and participant feature information. The pre-trained TacotronV2 model is used to extract acoustic features from the text of all semi-structured interview questions. These features include Mel-frequency cepstral coefficients and fundamental frequency. The extracted acoustic features are input into WaveRNN for speech generation, converting the text into natural and fluent speech output. The generated extended questions and their contextual information are stored to form a new interview question dataset; this dataset is used to train and optimize the fine-tuned large language model to improve the quality and diversity of questions generated by the system.

8. The semi-structured interview system based on fine-tuning large language model according to claim 1, characterized in that: In the multimodal data collection module, speech recognition technology is used to automatically record the participant's answer text. The specific process is as follows: Use a microphone array to collect the voice information of the participants; use MFCC to pre-process the original voice signal in the video, and convert the original voice signal into voice feature parameters by pre-emphasis, framing and windowing the extracted voice data; Use DeepSpeech2 to build an end-to-end speech recognition model, convert raw speech into text in real time, and use pycorrector for error correction and optimization; for text data, use NLTK to segment the text and remove stop words; The word2vec model is used to convert text into word vector form and build a word vector dictionary.

9. The semi-structured interview system based on fine-tuning large language model according to claim 1, characterized in that: In the multimodal data collection module, multimodal sentiment analysis technology is used to identify and record the emotional information contained in the participants' answers, specifically: Use a high-resolution camera to collect the video information of the participants, and encode and compress the video frames in real time; use the improved Inception-ResnetV2 neural network model to obtain the facial features of the participants during the interview; use the one-dimensional convolution layer and pooling layer in the shallow feature extraction network to process the speech feature parameters to obtain the shallow features of the speech, and then use the Embedding and BiLSTM layers in the shallow feature extraction network to process the word vector dictionary to obtain the shallow features of the text; strengthen the correlation between speech and text features through the cross-attention fusion module; The fusion features of speech and text are concatenated with the expression features and input into BiLSTM to process the forward and backward information simultaneously; An attention layer is added after BiLSTM to finally output the sentiment classification result.

Citation Information

Cited By

  • Intelligent customer service question answering method and device based on large language model and knowledge graph, equipment and medium

    CN119294536A

  • Intelligent qualitative data analysis method and system based on AIGC large model

    CN119692327A

  • Adaptive traffic domain service voice generation method and system based on thinking chain fine-tuning large model

    CN120126484A

  • A method and system for speech adaptive generation of traffic domain services based on chain-of-thought fine-tuning of large models

    CN120126484B

  • Voice interaction task execution method and device based on large model, equipment and medium

    CN120472906A