Disease warning method, device, equipment and storage medium based on voice

By performing deep learning processing on user voice data and extracting semantic and contextual features of voice clips, efficient early warning of the risk of Alzheimer's disease is achieved, solving the problems of insufficient accuracy and long time periods of existing diagnostic methods.

CN113935330BActive Publication Date: 2024-10-25PING AN TECH (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111229792.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-22
Publication Date
2024-10-25
Estimated Expiration
2041-10-22

AI Technical Summary

Technical Problem

Existing diagnostic methods for Alzheimer's disease are not accurate enough and take a long time, and they lack effective methods for early screening and prevention.

Method used

By sampling, slicing, and deep learning language model encoding conversion of user voice data, the semantic features and contextual features of the voice segments are extracted, and the Transformer network is used for feature fusion and intent prediction to achieve early warning of Alzheimer's disease risk.

Benefits of technology

It improves the accuracy and efficiency of early screening for Alzheimer's disease and can provide early warning to potential patients based on the prediction results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113935330B_ABST
    Figure CN113935330B_ABST
Patent Text Reader

Abstract

The present invention relates to the fields of artificial intelligence and digital medicine, and discloses a disease early warning method, device, equipment and storage medium based on speech. The method comprises: slicing the collected target speech data to obtain speech segments; encoding and converting the speech segments to obtain semantic feature coding information of the speech segments; inputting the semantic feature coding information into a preset intention recognition model for feature extraction to obtain target semantic features and context semantic features corresponding to the semantic feature coding information; inputting the target semantic features and context semantic features into the feature fusion layer of the intention recognition model for feature fusion to obtain features to be classified, and inputting the features to be classified into a classifier for intention prediction, and providing an early warning of Alzheimer's disease to the user according to the prediction results. The present invention can screen potential patients with early Alzheimer's disease according to the prediction results and provide an early warning of Alzheimer's disease.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence and digital medical technology, and in particular to a speech-based disease early warning method, device, equipment and storage medium. Background Art

[0002] So far, there is no sufficiently accurate method to predict Alzheimer's disease and diagnose it early. The main diagnostic method at this stage is combined diagnosis. Currently, biomarkers used to assist in AD diagnosis are mainly divided into two categories: body fluid markers and imaging markers. They need to be evaluated in the hospital under the guidance of professional doctors, which takes a long time. Therefore, how to pre-process the collected user voice data, obtain important indicator information such as semantics and speech speed, and warn of the risk of Alzheimer's disease and conduct early screening and prevention is a technical problem that technicians in this field need to solve. Summary of the invention

[0003] The main purpose of the present invention is to analyze user speech and semantics based on deep learning to predict the risk level of Alzheimer's disease and improve prediction efficiency.

[0004] The first aspect of the present invention provides a speech-based disease warning method, comprising: collecting original speech data of a user, and sampling the original speech data to obtain target speech data; slicing the target speech data to obtain a preset number of speech segments; inputting the preset number of speech segments into a preset deep learning language model for encoding conversion to obtain semantic feature encoding information of the speech segments; inputting the semantic feature encoding information into a preset intention recognition model, extracting the target feature in the semantic feature encoding information through a first Transformer network in the intention recognition model, and obtaining a target semantic feature corresponding to the semantic feature encoding information; based on the target semantic feature, extracting context features using a second Transformer network in the intention recognition model to obtain corresponding context semantic features; inputting the target semantic features and the context semantic features into the feature fusion layer of the second Transformer network for feature fusion to obtain features to be classified, and inputting the features to be classified into a preset classifier for intention prediction to obtain a prediction result.

[0005] Optionally, in a first implementation method of the first aspect of the present invention, the slicing of the target voice data to obtain a preset number of voice segments includes: generating a waveform graph of the target voice data; determining pauses in the target voice data based on the voice waveform in the waveform graph; and segmenting the target voice data based on the pauses in the target voice data to obtain a preset number of voice segments.

[0006] Optionally, in a second implementation manner of the first aspect of the present invention, segmenting the target voice data according to pauses in the target voice data to obtain a preset number of voice segments includes: recognizing the target voice data based on voice recognition technology to generate fuzzy text corresponding to the target voice data; calling a preset word segmentation algorithm to segment the fuzzy text corresponding to the target voice data; segmenting the target voice data according to pauses and word segmentation results in the target voice data to obtain a preset number of voice segments.

[0007] Optionally, in a third implementation method of the first aspect of the present invention, before the semantic feature encoding information is input into a preset intention recognition model, the target feature in the semantic feature encoding information is extracted through the first Transformer network in the intention recognition model to obtain the target semantic feature corresponding to the semantic feature encoding information, it also includes: constructing an initial intention recognition model, obtaining a training sample set, and inputting each sample text in the training sample set into the initial intention recognition model; and determining all the sample text areas according to the sample area vector, the sample area pinyin vector and the sample area label vector of each sample text area corresponding to each sample text through the initial intention recognition model. The predicted intent value of the sample text; based on the predicted intent values ​​of all the sample texts and the true intent values ​​of all the sample texts, calculating the loss value of the initial intent recognition model; when the loss value does not reach a preset convergence condition, updating and iterating the first initial parameter of the initial intent recognition model until the loss value reaches the preset convergence condition, obtaining a target intent recognition model, wherein the intent recognition model includes a first Transformer network, a second Transformer network, a feature fusion layer respectively connected to the first Transformer network and the second Transformer network, and a classifier connected to the feature fusion layer.

[0008] Optionally, in a fourth implementation method of the first aspect of the present invention, the semantic feature encoding information is input into a preset intention recognition model, and the target feature in the semantic feature encoding information is extracted through the first Transformer network in the intention recognition model to obtain the target semantic feature corresponding to the semantic feature encoding information, including: concatenating the semantic feature encoding information with a preset identifier to obtain a first concatenated string; performing vector conversion on each character in the first concatenated string to obtain a first initial vector; using the first self-attention module to process the first initial vector to obtain a first intermediate vector output by the first self-attention module; performing linear weighting and normalization on the first intermediate vector to obtain a first target vector; and using the row vector corresponding to the preset identifier in the first target vector as the target semantic feature.

[0009] Optionally, in a fifth implementation manner of the first aspect of the present invention, the context features are extracted based on the target semantic feature using the second Transformer network in the intent recognition model to obtain the corresponding context semantic features, including: splicing the target semantic feature with the identification vector corresponding to the preset identifier to obtain a splicing vector; using the second self-attention module to process the splicing vector to obtain the attention vector output by the second self-attention module; linearly weighting and normalizing the attention vector to obtain a normalized vector; obtaining a row vector corresponding to the preset identifier from the normalized vector, and using the row vector as the context semantic feature corresponding to the target semantic feature.

[0010] Optionally, in a sixth implementation method of the first aspect of the present invention, after inputting the target semantic features and the context semantic features into the feature fusion layer of the second Transformer network for feature fusion to obtain features to be classified, and inputting the features to be classified into a preset classifier for intention prediction and obtaining the prediction results, it also includes: triggering a preset voice system according to the prediction results to notify the user.

[0011] The second aspect of the present invention provides a speech-based disease warning device, comprising: a sampling module, which is used to collect the user's original voice data and sample the original voice data to obtain target voice data; a slicing module, which is used to slice the target voice data to obtain a preset number of voice segments; a coding conversion module, which is used to input the preset number of voice segments into a preset deep learning language model for coding conversion to obtain semantic feature coding information of the voice segments; a first feature extraction module, which is used to input the semantic feature coding information into a preset intention recognition model, extract the target feature in the semantic feature coding information through the first Transformer network in the intention recognition model, and obtain the target semantic feature corresponding to the semantic feature coding information; a second feature extraction module, which is used to extract context features based on the target semantic features using the second Transformer network in the intention recognition model to obtain corresponding context semantic features; a feature fusion module, which is used to input the target semantic features and the context semantic features into the feature fusion layer of the second Transformer network for feature fusion to obtain features to be classified, and input the features to be classified into a preset classifier for intention prediction to obtain prediction results.

[0012] Optionally, in a first implementation method of the second aspect of the present invention, the slicing module includes: a generation unit for generating a waveform graph of the target speech data; a determination unit for determining pauses in the target speech data based on the speech waveform in the waveform graph; and a segmentation unit for segmenting the target speech data according to the pauses in the target speech data to obtain a preset number of speech segments.

[0013] Optionally, in a second implementation method of the second aspect of the present invention, the segmentation unit is specifically used to: recognize the target voice data based on speech recognition technology to generate fuzzy text corresponding to the target voice data; call a preset word segmentation algorithm to segment the fuzzy text corresponding to the target voice data; segment the target voice data according to pauses and word segmentation results in the target voice data to obtain a preset number of voice segments.

[0014] Optionally, in a third implementation manner of the second aspect of the present invention, the speech-based disease warning device also includes: a construction module, used to construct an initial intention recognition model, obtain a training sample set, and input each sample text in the training sample set into the initial intention recognition model; a determination module, used to determine the predicted intention values ​​of all the sample texts through the initial intention recognition model according to the sample area vector, sample area pinyin vector and sample area label vector of each sample text area corresponding to each sample text; a calculation module, used to calculate the loss value of the initial intention recognition model based on the predicted intention values ​​of all the sample texts and the true intention values ​​of all the sample texts; an update module, used to update and iterate the first initial parameter of the initial intention recognition model when the loss value does not reach a preset convergence condition, until the loss value reaches the preset convergence condition, and obtain the target intention recognition model, wherein the intention recognition model includes a first Transformer network, a second Transformer network, a feature fusion layer respectively connected to the first Transformer network and the second Transformer network, and a classifier connected to the feature fusion layer.

[0015] Optionally, in a fourth implementation method of the second aspect of the present invention, the first feature extraction module is specifically used to: concatenate the semantic feature encoding information with a preset identifier to obtain a first concatenated character string; perform vector conversion on each character in the first concatenated character string to obtain a first initial vector; use the first self-attention module to process the first initial vector to obtain a first intermediate vector output by the first self-attention module; perform linear weighting and normalization on the first intermediate vector to obtain a first target vector; and use the row vector corresponding to the preset identifier in the first target vector as the target semantic feature.

[0016] Optionally, in a fifth implementation manner of the second aspect of the present invention, the second feature extraction module is specifically used to: splice the target semantic feature with the identification vector corresponding to the preset identifier to obtain a spliced ​​vector; use the second self-attention module to process the spliced ​​vector to obtain an attention vector output by the second self-attention module; perform linear weighting and normalization on the attention vector to obtain a normalized vector; obtain a row vector corresponding to the preset identifier from the normalized vector, and use the row vector as the context semantic feature corresponding to the target semantic feature.

[0017] Optionally, in a sixth implementation of the second aspect of the present invention, the voice-based disease warning device further includes: a notification module, configured to trigger a preset voice system according to the prediction result to notify the user.

[0018] The third aspect of the present invention provides a speech-based disease early warning device, comprising: a memory and at least one processor, wherein instructions are stored in the memory, and the memory and the at least one processor are interconnected via a line;

[0019] The at least one processor calls the instructions in the memory to enable the speech-based disease warning device to perform the steps of the speech-based disease warning method described above.

[0020] A fourth aspect of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the steps of the above-mentioned speech-based disease early warning method.

[0021] In the technical solution provided by the present invention, the collected target speech data is sliced ​​to obtain speech segments; the speech segments are encoded and converted to obtain semantic feature coding information of the speech segments; the semantic feature coding information is input into a preset intention recognition model for feature extraction to obtain target semantic features and context semantic features corresponding to the semantic feature coding information; the target semantic features and context semantic features are input into the feature fusion layer of the intention recognition model for feature fusion to obtain features to be classified, and the features to be classified are input into a classifier for intent prediction. Alzheimer's disease warning is given to users based on the prediction results. The present invention can screen potential patients with early Alzheimer's disease based on the prediction results and provide early warning of Alzheimer's disease. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 It is a schematic diagram of a first embodiment of a disease early warning method based on speech of the present invention;

[0023] Figure 2 is a schematic diagram of a second embodiment of the speech-based disease early warning method of the present invention;

[0024] Figure 3 Schematic diagram of a third embodiment of the speech-based disease early warning method of the present invention;

[0025] Figure 4 It is a schematic diagram of a fourth embodiment of the disease early warning method based on speech of the present invention;

[0026] Figure 5 is a schematic diagram of a fifth embodiment of the speech-based disease early warning method of the present invention;

[0027] Figure 6 It is a schematic diagram of a first embodiment of a disease early warning device based on speech according to the present invention;

[0028] Figure 7It is a schematic diagram of a second embodiment of the speech-based disease early warning device of the present invention;

[0029] Figure 8 It is a schematic diagram of an embodiment of the speech-based disease warning device of the present invention. DETAILED DESCRIPTION

[0030] The embodiment of the present invention provides a speech-based disease warning method, device, equipment and storage medium, which first slices the collected target speech data to obtain speech segments; encodes and converts the speech segments to obtain semantic feature coding information of the speech segments; inputs the semantic feature coding information into a preset intention recognition model for feature extraction to obtain target semantic features and context semantic features corresponding to the semantic feature coding information; inputs the target semantic features and context semantic features into the feature fusion layer of the intention recognition model for feature fusion to obtain features to be classified, and inputs the features to be classified into a classifier for intention prediction, and provides an Alzheimer's disease warning to the user based on the prediction results. The present invention can screen potential patients with early Alzheimer's disease based on the prediction results and provide an early warning of Alzheimer's disease.

[0031] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned appendix are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0032] For ease of understanding, the specific process of the embodiment of the present invention is described below. Figure 1 The first embodiment of the disease early warning method based on speech in the embodiment of the present invention includes:

