Respiration signal prediction method and device and computer equipment

By constructing a respiratory signal sample library and training multiple complete prediction models, matching the optimal prediction model for respiratory signal prediction solves the problem of low respiratory signal prediction accuracy in the existing technology and improves the accuracy of radiotherapy.

CN118797365AActive Publication Date: 2024-10-18ZHEJIANG UNIV
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411259980.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-10
Publication Date
2024-10-18
Estimated Expiration
2044-09-10

AI Technical Summary

Technical Problem

The accuracy of respiratory signal prediction results in the existing technology is low and cannot effectively adapt to changes in different respiratory signals, affecting the accuracy of radiotherapy.

Method used

By constructing a preset respiratory signal sample library, match the optimal complete prediction model based on the similarity between the respiratory signal to be predicted and the sample library, predict the respiratory signal to be predicted, and use multiple complete prediction models for training and hyperparameter optimization , improve prediction accuracy.

Benefits of technology

It improves the accuracy of respiratory signal prediction, ensures the accuracy and stability of radiotherapy, and solves the problem of low prediction results in the existing technology.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118797365A_ABST
    Figure CN118797365A_ABST
Patent Text Reader

Abstract

The invention relates to a respiratory signal prediction method and device and computer equipment. The method comprises the following steps: acquiring a respiration signal to be predicted; according to the similarity between the to-be-predicted respiratory signal and each respiratory signal sample in a preset respiratory signal sample library, taking the optimal complete prediction model corresponding to the respiratory signal sample with the highest similarity with the to-be-predicted respiratory signal as a target prediction model matched with the to-be-predicted respiratory signal; the optimal complete prediction model corresponding to the respiratory signal sample is a complete prediction model corresponding to an optimal prediction result obtained by predicting the respiratory signal sample by using a plurality of complete prediction models corresponding to the respiratory signal sample; and using the target prediction model to carry out respiration prediction on a to-be-predicted respiration signal. By adopting the method, the problem of low accuracy of the prediction result of the respiratory signal in the prior art can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of signal prediction, and in particular to a method, device and computer equipment for predicting a respiratory signal. Background Art

[0002] During radiotherapy, chest and abdominal tumors will change with respiratory movement. If the treatment is intervened according to the real-time measurement position of the target area, there will be a delay of hundreds of milliseconds, resulting in missed irradiation of the target area, affecting the treatment effect. In addition, after obtaining the position of the tumor target area, the treatment system needs a certain amount of time to respond. Therefore, it is necessary to predict the position of the target area after the delay by predicting the respiratory movement, adjust the target area position in advance, and improve the accuracy of radiation irradiation. The respiratory signal is a direct feedback signal of the respiratory movement. Therefore, accurate prediction of the respiratory signal is very important.

[0003] The prior art mainly uses a preset respiratory signal prediction model to predict the respiratory signal to be predicted. However, when a certain respiratory signal prediction model is used to predict the respiratory signal, the prediction effect of the respiratory signal is heavily dependent on the experience of the model builder. If the preset respiratory signal prediction model is not suitable for predicting the respiratory signal to be predicted, the accuracy of the respiratory signal prediction result will be low.

[0004] With regard to the problem of low accuracy of prediction results of respiratory signals in the existing technology, no effective solution has been proposed so far. Summary of the invention

[0005] Based on this, it is necessary to provide a respiratory signal prediction method, device and computer equipment to address the above technical problems.

[0006] In a first aspect, the present application provides a method for predicting a respiratory signal. The method comprises the following steps: Acquire a respiratory signal to be predicted; According to the similarity between the respiratory signal to be predicted and each respiratory signal sample in the preset respiratory signal sample library, the optimal complete prediction model corresponding to the respiratory signal sample with the highest similarity to the respiratory signal to be predicted is used as the target prediction model matched with the respiratory signal to be predicted; the optimal complete prediction model corresponding to the respiratory signal sample is the complete prediction model corresponding to the optimal prediction result obtained when the respiratory signal sample is predicted by using multiple complete prediction models corresponding to the respiratory signal sample respectively; The target prediction model is used to perform respiration prediction on the respiration signal to be predicted.

[0007] In one embodiment, the method further comprises the following steps: Acquire a plurality of respiratory signal samples, and construct the respiratory signal sample library based on the acquired plurality of respiratory signal samples; Using a plurality of complete prediction models corresponding to each of the breathing signal samples in the breathing signal sample library, respectively predict each of the breathing signal samples in the breathing signal sample library to obtain a plurality of prediction results for each of the breathing signal samples; The complete prediction model corresponding to the best prediction result among the multiple prediction results of each of the breathing signal samples is selected as the best complete prediction model corresponding to each of the breathing signal samples.

[0008] In one embodiment, before using multiple complete prediction models corresponding to each of the breathing signal samples in the breathing signal sample library to predict each of the breathing signal samples in the breathing signal sample library and obtaining multiple prediction results for each of the breathing signal samples, the following steps are included: For each of the breathing signal samples in the breathing signal sample library, each of the preset multiple initial prediction models is trained respectively to obtain a plurality of the complete prediction models corresponding to each of the breathing signal samples in the breathing signal sample library.

[0009] In one embodiment, for each of the breathing signal samples in the breathing signal sample library, training each of the preset multiple initial prediction models respectively to obtain multiple complete prediction models corresponding to each of the breathing signal samples in the breathing signal sample library includes the following steps: For each of the respiratory signal samples in the respiratory signal sample library, respectively perform hyperparameter optimization on each of the preset multiple initial prediction models to obtain hyperparameter optimization results of the multiple initial prediction models corresponding to each of the respiratory signal samples; Based on the hyperparameter optimization results of the multiple initial prediction models corresponding to each of the breathing signal samples, the multiple initial prediction models corresponding to each of the breathing signal samples are trained respectively to obtain multiple complete prediction models corresponding to each of the breathing signal samples in the breathing signal sample library.

[0010] In one embodiment, for each of the respiratory signal samples in the respiratory signal sample library, performing hyperparameter optimization on each of the preset multiple initial prediction models to obtain hyperparameter optimization results of the multiple initial prediction models corresponding to each of the respiratory signal samples includes the following steps: For each of the respiratory signal samples in the respiratory signal sample library, the MOPSO method is used to perform hyperparameter optimization on each of the preset multiple initial prediction models, and the hyperparameter optimization results of the multiple initial prediction models corresponding to each of the respiratory signal samples are obtained.

[0011] In one embodiment, according to the similarity between the respiratory signal to be predicted and each respiratory signal sample in a preset respiratory signal sample library, the optimal complete prediction model corresponding to the respiratory signal sample with the highest similarity to the respiratory signal to be predicted is used as the target prediction model matched by the respiratory signal to be predicted, including the following steps: Calculating the similarity between the respiratory signal to be predicted and each of the respiratory signal samples in the preset respiratory signal sample library, and obtaining each similarity result between the respiratory signal to be predicted and each of the respiratory signal samples in the preset respiratory signal sample library; Based on the similarity results between the respiratory signal to be predicted and each of the respiratory signal samples in the preset respiratory signal sample library, determining the respiratory signal sample in the respiratory signal sample library having the highest similarity with the respiratory signal to be predicted; The optimal complete prediction model corresponding to the respiratory signal sample with the highest similarity to the respiratory signal to be predicted in the respiratory signal sample library is determined as the target prediction model matched by the respiratory signal to be predicted.

