A lung function parameter evaluation method and system based on double-flow acoustic features and task adaptive prior fusion

By fusing dual-stream acoustic features with task-adaptive priors, this method solves the problems of incomplete feature representation and poor model adaptability in existing lung function assessment technologies, achieving high-precision and stable lung function parameter assessment, which is suitable for primary healthcare and home health monitoring.

CN123182710APending Publication Date: 2026-11-27CHINA JILIANG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611639146.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-22
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing respiratory audio-based lung function assessment technologies suffer from problems such as incomplete feature representation, redundant features in small-sample, high-dimensional feature scenarios leading to model overfitting, rigid biological prior utilization strategies, and poor adaptability of regression models. These issues result in insufficient assessment accuracy and stability, making it difficult to meet the needs of chronic disease screening and home monitoring at the grassroots level.

Method used

We employ a method that fuses dual-stream acoustic features with task-adaptive priors. By constructing parallel time-domain and frequency-domain models, we combine traditional acoustic features to perform feature selection and redundancy removal. We also dynamically control the introduction of prior information based on the type of lung function index and use a pre-trained Transformer architecture for regression prediction.

Benefits of technology

It improves the accuracy and stability of lung function parameter assessment, reduces the risk of overfitting in small sample scenarios, enhances the model's generalization ability and predictive stability, and is suitable for primary healthcare and home health monitoring.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123182710A_ABST
    Figure CN123182710A_ABST
Patent Text Reader

Abstract

The scheme provides a lung function parameter evaluation method and system based on double-flow acoustic features and task adaptive prior fusion, comprising the following steps: acquiring cough audio data and biological attribute metadata of a subject; inputting a standardized audio sequence into an audio feature extraction module to output multi-dimensional acoustic features, performing correlation sorting based on mutual information between the multi-dimensional acoustic features and a target lung function parameter, and performing dimension compression according to the redundancy between the features to output a structured fusion feature vector; controlling the prior gating state according to the index type of the current lung function prediction task, and classifying to obtain prediction information; inputting the prediction information into a pre-trained table model based on a Transformer architecture to output a lung function parameter prediction result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of medical signal processing and intelligent assisted diagnosis technology, and in particular to a method and system for evaluating lung function parameters based on dual-stream acoustic features and task-adaptive prior fusion. Background Technology

[0002] Chronic respiratory diseases are characterized by insidious onset, prolonged course, and the need for long-term dynamic monitoring. Pulmonary function indicators are the core clinical evidence for assessing airway obstruction, ventilation capacity, and disease severity. Currently, the gold standard for clinical pulmonary function testing is the spirometry test, but this method has several practical limitations: the equipment is expensive and bulky, and can only be installed in secondary and higher-level medical institutions; the testing procedure has strict requirements on the subject's blowing force, duration, and cooperation, making it difficult for the elderly, children, and patients with severe shortness of breath to complete the standardized operation; and it cannot achieve home-based, high-frequency, and low-cost screening and follow-up, failing to meet the urgent need for primary screening of chronic diseases and long-term home-based disease monitoring at the grassroots level.

[0003] To overcome the limitations of traditional equipment, the industry has gradually begun research on non-invasive pulmonary function assessment technologies based on respiratory audio (cough sounds, breath sounds). These technologies rely on microphones to collect audio data and offer advantages such as portability, ease of data collection, and low cooperation threshold. However, existing technologies still suffer from four major shortcomings that severely restrict assessment accuracy and practical applicability: 1. Audio feature representation is limited in dimension, resulting in incomplete extraction of pathological information. Existing technologies fall into two categories of feature extraction approaches: one relies solely on manually designed traditional acoustic features (zero-crossing rate, short-time energy, spectral centroid, MFCC, etc.), which can only capture the surface waveform energy distribution and cannot characterize the dynamic airway flutter and airflow obstruction temporal features of cough signals over time, thus lacking the ability to represent complex frequency domain pathological textures; the other uses only a single-stream pre-trained deep model to extract audio features, or only uses the Wav2Vec temporal network, or only uses a spectral autoencoder, which cannot simultaneously take into account the dynamic changes in the temporal domain and the global frequency domain structure, losing a large amount of multi-scale acoustic information in cough sounds that is strongly correlated with lung ventilation function, resulting in insufficient feature completeness.

[0004] 2. In medical scenarios with small sample sizes, high-dimensional feature redundancy leads to poor model generalization and large prediction variance. Acquiring clinical audio samples for respiratory diseases is challenging due to high barriers to entry and expensive annotation costs. Datasets often suffer from the contradiction of small sample sizes and high feature dimensionality. Existing methods lack standardized hierarchical feature selection processes, directly concatenating all raw acoustic features into the model, resulting in significant linear redundancy and irrelevant noise between features. Furthermore, feature selection often uses full-dataset fitting rules, leading to data leakage, a shift in the distribution of training and test sets, and ultimately, model overfitting. This results in large prediction errors for FEV1 and FVC of unknown subjects and poor result stability.