[0033] 101. Collect original voice data of the user, and sample the original voice data to obtain target voice data;

[0034] In this embodiment, the original voice data is a special audio, which is emitted by a person's vocal organs and carries certain language meanings. The recognition result of the original voice data in this embodiment of the specification is the text corresponding to the original voice data.

[0035] 102. Slice the target voice data to obtain a preset number of voice segments;

[0036] In this embodiment, it should be noted that in this embodiment, the speech recognition algorithm provided by the speech recognition party performs speech recognition on the target speech data. In order to prevent a single speech recognition party from obtaining all the target speech data, which may cause the leakage of privacy information in the target speech data, in this embodiment of the specification, multiple speech recognition parties respectively perform speech recognition on a part of the target speech data, obtain texts corresponding to different parts of the target speech data, aggregate and summarize the texts corresponding to different parts, and obtain the recognition results of all the target speech data.

[0037] The embodiment of this specification generates multiple audio slices by segmenting the target voice data, and each audio slice is a part of the aforementioned target voice data. The audio slice is a sub-audio in a similar slice format generated by cutting a segment of audio into multiple segments.

[0038] 103. Input a preset number of speech segments into a preset deep learning language model for encoding conversion to obtain semantic feature encoding information of the speech segments;

[0039] In this embodiment, a speech coding matrix is ​​defined, where m represents a single word and represents the dimension, which is obtained from Speech2Vec. A text coding matrix, where n represents a single word and represents the dimension, is obtained from Word2Vec. A mapping matrix, the goal is to make WS as close to T as possible. Prediction stage: 30 speech segments are respectively encoded and converted using the trained Speech2Vec (public algorithm) to obtain S, and then multiplied with W (mapping matrix, obtained through training) for linear mapping to obtain WS, which is the extracted speech coding information.