[0012] In one embodiment, the step of using the target prediction model to perform respiration prediction on the respiration signal to be predicted comprises the following steps: Using the respiratory signal to be predicted, the target prediction model is trained to obtain a complete target prediction model; The respiratory signal to be predicted is predicted using the complete target prediction model.

[0013] In one embodiment, after performing respiration prediction on the respiration signal to be predicted using the target prediction model, the following steps are included: Acquiring a real-time respiratory signal homologous to the respiratory signal to be predicted; Using the target prediction model to predict the acquired real-time respiratory signal to obtain a real-time prediction result; When the real-time prediction result is less than the preset prediction result threshold, the optimal complete prediction model corresponding to the breathing signal sample with the second highest similarity to the breathing signal to be predicted in the breathing signal sample library is used as the new target prediction model, and the process of obtaining the real-time prediction result is repeated until the real-time prediction result is greater than or equal to the preset prediction result threshold, or until the number of times the real-time prediction result is obtained meets the preset number threshold.

[0014] In a second aspect, the present application also provides a respiratory signal prediction device. The device comprises: A signal acquisition module, used for acquiring a respiratory signal to be predicted; A model determination module, for using, according to the similarity between the respiratory signal to be predicted and each respiratory signal sample in a preset respiratory signal sample library, the optimal complete prediction model corresponding to the respiratory signal sample with the highest similarity to the respiratory signal to be predicted as the target prediction model matched with the respiratory signal to be predicted; the optimal complete prediction model corresponding to the respiratory signal sample is a complete prediction model corresponding to the optimal prediction result obtained when the respiratory signal sample is predicted using multiple complete prediction models corresponding to the respiratory signal sample; and a prediction module, which is used to perform respiration prediction on the respiration signal to be predicted by using the target prediction model.

[0015] In a third aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the respiratory signal prediction method described in the first aspect is implemented.

[0016] The above-mentioned breathing signal prediction method, device and computer equipment pre-set a preset breathing signal sample library and pre-determine the optimal complete prediction model of each breathing signal sample in the preset breathing signal sample library. Therefore, when the breathing signal to be predicted is obtained, the similarity between each breathing signal sample in the preset breathing signal sample library and the breathing signal to be predicted can be directly calculated, and the optimal complete prediction model corresponding to the breathing signal sample with the highest similarity with the breathing signal to be predicted is used as the target prediction model matched with the breathing signal to be predicted. Because the target prediction model is the optimal complete prediction model for the breathing signal sample with the highest similarity with the breathing signal to be predicted, the target prediction model can be used to accurately predict the breathing signal to be predicted, thereby solving the problem of low accuracy of the prediction results of the breathing signal in the prior art.

[0017] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings: Figure 1 A hardware structure block diagram of a terminal of a respiratory signal prediction method provided in an embodiment of the present application; Figure 2 A flowchart of a respiratory signal prediction method provided in one embodiment of the present application; Figure 3 A flowchart of a respiratory signal prediction method provided in a preferred embodiment of the present application; Figure 4 This is a structural block diagram of a breathing signal prediction device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0019] In order to more clearly understand the purpose, technical solutions and advantages of the present application, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments.

[0020] Unless otherwise defined, the technical terms or scientific terms involved in this application shall have the general meaning understood by people with general skills in the technical field to which this application belongs. The words "one", "a", "the", "these" and the like in this application do not indicate a quantitative limitation, and they may be singular or plural. The terms "include", "comprise", "have" and any variants thereof involved in this application are intended to cover non-exclusive inclusions; for example, a process, method and system, product or device comprising a series of steps or modules (units) is not limited to the listed steps or modules (units), but may include unlisted steps or modules (units), or may include other steps or modules (units) inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there may be three relationships, for example, "A and / or B" may mean: A exists alone, A and B exist at the same time, and B exists alone. Generally, the character " / " indicates that the objects associated with each other are in an "or" relationship. The terms "first", "second", "third", etc. in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.

[0021] The method embodiment provided in this embodiment can be executed in a terminal, a computer or a similar computing device. For example, it can be executed on a radiotherapy or chemotherapy device. Figure 1 FIG. 4 is a hardware structure diagram of a terminal of the respiratory signal prediction method of this embodiment. Figure 1 As shown, the terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 and a memory 104 for storing data, wherein the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA. The above terminal may also include a transmission device 106 and an input and output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is for illustration only and does not limit the structure of the above terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.

[0022] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the respiratory signal prediction method in the present embodiment. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0023] The transmission device 106 is used to receive or send data via a network. The above network includes a wireless network provided by the communication provider of the terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet wirelessly.

[0024] In this embodiment, a method for predicting a respiratory signal is provided. Figure 2 is a flow chart of the respiratory signal prediction method of this embodiment. Figure 2 As shown, the process includes the following steps: Step S210, obtaining a respiratory signal to be predicted.

[0025] The respiratory signal to be predicted may be a respiratory signal that needs to be predicted or analyzed by an algorithm or model. The specific method of obtaining the respiratory signal to be predicted may be to obtain the respiratory signal to be predicted by one or more methods such as a respiratory flow meter, a chest impedance sensor, an abdominal belt sensor, an RPM (Remote Patient Monitoring) system, etc.

[0026] Step S220, based on the similarity between the respiratory signal to be predicted and each respiratory signal sample in the preset respiratory signal sample library, the optimal complete prediction model corresponding to the respiratory signal sample with the highest similarity to the respiratory signal to be predicted is used as the target prediction model matched with the respiratory signal to be predicted; the optimal complete prediction model corresponding to the respiratory signal sample is a complete prediction model corresponding to the optimal prediction result obtained by respectively predicting the respiratory signal sample using multiple complete prediction models corresponding to the respiratory signal sample.

[0027] In this step, the above-mentioned preset breathing signal sample library is a sample library determined by the breathing signal samples of multiple users collected in advance. It should be noted that in order to ensure that the breathing signal to be predicted can obtain matching samples with similarity conditions in the preset breathing signal sample library, it is necessary to ensure that the number of breathing signal samples in the preset breathing signal sample library is sufficient. The similarity between the above-mentioned breathing signal to be predicted and each breathing signal sample in the preset breathing signal sample library can be characterized by calculating the similarity between the breathing signal to be predicted and each breathing signal sample in the preset breathing signal sample library of a preset time length. The above-mentioned multiple complete prediction models corresponding to the breathing signal samples can be obtained by pre-training each initial prediction model in the preset multiple initial prediction models according to the breathing signal samples, and obtaining multiple complete prediction models corresponding to the breathing signal samples.

[0028] Step S230: using the target prediction model to perform respiration prediction on the respiration signal to be predicted.