[0005] 3. The use of biological attribute information is crude, failing to distinguish the physiological characteristics of indicators and introducing invalid prior interference. Age, gender, height, and weight are key physiological variables affecting baseline lung volume. Existing solutions simply concatenate biological attributes with acoustic features for modeling, failing to explore the reference value brought by the similarity of group physiques. More importantly, all lung function indicators share the same modeling logic, failing to distinguish the physiological differences between absolute volume indicators (FEV1, FVC) and ratio indicators (FEV1 / FVC): FEV1 and FVC are significantly affected by individual body size, requiring statistical information from similar populations as baseline priors; while FEV1 / FVC offsets body size differences through its ratio. Forcibly introducing statistics from nearest neighbor samples will introduce body size biases unrelated to airway pathology, reducing the model's prediction accuracy. Current technology lacks a task-adaptive prior gating mechanism; uniformly introducing or completely discarding biological population priors both have shortcomings.

[0006] 4. Small sample regression models have poor adaptability and require extensive fine-tuning to complete predictions. When training existing regression models (linear regression, gradient boosting trees, and ordinary Transformers) on small medical datasets, all network parameters must be fine-tuned based on the target dataset, making them highly susceptible to fluctuations in sample distribution. Furthermore, traditional models cannot simultaneously integrate three types of heterogeneous tabular information: high-dimensional acoustic features, discrete + continuous mixed biological attributes, and population statistical priors. This results in low feature fusion efficiency and further amplifies the evaluation error in small sample scenarios.

[0007] In summary, current lung function assessment techniques based on cough audio suffer from multiple technical bottlenecks, including incomplete feature representation, overfitting due to small samples, rigidity in utilizing biological priors, and poor adaptability of regression models. Summary of the Invention

[0008] The purpose of this invention is to provide a method and system for evaluating lung function parameters based on the fusion of dual-stream acoustic features and task-adaptive prior information, in order to solve the technical problems in the prior art, such as incomplete representation of audio temporal dynamic information and frequency domain structural information, redundancy features in small sample high-dimensional feature scenarios leading to model overfitting, ineffective utilization of individual biological attribute differences, and the introduction of invalid prior interference due to the use of a unified modeling strategy for different lung function indicators.

[0009] To achieve the above objectives, this technical solution provides a method for assessing lung function parameters based on the fusion of dual-flow acoustic features and task-adaptive prior knowledge, including: (1) Obtain the cough audio data and biological attribute metadata of the subjects, standardize the cough audio data to obtain a standardized audio sequence, and process the biological attribute metadata to obtain a biological attribute feature vector; (2) Input the standardized audio sequence into the audio feature extraction module to output multi-dimensional acoustic features, which include depth acoustic features and traditional acoustic features. The depth acoustic features include time domain features and frequency domain features. (3) Based on the mutual information between multi-dimensional acoustic features and target lung function parameters, the correlation is sorted and the dimension is compressed according to the redundancy between features, and a structured fusion feature vector is output. (4) Control the prior gating state according to the index type of the current lung function prediction task; when the prior gating state is in the open state, construct the prior feature vector based on the biological attribute metadata of the samples in the pre-constructed labeled reference sample set, and concatenate the prior feature vector and the basic feature vector as the prediction information; when the prior gating state is in the closed state, use the basic feature vector as the prediction information, where the basic feature vector is obtained by concatenating the structured fusion feature vector and the biological attribute feature vector. (5) Input the prediction information into the pre-trained tabular model based on the Transformer architecture and output the prediction results of lung function parameters.

[0010] Compared with existing technologies, this technical solution has the following characteristics and beneficial effects: 1. By constructing a dual-stream architecture that combines temporal contextual branches and frequency domain structural branches, and introducing traditional acoustic features, pathological information in cough sounds can be represented at multiple levels. Compared with a single acoustic feature representation, this helps to improve the accuracy of lung function parameter assessment.

[0011] 2. By introducing a frozen pre-trained model and a hierarchical feature selection mechanism, correlation ranking is performed based on mutual information within the training subset, and feature redundancy is compressed. This can reduce redundant interference in small sample high-dimensional feature scenarios, reduce the risk of overfitting, and improve the model's generalization ability and prediction stability.

[0012] 3. Through a task-adaptive prior mechanism, the introduction of nearest-neighbor prior information is dynamically controlled based on the dimensional attributes of different lung function indicators such as FEV1, FVC, and FEV1 / FVC. For absolute volume indicators, statistical priors from similar physical samples are introduced, while prior inputs for contrastive indicators are suppressed. This reduces interference from information irrelevant to the current prediction task. Experimental results show that, compared with control methods that use only a single acoustic feature, do not perform correlation redundancy removal, or uniformly introduce prior information for different lung function indicators, this approach reduces MAE and RMSE and improves R² in FEV1 and FVC prediction tasks. In the FEV1 / FVC prediction task, by disabling nearest-neighbor priors, the prediction bias caused by contrastive physical statistics indicators can be avoided, improving the stability of model predictions.

[0013] 4. The overall solution only requires the collection of cough audio data and biological attribute metadata information from the subjects to achieve auxiliary assessment of lung function parameters. It is characterized by simple operation, low data collection burden, and easy deployment, and is suitable for primary healthcare, home health monitoring, and long-term follow-up scenarios for chronic respiratory diseases. Attached Figure Description

[0014] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings: Figure 1 This is a framework diagram of a lung function parameter assessment system based on dual-flow acoustic features and task-adaptive prior fusion according to this application; Figure 2 This is a logical schematic diagram of the lung function parameter assessment method based on dual-flow acoustic features and task-adaptive prior fusion according to this application; Figure 3 This is a partial logical diagram of the lung function parameter assessment method based on dual-flow acoustic features and task-adaptive prior fusion according to this application. Figure 4 This is a schematic diagram of the hardware structure of an electronic device according to an embodiment of this application. Detailed Implementation