[0040] 104. Inputting the semantic feature encoding information into a preset intention recognition model, extracting target features in the semantic feature encoding information through a first Transformer network in the intention recognition model, and obtaining target semantic features corresponding to the semantic feature encoding information;

[0041] In this embodiment, the first Transformer network includes a first self-attention module, which includes three weight matrices determined by training, namely, a query matrix Q, a key matrix K, and a value matrix V; the so-called attention refers to a method of mapping the query matrix Q and the key-value pairs K and V to the output to analyze the relationship between words in the sentence. The output of the first self-attention module is obtained by weighted summing the matrix V, and the weight refers to the similarity between the matrix Q and K.

[0042] Specifically, the semantic feature encoding information can be encoded through the first Transformer network, and the semantic feature encoding information can be calculated using the first self-attention module. Finally, the output of the first self-attention module is linearly weighted (that is, the output of the first self-attention module is added to the transposed matrix of the query matrix), and the linear weighted result is normalized to obtain the target semantic feature corresponding to the semantic feature encoding information.

[0043] 105. Based on the target semantic features, the second Transformer network in the intent recognition model is used to extract context features to obtain corresponding context semantic features;

[0044] In this embodiment, the first Transformer network and the second Transformer network can be connected or parallel to each other, which is not limited here. It can be understood that when the first Transformer network is connected to the second Transformer network, the first Transformer network can be used to extract the semantic features of the semantic feature encoding information, so as to input the target semantic feature set composed of the semantic features corresponding to the multiple semantic feature encoding information in the preset sliding window into the second Transformer network for context semantic feature extraction. Among them, the semantic feature encoding information may refer to the semantic feature encoding information. When the first Transformer network and the second Transformer network are in parallel, the first Transformer network is only used to extract the semantic features of the semantic feature encoding information, and the second Transformer network is used to extract the semantic features of each round of dialogue (including the semantic feature encoding information and each round of historical dialogue) in the semantic feature encoding information set, and obtain the target semantic feature set, and then process the target semantic feature set to extract the context semantic features.

[0045] 106. Input the target semantic features and the context semantic features into the feature fusion layer of the second Transformer network for feature fusion to obtain features to be classified, and input the features to be classified into a preset classifier for intent prediction to obtain a prediction result.

[0046] In this embodiment, a fusion feature layer is set in the intent recognition model so that the target semantic features and the context semantic features are fused through the fusion feature layer to achieve the purpose of fully extracting features. The specific fusion method can be achieved by simple splicing or other fusion methods, which are not limited here.

[0047] In this embodiment, by obtaining an intention recognition model, the intention recognition model includes a first Transformer network and a second Transformer network, so that two Transformer networks are set to process the target dialogue and the multi-round dialogue in the preset sliding window respectively to obtain corresponding semantic features, thereby realizing parallel processing of multiple tasks. Then, according to the preset sliding window, the target dialogue set is extracted from the dialogue scene, so that the first Transformer network in the intention recognition model is used to extract features of the target dialogue to obtain the target semantic features corresponding to the target dialogue, and the second Transformer network in the intention recognition model is used to extract features of the target semantic feature set corresponding to the target dialogue set, so that the multi-round dialogue (including historical dialogue and target dialogue) in the sliding window is considered through the attention mechanism of the Transformer network. The relationship between the target dialogue and the historical dialogue is obtained to obtain contextual semantic features. Then, the fusion feature layer is used to fuse the target semantic features and the contextual semantic features to obtain the features to be classified that fuse the contextual information, so that the classifier is used to classify the features to be classified, and the intention recognition result is obtained, thereby improving the accuracy of intention recognition.

[0048] In an embodiment of the present invention, the collected target speech data is sliced ​​to obtain speech segments; the speech segments are encoded and converted to obtain semantic feature coding information of the speech segments; the semantic feature coding information is input into a preset intention recognition model for feature extraction to obtain target semantic features and context semantic features corresponding to the semantic feature coding information; the target semantic features and context semantic features are input into a feature fusion layer of the intention recognition model for feature fusion to obtain features to be classified, and the features to be classified are input into a classifier for intention prediction, and Alzheimer's disease warning is performed for users according to the prediction results. The present invention can screen potential patients with early Alzheimer's disease according to the prediction results and perform Alzheimer's disease warning.

[0049] See also Figure 2 The second embodiment of the disease early warning method based on speech in the embodiment of the present invention includes:

[0050] 201. Collecting original voice data of the user and sampling the original voice data to obtain target voice data;

[0051] 202. Generate a waveform diagram of target speech data;