[0029] In the above steps S210 to S230, a preset breathing signal sample library is pre-set, and the optimal complete prediction model of each breathing signal sample in the preset breathing signal sample library is pre-determined. Therefore, when the breathing signal to be predicted is obtained, the similarity between each breathing signal sample in the preset breathing signal sample library and the breathing signal to be predicted can be directly calculated, and the optimal complete prediction model corresponding to the breathing signal sample with the highest similarity with the breathing signal to be predicted is used as the target prediction model matched with the breathing signal to be predicted. Because the target prediction model is the optimal complete prediction model for the breathing signal sample with the highest similarity with the breathing signal to be predicted, the target prediction model can be used to accurately predict the breathing signal to be predicted, thereby solving the problem of low accuracy of the prediction results of the breathing signal in the prior art.

[0030] In one embodiment, the above-mentioned respiratory signal prediction method further includes the following steps: Step S240: acquiring a plurality of respiratory signal samples, and constructing a respiratory signal sample library based on the acquired plurality of respiratory signal samples.

[0031] In order to ensure that the constructed respiratory signal sample library has good generalization, that is, to represent respiratory signals under different circumstances, it is necessary to ensure the diversity of respiratory signals of the respiratory signal samples in the respiratory signal sample library. Based on this, in order to obtain diverse respiratory signal samples, it is necessary to ensure the diversity of sources, states, environments and methods in the process of obtaining respiratory signal samples. The above-mentioned source diversity can be to ensure that the acquired respiratory signal samples contain data of different people of different ages, genders, races, health conditions, regions, etc., so as to cover as many individual differences as possible. The above-mentioned state diversity can be to ensure that the acquired respiratory signal samples contain normal breathing, abnormal breathing (such as breathing caused by asthma, chronic obstructive pulmonary disease, etc.), breathing after exercise, breathing after eating and other breathing states. The above-mentioned environmental diversity can be to ensure that the acquired respiratory signal samples contain respiratory data under different environmental conditions, such as respiratory data in a quiet environment, respiratory data in a noisy environment, respiratory data in an outdoor environment, etc. The diversity of the above methods can ensure that the acquired respiratory signal sample sources include multiple respiratory signal acquisition methods. For example, the acquired respiratory signal sample sources include respiratory data collected by multiple methods such as respiratory flow meter, chest impedance sensor, abdominal belt sensor or RPM system.

[0032] Preferably, when the number of acquired respiratory signal samples is too large, it may cause too many respiratory signal samples in the preset respiratory signal sample library constructed. At this time, in the process of calculating the similarity between the respiratory signal to be predicted and each respiratory signal sample in the preset respiratory signal sample library, a large amount of computing resources will be consumed. Based on this, the acquired respiratory signal samples can be clustered to remove the excessive redundant samples in the acquired respiratory signal samples. Specifically, it can be firstly calculated that each respiratory signal sample in the acquired respiratory signal sample and the similarity between other respiratory signal samples other than itself in the acquired respiratory signal sample are similar, and a similarity result is obtained. Based on the similarity result, the respiratory signal samples whose similarity meets the preset similarity threshold condition are clustered into the same cluster, and then, any one respiratory signal sample is retained in each cluster, and other respiratory signal samples are deleted to achieve redundancy removal of the acquired respiratory signal samples, and obtain a respiratory signal sample library. It should be noted that the above-mentioned preset similarity threshold condition can be specifically set according to specific needs. In order to ensure the distinctiveness between each respiratory signal sample in the respiratory signal sample library, the preset similarity threshold condition can be set to a smaller value, such as 80%. In order to ensure the diversity of samples in the respiratory signal sample library, the preset similarity condition can be set to a larger value, such as 99%. For example, the preset similarity threshold condition is 95%, which can be clustering the respiratory signal samples with a similarity greater than or equal to 95% in the acquired respiratory signal samples into one cluster.

[0033] Preferably, in order to facilitate the subsequent training of the respiratory signal model, the multiple respiratory signal samples obtained can be converted to the same coordinate system, and the multiple respiratory signal samples obtained can be normalized, and all data of the multiple respiratory signal samples obtained can be normalized to [-1, 1] to obtain multiple normalized respiratory signal samples. Furthermore, a preset filtering algorithm can be used to perform smoothing filtering on the multiple normalized respiratory signal samples to obtain multiple smoothed filtered respiratory signal samples. The above-mentioned preset filtering algorithm can be one of SG (Savitzky Golay, smoothing filtering based on polynomial regression) filtering, MAF (Moving Average Filter, moving average filtering) filtering, low-pass filter, etc. It should be noted that the above-mentioned preset filtering algorithm is not specifically limited in this embodiment, as long as the preset filtering algorithm can be used to perform smoothing filtering on the multiple normalized respiratory signal samples to obtain multiple smoothed filtered respiratory signal samples. In addition, it should be noted that in order to ensure the accuracy of the subsequent prediction results of the respiratory signal to be predicted, after obtaining the respiratory signal to be predicted, it is only necessary to convert the respiratory signal to be predicted into the coordinate system where the respiratory signal samples in the respiratory signal sample library are located, and normalize the respiratory signal to be predicted. There is no need to perform smoothing filtering on the respiratory signal to be predicted.

[0034] By acquiring a plurality of respiratory signal samples, a generalized respiratory signal sample library is constructed, so that a respiratory signal sample whose similarity with the respiratory signal to be predicted meets a preset condition can be selected from the preset respiratory signal sample library later.

[0035] Step S250 , using a plurality of complete prediction models corresponding to the respective breathing signal samples in the breathing signal sample library, respectively predicting the respective breathing signal samples in the breathing signal sample library, and obtaining a plurality of prediction results for each breathing signal sample.

[0036] In this step, the prediction result may be one of the prediction accuracy or prediction error of the respiratory signal.

[0037] The above-mentioned use of multiple complete prediction models corresponding to each breathing signal sample in the breathing signal sample library to predict each breathing signal sample in the breathing signal sample library respectively to obtain multiple prediction results for each breathing signal sample may be pre-trained multiple complete prediction models corresponding to each breathing signal sample in the breathing signal sample library, and then, using the trained multiple complete prediction models corresponding to each breathing signal sample in the breathing signal sample library, each breathing signal sample in the breathing signal sample library is predicted respectively to obtain multiple prediction results for each breathing signal sample.

[0038] The following example illustrates this process: For example, there are three breathing signal samples, namely, breathing signal sample A, breathing signal sample B and breathing signal sample C, in the preset breathing signal sample library, and there are two breathing signal models, namely, breathing signal model D and breathing signal model E.

[0039] Among them, the breathing signal sample A corresponds to the first complete breathing signal model D and the first complete breathing signal model E, the breathing signal sample B corresponds to the second complete breathing signal model D and the second complete breathing signal model E, and the breathing signal sample C corresponds to the third complete breathing signal model D and the third complete breathing signal model E. The breathing signal sample A is predicted by the first complete breathing signal model D and the first complete breathing signal model E, the breathing signal sample B is predicted by the second complete breathing signal model D and the second complete breathing signal model E, and the breathing signal sample C is predicted by the third complete breathing signal model D and the third complete breathing signal model E, and the first prediction result of the breathing signal sample A and the second prediction result of the breathing signal sample A, the first prediction result of the breathing signal sample B and the second prediction result of the breathing signal sample B, and the first prediction result of the breathing signal sample C and the second prediction result of the breathing signal sample C are obtained.