[0015] To more clearly illustrate the technical solution of the present invention, the embodiments of the present invention will be further described below in conjunction with the accompanying drawings.

[0016] Lung function assessment methods based on respiratory audio signals such as cough sounds, breath sounds, and speech have received widespread attention in recent years. Existing techniques typically model audio using a single acoustic feature representation or a single path model, for example, extracting lung function-related information solely based on Mel spectrum or a single deep network structure. However, these methods struggle to simultaneously characterize the temporal dynamics and frequency-domain structure of cough sound signals, and their ability to express the underlying physical energy distribution of audio is also limited, resulting in insufficient feature representation. Simultaneously, medical audio data acquisition is costly and sample size is limited. Under high-dimensional feature conditions, existing methods are susceptible to overfitting due to redundant features and individual differences, thus reducing the model's generalization ability and predictive stability. Furthermore, existing methods often employ a uniform modeling strategy for different lung function indicators, failing to differentiate between absolute volume indicators and ratio indicators based on their physiological mechanisms. The lack of targeted prior information introduction mechanisms can easily lead to invalid information interfering with model predictions.

[0017] To address the aforementioned problems, this invention provides a method and system for evaluating lung function parameters based on dual-stream acoustic features and task-adaptive prior fusion. This method constructs a dual-stream acoustic feature extraction architecture to model cough sounds in parallel across both the time and frequency domains, supplementing the audio signal's physical energy information with traditional acoustic features, thereby obtaining a multi-layered acoustic representation. Based on this, a hierarchical feature filtering mechanism is employed to rank and eliminate redundancy in multi-source features, generating a structured fusion feature vector to reduce feature dimensionality and improve representation effectiveness. Furthermore, a similarity metric between samples is constructed in a hybrid feature space composed of biological attributes, and the introduction of prior information from neighboring samples is adaptively controlled according to the type of different lung function prediction tasks. This enhances model stability using population statistical features while avoiding interference from irrelevant prior information in the prediction results. Finally, a pre-trained tabular inference model is combined to complete regression prediction without parameter fine-tuning, improving the accuracy and robustness of lung function parameter evaluation in small-sample scenarios.

[0018] To better understand the above technical solutions, exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention can be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that the present invention can be understood more clearly and thoroughly, and that the scope of the present invention can be fully conveyed to those skilled in the art.

[0019] Please refer to Figure 1 Specifically, the lung function parameter assessment method based on the fusion of dual-stream acoustic features and task-adaptive priors includes: (1) Obtain the cough audio data and biological attribute metadata of the subjects, standardize the cough audio data to obtain a standardized audio sequence, and process the biological attribute metadata to obtain a biological attribute feature vector; (2) Input the standardized audio sequence into the audio feature extraction module to output multi-dimensional acoustic features, which include depth acoustic features and traditional acoustic features. The depth acoustic features include time domain features and frequency domain features. (3) Based on the mutual information between multi-dimensional acoustic features and target lung function parameters, the correlation is sorted and the dimension is compressed according to the redundancy between features, and a structured fusion feature vector is output. (4) Control the prior gating state according to the index type of the current lung function prediction task; when the prior gating state is in the open state, construct the prior feature vector based on the biological attribute metadata of the samples in the pre-constructed labeled reference sample set, and concatenate the prior feature vector and the basic feature vector as the prediction information; when the prior gating state is in the closed state, use the basic feature vector as the prediction information, where the basic feature vector is obtained by concatenating the structured fusion feature vector and the biological attribute feature vector. (5) Input the prediction information into the pre-trained tabular model based on the Transformer architecture and output the prediction results of lung function parameters.

[0020] Regarding the steps (1) of this plan: This solution simultaneously collects users' cough audio data and biological attribute metadata. Cough audio data serves as a carrier of pulmonary function pathology information and is the only signal source for acoustic feature extraction, while biological attribute metadata can be used to distinguish individual physiological baselines.

[0021] This scheme standardizes cough audio data to obtain a standardized audio sequence, which includes a fixed-length one-dimensional waveform sequence without peak normalization, a normalized one-dimensional waveform sequence obtained by peak normalization of the fixed-length one-dimensional waveform sequence, and a log-Mel spectrum generated from the normalized one-dimensional waveform sequence.

[0022] In some embodiments, the cough audio data is first resampled and time-windowed to obtain a fixed-length one-dimensional waveform sequence without peak normalization; then, the fixed-length one-dimensional waveform sequence is subjected to peak normalization to obtain a normalized one-dimensional waveform sequence, and a log-Mel spectrum is obtained based on the normalized one-dimensional waveform sequence through short-time Fourier transform and Mel filter bank.

[0023] In an embodiment of this scheme, the normalized one-dimensional waveform sequence is uniformly resampled to 16000Hz, and the log-Mel spectrogram uses a frame length of 25 milliseconds and a frame shift of 10 milliseconds.

[0024] In some embodiments, biometric metadata includes one or any combination of age, gender, height, and weight.

[0025] Regarding step (2): The audio feature extraction module of this scheme contains a two-stream architecture and a traditional acoustic extractor. The two-stream architecture contains parallel temporal feature extraction branches and frequency domain feature extraction branches. The temporal feature extraction branch contains a pre-trained self-supervised speech model, and the frequency domain feature extraction branch contains a pre-trained audio mask autoencoder with frozen parameters.