[0052] In this embodiment, the waveform diagram is a time domain diagram of the speech signal of the target speech data. It should be understood that the target speech data is a special audio, and the waveform diagram of the target speech data can reflect the strength change of the speech signal over time.

[0053] When the strength of the voice signal in the waveform is 0, it is the silent area in the target voice data. In addition, by determining the duration of the strength of the voice signal in the waveform being 0, the silent duration corresponding to the silent area can be determined.

[0054] 203. Determine a pause in the target speech data according to the speech waveform in the waveform graph;

[0055] In this embodiment, it should be noted that the embodiment of this specification determines the pause in the target voice data by the silence duration of the silence area. It should be understood that when the silence duration of the silence area exceeds the preset duration, the voice signal corresponding to the silence area is used as the pause in the target voice data.

[0056] 204. Recognize the target voice data based on the voice recognition technology to generate fuzzy text corresponding to the target voice data;

[0057] In this embodiment, in order to improve the segmentation accuracy of the target voice data, the embodiment of this specification first performs a simple recognition on the target voice data through voice recognition technology to obtain the fuzzy text corresponding to the target voice data.

[0058] 205. Calling a preset word segmentation algorithm to perform word segmentation on the fuzzy text corresponding to the target voice data;

[0059] In this embodiment, the word segmentation algorithm performs word segmentation on the fuzzy text corresponding to the target voice data to obtain a word segmentation result. The target voice data is segmented according to the pause and the word segmentation result.

[0060] 206. Segment the target voice data according to the pause and word segmentation results in the target voice data to obtain a preset number of voice segments;

[0061] In this embodiment, a simple recognition of the target voice data cannot directly obtain the recognition result of the target voice data. It can only roughly determine the sentence-ending words existing in the fuzzy text corresponding to the target voice data, and then use the word segmentation algorithm to process the fuzzy text corresponding to the target voice data.

[0062] In this embodiment, all audio slices need to be sent to the corresponding multiple voice recognition parties to recognize the target voice data. It can be understood that different voice recognition parties have different ways of recognizing audio slices, and the time required for the recognition process is also different. Once the voice recognition party completes the recognition of the audio slice, it will send the text corresponding to the audio slice to the voice owner. In other words, the order in which the voice owner receives the text corresponding to the audio slices from different voice recognition parties is chaotic and needs to be sorted.

[0063] 207. Input a preset number of speech segments into a preset deep learning language model for encoding conversion to obtain semantic feature encoding information of the speech segments;

[0064] 208. Inputting the semantic feature encoding information into a preset intention recognition model, extracting target features in the semantic feature encoding information through a first Transformer network in the intention recognition model, and obtaining target semantic features corresponding to the semantic feature encoding information;

[0065] 209. Based on the target semantic features, the second Transformer network in the intent recognition model is used to extract context features to obtain corresponding context semantic features;

[0066] 210. Input the target semantic features and the context semantic features into the feature fusion layer of the second Transformer network for feature fusion to obtain features to be classified, and input the features to be classified into a preset classifier for intent prediction to obtain a prediction result.

[0067] Steps 201, 207-210 in this embodiment are similar to steps 101, 103-106 in the first embodiment, and are not described again here.

[0068] In an embodiment of the present invention, the collected target speech data is sliced ​​to obtain speech segments; the speech segments are encoded and converted to obtain semantic feature coding information of the speech segments; the semantic feature coding information is input into a preset intention recognition model for feature extraction to obtain target semantic features and context semantic features corresponding to the semantic feature coding information; the target semantic features and context semantic features are input into a feature fusion layer of the intention recognition model for feature fusion to obtain features to be classified, and the features to be classified are input into a classifier for intention prediction, and Alzheimer's disease warning is performed for users according to the prediction results. The present invention can screen potential patients with early Alzheimer's disease according to the prediction results and perform Alzheimer's disease warning.

[0069] See also Figure 3 The third embodiment of the disease early warning method based on speech in the embodiment of the present invention includes:

[0070] 301. Collect original voice data of the user, and sample the original voice data to obtain target voice data;

[0071] 302. Slice the target voice data to obtain a preset number of voice segments;

[0072] 303. Input a preset number of speech segments into a preset deep learning language model for encoding conversion to obtain semantic feature encoding information of the speech segments;

[0073] 304. Build an initial intent recognition model, obtain a training sample set, and input each sample text in the training sample set into the initial intent recognition model, wherein the training sample set includes a plurality of sample texts;

[0074] In this embodiment, the training sample set is data that does not have dialogue intent labels that have been manually annotated in advance; generally, a large amount of manually annotated data is required for model training and learning in supervised learning, but the demand for manually annotated data is very large, and the manual annotation method wastes time and cannot output a large amount of annotated data. Therefore, one of the problems that the present invention needs to solve is how to train and learn the model more accurately and quickly in the absence of annotated data. Furthermore, the training sample set can be selected according to different scenarios. In this embodiment, the training sample set can be obtained by extracting dialogue information in an intelligent multi-round dialogue system.

[0075] In this embodiment, the initial intent recognition model can be pre-built by developers based on a neural network model. The initial intent recognition model can include a multi-layer structure, and each layer of the structure can implement different processing.

[0076] 305. Determine the predicted intent values ​​of all the sample texts through the initial intent recognition model according to the sample area vector, the sample area pinyin vector, and the sample area label vector of each sample text area corresponding to each sample text;

[0077] In this embodiment, the initial intent recognition model can be used to process the input sample text. Specifically, the initial intent recognition model can first obtain the sample text area corresponding to each sample text, and then determine the sample area vector, sample area pinyin vector and sample area label vector of each sample text area corresponding to each sample text, wherein the sample area vector can be determined based on the word vector in the sample text area, the sample pinyin area vector can be determined based on the pinyin word vector in the sample text area, and the sample area label vector can be determined based on the entity label corresponding to the sample words belonging to the target field in the sample text area. Then, the predicted intent value of each sample text can be determined based on the sample area vector, sample area pinyin vector and sample area label vector corresponding to each sample text.

[0078] 306. Calculate the loss value of the initial intent recognition model based on the predicted intent values ​​of all sample texts and the true intent values ​​of all sample texts;

[0079] In this embodiment, the true intent value of each sample text may be predetermined when the sample text is collected, and the loss value may represent the degree of deviation between the predicted intent value of the sample text and the true intent value of the sample text.

[0080] 307. When the loss value does not reach a preset convergence condition, update the first initial parameter of the iterative initial intent recognition model until the loss value reaches a preset convergence condition, thereby obtaining a target intent recognition model, wherein the intent recognition model includes a first Transformer network, a second Transformer network, a feature fusion layer respectively connected to the first Transformer network and the second Transformer network, and a classifier connected to the feature fusion layer;