[0040] Among them, the first prediction result of the above-mentioned breathing signal sample A is the prediction result obtained by predicting the breathing signal sample A using the first complete breathing signal model D. The second prediction result of the above-mentioned breathing signal sample A is the prediction result obtained by predicting the breathing signal sample A using the first complete breathing signal model E. The first prediction result of the above-mentioned breathing signal sample B is the prediction result obtained by predicting the breathing signal sample B using the second complete breathing signal model D. The second prediction result of the above-mentioned breathing signal sample B is the prediction result obtained by predicting the breathing signal sample B using the second complete breathing signal model E. The first prediction result of the above-mentioned breathing signal sample C is the prediction result obtained by predicting the breathing signal sample C using the third complete breathing signal model D. The second prediction result of the above-mentioned breathing signal sample C is the prediction result obtained by predicting the breathing signal sample C using the third complete breathing signal model E. The above-mentioned first complete breathing signal model D is a complete breathing signal model that meets the preset requirements obtained by training the breathing signal model D according to the breathing signal sample A. The above-mentioned first complete breathing signal model E is a complete breathing signal model that meets the preset requirements and is obtained by training the breathing signal model E according to the breathing signal sample A. The above-mentioned second complete breathing signal model D is a complete breathing signal model that meets the preset requirements and is obtained by training the breathing signal model D according to the breathing signal sample B. The above-mentioned second complete breathing signal model E is a complete breathing signal model that meets the preset requirements and is obtained by training the breathing signal model E according to the breathing signal sample B. The above-mentioned third complete breathing signal model D is a complete breathing signal model that meets the preset requirements and is obtained by training the breathing signal model D according to the breathing signal sample C. The above-mentioned third complete breathing signal model E is a complete breathing signal model that meets the preset requirements and is obtained by training the breathing signal model E according to the breathing signal sample C. The above-mentioned preset requirements can be specifically set according to the specific models and samples.

[0041] Step S260 , selecting the complete prediction model corresponding to the best prediction result among the multiple prediction results of each breathing signal sample as the best complete prediction model corresponding to each breathing signal sample.

[0042] The optimal prediction result among the above-mentioned multiple prediction results may be the prediction result with the highest accuracy among the multiple prediction results, or may be the prediction result with the smallest error among the multiple prediction results.

[0043] For example, the breathing signal sample A corresponds to the first complete breathing signal model D and the first complete breathing signal model E. The first complete breathing signal model D and the first complete breathing signal model E are used to predict the breathing signal sample A, and the first prediction result of the breathing signal sample A (the prediction accuracy is 99%) and the second prediction result of the breathing signal sample A (the prediction accuracy is 80%) are obtained. Then the first prediction result of the breathing signal sample A is the optimal prediction result of the breathing signal sample A, and the first complete breathing signal model D is the optimal complete prediction model of the breathing signal sample A.

[0044] In the above steps S240 to S260, a plurality of respiratory signal samples are acquired, and a respiratory signal sample library is constructed based on the acquired plurality of respiratory signal samples, and then a plurality of complete prediction models corresponding to each respiratory signal sample in the respiratory signal sample library are used to predict each respiratory signal sample in the respiratory signal sample library, respectively, to obtain a plurality of prediction results for each respiratory signal sample, and a complete prediction model corresponding to the optimal prediction result among the plurality of prediction results for each respiratory signal sample is selected as the optimal complete prediction model corresponding to each respiratory signal sample. By determining the optimal complete prediction model corresponding to each respiratory signal sample, it is convenient to determine the respiratory signal sample with the highest similarity with the respiratory signal to be predicted in the preset respiratory signal sample library, and then use the optimal complete prediction model corresponding to the respiratory signal sample with the highest similarity with the respiratory signal to be predicted as the target prediction model matched by the respiratory signal to be predicted, so that the target prediction model matched by the respiratory signal to be predicted can be quickly determined, and the prediction accuracy when the target prediction model is used to predict the respiratory signal to be predicted can be guaranteed.

[0045] Specifically, in one embodiment, before step S250, the following steps are included: Step S252 , for each breathing signal sample in the breathing signal sample library, respectively train each of the preset multiple initial prediction models to obtain multiple complete prediction models corresponding to each breathing signal sample in the breathing signal sample library.

[0046] In order to ensure that each of the preset multiple initial prediction models is trained, and that there is a complete prediction model that can meet the preset prediction accuracy requirements among the multiple complete prediction models corresponding to each respiratory signal sample in the respiratory signal sample library, it is necessary to ensure that the initial prediction models in the preset multiple initial prediction models can cover a comprehensive range of models that can be used for respiratory signal prediction. Based on this, the preset multiple initial prediction models used in this embodiment can cover all the more mainstream regression prediction models and other models related to respiratory signal prediction involved in related technologies. Among them, the mainstream regression prediction models specifically include: 6 regression models (multivariate adaptive regression splines, linear regression, logistic regression, least squares regression, local scatter point smoothing estimation and stepwise regression), regression and classification tree models, 4 regularization models (minimum absolute shrinkage and selection operator, elastic network, minimum angle regression and ridge regression), 3 Kalman filter models (Kalman filter, extended Kalman filter and insensitive Kalman filter), 5 integration methods (adaptive enhancement, random forest, bagging algorithm, gradient boosting tree and extreme gradient boosting), support vector regression model, 17 neural networks (deep learning The following are 44 models: 1) models (multilayer perceptron network, deep Boltzmann machine, deep belief network, convolutional neural network, stacked autoencoder, long short-term memory network, generalized regression neural network, radial basis function network, Hopfield network, grey neural network, probabilistic neural network, fuzzy neural network, learning vector quantization network, Elman recursive network, self-organizing neural network, recursive neural network and time convolution network), differential autoregressive moving average model and 5 Bayesian models (naive Bayes, Gaussian naive Bayes, polynomial naive Bayes, Bayesian belief network and Bayesian network), totaling 44 models. In addition, other models related to respiratory signal prediction involved in the related technology include extended Kalman filter and recursive neural network, particle algorithm and neural network, genetic algorithm and neural network, adaptive enhancement and multilayer perceptron and other models.

[0047] The above process of training each of the preset multiple initial prediction models for each respiratory signal sample in the respiratory signal sample library to obtain multiple complete prediction models corresponding to each respiratory signal sample in the respiratory signal sample library can be explained by taking an example: For example, there are three breathing signal samples, namely, breathing signal sample A, breathing signal sample B and breathing signal sample C, in the preset breathing signal sample library, and there are two breathing signal models, namely, breathing signal model D and breathing signal model E, in the preset breathing signal prediction model. First, according to breathing signal sample A, breathing signal model D and breathing signal model E are trained respectively, and the first complete breathing signal model D and the first complete breathing signal model E corresponding to breathing signal sample A are obtained respectively. According to breathing signal sample B, breathing signal model D and breathing signal model E are trained respectively, and the second complete breathing signal model D and the second complete breathing signal model E corresponding to breathing signal sample B are obtained respectively. According to breathing signal sample C, breathing signal model D and breathing signal model E are trained respectively, and the third complete breathing signal model D and the third complete breathing signal model E corresponding to breathing signal sample C are obtained respectively.