[0026] It should be noted that the reason why this scheme adopts a parameter-freezing self-supervised speech model and an audio mask autoencoder is to avoid end-to-end fine-tuning of a large-scale acoustic model on small sample medical audio data, thereby reducing the risk of overfitting and improving the stability of the deep acoustic feature extraction process.

[0027] In some embodiments, the self-supervised speech model is a frozen-parameter Wav2Vec 2.0 model, which extracts the frame-level sequence features of the audio through multi-layer convolution and a Transformer encoder to obtain temporal features; the audio mask autoencoder is a frozen-parameter AudioMAE, which obtains frequency domain features through mask modeling.

[0028] In some embodiments, a normalized one-dimensional waveform sequence is input into the time-domain feature extraction branch to obtain time-domain features, a log-Mel spectrum is input into the frequency-domain feature extraction branch to obtain frequency-domain features, a fixed-length one-dimensional waveform sequence without peak normalization is input into a conventional acoustic extractor to obtain conventional acoustic features, and the frequency-domain features and time-domain features are spliced ​​together to obtain deep acoustic features.

[0029] Specifically, in the temporal feature extraction branch: a normalized one-dimensional waveform sequence is used as input and processed using a pre-trained Wav2Vec 2.0 model to obtain temporal features. Further, this branch first extracts local features through a feature encoder composed of multiple one-dimensional convolutions. These local features are then input into a multi-layer Transformer context network to capture long-range temporal dynamic changes and high-order speech logic features. The average pooling result of the last hidden state in the multi-layer Transformer context network is then extracted as the temporal feature. .

[0030] In the frequency domain feature extraction branch: using log-Mel spectrograms As input, the audio is processed using an Audio Mask Autoencoder (AudioMAE) to obtain frequency domain features. Specifically, this frequency domain feature extraction branch first divides the log-Mel spectrum into non-overlapping image patches and performs linear projection. Then, after adding positional encoding, the patches are input into a Transformer-based encoder to obtain frequency domain features. This frequency domain feature extraction branch extracts frequency domain details and local acoustic texture features from the global viewpoint as frequency domain features.

[0031] The depth acoustic features are obtained by concatenating the frequency domain features and the time domain features. .

[0032] In some embodiments, a fixed-length one-dimensional waveform sequence without peak normalization is input into a conventional acoustic extractor, which outputs conventional acoustic features including Mel-frequency cepstral coefficients (MFCCs) and their first / second-order differences, zero-crossing rate (ZCR), and short-time energy (STE) to preserve absolute amplitude and energy information and supplement the fundamental physical energy distribution information that may be missed in the depth acoustic features.

[0033] In other words, traditional acoustic features include time-domain, frequency-domain, and cepstral features extracted from the original waveform of cough audio data; among them, time-domain features include zero-crossing rate and short-time energy; frequency-domain features include spectral centroid, spectral bandwidth, and spectral roll-off point; and cepstral features include Mel-frequency cepstral coefficients (MFCC) and their first and second-order differences.

[0034] In some embodiments, conventional signal processing algorithms are used within the conventional acoustic extractor, which will not be described in detail here.

[0035] Regarding step (3) of this plan: This scheme independently filters deep acoustic features and traditional acoustic features in different spaces. First, it retains features highly correlated with lung function parameters through mutual information filtering. Then, it uses a greedy strategy to remove highly redundant features. Finally, it uses multi-dimensional acoustic features with mutual information scores to measure correlation and remove redundancy, outputting a structured fusion feature vector suitable for tabular modeling. This approach not only retains multi-level cough pathological acoustic information in a balanced way, but also effectively compresses feature dimensions and reduces feature collinearity. It suppresses model overfitting in small medical sample scenarios. At the same time, it avoids data leakage by relying on the independent fitting filtering rules of the training set, thereby improving the stability and generalization ability of lung function prediction.

[0036] Specifically, within the feature spaces of deep acoustic features and traditional acoustic features, the mutual information between the two types of features and the target lung function parameters is calculated respectively. The features are sorted from high to low according to the mutual information and a subset of high mutual information features is retained. Then, a greedy strategy is adopted to retain features with absolute values ​​below a preset threshold within their respective subsets of high mutual information features, thus obtaining a filtered feature set. The two filtered feature sets are then concatenated to obtain a structured fusion feature vector.

[0037] In some embodiments, the mutual information between depth acoustic features and target lung function parameters is calculated, and several depth acoustic features with high mutual information are selected to obtain a first high mutual information feature subset. Pearson correlation coefficients are calculated between each pair of features in the first high mutual information feature subset. When the correlation coefficient between two features is greater than a preset threshold, features with lower mutual information scores are removed to obtain a first selected feature set. Similarly, the mutual information between traditional acoustic features and target lung function parameters is calculated, and several traditional acoustic features with high mutual information are selected to obtain a second high mutual information feature subset. Pearson correlation coefficients are calculated between each pair of features in the second high mutual information feature subset. When the correlation coefficient between two features is greater than a preset threshold, features with lower mutual information scores are removed to obtain a second selected feature set. The first and second selected feature sets are concatenated to obtain a structured fusion feature vector. .

[0038] The calculation method for the mutual information between depth acoustic features or traditional acoustic features and target lung function parameters is as follows:

[0039] in This represents the joint probability distribution between depth acoustic features or traditional acoustic features and target lung function parameters. The edge probability distribution of depth acoustic features or traditional acoustic features. Marginal probability distribution of the target lung function parameter Indicates depth acoustic features or traditional acoustic features. This represents the target lung function parameter.

[0040] In one specific embodiment, 40-dimensional and 20-dimensional features are retained from deep acoustic features and traditional acoustic features, respectively, and concatenated to obtain a 60-dimensional structured fusion feature vector. This 60-dimensional structured fusion feature vector is then concatenated with a 4-dimensional biological attribute feature vector to form a 64-dimensional basic feature vector as prediction information. When prior gating is enabled, a 3-dimensional prior feature vector consisting of the mean, median, and standard deviation is further concatenated to form 67-dimensional prediction information. The number of features in this scheme refers to the feature dimensions contained in the structured fusion feature vector, not the number of structured fusion feature vectors themselves.

[0041] In some embodiments, this scheme includes an offline configuration phase and an online evaluation phase. In the offline configuration phase, feature selection rules and feature selection masks are determined based on a labeled reference sample set. In the online evaluation phase, the pre-determined feature selection mask is directly applied to the multi-dimensional acoustic features of the current subject, without needing to re-select features using the current subject's actual lung function values. Furthermore, this scheme employs five-fold cross-validation to verify only the technical effectiveness of the scheme: feature selection for each fold is performed only on the training subset of that fold, and the resulting feature selection mask is applied unchanged to the test subset of that fold, with all cough segments from the same subject remaining within the same fold.

[0042] Regarding step (4): This scheme controls the prior gating state based on the indicator type of the current lung function prediction task. When the current lung function prediction task is an absolute volume indicator prediction task, the prior gating state is in the open state; when the current lung function prediction task is a ratio indicator prediction task, the prior gating state is in the closed state. Through the above design, this scheme adopts a differentiated modeling strategy for different lung function prediction tasks: in absolute volume indicator prediction tasks, a nearest neighbor retrieval prior based on similar biological attributes is introduced to provide a population reference distribution with consistent physical characteristics for the current sample, enabling the model to obtain stable baseline information against the background of individual differences, thereby weakening the influence of acoustic heterogeneity caused by physical differences and improving the ability to identify pathology-related acoustic changes; while in ratio indicator prediction tasks, the introduction of prior information is suppressed to avoid redundant interference.

[0043] In some embodiments, absolute volume indicators are predicted as forced vital capacity (FVC) or forced expiratory volume in one second (FEV1), and ratio indicators are predicted as the percentage of forced expiratory volume in one second to forced vital capacity (FEV1 / FVC).

[0044] like Figure 3 As shown, in the step of "constructing prior feature vectors based on biological attribute feature vectors of samples in a labeled reference sample set", a similarity metric space is constructed based on the biological attribute feature vectors of samples in a pre-constructed labeled reference sample set. Within the similarity metric space, multiple nearest neighbor samples that are similar to the current sample are calculated based on weighted Gower distance. The prior feature vector is obtained by statistically analyzing the target variables of all nearest neighbor samples. In some embodiments, the nearest neighbor samples are labeled reference samples with small weighted Gower distances.

[0045] In some embodiments, the weighted Gower distance between the current sample and other samples in the similarity metric space is calculated, and the samples are sorted in ascending order of distance. The K samples with the smallest weighted Gower distance are selected as the nearest neighbors.

[0046] It should be noted that the weighted Gower distance is only used to retrieve the nearest neighbor samples similar to the current sample and does not participate in the direct feature construction of subsequent regression prediction. When calculating similarity, a leave-one-subject-out strategy is implemented according to the subject identification, excluding all cough segments belonging to the same subject as the current sample.

[0047] Specifically, the formula for calculating the weighted Gower distance between the current sample and other samples is as follows:

[0048] in For the sample With sample In the m Distance in biological attributes across multiple dimensions For the corresponding number m The weights of biological attributes in each dimension, where M is the dimension of the biological attribute.

[0049] For example, the biometric metadata in this solution includes four dimensions: age, gender, height, and weight, thus corresponding to four dimensions of biometric attributes.

[0050] As shown in the formula above, the one-dimensional dissimilarity in the weighted Gower distance uses absolute dissimilarity normalized to the value range for continuous biological attributes, and class dissimilarity for discrete biological attributes; for discrete attributes, the one-dimensional dissimilarity is 0 if the values ​​are the same, and 1 if the values ​​are different. The weights in the weighted Gower distance are... The distance formula is multiplied by the single-dimensional difference of the corresponding dimension in the numerator and normalized in the denominator to reflect the degree of influence of different biological attributes on the nearest neighbor search results.

[0051] In a preferred embodiment, the weights for height, age, weight, and gender are set to 0.5, 0.3, 0.1, and 0.1, respectively, with the sum of all weights being 1. These weight values ​​are merely examples and do not constitute a limitation on the scope of protection of this invention.

[0052] In some embodiments, the prior feature vector includes the mean, median, and standard deviation of the nearest neighbor samples, which are used to provide a group physiological reference corresponding to the individual's physique for subsequent models.

[0053] The prior feature vector is represented as follows:

[0054] in This represents the mean. median This represents the median. It represents the standard deviation.