[0081] In this embodiment, the convergence condition can be the condition that the predicted loss value is less than a set threshold, that is, when the predicted loss value is less than the set threshold, the training is stopped; the convergence condition can also be the condition that the predicted loss value is very small after 10,000 calculations and will not decrease anymore, that is, when the predicted loss value is very small after 10,000 calculations and will not decrease, the training is stopped and the initial intent recognition model after convergence is recorded as the target intent recognition model.

[0082] Furthermore, based on each of the annotated prediction labels, the label prediction probability corresponding to each of the annotated prediction labels, and the conversation intention label, the prediction loss value of the preset recognition model is determined. After determining the prediction loss value of the preset recognition model, when the prediction loss value does not reach a preset convergence condition, the second initial parameter of the preset recognition model is adjusted according to the prediction loss value, and the training sample set is re-input into the initial intention recognition model.

[0083] 308. Inputting the semantic feature encoding information into a preset intention recognition model, extracting target features in the semantic feature encoding information through a first Transformer network in the intention recognition model, and obtaining target semantic features corresponding to the semantic feature encoding information;

[0084] 309. Based on the target semantic features, the second Transformer network in the intent recognition model is used to extract context features to obtain corresponding context semantic features;

[0085] 310. Input the target semantic features and the context semantic features into the feature fusion layer of the second Transformer network for feature fusion to obtain features to be classified, and input the features to be classified into a preset classifier for intent prediction to obtain a prediction result.

[0086] Steps 301 - 303 , 308 - 310 in this embodiment are similar to steps 101 - 103 , 104 - 106 in the first embodiment, and are not described again here.

[0087] In an embodiment of the present invention, the collected target speech data is sliced ​​to obtain speech segments; the speech segments are encoded and converted to obtain semantic feature coding information of the speech segments; the semantic feature coding information is input into a preset intention recognition model for feature extraction to obtain target semantic features and context semantic features corresponding to the semantic feature coding information; the target semantic features and context semantic features are input into a feature fusion layer of the intention recognition model for feature fusion to obtain features to be classified, and the features to be classified are input into a classifier for intention prediction, and Alzheimer's disease warning is performed for users according to the prediction results. The present invention can screen potential patients with early Alzheimer's disease according to the prediction results and perform Alzheimer's disease warning.

[0088] See also Figure 4 The fourth embodiment of the disease early warning method based on speech in the embodiment of the present invention includes:

[0089] 401. Collect original voice data of the user, and sample the original voice data to obtain target voice data;

[0090] 402. Slice the target voice data to obtain a preset number of voice segments;

[0091] 403. Input a preset number of speech segments into a preset deep learning language model for encoding conversion to obtain semantic feature encoding information of the speech segments;

[0092] 404. Concatenate the semantic feature encoding information with a preset identifier to obtain a first concatenated character string;

[0093] In this embodiment, the semantic feature encoding information is assumed to be QU, and QU is concatenated with a preset identifier, such as CLS, to obtain a first concatenated string [CLS, QU]. The preset identifier can be set as required and is not limited here.

[0094] 405. Perform vector conversion on each character in the first concatenated character string to obtain a first initial vector;

[0095] In this embodiment, embedding is used to query the vector corresponding to each character to obtain the first initial vector QE corresponding to the first concatenated string (assuming that the length of QU is 6, and the length of the vector after each character conversion is he, then the size of the first vector finally obtained is he×6). Among them, Embedding can encode characters with low-dimensional vectors and retain the meaning of characters.

[0096] 406. Process the first initial vector using a first self-attention module to obtain a first intermediate vector output by the first self-attention module;

[0097] In this embodiment, the first intermediate vector is the output vector of the first self-attention module. Specifically, the first initial vector is processed by the first self-attention module, that is, the attention weight is calculated (that is, obtained by weighted summation of the value matrix V, and the weight refers to the similarity between the query matrix Q and the key matrix K), to obtain the first intermediate vector output by the first self-attention module. In this embodiment, by processing the first initial vector using the first self-attention module to obtain the dependency relationship between words, the model can pay more attention to the phrases that are important to the expression of sentence information, thereby improving the accuracy of model recognition.

[0098] 407. Perform linear weighting and normalization processing on the first intermediate vector to obtain a first target vector;

[0099] In this embodiment, the first intermediate vector is linearly weighted, that is, the first intermediate vector is linearly weighted and summed based on the transposed matrix of the query matrix to obtain a weighted matrix; then, the weighted matrix is ​​normalized to obtain the first target vector.

[0100] 408. Use the row vector corresponding to the preset identifier in the first target vector as the target semantic feature;

[0101] In this embodiment, since a preset identifier is inserted before the target conversation, the output vector corresponding to the preset identifier can be used as the semantic representation of the target conversation, so that the subsequent fusion feature layer can fully integrate the semantic features of the historical conversation and the target conversation, which is conducive to improving the accuracy of intent recognition.

[0102] The second Transformer network includes a second self-attention module, that is, the second Transformer network is used to extract features of the target semantic feature set to obtain contextual semantic features.

[0103] 409. Based on the target semantic features, the second Transformer network in the intent recognition model is used to extract context features to obtain corresponding context semantic features;

[0104] 410. Input the target semantic features and the context semantic features into the feature fusion layer of the second Transformer network for feature fusion to obtain features to be classified, and input the features to be classified into a preset classifier for intent prediction to obtain a prediction result.

[0105] Steps 401-403 and 409-410 in this embodiment are similar to steps 101-103 and 105-106 in the first embodiment, and are not described again here.

[0106] In an embodiment of the present invention, the collected target speech data is sliced ​​to obtain speech segments; the speech segments are encoded and converted to obtain semantic feature coding information of the speech segments; the semantic feature coding information is input into a preset intention recognition model for feature extraction to obtain target semantic features and context semantic features corresponding to the semantic feature coding information; the target semantic features and context semantic features are input into a feature fusion layer of the intention recognition model for feature fusion to obtain features to be classified, and the features to be classified are input into a classifier for intention prediction, and Alzheimer's disease warning is performed for users according to the prediction results. The present invention can screen potential patients with early Alzheimer's disease according to the prediction results and perform Alzheimer's disease warning.

[0107] See also Figure 5 The fifth embodiment of the disease early warning method based on speech in the embodiment of the present invention includes:

[0108] 501. Collect original voice data of the user, and sample the original voice data to obtain target voice data;

[0109] 502. Slice the target voice data to obtain a preset number of voice segments;

[0110] 503. Input a preset number of speech segments into a preset deep learning language model for encoding conversion to obtain semantic feature encoding information of the speech segments;