[0048] In this step, for each breathing signal sample in the breathing signal sample library, each initial prediction model in the preset multiple initial prediction models is trained respectively to obtain multiple complete prediction models corresponding to each breathing signal sample in the breathing signal sample library. By obtaining multiple complete prediction models corresponding to each breathing signal sample in the breathing signal sample library, it is convenient to subsequently use the multiple complete prediction models corresponding to each breathing signal sample in the breathing signal sample library to predict each breathing signal sample in the breathing signal sample library respectively, and obtain multiple prediction results for each breathing signal sample, so as to select the complete prediction model corresponding to the optimal prediction result among the multiple prediction results of each breathing signal sample as the optimal complete prediction model corresponding to each breathing signal sample.

[0049] In addition, in one embodiment, based on step S252, for each breathing signal sample in the breathing signal sample library, each of the preset multiple initial prediction models is trained respectively to obtain multiple complete prediction models corresponding to each breathing signal sample in the breathing signal sample library, including the following steps: Step S2522, for each respiratory signal sample in the respiratory signal sample library, respectively perform hyperparameter optimization on each of the preset multiple initial prediction models to obtain hyperparameter optimization results of multiple initial prediction models corresponding to each respiratory signal sample.

[0050] For each respiratory signal sample in the respiratory signal sample library, each of the preset multiple initial prediction models is optimized for hyperparameters. For each respiratory signal sample in the respiratory signal sample library, a preset hyperparameter optimization method is used to optimize each of the preset multiple initial prediction models for hyperparameters. The preset hyperparameter optimization method may include one or more methods such as network search method, random search method, Bayesian optimization method, genetic algorithm, evolutionary strategy, etc.

[0051] Step S2524, based on the hyperparameter optimization results of the multiple initial prediction models corresponding to each respiratory signal sample, the multiple initial prediction models corresponding to each respiratory signal sample are trained respectively to obtain multiple complete prediction models corresponding to each respiratory signal sample in the respiratory signal sample library.

[0052] Among them, based on the hyperparameter optimization results of multiple initial prediction models corresponding to each breathing signal sample, the multiple initial prediction models corresponding to each breathing signal sample are trained respectively to obtain multiple complete prediction models corresponding to each breathing signal sample in the breathing signal sample library. It can be that the hyperparameter optimization results of each initial prediction model corresponding to each breathing signal sample are first determined, and each initial prediction model corresponding to each breathing signal sample is initialized, and the best hyperparameters obtained after optimization are set for each initial prediction model corresponding to each breathing signal sample. Then, the breathing signal sample is used to train the initial prediction model after setting the best hyperparameters to obtain each complete prediction model corresponding to the breathing signal sample.

[0053] In the above steps S2522 to S2524, for each breathing signal sample in the breathing signal sample library, hyperparameter optimization is performed on each initial prediction model in the preset multiple initial prediction models, and then based on the hyperparameter optimization results of the multiple initial prediction models corresponding to each breathing signal sample, the multiple initial prediction models corresponding to each breathing signal sample are trained respectively to obtain multiple complete prediction models corresponding to each breathing signal sample in the breathing signal sample library. By obtaining the multiple complete prediction models corresponding to each breathing signal sample in the breathing signal sample library, it is convenient to subsequently use the multiple complete prediction models corresponding to each breathing signal sample in the breathing signal sample library to predict each breathing signal sample in the breathing signal sample library respectively, and obtain multiple prediction results for each breathing signal sample, so as to select the complete prediction model corresponding to the optimal prediction result among the multiple prediction results of each breathing signal sample as the optimal complete prediction model corresponding to each breathing signal sample.

[0054] In one embodiment, the above step S2522, for each respiratory signal sample in the respiratory signal sample library, performs hyperparameter optimization on each of the preset multiple initial prediction models, and obtains the hyperparameter optimization results of the multiple initial prediction models corresponding to each respiratory signal sample, including the following steps: Step S25222: For each respiratory signal sample in the respiratory signal sample library, the MOPSO (Multi-Objective Particle Swarm Optimization) method is used to perform hyperparameter optimization on each of the preset multiple initial prediction models to obtain hyperparameter optimization results of the multiple initial prediction models corresponding to each respiratory signal sample.

[0055] In this step, the above-mentioned MOPSO method is a meta-heuristic evolutionary algorithm with fast global search capability. The main advantages of using the MOPSO method to perform hyperparameter optimization on each of the preset multiple initial prediction models are: first, the MOPSO method can optimize multiple objective functions at the same time, so the MOPSO method can balance multiple conflicting goals, such as accuracy, model complexity, training time, etc. Second, in the process of using the MOPSO method to perform hyperparameter optimization on each of the preset multiple initial prediction models, a set of non-dominated solutions, i.e., Pareto optimal solutions, can be found, providing an optimal solution for the hyperparameter optimization results of the initial prediction model under certain circumstances. Third, in the process of using the MOPSO method to perform hyperparameter optimization on each of the preset multiple initial prediction models, the MOPSO method tends to perform global search, which can effectively avoid falling into local optimality, and the MOPSO method can explore the solution space through the synergy of particle swarms, which can better cover different areas of the solution space. Fourth, the MOPSO algorithm is very suitable for parallel processing. Therefore, the use of the MOPSO method to optimize the hyperparameters of each of the preset multiple initial prediction models can reduce the optimization time through parallel processing. Fifth, the parameters of the MOPSO method (such as the number of particles, inertia weight, etc.) can be flexibly set and adjusted according to actual problems, and are easy to implement. Based on this, the MOPSO method is used to optimize the hyperparameters of each of the preset multiple initial prediction models, which can not only quickly and efficiently obtain the hyperparameter optimization results of multiple initial prediction models corresponding to each respiratory signal sample, but also is simple and easy.

[0056] In addition, in one embodiment, based on step S220, according to the similarity between the respiratory signal to be predicted and each respiratory signal sample in the preset respiratory signal sample library, the optimal complete prediction model corresponding to the respiratory signal sample with the highest similarity to the respiratory signal to be predicted is used as the target prediction model matched by the respiratory signal to be predicted, including the following steps: Step S222, calculating the similarity between the respiratory signal to be predicted and each respiratory signal sample in the preset respiratory signal sample library, and obtaining each similarity result between the respiratory signal to be predicted and each respiratory signal sample in the preset respiratory signal sample library.