[0055] It should be noted that the weighted Gower distance in this scheme is only used to retrieve similar samples and does not participate in the direct feature construction for subsequent regression prediction. When calculating similarity, a leave-one-subject-out strategy is implemented based on the subject's identification, excluding all cough segments belonging to the same subject as the current sample. Based on the distance, the most similar sample to the current sample is retrieved from the labeled reference sample set. Count the nearest neighbor samples. Perform statistical analysis on the target variable corresponding to the nearest neighbor samples to obtain the mean, median, and standard deviation, which constitute the retrieval prior feature vector:

[0056] in, This represents the mean, and median represents the median. This represents the standard deviation. This prior is used to provide a population physiological reference corresponding to individual physiques for subsequent models.

[0057] In other words, the prior gating state is determined based on the dimensional attributes of the lung function parameters to be predicted in the lung function prediction task. The lung function prediction task includes at least absolute volume indicators and ratio indicators. When the lung function prediction task belongs to absolute volume indicators, prior gating is enabled, and the Top-K nearest neighbor samples are retrieved based on biological attribute similarity. The mean, median, and standard deviation of the target variable corresponding to the nearest neighbor samples are statistically analyzed as the retrieval prior feature vector. When the prediction task belongs to ratio indicators, prior gating is disabled, the introduction of retrieval prior feature vectors is suppressed, and the basic fusion feature vector is directly used for prediction. Among them, absolute volume indicators include FEV1 and FVC, and ratio indicators include FEV1 / FVC.

[0058] In some embodiments, the basic fusion feature vector is represented as:

[0059] in For structured fusion of feature vectors, This is a feature vector representing biological attributes.

[0060] When the prior gating state is open, a prior feature vector is constructed based on the biological attribute metadata of samples in a pre-built labeled reference sample set. The prior feature vector and the basic feature vector are concatenated to obtain the prediction information, represented as follows:

[0061] Where P is the prior feature vector. Based on the fusion of feature vectors, F For predictive information.

[0062] When the prior gating state is closed, the basic feature vector is used as the prediction information. This basic feature vector is obtained by concatenating the structured fusion feature vector and the biological attribute feature vector, and is represented as follows:

[0063] in Based on the fusion of feature vectors, F For predictive information.

[0064] Regarding step (5): This scheme uses the prediction information obtained in step (4) as the input of the pre-trained tab model based on the Transformer architecture to the TabPFN model, so as to output the prediction results of lung function parameters.

[0065] In this embodiment of the scheme, the pre-trained table model based on the Transformer architecture is the TabPFN model. TabPFN is a pre-trained table inference model based on the Transformer architecture. Its model parameters are obtained from the external pre-training stage and are kept frozen in the scheme.

[0066] When assessing the current subject, the predicted information of the labeled reference sample and its corresponding measured lung function target value are used as the conditional context, and the predicted information of the current subject is used as the query input. The prediction is completed in a single forward propagation through the in-context learning mechanism. This process does not use local lung function reference samples to retrain or fine-tune the model parameters. The model obtains the prediction result of the target variable, i.e. the lung function parameter prediction result, by approximating the conditional distribution.

[0067] In some embodiments, the parameters of the pre-trained tabular model based on the Transformer architecture are obtained from an external pre-training phase and remain frozen during the lung function parameter evaluation process in this scheme; using the predicted information in the labeled reference sample set and its corresponding measured lung function target values ​​as the conditional context, and the predicted information of the current subject as the query input, tabular regression inference is performed through a context learning mechanism, and the lung function parameter prediction results are output without updating the model parameters, as shown below:

[0068]

[0069] in This indicates the predicted results of lung function parameters. The prediction information is the current input, i.e., the current query feature vector. Let θ represent the implicit inference function of the pre-trained tabular model with frozen parameters, where θ represents the model parameters acquired during external pre-training and held constant during the current evaluation. This represents the labeled reference dataset used as conditional context. This represents the prediction information for the i-th reference sample. Let N represent the measured lung function target value corresponding to the i-th reference sample, N represent the number of samples in the labeled reference dataset, and i represent the index of the reference sample.

[0070] In some embodiments, the lung function parameter prediction results are approximate predicted values ​​or posterior mean estimates of the target variable, used to obtain lung function parameter prediction results for the corresponding audio sample, including FEV1, FVC, and FEV1 / FVC.

[0071] Example 2 like Figure 1 As shown in Example 1, this solution provides a lung function parameter assessment system based on the fusion of dual-stream acoustic features and task-adaptive prior knowledge, including: The data acquisition and preprocessing module is used to acquire the subject's cough audio data and biological attribute metadata, standardize the cough audio data to obtain a standardized audio sequence, and process the biological attribute metadata to obtain a biological attribute feature vector. The audio feature extraction module is used to input standardized audio sequences into the audio feature extraction module and output multi-dimensional acoustic features, which include depth acoustic features and traditional acoustic features. The depth acoustic features include time domain features and frequency domain features. The feature selection and fusion module is used to rank the correlations based on the mutual information between multi-dimensional acoustic features and target lung function parameters, and to compress the dimensions based on the redundancy between features, outputting a structured fused feature vector. The task-adaptive prior module controls the prior gating state based on the indicator type of the current lung function prediction task. When the prior gating state is open, a prior feature vector is constructed based on the biological attribute metadata of samples in a pre-built labeled reference sample set. The prior feature vector and the basic feature vector are then concatenated as the prediction information. When the prior gating state is closed, the basic feature vector is used as the prediction information. The basic feature vector is obtained by concatenating the structured fusion feature vector and the biological attribute feature vector. The regression prediction module is used to input the prediction information into a pre-trained tabular model based on the Transformer architecture and output the prediction results of lung function parameters.