[0111] 504. Inputting the semantic feature encoding information into a preset intention recognition model, extracting the target feature in the semantic feature encoding information through a first Transformer network in the intention recognition model, and obtaining the target semantic feature corresponding to the semantic feature encoding information;

[0112] 505. Concatenate the target semantic feature with the identification vector corresponding to the preset identifier to obtain a concatenated vector;

[0113] In this embodiment, the target semantic feature set is concatenated with the identification vector corresponding to the preset identifier to obtain a concatenated vector. For example, the current target feature set is expressed as:

[0114] QUhist=[QUEt, QUEt-1, QUEt-2...QUt-n+1]

[0115] By concatenating the identification vectors corresponding to the preset identifiers, such as CLSE, the concatenated vector is obtained.

[0116] QUhist'=[CLSE, QUEt, QUEt-1, QUEt-2...QUt-n+1]

[0117] Wherein, n represents the preset sliding window size.

[0118] 506. Process the concatenated vector using a second self-attention module to obtain an attention vector output by the second self-attention module;

[0119] In this embodiment, the concatenated vector is processed by using a second self-attention module to obtain the dependency relationship between words in multiple rounds of dialogue within a preset sliding window, so as to comprehensively consider the target dialogue and historical dialogue from a global perspective, so that the model pays attention to the phrases that are important for expressing sentence information in multiple rounds of dialogue, thereby improving the accuracy of model recognition.

[0120] 507. Perform linear weighting and normalization processing on the attention vector to obtain a normalized vector;

[0121] In this embodiment, the attention vector is linearly weighted, that is, the attention vector is first linearly weighted and summed based on the transposed matrix of the query matrix to obtain a weighted result; then, the weighted result is normalized to obtain a normalized vector, which is expressed as Z=LN(VT+O”), wherein O” represents the attention vector, QT represents the transposed matrix of the query matrix, Z represents the normalized vector, the size of which is ha×6, and LN represents the normalization function.

[0122] 508. Obtain a row vector corresponding to the preset identifier from the normalized vector, and use the row vector as a context semantic feature corresponding to the target semantic feature;

[0123] In this embodiment, the row vector set identifier corresponding to the preset identifier position can represent the semantic vector of the entire input sequence, which can be used to connect the classifier for intent classification. In this embodiment, the row vector corresponding to the preset identifier in the normalized vector is selected as the context semantic feature corresponding to the target semantic feature set, so that the semantic features of the target semantic features and the context semantic features can be fused through the fusion feature layer for intent classification.

[0124] 509. Input the target semantic features and the context semantic features into the feature fusion layer of the second Transformer network for feature fusion to obtain features to be classified, and input the features to be classified into a preset classifier for intent prediction to obtain a prediction result;

[0125] 510. Trigger a preset voice system according to the prediction result to notify the user.

[0126] In this embodiment, it is determined whether the user suffers from Alzheimer's disease based on the prediction results. Among them, this embodiment adopts the method of describing the graph to obtain the user's voice data. Specifically, the method of collecting user voice data is not specifically limited here. The GAN method is used to train Speech2Vec and Word2Vec simultaneously to obtain the mapping matrix W. In this way, the user's voice data is encoded, and the semantic information is extracted while retaining the information such as speech rate to a certain extent. Alzheimer's disease is evaluated based on the important indicators such as semantics and speech rate. Using the attention mechanism, after obtaining the speech coding information, all the coding information is integrated through the AD Transformer network to extract the more important feature information. These important feature information are passed through a multi-classification network for intention prediction, and the prediction results provide data support for the early warning of Alzheimer's disease.

[0127] In this embodiment, by encoding the collected user's voice data, not only semantic information can be extracted, but also information such as speech speed can be retained to a certain extent, and this information is an important indicator for evaluating Alzheimer's disease. Based on the attention mechanism, after obtaining the voice coding information, all the coding information is integrated through the Transformer network, and more important feature information can be effectively extracted. Finally, these important feature information is predicted through a multi-classification network, and the user is warned of Alzheimer's disease based on the prediction results, so that potential patients with early Alzheimer's disease can be screened as early as possible. When it is predicted that the user has a high possibility of suffering from Alzheimer's disease, the preset voice system is triggered to notify and warn the user.

[0128] Steps 501-506 in this embodiment are similar to steps 101-106 in the first embodiment and are not described again here.

[0129] In an embodiment of the present invention, the collected target speech data is sliced ​​to obtain speech segments; the speech segments are encoded and converted to obtain semantic feature coding information of the speech segments; the semantic feature coding information is input into a preset intention recognition model for feature extraction to obtain target semantic features and context semantic features corresponding to the semantic feature coding information; the target semantic features and context semantic features are input into a feature fusion layer of the intention recognition model for feature fusion to obtain features to be classified, and the features to be classified are input into a classifier for intention prediction, and Alzheimer's disease warning is performed for users according to the prediction results. The present invention can screen potential patients with early Alzheimer's disease according to the prediction results and perform Alzheimer's disease warning.

[0130] The above describes the disease warning method based on speech in the embodiment of the present invention. The following describes the disease warning device based on speech in the embodiment of the present invention. Figure 6The first embodiment of the speech-based disease early warning device in the embodiment of the present invention includes:

[0131] The sampling module 601 is used to collect the original voice data of the user and sample the original voice data to obtain the target voice data;

[0132] A slicing module 602 is used to slice the target voice data to obtain a preset number of voice segments;

[0133] A transcoding module 603 is used to input the preset number of speech segments into a preset deep learning language model for transcoding to obtain semantic feature coding information of the speech segments;

[0134] A first feature extraction module 604 is used to input the semantic feature encoding information into a preset intention recognition model, extract the target feature in the semantic feature encoding information through a first Transformer network in the intention recognition model, and obtain the target semantic feature corresponding to the semantic feature encoding information;

[0135] A second feature extraction module 605 is used to extract context features based on the target semantic features using the second Transformer network in the intent recognition model to obtain corresponding context semantic features;

[0136] The feature fusion module 606 is used to input the target semantic features and the context semantic features into the feature fusion layer of the second Transformer network for feature fusion to obtain features to be classified, and input the features to be classified into a preset classifier for intent prediction to obtain a prediction result.

[0137] In an embodiment of the present invention, the collected target speech data is sliced ​​to obtain speech segments; the speech segments are encoded and converted to obtain semantic feature coding information of the speech segments; the semantic feature coding information is input into a preset intention recognition model for feature extraction to obtain target semantic features and context semantic features corresponding to the semantic feature coding information; the target semantic features and context semantic features are input into a feature fusion layer of the intention recognition model for feature fusion to obtain features to be classified, and the features to be classified are input into a classifier for intention prediction, and Alzheimer's disease warning is performed for users according to the prediction results. The present invention can screen potential patients with early Alzheimer's disease according to the prediction results and perform Alzheimer's disease warning.