[0057] In this step, the above-mentioned calculation of the similarity between the respiratory signal to be predicted and each respiratory signal sample in the preset respiratory signal sample library can be to use a preset similarity evaluation method to calculate the similarity between the respiratory signal to be predicted and each respiratory signal sample in the preset respiratory signal sample library. It should be noted that after obtaining the respiratory signal to be predicted, in order not to introduce more delay time, the calculation process of the similarity between the respiratory signal to be predicted and each respiratory signal sample in the preset respiratory signal sample library needs to be fast and accurate. Therefore, the process of calculating the similarity between the respiratory signal to be predicted and each respiratory signal sample in the preset respiratory signal sample library should adopt a simple algorithm to minimize the amount of calculation. Based on this, the above-mentioned preset similarity evaluation method can be one or more methods such as Euclidean distance, correlation coefficient, cosine similarity, etc.

[0058] Step S224 , based on the similarity results between the respiratory signal to be predicted and each respiratory signal sample in the preset respiratory signal sample library, determine the respiratory signal sample in the respiratory signal sample library that has the highest similarity with the respiratory signal to be predicted.

[0059] Step S226 , determining the optimal complete prediction model corresponding to the respiratory signal sample with the highest similarity to the respiratory signal to be predicted in the respiratory signal sample library as the target prediction model matched by the respiratory signal to be predicted.

[0060] In the above steps S222 to S226, by calculating the similarity between the respiratory signal to be predicted and each respiratory signal sample in the preset respiratory signal sample library, and according to each similarity result between the respiratory signal to be predicted and each respiratory signal sample in the preset respiratory signal sample library, the respiratory signal sample with the highest similarity to the respiratory signal to be predicted in the respiratory signal sample library is determined, and the optimal complete prediction model corresponding to the respiratory signal sample with the highest similarity to the respiratory signal to be predicted in the respiratory signal sample library is determined as the target prediction model matched by the respiratory signal to be predicted. By determining the target prediction model matched with the respiratory signal to be predicted, it is convenient to use the target prediction model to accurately predict the respiratory signal to be predicted in the subsequent process, and solves the problem of low accuracy of the prediction result of the respiratory signal in the prior art.

[0061] In one embodiment, based on step S230, using the target prediction model, performing respiration prediction on the respiration signal to be predicted includes the following steps: Step S232, using the respiratory signal to be predicted, the target prediction model is trained to obtain a complete target prediction model.

[0062] It should be noted that, because the target prediction model is the optimal complete prediction model corresponding to the respiratory signal sample with the highest similarity to the respiratory signal to be predicted in the sample library of the respiratory signal, in order to avoid the situation where the prediction result of the respiratory signal to be predicted is inaccurate when the target prediction model is used directly to predict the respiratory signal to be predicted, the target prediction model can be trained before the respiratory prediction of the respiratory signal to be predicted to obtain a complete target prediction model. The above-mentioned complete target prediction model can be a target prediction model that meets the preset accuracy requirement or meets the preset iteration number threshold after the target prediction model is trained based on the respiratory signal to be predicted. The above-mentioned preset accuracy requirement can be specifically set according to specific needs. For example, the preset accuracy requirement can be set to 90%.

[0063] Step S234, using the complete target prediction model, predicting the respiratory signal to be predicted.

[0064] In the above steps S232 to S234, the target prediction model is trained by using the respiratory signal to be predicted to obtain a complete target prediction model, and then the respiratory signal to be predicted is predicted using the complete target prediction model. The target prediction model is trained again to ensure the accuracy of the prediction of the respiratory signal to be predicted.

[0065] Further, in one embodiment, after step S230, the following steps are included: Step S270, obtaining a real-time respiratory signal that is homologous to the respiratory signal to be predicted.

[0066] The above-mentioned real-time breathing signal homologous to the breathing signal to be predicted can be a real-time breathing signal acquired continuously from the same user and acquired by the same device as the breathing signal to be predicted. In order to ensure the accuracy of the prediction in the process of predicting the breathing signal, it is necessary to collect the real-time breathing signal homologous to the breathing signal to be predicted in real time, and use the collected real-time breathing signal homologous to the breathing signal to be predicted as the new breathing signal to be predicted. By updating the breathing signal to be predicted, it is convenient to subsequently supervise the prediction accuracy of the breathing signal to be predicted, so that when the target prediction model cannot accurately predict the breathing signal to be predicted, the target prediction model that matches the new breathing signal to be predicted can be updated in time.

[0067] Step S280, using the target prediction model to predict the acquired real-time respiratory signal to obtain a real-time prediction result.

[0068] The above real-time prediction result may be the accuracy of the real-time prediction.

[0069] Step S290, when the real-time prediction result is less than the preset prediction result threshold, the optimal complete prediction model corresponding to the respiratory signal sample with the second highest similarity between the respiratory signal to be predicted in the respiratory signal sample library is used as the new target prediction model, and the process of obtaining the real-time prediction result is repeated until the real-time prediction result is greater than or equal to the preset prediction result threshold, or until the number of times the real-time prediction result is obtained meets the preset number threshold.

[0070] The above-mentioned preset prediction result threshold can be specifically set according to the specific situation. For example, the preset prediction result threshold can be 90%. The above-mentioned real-time prediction result is less than the preset prediction result threshold, and the prediction accuracy of the instant prediction result is less than 90%. The above-mentioned process of repeatedly obtaining real-time prediction results can be a process of repeating steps S270 to S280. The above-mentioned preset number threshold can be specifically set according to the specific situation. It should be noted that in order to avoid introducing too much delay, the above-mentioned preset number threshold can be set to a smaller value. For example, the preset number threshold can be set to 10 times.

[0071] Preferably, when the number of times the real-time prediction results are obtained meets a preset number threshold, the target prediction model in the process of obtaining the real-time prediction results for the last time can be selected to continue predicting the obtained real-time respiratory signal to obtain the real-time prediction result. A preset global optimal prediction model can also be selected to predict the obtained real-time respiratory signal to obtain a real-time prediction result. The above-mentioned preset global optimal prediction model can be a pre-set optimal model found after considering all possible model configurations and hyperparameters. The prediction effect of this model may not be the best when corresponding to individual respiratory signal samples, but it can ensure the best prediction effect when predicting all respiratory signal samples.

[0072] In the above steps S270 to S290, the prediction accuracy of the target prediction model is determined by obtaining a real-time breathing signal homologous to the breathing signal to be predicted. If the prediction accuracy of the current target prediction model does not meet the requirements, the target prediction model is updated until the preset requirements are met. By updating the breathing signal to be predicted and the target prediction model, the prediction effect in the entire prediction process is guaranteed, and the subsequent signal of the breathing signal to be predicted is avoided. The target prediction model cannot be updated in time, which causes the prediction error to be too large.

[0073] The present embodiment is described and illustrated below through preferred embodiments.