[0072] The content of Example 2 is the same as that of Example 1, and will not be repeated here.

[0073] Example 3 This embodiment also provides an electronic device, see reference. Figure 4 It includes a memory 402 and a processor 401, the memory 402 storing a computer program and the processor 401 being configured to run the computer program to perform the steps in any of the embodiments of the lung function parameter assessment method based on dual-stream acoustic features and task adaptive prior fusion described above.

[0074] Specifically, the processor 401 may include a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of this application.

[0075] The memory 402 may include a large-capacity memory 402 for data or instructions. The memory 402 can be used to store or cache various data files that need to be processed and / or communicated, as well as possible computer program instructions executed by the processor 401.

[0076] The processor 401 reads and executes computer program instructions stored in the memory 402 to implement any of the lung function parameter assessment methods based on dual-stream acoustic features and task adaptive prior fusion in the above embodiments.

[0077] Optionally, the electronic device may further include a transmission device 403 and an input / output device 404, wherein the transmission device 403 is connected to the processor 401 and the input / output device 404 is connected to the processor 401.

[0078] The transmission device 403 can be used to receive or send data via a network. Specific examples of the network described above may include wired or wireless networks provided by the communication provider of the electronic device. In one example, the transmission device includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 403 may be a Radio Frequency (RF) module used for wireless communication with the Internet.

[0079] Input / output device 404 is used to input or output information. In this embodiment, the input information may be cough audio data, etc., and the output information may be lung function parameter prediction results, etc.

[0080] Optionally, in this embodiment, the processor 401 can be configured to perform the following steps via a computer program: (1) Obtain the cough audio data and biological attribute metadata of the subjects, standardize the cough audio data to obtain a standardized audio sequence, and process the biological attribute metadata to obtain a biological attribute feature vector; (2) Input the standardized audio sequence into the audio feature extraction module to output multi-dimensional acoustic features, which include depth acoustic features and traditional acoustic features. The depth acoustic features include time domain features and frequency domain features. (3) Based on the mutual information between multi-dimensional acoustic features and target lung function parameters, the correlation is sorted and the dimension is compressed according to the redundancy between features, and a structured fusion feature vector is output. (4) Control the prior gating state according to the index type of the current lung function prediction task; when the prior gating state is in the open state, construct the prior feature vector based on the biological attribute metadata of the samples in the pre-constructed labeled reference sample set, and concatenate the prior feature vector and the basic feature vector as the prediction information; when the prior gating state is in the closed state, use the basic feature vector as the prediction information, where the basic feature vector is obtained by concatenating the structured fusion feature vector and the biological attribute feature vector. (5) Input the prediction information into the pre-trained tabular model based on the Transformer architecture and output the prediction results of lung function parameters.

[0081] It should be noted that the specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementations, and will not be repeated here.

[0082] Generally, various embodiments can be implemented in hardware or dedicated circuitry, software, logic, or any combination thereof. Some aspects of the invention can be implemented in hardware, while others can be implemented by firmware or software executed by a controller, microprocessor, or other computing device, but the invention is not limited thereto. Although various aspects of the invention may be shown and described as block diagrams, flowcharts, or using some other graphical representation, it should be understood that, by way of non-limiting example, these blocks, apparatuses, systems, techniques, or methods described herein can be implemented in hardware, software, firmware, dedicated circuitry or logic, general-purpose hardware or controllers or other computing devices, or some combination thereof.

[0083] Embodiments of the present invention can be implemented by computer software, which may be executable by a data processor of a mobile device, such as a processor entity, or by hardware, or by a combination of software and hardware. Computer software or programs (also referred to as program products), including software routines, applets, and / or macros, can be stored in any device-readable data storage medium, and they include program instructions for performing specific tasks. A computer program product may include one or more computer-executable components configured to perform embodiments when the program is run. One or more computer-executable components may be at least one piece of software code or a portion thereof. Additionally, it should be noted that any block in the logical flow of the figures may represent a program step, or interconnected logical circuitry, blocks and functions, or a combination of program steps and logical circuitry, blocks and functions. The software may be stored on physical media such as memory chips or storage blocks implemented within a processor, magnetic media such as hard disks or floppy disks, and optical media such as, for example, DVDs and their data variants, CDs, etc. The physical medium is a non-transient medium.

[0084] Those skilled in the art should understand that the technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments have been 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.

[0085] The above embodiments are merely illustrative of several implementation methods of this application, and their descriptions are relatively specific and detailed, but they should not be construed as limiting the scope of this application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A method for assessing lung function parameters based on the fusion of dual-stream acoustic features and task-adaptive prior knowledge, characterized in that, include: (1) Obtain the cough audio data and biological attribute metadata of the subjects, standardize the cough audio data to obtain a standardized audio sequence, and process the biological attribute metadata to obtain a biological attribute feature vector; (2) Input the standardized audio sequence into the audio feature extraction module to output multi-dimensional acoustic features, which include depth acoustic features and traditional acoustic features. The depth acoustic features include time domain features and frequency domain features. (3) Based on the mutual information between multi-dimensional acoustic features and target lung function parameters, the correlation is sorted and the dimension is compressed according to the redundancy between features, and a structured fusion feature vector is output. (4) Control the prior gating state according to the index type of the current lung function prediction task; when the prior gating state is in the open state, construct the prior feature vector based on the biological attribute metadata of the samples in the pre-constructed labeled reference sample set, and concatenate the prior feature vector and the basic feature vector as the prediction information; when the prior gating state is in the closed state, use the basic feature vector as the prediction information, where the basic feature vector is obtained by concatenating the structured fusion feature vector and the biological attribute feature vector. (5) Input the prediction information into the pre-trained tabular model based on the Transformer architecture and output the prediction results of lung function parameters.