[0138] See also Figure 7 The second embodiment of the speech-based disease early warning device in the embodiment of the present invention specifically includes:

[0139] The sampling module 601 is used to collect the original voice data of the user and sample the original voice data to obtain the target voice data;

[0140] A slicing module 602 is used to slice the target voice data to obtain a preset number of voice segments;

[0141] A transcoding module 603 is used to input the preset number of speech segments into a preset deep learning language model for transcoding to obtain semantic feature coding information of the speech segments;

[0142] A first feature extraction module 604 is used to input the semantic feature encoding information into a preset intention recognition model, extract the target feature in the semantic feature encoding information through a first Transformer network in the intention recognition model, and obtain the target semantic feature corresponding to the semantic feature encoding information;

[0143] A second feature extraction module 605 is used to extract context features based on the target semantic features using the second Transformer network in the intent recognition model to obtain corresponding context semantic features;

[0144] The feature fusion module 606 is used to input the target semantic features and the context semantic features into the feature fusion layer of the second Transformer network for feature fusion to obtain features to be classified, and input the features to be classified into a preset classifier for intent prediction to obtain a prediction result.

[0145] In this embodiment, the slicing module 602 includes:

[0146] A generating unit 6021, configured to generate a waveform diagram of the target speech data;

[0147] A determining unit 6022, configured to determine a pause in the target speech data according to the speech waveform in the waveform graph;

[0148] The segmentation unit 6022 is used to segment the target voice data according to the pauses in the target voice data to obtain a preset number of voice segments.

[0149] In this embodiment, the segmentation unit 6022 is specifically used for:

[0150] Recognize the target voice data based on voice recognition technology to generate fuzzy text corresponding to the target voice data;

[0151] Calling a preset word segmentation algorithm to perform word segmentation on the fuzzy text corresponding to the target voice data;

[0152] The target voice data is segmented according to the pause and word segmentation results in the target voice data to obtain a preset number of voice segments.

[0153] In this embodiment, the speech-based disease early warning device further includes:

[0154] A construction module 607 is used to construct an initial intent recognition model, obtain a training sample set, and input each sample text in the training sample set into the initial intent recognition model;

[0155] A determination module 608, configured to determine the predicted intent values ​​of all the sample texts through the initial intent recognition model according to the sample area vector, the sample area pinyin vector and the sample area label vector of each sample text area corresponding to each sample text;

[0156] A calculation module 609, configured to calculate a loss value of the initial intent recognition model based on the predicted intent values ​​of all the sample texts and the true intent values ​​of all the sample texts;

[0157] The updating module 610 is used to update and iterate the first initial parameter of the initial intent recognition model when the loss value does not reach the preset convergence condition, until the loss value reaches the preset convergence condition, thereby obtaining a target intent recognition model, wherein the intent recognition model includes a first Transformer network, a second Transformer network, a feature fusion layer respectively connected to the first Transformer network and the second Transformer network, and a classifier connected to the feature fusion layer.

[0158] In this embodiment, the first feature extraction module 604 is specifically used for:

[0159] Concatenate the semantic feature encoding information with a preset identifier to obtain a first concatenated character string;

[0160] Performing vector conversion on each character in the first concatenated character string to obtain a first initial vector;

[0161] Using the first self-attention module to process the first initial vector to obtain a first intermediate vector output by the first self-attention module;

[0162] Performing linear weighting and normalization processing on the first intermediate vector to obtain a first target vector;

[0163] The row vector corresponding to the preset identifier in the first target vector is used as the target semantic feature.

[0164] In this embodiment, the second feature extraction module 605 is specifically used for:

[0165] Concatenate the target semantic feature with the identification vector corresponding to the preset identifier to obtain a concatenated vector;

[0166] Processing the concatenated vector using the second self-attention module to obtain an attention vector output by the second self-attention module;

[0167] Performing linear weighting and normalization processing on the attention vector to obtain a normalized vector;

[0168] A row vector corresponding to a preset identifier is obtained from the normalized vector, and the row vector is used as a context semantic feature corresponding to the target semantic feature.

[0169] In this embodiment, the speech-based disease early warning device further includes:

[0170] The notification module 611 is used to trigger a preset voice system according to the prediction result to notify the user.

[0171] In an embodiment of the present invention, the collected target speech data is sliced ​​to obtain speech segments; the speech segments are encoded and converted to obtain semantic feature coding information of the speech segments; the semantic feature coding information is input into a preset intention recognition model for feature extraction to obtain target semantic features and context semantic features corresponding to the semantic feature coding information; the target semantic features and context semantic features are input into a feature fusion layer of the intention recognition model for feature fusion to obtain features to be classified, and the features to be classified are input into a classifier for intention prediction, and Alzheimer's disease warning is performed for users according to the prediction results. The present invention can screen potential patients with early Alzheimer's disease according to the prediction results and perform Alzheimer's disease warning.

[0172] above Figure 6 and Figure 7 The speech-based disease warning device in the embodiment of the present invention is described in detail from the perspective of modular functional entities. The speech-based disease warning device in the embodiment of the present invention is described in detail from the perspective of hardware processing.

[0173] Figure 88 is a structural diagram of a speech-based disease early warning device provided by an embodiment of the present invention. The speech-based disease early warning device 800 may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 810 (for example, one or more processors) and a memory 820, and one or more storage media 830 (for example, one or more mass storage devices) storing application programs 833 or data 832. Among them, the memory 820 and the storage medium 830 may be short-term storage or permanent storage. The program stored in the storage medium 830 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the speech-based disease early warning device 800. Furthermore, the processor 810 may be configured to communicate with the storage medium 830, and execute a series of instruction operations in the storage medium 830 on the speech-based disease early warning device 800 to implement the steps of the speech-based disease early warning method provided in the above-mentioned method embodiments.

[0174] The speech-based disease warning device 800 may also include one or more power supplies 840, one or more wired or wireless network interfaces 850, one or more input and output interfaces 860, and / or one or more operating systems 831, such as Windows Serve, Mac OS X, Unix, Linux, FreeBSD, etc. It will be appreciated by those skilled in the art that Figure 8 The structure of the voice-based disease warning device shown does not constitute a limitation on the voice-based disease warning device provided in the present application, and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.

[0175] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the above-mentioned speech-based disease warning method.