[0074] Figure 3 FIG. 1 is a flow chart of a respiratory signal prediction method provided by a preferred embodiment of the present application. Figure 3 As shown, the respiratory signal prediction method includes the following steps: Step S310, acquiring multiple respiratory signal samples, and constructing a respiratory signal sample library based on the acquired multiple respiratory signal samples; Step S320, for each respiratory signal sample in the respiratory signal sample library, respectively train each of the preset multiple initial prediction models to obtain multiple complete prediction models corresponding to each respiratory signal sample in the respiratory signal sample library; Step S330, using a plurality of complete prediction models corresponding to each breathing signal sample in the breathing signal sample library, respectively predicting each breathing signal sample in the breathing signal sample library to obtain a plurality of prediction results for each breathing signal sample; Step S340, selecting the complete prediction model corresponding to the best prediction result among the multiple prediction results of each respiratory signal sample as the best complete prediction model corresponding to each respiratory signal sample; Step S350, obtaining a respiratory signal to be predicted; Step S360, according to the similarity between the respiratory signal to be predicted and each respiratory signal sample in the preset respiratory signal sample library, the optimal complete prediction model corresponding to the respiratory signal sample with the highest similarity to the respiratory signal to be predicted is used as the target prediction model matched by the respiratory signal to be predicted; Step S370: using the target prediction model, perform respiration prediction on the respiration signal to be predicted.

[0075] In the above steps S310 to S370, a preset breathing signal sample library is pre-set, and the optimal complete prediction model of each breathing signal sample in the preset breathing signal sample library is pre-determined. Therefore, when the breathing signal to be predicted is obtained, the similarity between each breathing signal sample in the preset breathing signal sample library and the breathing signal to be predicted can be directly calculated, and the optimal complete prediction model corresponding to the breathing signal sample with the highest similarity with the breathing signal to be predicted is used as the target prediction model matched with the breathing signal to be predicted. Because the target prediction model is the optimal complete prediction model for the breathing signal sample with the highest similarity with the breathing signal to be predicted, the target prediction model can be used to accurately predict the breathing signal to be predicted, thereby solving the problem of low accuracy of the prediction results of the breathing signal in the prior art.

[0076] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0077] Based on the same inventive concept, a breathing signal prediction device is also provided in this embodiment, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. The terms "module", "unit", "subunit", etc. used below can implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0078] In one embodiment, Figure 4 is a structural block diagram of a respiratory signal prediction device provided in an embodiment of the present application. Figure 4 As shown, the respiratory signal prediction device comprises: A signal acquisition module 42, used to acquire a respiratory signal to be predicted; The model determination module 44 is used to use the optimal complete prediction model corresponding to the respiratory signal sample with the highest similarity to the respiratory signal to be predicted as the target prediction model matched with the respiratory signal to be predicted according to the similarity between the respiratory signal to be predicted and each respiratory signal sample in the preset respiratory signal sample library; the optimal complete prediction model corresponding to the respiratory signal sample is the complete prediction model corresponding to the optimal prediction result obtained when the respiratory signal sample is predicted by using multiple complete prediction models corresponding to the respiratory signal sample respectively; And a prediction module 46 is used to perform respiration prediction on the respiration signal to be predicted by using the target prediction model.

[0079] The above-mentioned breathing signal prediction device pre-sets a preset breathing signal sample library and pre-determines the optimal complete prediction model for each breathing signal sample in the preset breathing signal sample library. Therefore, when the breathing signal to be predicted is obtained, the similarity between each breathing signal sample in the preset breathing signal sample library and the breathing signal to be predicted can be directly calculated, and the optimal complete prediction model corresponding to the breathing signal sample with the highest similarity with the breathing signal to be predicted is used as the target prediction model matched with the breathing signal to be predicted. Because the target prediction model is the optimal complete prediction model for the breathing signal sample with the highest similarity with the breathing signal to be predicted, the target prediction model can be used to accurately predict the breathing signal to be predicted, thereby solving the problem of low accuracy of the prediction results of the breathing signal in the prior art.

[0080] In one embodiment, the respiratory signal prediction device further includes a sample library construction module: The sample library construction module is used to obtain multiple breathing signal samples and construct the breathing signal sample library based on the multiple breathing signal samples obtained; use multiple complete prediction models corresponding to each of the breathing signal samples in the breathing signal sample library to predict each of the breathing signal samples in the breathing signal sample library to obtain multiple prediction results for each of the breathing signal samples; and select the complete prediction model corresponding to the optimal prediction result among the multiple prediction results of each of the breathing signal samples as the optimal complete prediction model corresponding to each of the breathing signal samples.

[0081] In one of the embodiments, the respiratory signal prediction device further includes a complete prediction model training module; The complete prediction model training module is used to train each of the preset multiple initial prediction models for each of the breathing signal samples in the breathing signal sample library, so as to obtain multiple complete prediction models corresponding to each of the breathing signal samples in the breathing signal sample library.

[0082] In one of the embodiments, the complete prediction model training module includes an optimization unit and a complete prediction model training unit; The optimization unit is used to perform hyperparameter optimization on each of the preset multiple initial prediction models for each of the respiratory signal samples in the respiratory signal sample library, and obtain hyperparameter optimization results of the multiple initial prediction models corresponding to each of the respiratory signal samples; The complete prediction model training unit is used to train the multiple initial prediction models corresponding to each of the breathing signal samples based on the hyperparameter optimization results of the multiple initial prediction models corresponding to each of the breathing signal samples, and obtain multiple complete prediction models corresponding to each of the breathing signal samples in the breathing signal sample library.

[0083] In one of the embodiments, the optimization unit uses the MOPSO method for each of the respiratory signal samples in the respiratory signal sample library to perform hyperparameter optimization on each of the preset multiple initial prediction models, and obtains the hyperparameter optimization results of the multiple initial prediction models corresponding to each of the respiratory signal samples.

[0084] In one of the embodiments, the model determination module includes a similarity calculation unit, a similarity result determination unit, and a target prediction model determination unit; The similarity calculation unit is used to calculate the similarity between the respiratory signal to be predicted and each of the respiratory signal samples in the preset respiratory signal sample library, and obtain each similarity result between the respiratory signal to be predicted and each of the respiratory signal samples in the preset respiratory signal sample library; The similarity result determining unit is used to determine the breathing signal sample in the breathing signal sample library having the highest similarity with the breathing signal to be predicted based on each of the similarity results between the breathing signal to be predicted and each of the breathing signal samples in the preset breathing signal sample library; The target prediction model determination unit is used to determine the optimal complete prediction model corresponding to the respiratory signal sample with the highest similarity to the respiratory signal to be predicted in the respiratory signal sample library as the target prediction model matched by the respiratory signal to be predicted.

[0085] In one of the embodiments, the prediction module is used to train the target prediction model using the respiratory signal to be predicted to obtain a complete target prediction model; and to predict the respiratory signal to be predicted using the complete target prediction model.

[0086] In one of the embodiments, the respiratory signal prediction device further includes a real-time prediction module; The real-time prediction module is used to obtain a real-time breathing signal homologous to the breathing signal to be predicted after using the target prediction model to perform breathing prediction on the breathing signal to be predicted, and use the target prediction model to predict the acquired real-time breathing signal to obtain a real-time prediction result; and when the real-time prediction result is less than the preset prediction result threshold, use the optimal complete prediction model corresponding to the breathing signal sample with the second highest similarity between the breathing signal to be predicted and the breathing signal sample library as the new target prediction model, and repeat the process of obtaining the real-time prediction result until the real-time prediction result is greater than or equal to the preset prediction result threshold, or until the number of times the real-time prediction result is obtained meets the preset number threshold.