2. The lung function parameter assessment method based on dual-flow acoustic features and task-adaptive prior fusion according to claim 1, characterized in that, The audio feature extraction module contains a two-stream architecture and a traditional acoustic extractor. The two-stream architecture contains parallel temporal feature extraction branches and frequency domain feature extraction branches. The temporal feature extraction branch contains a pre-trained self-supervised speech model, and the frequency domain feature extraction branch contains a pre-trained audio mask autoencoder with frozen parameters.

3. The lung function parameter assessment method based on dual-flow acoustic features and task-adaptive prior fusion according to claim 2, characterized in that, The standardized audio sequence includes a fixed-length one-dimensional waveform sequence without peak normalization, a normalized one-dimensional waveform sequence obtained by peak normalization of the fixed-length one-dimensional waveform sequence, and a log-Mel spectrogram generated from the normalized one-dimensional waveform sequence. Normalized one-dimensional waveform sequences are input into the time-domain feature extraction branch to obtain time-domain features, and log-Mel spectrograms are input into the frequency-domain feature extraction branch to obtain frequency-domain features. Fixed-length one-dimensional waveform sequences without peak normalization are input into the conventional acoustic extractor to obtain conventional acoustic features. The frequency-domain features and time-domain features are spliced ​​together to obtain deep acoustic features.

4. The lung function parameter assessment method based on dual-flow acoustic features and task-adaptive prior fusion according to claim 1, characterized in that, Traditional acoustic features include time-domain, frequency-domain, and cepstral features extracted from the raw waveform of cough audio data. Among them, time-domain features include zero-crossing rate and short-time energy; frequency-domain features include spectral centroid, spectral bandwidth, and spectral roll-off point; and cepstral features include Mel-frequency cepstral coefficients and their first and second-order differences.

5. The lung function parameter assessment method based on dual-flow acoustic features and task-adaptive prior fusion according to claim 1, characterized in that, In the feature spaces of deep acoustic features and traditional acoustic features, the mutual information between the two types of features and the target lung function parameters is calculated respectively. The features are sorted from high to low according to the mutual information and the high mutual information feature subset is retained. Then, a greedy strategy is adopted to retain features with absolute values ​​lower than a preset threshold in their respective high mutual information feature subsets to obtain the filtered feature set. The two filtered feature sets are concatenated to obtain the structured fusion feature vector.

6. The lung function parameter assessment method based on dual-flow acoustic features and task-adaptive prior fusion according to claim 1, characterized in that, When the current lung function prediction task is set to predict absolute volume indicators, the prior gating state is on; when the current lung function prediction task is set to predict ratio indicators, the prior gating state is off.

7. The lung function parameter assessment method based on dual-flow acoustic features and task-adaptive prior fusion according to claim 1, characterized in that, A similarity metric space is constructed based on the biological attribute feature vectors of samples in a pre-built labeled reference sample set. Within the similarity metric space, multiple nearest neighbor samples that are similar to the current sample are calculated based on weighted Gower distance. Prior feature vectors are obtained by statistically analyzing the target variables of all nearest neighbor samples.

8. The lung function parameter assessment method based on dual-flow acoustic features and task-adaptive prior fusion according to claim 1, characterized in that, The pre-trained table model based on the Transformer architecture is the TabPFN model.

9. A lung function parameter assessment system based on the fusion of dual-stream acoustic features and task-adaptive prior knowledge, characterized in that, include: The data acquisition and preprocessing module is used to acquire the subject's cough audio data and biological attribute metadata, standardize the cough audio data to obtain a standardized audio sequence, and process the biological attribute metadata to obtain a biological attribute feature vector. The audio feature extraction module is used to input standardized audio sequences into the audio feature extraction module and output multi-dimensional acoustic features, which include depth acoustic features and traditional acoustic features. The depth acoustic features include time domain features and frequency domain features. The feature selection and fusion module is used to rank the correlations based on the mutual information between multi-dimensional acoustic features and target lung function parameters, and to compress the dimensions based on the redundancy between features, outputting a structured fused feature vector. The task-adaptive prior module controls the prior gating state based on the indicator type of the current lung function prediction task. When the prior gating state is open, a prior feature vector is constructed based on the biological attribute metadata of samples in a pre-built labeled reference sample set. The prior feature vector and the basic feature vector are then concatenated as the prediction information. When the prior gating state is closed, the basic feature vector is used as the prediction information. The basic feature vector is obtained by concatenating the structured fusion feature vector and the biological attribute feature vector. The regression prediction module is used to input the prediction information into a pre-trained tabular model based on the Transformer architecture and output the prediction results of lung function parameters.

10. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to run the computer program to execute the lung function parameter assessment method based on dual-stream acoustic features and task-adaptive prior fusion as claimed in any one of claims 1 to 8.