[0176] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0177] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the whole or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0178] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A disease early warning method based on speech, characterized in that: The speech-based disease early warning method comprises: Collecting original voice data of the user and sampling the original voice data to obtain target voice data; Slicing the target voice data to obtain a preset number of voice segments; Inputting the preset number of speech segments into a preset deep learning language model for encoding conversion to obtain semantic feature encoding information of the speech segments; Inputting the semantic feature encoding information into a preset intention recognition model, extracting the target feature in the semantic feature encoding information through a first Transformer network in the intention recognition model, and obtaining the target semantic feature corresponding to the semantic feature encoding information; Based on the target semantic features, extract context features using the second Transformer network in the intent recognition model to obtain corresponding context semantic features; Inputting the target semantic feature and the context semantic feature into the feature fusion layer of the second Transformer network for feature fusion to obtain features to be classified, and inputting the features to be classified into a preset classifier for intent prediction to obtain a prediction result; The slicing of the target voice data to obtain a preset number of voice segments includes: generating a waveform graph of the target voice data; determining a pause in the target voice data according to a voice waveform in the waveform graph; and segmenting the target voice data according to the pause in the target voice data to obtain a preset number of voice segments; In the inputting of the semantic feature encoding information into the preset intention recognition model, before the target feature in the semantic feature encoding information is extracted through the first Transformer network in the intention recognition model to obtain the target semantic feature corresponding to the semantic feature encoding information, it also includes: constructing an initial intention recognition model, obtaining a training sample set, and inputting each sample text in the training sample set into the initial intention recognition model; determining the predicted intention values ​​of all the sample texts through the initial intention recognition model according to the sample area vector, the sample area pinyin vector and the sample area label vector of each sample text area corresponding to each sample text; calculating the loss value of the initial intention recognition model based on the predicted intention values ​​of all the sample texts and the true intention values ​​of all the sample texts; when the loss value does not reach the preset convergence condition, updating and iterating the first initial parameter of the initial intention recognition model until the loss value reaches the preset convergence condition, obtaining the target intention recognition model, wherein the intention recognition model includes a first Transformer network, a second Transformer network, a feature fusion layer respectively connected to the first Transformer network and the second Transformer network, and a classifier connected to the feature fusion layer.

2. The speech-based disease early warning method according to claim 1, characterized in that: The segmenting of the target voice data according to the pauses in the target voice data to obtain a preset number of voice segments comprises: Recognize the target voice data based on voice recognition technology to generate fuzzy text corresponding to the target voice data; Calling a preset word segmentation algorithm to perform word segmentation on the fuzzy text corresponding to the target voice data; The target voice data is segmented according to the pause and word segmentation results in the target voice data to obtain a preset number of voice segments.

3. The speech-based disease early warning method according to claim 1, characterized in that: The step of inputting the semantic feature encoding information into a preset intention recognition model, extracting the target feature in the semantic feature encoding information through a first Transformer network in the intention recognition model, and obtaining the target semantic feature corresponding to the semantic feature encoding information includes: Concatenate the semantic feature encoding information with a preset identifier to obtain a first concatenated character string; Performing vector conversion on each character in the first concatenated character string to obtain a first initial vector; Processing the first initial vector using a first self-attention module to obtain a first intermediate vector output by the first self-attention module, wherein the first Transformer network includes the first self-attention module; Performing linear weighting and normalization processing on the first intermediate vector to obtain a first target vector; The row vector corresponding to the preset identifier in the first target vector is used as the target semantic feature.

4. The speech-based disease early warning method according to claim 1, characterized in that: The extracting of context features based on the target semantic features by using the second Transformer network in the intent recognition model to obtain corresponding context semantic features includes: Concatenate the target semantic feature with the identification vector corresponding to the preset identifier to obtain a concatenated vector; Processing the concatenated vector using a second self-attention module to obtain an attention vector output by the second self-attention module, wherein the second Transformer network includes the second self-attention module; Performing linear weighting and normalization processing on the attention vector to obtain a normalized vector; A row vector corresponding to a preset identifier is obtained from the normalized vector, and the row vector is used as a context semantic feature corresponding to the target semantic feature.

5. The speech-based disease early warning method according to claim 1, characterized in that: After inputting the target semantic feature and the context semantic feature into the feature fusion layer of the second Transformer network for feature fusion to obtain the feature to be classified, and inputting the feature to be classified into a preset classifier for intent prediction to obtain the prediction result, the method further includes: A preset voice system is triggered according to the prediction result to notify the user.

6. A disease early warning device based on speech, characterized in that: The speech-based disease early warning device comprises: The sampling module is used to collect the original voice data of the user and sample the original voice data to obtain the target voice data; A slicing module, used for slicing the target voice data to obtain a preset number of voice segments; A transcoding module, used for inputting the preset number of speech segments into a preset deep learning language model for transcoding to obtain semantic feature coding information of the speech segments; A first feature extraction module is used to input the semantic feature encoding information into a preset intention recognition model, extract the target feature in the semantic feature encoding information through a first Transformer network in the intention recognition model, and obtain the target semantic feature corresponding to the semantic feature encoding information; A second feature extraction module is used to extract context features based on the target semantic features using the second Transformer network in the intent recognition model to obtain corresponding context semantic features; A feature fusion module, used for inputting the target semantic feature and the context semantic feature into the feature fusion layer of the second Transformer network for feature fusion to obtain features to be classified, and inputting the features to be classified into a preset classifier for intent prediction to obtain a prediction result; The segmentation unit is specifically used to: recognize the target voice data based on the voice recognition technology to generate the fuzzy text corresponding to the target voice data; call the preset word segmentation algorithm to segment the fuzzy text corresponding to the target voice data; segment the target voice data according to the pauses and word segmentation results in the target voice data to obtain a preset number of voice segments; The speech-based disease early warning device also includes: a construction module, which is used to construct an initial intention recognition model, obtain a training sample set, and input each sample text in the training sample set into the initial intention recognition model; a determination module, which is used to determine the predicted intention values ​​of all the sample texts through the initial intention recognition model according to the sample area vector, the sample area pinyin vector and the sample area label vector of each sample text area corresponding to each sample text; a calculation module, which is used to calculate the loss value of the initial intention recognition model based on the predicted intention values ​​of all the sample texts and the true intention values ​​of all the sample texts; an update module, which is used to update and iterate the first initial parameter of the initial intention recognition model when the loss value does not reach a preset convergence condition, until the loss value reaches the preset convergence condition, and obtain the target intention recognition model, wherein the intention recognition model includes a first Transformer network, a second Transformer network, a feature fusion layer respectively connected to the first Transformer network and the second Transformer network, and a classifier connected to the feature fusion layer.

7. A voice-based disease warning device, characterized in that: The speech-based disease early warning device comprises: a memory and at least one processor, the memory stores instructions, and the memory and the at least one processor are interconnected via a line; The at least one processor calls the instructions in the memory to enable the speech-based disease warning device to perform the steps of the speech-based disease warning method as described in any one of claims 1-5.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the speech-based disease early warning method as described in any one of claims 1 to 5 are implemented.