[0087] It should be noted that the above modules can be functional modules or program modules, and can be implemented by software or hardware. For modules implemented by hardware, the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.

[0088] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, any one of the respiratory signal prediction methods in the above embodiments is implemented.

[0089] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0090] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0091] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A respiratory signal prediction method, characterized in that: The method comprises: Acquire a respiratory signal to be predicted; According to the similarity between the respiratory signal to be predicted and each respiratory signal sample in the preset respiratory signal sample library, the optimal complete prediction model corresponding to the respiratory signal sample with the highest similarity to the respiratory signal to be predicted is used as the target prediction model matched with the respiratory signal to be predicted; the optimal complete prediction model corresponding to the respiratory signal sample is the complete prediction model corresponding to the optimal prediction result obtained when the respiratory signal sample is predicted by using multiple complete prediction models corresponding to the respiratory signal sample respectively; The target prediction model is used to perform respiration prediction on the respiration signal to be predicted.

2. The respiratory signal prediction method according to claim 1, characterized in that: The method further comprises: Acquire a plurality of respiratory signal samples, and construct the respiratory signal sample library based on the acquired plurality of respiratory signal samples; Using a plurality of complete prediction models corresponding to each of the breathing signal samples in the breathing signal sample library, respectively predict each of the breathing signal samples in the breathing signal sample library to obtain a plurality of prediction results for each of the breathing signal samples; The complete prediction model corresponding to the best prediction result among the multiple prediction results of each of the breathing signal samples is selected as the best complete prediction model corresponding to each of the breathing signal samples.

3. The respiratory signal prediction method according to claim 2, characterized in that: Before using a plurality of complete prediction models corresponding to each of the breathing signal samples in the breathing signal sample library to predict each of the breathing signal samples in the breathing signal sample library respectively to obtain a plurality of prediction results for each of the breathing signal samples, the method comprises: For each of the breathing signal samples in the breathing signal sample library, each of the preset multiple initial prediction models is trained respectively to obtain a plurality of the complete prediction models corresponding to each of the breathing signal samples in the breathing signal sample library.

4. The respiratory signal prediction method according to claim 3, characterized in that: The method of training each of the plurality of preset initial prediction models for each of the respiratory signal samples in the respiratory signal sample library to obtain a plurality of complete prediction models corresponding to each of the respiratory signal samples in the respiratory signal sample library comprises: For each of the respiratory signal samples in the respiratory signal sample library, respectively perform hyperparameter optimization on each of the preset multiple initial prediction models to obtain hyperparameter optimization results of the multiple initial prediction models corresponding to each of the respiratory signal samples; Based on the hyperparameter optimization results of the multiple initial prediction models corresponding to each of the breathing signal samples, the multiple initial prediction models corresponding to each of the breathing signal samples are trained respectively to obtain multiple complete prediction models corresponding to each of the breathing signal samples in the breathing signal sample library.

5. The respiratory signal prediction method according to claim 4, characterized in that: For each of the respiratory signal samples in the respiratory signal sample library, respectively performing hyperparameter optimization on each of the preset multiple initial prediction models to obtain hyperparameter optimization results of the multiple initial prediction models corresponding to each of the respiratory signal samples, including: For each of the respiratory signal samples in the respiratory signal sample library, the MOPSO method is used to perform hyperparameter optimization on each of the preset multiple initial prediction models, and the hyperparameter optimization results of the multiple initial prediction models corresponding to each of the respiratory signal samples are obtained.

6. The respiratory signal prediction method according to claim 1, characterized in that: According to the similarity between the respiratory signal to be predicted and each respiratory signal sample in the preset respiratory signal sample library, the optimal complete prediction model corresponding to the respiratory signal sample with the highest similarity to the respiratory signal to be predicted is used as the target prediction model matched by the respiratory signal to be predicted, including: Calculating the similarity between the respiratory signal to be predicted and each of the respiratory signal samples in the preset respiratory signal sample library, and obtaining each similarity result between the respiratory signal to be predicted and each of the respiratory signal samples in the preset respiratory signal sample library; Based on the similarity results between the respiratory signal to be predicted and each of the respiratory signal samples in the preset respiratory signal sample library, determining the respiratory signal sample in the respiratory signal sample library having the highest similarity with the respiratory signal to be predicted; The optimal complete prediction model corresponding to the respiratory signal sample with the highest similarity to the respiratory signal to be predicted in the respiratory signal sample library is determined as the target prediction model matched by the respiratory signal to be predicted.

7. The respiratory signal prediction method according to claim 1, characterized in that: The step of using the target prediction model to perform respiration prediction on the respiration signal to be predicted includes: Using the respiratory signal to be predicted, the target prediction model is trained to obtain a complete target prediction model; The respiratory signal to be predicted is predicted using the complete target prediction model.

8. The respiratory signal prediction method according to claim 1, characterized in that: After performing respiration prediction on the respiration signal to be predicted by using the target prediction model, the method further comprises: Acquiring a real-time respiratory signal homologous to the respiratory signal to be predicted; Using the target prediction model to predict the acquired real-time respiratory signal to obtain a real-time prediction result; When the real-time prediction result is less than the preset prediction result threshold, the optimal complete prediction model corresponding to the breathing signal sample with the second highest similarity to the breathing signal to be predicted in the breathing signal sample library is used as the new target prediction model, and the process of obtaining the real-time prediction result is repeated until the real-time prediction result is greater than or equal to the preset prediction result threshold, or until the number of times the real-time prediction result is obtained meets the preset number threshold.

9. A respiratory signal prediction device, characterized in that: The device comprises: A signal acquisition module, used for acquiring a respiratory signal to be predicted; A model determination module, for using, according to the similarity between the respiratory signal to be predicted and each respiratory signal sample in a preset respiratory signal sample library, the optimal complete prediction model corresponding to the respiratory signal sample with the highest similarity to the respiratory signal to be predicted as the target prediction model matched with the respiratory signal to be predicted; the optimal complete prediction model corresponding to the respiratory signal sample is a complete prediction model corresponding to the optimal prediction result obtained when the respiratory signal sample is predicted using multiple complete prediction models corresponding to the respiratory signal sample; and a prediction module, which is used to perform respiration prediction on the respiration signal to be predicted by using the target prediction model.

10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the breathing signal prediction method according to any one of claims 1 to 8 are implemented.

Citation Information

Patent Citations

  • Data predicting model selecting device and method

    CN104679754A

  • Method for predicting human body thoracico-abdominal surface area respiratory movement in radiotherapy

    CN108159576A

  • Time sequence prediction method based on time convolution and LSTM

    CN108764460A

  • A method and apparatus for training a prediction model for a target scene

    CN109214436A

  • Performance degradation model precision verification method based on leave-one-out cross validation

    CN110895626A