Pulse condition data processing method, device, equipment, medium and product
By combining a deep learning model for pulse diagnosis with a disease type comparison table, the problem of the inability to accurately identify cardiovascular disease types in existing technologies has been solved, enabling fine-grained and accurate classification and diagnosis of cardiovascular diseases and enhancing the auxiliary diagnostic value of pulse diagnosis.
Patent Information
- Application Number
- CN202611321078.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-28
- Publication Date
- 2026-11-20
AI Technical Summary
Existing methods for identifying cardiovascular diseases based on pulse diagnosis can only determine whether a patient has the disease, but cannot accurately identify the specific disease type.
By employing a deep learning model for pulse identification combined with a disease type comparison table, pulse samples are categorized and mapped to corresponding disease types. The deep learning model eliminates subjective bias in manual pulse diagnosis, enabling accurate output of detailed pulse categories. Furthermore, the comparison table establishes a one-to-one correspondence between pulse combinations and specific disease types.
It enables fine-grained and precise classification diagnosis of cardiovascular diseases, improves the completeness of pulse diagnosis, and can directly locate refined target disease types, overcoming the limitations of binary classification judgment in traditional technologies.
Smart Images

Figure FT_1 
Figure FT_2 
Figure FT_3
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing technology, and in particular to a pulse data processing method, apparatus, equipment, medium and product. Background Technology
[0002] The large and aging population of cardiovascular patients makes prevention and control even more challenging. Accurate and precise identification and classification of cardiovascular diseases are crucial for identifying potential early cases and curbing disease progression. Traditional Chinese medicine pulse diagnosis, through manual pulse palpation, can assess the condition of the heart and blood vessels by identifying pulse characteristics such as speed, strength, and depth, thereby determining the individual's physical condition.
[0003] With the development of computer technology and its deep integration with the medical field, research on intelligent pulse diagnosis technology has become possible. Considering that traditional medical expert pulse diagnosis is greatly influenced by subjective consciousness and is generally inefficient, existing research has utilized neural networks for pulse diagnosis and cardiovascular disease diagnosis. However, current research on cardiovascular disease identification based on pulse diagnosis only determines whether the patient has the disease, and fails to achieve precise identification of specific disease types. Summary of the Invention
[0004] The purpose of this application is to provide a pulse data processing method, device, equipment, medium, and product that can solve the technical problem that existing methods for identifying cardiovascular diseases based on pulse only determine whether the patient has the disease, but cannot accurately identify the specific disease type.
[0005] To achieve the above objectives, this application provides the following solution: Firstly, this application provides a method for processing pulse data, including: Obtain the pulse sample to be processed; The pulse samples to be processed are input into the pulse identification deep learning model to determine the pulse classification result. The pulse identification deep learning model is trained based on the pulse classification sample set. Based on the pulse diagnosis results and the pre-constructed disease type comparison table, the target disease type is determined. The disease type comparison table includes the comparison relationship between pulse diagnosis and disease type.
[0006] Optionally, the construction of the pulse pattern classification sample set includes: obtaining a pulse detection dataset; determining the pulse pattern based on the pulse detection dataset; and labeling the pulse pattern using a preset labeling algorithm to obtain the pulse pattern classification sample set, wherein the pulse pattern classification sample set includes a training set and a test set.
[0007] Optionally, the construction of the pulse identification deep learning model includes: constructing an initial deep learning model, wherein the initial deep learning model includes an input layer, a feature extraction layer, a feature selection layer, a pulse pattern classification layer, and an output layer connected in sequence; determining the hyperparameters of the initial deep learning model according to the dung beetle optimization algorithm; training the initial deep learning model based on the hyperparameters and the training set in the pulse pattern classification sample set to obtain the model to be verified; evaluating the generalization performance of the model to be verified based on the test set in the pulse pattern classification sample set to obtain the evaluation result; and determining the model to be verified as the pulse identification deep learning model in response to the evaluation result showing that the generalization performance of the model to be verified meets the preset performance index.
[0008] Optionally, based on the dung beetle optimization algorithm, the hyperparameters of the initial deep learning model are determined, specifically including: initializing the parameters of the dung beetle optimization algorithm to obtain the initialization results; based on the initialization results, using the model training loss as the fitness function, updating the positions of four types of dung beetles, iteratively calculating the fitness, and cyclically searching for the optimal combination of hyperparameters to obtain the search results; and based on the search results, determining the hyperparameters of the identification deep learning model.
[0009] Optionally, the pre-construction of the disease type comparison table includes: performing binary encoding on multiple types of pulse patterns according to a preset encoding strategy to obtain multiple encoding results; converting the multiple encoding results into multiple decimal values; inputting the multiple decimal values into a preset hash function to determine the multiple disease type storage addresses corresponding to the multiple decimal values; and determining the disease type comparison table based on the multiple types of pulse patterns and the multiple disease type storage addresses.
[0010] Optionally, the target disease type is determined based on the pulse pattern classification results and a pre-constructed disease type comparison table. Specifically, this includes: binary encoding the pulse pattern classification results to obtain the current type encoding result; converting the current type encoding result into a decimal value and inputting the converted decimal value into a preset hash function to determine the target storage address; and determining the target disease type based on the target storage address and the disease type comparison table.
[0011] Secondly, this application provides a pulse data processing device, comprising: The module is used to acquire pulse samples to be processed; the first determination module is used to input the pulse samples to be processed into the pulse identification deep learning model to determine the pulse classification result, wherein the pulse identification deep learning model is trained based on the pulse classification sample set; the second determination module is used to determine the target disease type based on the pulse classification result and a pre-constructed disease type comparison table, wherein the disease type comparison table includes the comparison relationship between pulse classification and disease type.
[0012] Optionally, the pulse data processing device further includes a first construction module connected to the first determination module, used for: acquiring a pulse detection dataset; determining a pulse pattern based on the pulse detection dataset; and labeling the pulse pattern using a preset labeling algorithm to obtain a pulse pattern classification sample set, wherein the pulse pattern classification sample set includes a training set and a test set.
[0013] Optionally, the first building module is further configured to: construct an initial deep learning model, wherein the initial deep learning model includes an input layer, a feature extraction layer, a feature selection layer, a pulse pattern classification layer, and an output layer connected in sequence; determine the hyperparameters of the initial deep learning model according to the dung beetle optimization algorithm; train the initial deep learning model based on the hyperparameters and the training set in the pulse pattern classification sample set to obtain the model to be verified; evaluate the generalization performance of the model to be verified based on the test set in the pulse pattern classification sample set to obtain the evaluation result; and, in response to the evaluation result indicating that the generalization performance of the model to be verified meets the preset performance index, determine the model to be verified as a pulse pattern recognition deep learning model.
[0014] Optionally, the first building module is also used to: initialize the parameters of the dung beetle optimization algorithm to obtain the initialization result; based on the initialization result, using the model training loss as the fitness function, update the position of the four types of dung beetles, iteratively calculate the fitness, and cyclically search for the optimal hyperparameter combination to obtain the search result; and determine the hyperparameters of the identification deep learning model based on the search result.
[0015] Optionally, the pulse data processing device further includes a second construction module connected to the second determination module, used for: performing binary encoding on multiple types of pulses according to a preset encoding strategy to obtain multiple encoding results; converting the multiple encoding results into multiple decimal values; inputting the multiple decimal values into a preset hash function to determine the storage addresses of multiple disease types corresponding to the multiple decimal values; and determining a disease type comparison table based on the multiple types of pulses and the storage addresses of multiple disease types.
[0016] Optionally, the second determining module is further configured to: encode the pulse pattern classification result into binary form to obtain the current type encoding result; convert the current type encoding result into a decimal value and input the converted decimal value into a preset hash function to determine the target storage address; and determine the target disease type based on the target storage address and the disease type comparison table.
[0017] Thirdly, this application provides a computer device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the pulse data processing method described in any one of the above.
[0018] Fourthly, this application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the pulse data processing method described in any one of the above descriptions.
[0019] Fifthly, this application provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the pulse data processing method described above.
[0020] According to the specific embodiments provided in this application, the following technical effects are disclosed: This application provides a method, apparatus, device, medium, and product for pulse data processing. The method first collects pulse samples to be processed, then accurately outputs standardized pulse classification results based on a pulse identification deep learning model fully trained on a pulse classification sample set. Next, a pre-constructed and stored disease type comparison table mapping pulse patterns to various sub-disease types is used for matching and retrieval. On the one hand, the deep learning model eliminates subjective bias in manual pulse diagnosis, accurately outputting sub-pulse categories; on the other hand, the comparison table establishes a one-to-one correspondence between pulse pattern combinations and specific disease types, overcoming the limitation of traditional techniques that can only perform binary classification to determine the presence or absence of disease. It can directly locate refined target disease types, achieving fine-grained and accurate classification diagnosis of cardiovascular diseases, and improving the completeness of pulse diagnosis-assisted diagnosis. This solves the technical problem of existing methods for identifying cardiovascular diseases based on pulse patterns, which only determine whether the patient has the disease but cannot accurately identify specific disease types. Attached Figure Description
[0021] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0022] Figure 1 This is an application environment diagram of a pulse data processing method according to an embodiment of this application; Figure 2 A schematic flowchart illustrating a pulse data processing method provided in an embodiment of this application; Figure 3 This is a schematic diagram of the structure of a pulse data processing device provided in an embodiment of this application; Figure 4 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation
[0023] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0024] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0025] The pulse data processing method provided in this application embodiment can be applied to, for example... Figure 1 In the application environment shown, terminal 102 communicates with server 104 via a network. A data storage system can store the data that server 104 needs to process. The data storage system can be set up independently, integrated into server 104, or placed in the cloud or on another server.
[0026] The terminal 102 can be, but is not limited to, various desktop computers, laptops, smartphones, tablets, and IoT devices. The server 104 can be implemented using a standalone server or a server cluster consisting of multiple servers, or it can be a cloud server.
[0027] In one exemplary embodiment, such as Figure 2 As shown, a pulse data processing method is provided. This method is executed by a computer device, specifically by a terminal or server alone, or by both a terminal and a server. In this embodiment, the method is applied to... Figure 1 Taking server 104 as an example, the explanation includes the following steps 201 to 203. Wherein: Step S201: Obtain the pulse sample to be processed.
[0028] In this embodiment of the application, step S201 is used to collect the raw pulse signal of the subject and complete the standardized preprocessing to obtain the pulse sample to be processed that can be used as input to the model.
[0029] For example, in specific implementation, a mechanical / piezoelectric / photoplethysmography sensor of a pulse oximeter is used to simulate the pulse diagnosis methods of the three positions (cun, guan, chi) in traditional Chinese medicine to collect the raw pulse waveform signal. After acquisition, the signal processing module performs signal amplification, noise filtering, analog-to-digital conversion, and waveform slicing to remove invalid data such as baseline drift and environmental interference, and outputs standardized pulse waveform data with regular timing and uniform dimensions as the pulse sample to be processed for subsequent model input.
[0030] Understandably, step S201 can convert human pulse physiological signals into computer-recognizable digital signals, eliminate data deviations caused by acquisition equipment and environmental noise, and ensure the consistency of input data for subsequent pulse identification models.
[0031] Step S202: Input the pulse sample to be processed into the pulse identification deep learning model to determine the pulse classification result. The pulse identification deep learning model is trained based on the pulse classification sample set.
[0032] In this embodiment of the application, the pulse sample to be processed output by S201 is sent to a pre-trained deep learning model for pulse identification, and the model automatically outputs standardized pulse classification results.
[0033] The pulse identification deep learning model is trained on a pulse classification sample set. The pulse classification sample set is generated by annotating the original pulse dataset with domain experts. Each pulse waveform in the sample set is matched with a corresponding standard pulse label of 28 classes, and the sample set is pre-divided into training set and test set in a ratio of 7:3 or 8:2.
[0034] For example, the deep learning model network structure for pulse identification sequentially includes an input layer, a feature extraction layer, a feature selection layer, a pulse classification layer, and an output layer. The feature extraction layer uses BiLSTM / BiGRU / RNN to extract pulse temporal waveform features, the feature selection layer uses an attention mechanism / pooling layer to select effective pulse features, and the pulse classification layer is a fully connected layer used to output the classification probability of various pulse types.
[0035] Understandably, after receiving a pulse sample to be processed, the pulse identification deep learning model automatically extracts waveform features such as the ascending limb, descending limb, main wave, tidal wave, descending mid-wave, and descending mid-wave, and outputs pulse classification results. It accurately distinguishes between single pulse patterns and combinations of complex pulse patterns, avoids the subjective judgment bias of traditional manual pulse diagnosis, and achieves objective and automated pulse identification.
[0036] Step S203: Based on the pulse pattern classification results and the pre-constructed disease pattern comparison table, determine the target disease pattern. The disease pattern comparison table includes the comparison relationship between the pulse pattern classification and the disease pattern.
[0037] In this embodiment of the application, the pulse pattern classification result output by S202 is read, the pre-constructed pulse pattern-cardiovascular disease type comparison table (disease type comparison table) is retrieved, and the cardiovascular target disease type corresponding to the tested person is input through matching mapping relationship.
[0038] This step relies on a pre-constructed reference table to establish a direct mapping between pulse pattern combinations and refined cardiovascular disease types. This overcomes the shortcomings of existing technologies, which can only determine whether a disease is present but cannot distinguish specific subtypes. It enables fine-grained classification output of cardiovascular diseases and enhances the clinical diagnostic value of intelligent pulse diagnosis.
[0039] It should be noted that this invention is not limited to the identification of cardiovascular disease types. By constructing a correlation between other types of diseases and pulse patterns, other types of diseases can also be identified.
[0040] It should be noted that the target disease type output by this invention is only for clinical doctors to provide data reference and is not intended as a direct result of disease diagnosis.
[0041] Based on the description of the above embodiments, the method provided in this application first collects pulse samples to be processed, accurately outputs standardized pulse classification results based on a pulse identification deep learning model trained on a complete pulse classification sample set, and then completes matching retrieval through a pre-constructed and stored disease type comparison table mapping the pulse to various sub-types. On the one hand, it uses a deep learning model to eliminate subjective bias in manual pulse diagnosis and accurately outputs sub-type pulse categories; on the other hand, it establishes a one-to-one correspondence between pulse combinations and specific disease types through the comparison table, breaking through the limitation of traditional techniques that can only perform binary classification to determine whether there is a disease. It can directly locate refined target disease types, realize fine-grained and accurate classification diagnosis of cardiovascular diseases, and improve the completeness of pulse diagnosis-assisted diagnosis. This solves the technical problem that existing methods for identifying cardiovascular diseases based on pulse only determine whether the patient has the disease and cannot accurately identify specific disease types.
[0042] Optionally, the construction of the pulse typing sample set includes: Step S202a: Obtain the pulse detection dataset.
[0043] In this embodiment, this step is used to collect and integrate a standardized raw pulse detection dataset. The collection method can include two types: First, using a pulse oximeter to simulate the three-part pulse diagnosis method of traditional Chinese medicine (cun, guan, chi) to collect raw human pulse signals. The pulse oximeter is equipped with piezoelectric, photoelectric, or mechanical sensors. After signal acquisition, amplification, filtering, analog-to-digital conversion, and waveform slicing preprocessing are performed sequentially to obtain single pulse time-series data. Second, integrating publicly available structured open-source pulse datasets to supplement and expand the total sample size. The two types of pulse data are then unified in data format and sampling frequency, and summarized to form a raw pulse detection dataset, providing the raw data foundation for subsequent pulse visualization and annotation.
[0044] Optionally, the pulse pattern classification sample set can be constructed using the method described in step S201 for obtaining the pulse sample to be processed.
[0045] Step S202b: Determine the pulse pattern based on the pulse detection dataset.
[0046] In this embodiment of the application, all samples in the pulse detection dataset obtained in S202a are input one by one into a pulse wave visualization device (e.g., an oscilloscope) to dynamically render and generate a visualized pulse image.
[0047] The pulse diagram fully presents the key features of the pulse waveform, including the ascending limb, descending limb, main wave, tidal wave, descending mid-wave, and descending mid-wave, etc. It intuitively displays the pulse fluctuation pattern, eliminates the shortcomings of pure digital time series data that are not intuitive and difficult to interpret manually, facilitates the identification of pulse types by experts in the field, and provides a visual basis for pulse labeling.
[0048] Step S202c: The pulse image is labeled using a preset labeling algorithm to obtain a pulse image classification sample set, which includes a training set and a test set.
[0049] In this embodiment, a physician specializing in traditional Chinese medicine and cardiovascular diseases pre-determines the pulse pattern based on the waveform characteristics of the pulse image. Then, a preset annotation algorithm is used to bind a pulse image label to each sample, with 28 standard pulse patterns corresponding to independent annotations. After all annotations are completed, the original pulse data and the corresponding pulse image labels are integrated to generate a complete pulse pattern classification sample set.
[0050] For example, samples are randomly selected from the sample set in a fixed ratio of 7:3 or 8:2 to divide it into a training set and a test set. The training set is used for subsequent weight iteration training of the pulse recognition deep learning model, while the test set is kept independently to verify the model's generalization performance and ensure that the trained pulse recognition model has reliable recognition accuracy.
[0051] Optionally, the construction of the pulse recognition deep learning model includes: Step S2021: Construct an initial deep learning model, wherein the initial deep learning model includes an input layer, a feature extraction layer, a feature selection layer, a pulse pattern classification layer, and an output layer connected in sequence.
[0052] In this embodiment of the application, step S2021 establishes a basic network architecture for pulse identification. The initial deep learning model consists of an input layer, a feature extraction layer, a feature filtering layer, a pulse identification layer, and an output layer connected in series.
[0053] The system comprises the following layers: an input layer receives standardized pulse time-series sample data; a feature extraction layer, employing time-series networks such as BiLSTM, BiGRU, and RNN, extracts temporal features including the rising limb, main wave, and descending mid-wave; a feature filtering layer uses pooling or attention mechanisms to filter out invalid noise features and enhance effective pulse features; a pulse classification layer, a fully connected layer, completes feature fusion and pulse classification mapping; and an output layer outputs the classification prediction results for 28 standard pulse types. This hierarchical structure is adapted to the feature extraction requirements of pulse time-series signals, providing a basic network carrier for pulse identification.
[0054] Step S2022: Determine the hyperparameters of the initial deep learning model based on the dung beetle optimization algorithm.
[0055] In this embodiment, basic parameters of the dung beetle optimization algorithm are set, including population size, maximum number of iterations, and optimization dimension; the hyperparameters to be tuned in the model (including but not limited to learning rate, number of training epochs, and number of hidden layer neurons) are used as individual dung beetle position variables, and the model training loss value is used as the fitness function.
[0056] During the iteration process, the positions of the rolling / dancing dung beetle, the foraging dung beetle, the breeding dung beetle, and the stealing dung beetle are updated and their corresponding fitness is calculated. The optimal parameter combination is retained generation by generation. After iterating to a preset number of times, the global optimal solution is output as the optimal hyperparameter of the initial deep learning model.
[0057] Understandably, this step significantly reduces the cost of model parameter tuning by replacing repeated manual parameter adjustments with intelligent optimization.
[0058] Step S2023: Based on the hyperparameters and the training set in the pulse classification sample set, train the initial deep learning model to obtain the model to be validated.
[0059] In this embodiment, the optimal hyperparameters obtained in S2022 are assigned to the initial deep learning model, and the training set from the pulse morphology sample set is input into the network. Using pulse morphology labels as supervision information, the weight parameters of each layer of the network are iteratively updated to complete supervised training of the model, and the trained model to be verified is output.
[0060] Step S2024: Based on the test set in the pulse typing sample set, evaluate the generalization performance of the model to be validated and obtain the evaluation results.
[0061] In this embodiment, an independent test set not used in training is input into the model to be validated. Precision, recall, and F1 score are calculated as quantitative evaluation metrics to generate a model generalization performance evaluation result. The independent test set is used to test the model's ability to recognize pulse patterns in unfamiliar pulse samples, avoiding recognition bias caused by overfitting.
[0062] Step S2025: In response to the evaluation results showing that the generalization performance of the model to be verified meets the preset performance index, the model to be verified is determined as a pulse recognition deep learning model.
[0063] In this embodiment, minimum qualifying thresholds for precision, recall, and F1 score are preset. If all evaluation metrics output by S2024 reach the preset thresholds, it indicates that the model's pulse recognition accuracy and generalization ability meet the standards, and the model to be verified is solidified into a final usable pulse recognition deep learning model. If the performance does not meet the standards, the dung beetle optimization hyperparameter search and model retraining process are re-executed until the performance requirements are met.
[0064] Optionally, in step S2022, the hyperparameters of the initial deep learning model are determined according to the dung beetle optimization algorithm, specifically including the following steps: Step S2022a: Initialize the parameters of the dung beetle optimization algorithm to obtain the initialization results.
[0065] In this embodiment of the application, step S2022a completes the initialization configuration of the global running parameters of the dung beetle optimization algorithm and the hyperparameter space to be optimized in deep learning.
[0066] For example, firstly, the basic operating parameters of the dung beetle optimization algorithm are configured, including population size, maximum number of iterations, and optimization solution dimension. Then, the value range of the hyperparameters to be optimized in the initial deep learning model for pulse identification is defined, including the model learning rate, number of training iterations (Epochs), and number of neurons in the hidden layer. Simultaneously, the population proportions of four types of dung beetles are divided: rolling / dancing dung beetles, foraging dung beetles, breeding dung beetles, and thieving dung beetles. All the above configuration information is integrated to form the algorithm initialization result, establishing a complete parameter optimization space and providing boundaries and initial conditions for subsequent population iterative searches.
[0067] Step S2022b: Based on the initialization results, using the model training loss as the fitness function, update the positions of the four types of dung beetles, iteratively calculate the fitness, and cyclically search for the optimal hyperparameter combination to obtain the search results.
[0068] In this embodiment of the application, optimization logic is constructed based on the initialization result output by S2022a. The training loss value of the initial deep learning model is defined as the fitness function of the dung beetle optimization algorithm. The smaller the loss value, the better the recognition effect of the hyperparameter combination corresponding to the current dung beetle position.
[0069] Within a single iteration cycle, the new position of an individual is calculated according to the position update formulas corresponding to the four types of dung beetles: the rolling / dancing dung beetle completes global exploration, the foraging dung beetle searches around the global optimal region, the breeding dung beetle generates new candidate parameters in the local high-quality region, and the stealing dung beetle broadens the parameter search range through random perturbation; for each updated set of dung beetle positions, the corresponding training loss is calculated by substituting into the deep learning model to obtain the fitness value of that individual, and the optimal hyperparameter combination of the current population is retained simultaneously.
[0070] The above position update, fitness calculation, and optimal value retention operations are continuously executed in a loop until the preset maximum number of iterations is reached. The globally optimal hyperparameter combination obtained from the entire iteration is then output as the parameter search result.
[0071] Step S2022c: Based on the search results, determine the hyperparameters of the deep learning model.
[0072] In this embodiment, the globally optimal hyperparameter combination obtained by iterative search in S2022b is extracted, and the corresponding parameters such as learning rate, Epoch, and number of hidden layer neurons are assigned to the initial deep learning model to complete the determination of all hyperparameters of the model, providing the optimal parameter configuration for subsequent supervised training of the model based on the training set.
[0073] For example, in some embodiments of the present invention, initial parameters for the dung beetle optimization algorithm are set, including but not limited to population size. Number of iterations Optimal solution dimension And the optimization parameters of the deep learning model for pulse identification; the optimization parameters of the deep learning model for pulse identification include, but are not limited to, the learning rate. Epoch, number of hidden layer neurons etc.; Dung beetle population It can be represented as: In the formula, The initial position of the dung beetle, and the training parameters of the deep learning model for pulse recognition, such as the learning rate. Epoch, number of hidden layer neurons Corresponding to each other; Set the fitness function of the dung beetle optimization algorithm and construct the network structure of the pulse recognition deep learning model; set the training loss value of the pulse recognition deep learning model as the return value of the fitness function; The fitness function of the dung beetle optimization algorithm is expressed by the following formula, where For the sample size, Number of categories: The initial fitness of the entire dung beetle population can be expressed as: Calculate the location and corresponding fitness function value of the rolling / dancing dung beetle, foraging dung beetle, breeding dung beetle, and stealing dung beetle in the first generation population, and record the optimal value of the population in this generation; The percentages of the following dung beetles were set as follows: (1) Rolling / dancing dung beetles, (2) Foraging dung beetles, (3) Reproducing dung beetles, and (4) Stealing dung beetles. , , and Then we have: Select one Only one dung beetle is designated as a rolling / dancing dung beetle, and each dung beetle is assigned to either rolling or dancing behavior according to a preset probability, specifically: The formula for updating the position of the rolling dung beetle is: In the formula, The value can be -1 or 1. , ; The formula for updating the position of the dancing dung beetle is: In the formula, ; Select one For a dung beetle used as a foraging dung beetle, its position update formula is: In the formula, For random numbers that follow a normal distribution, express random vectors and These represent the lower and upper bounds of the optimal foraging area, respectively, and are calculated as follows: In the formula, , This indicates the globally optimal position.
[0074] Select one For a single dung beetle used for reproduction, its position update formula is: In the formula, Indicates the local optimal position. and For independence 3D random vector, and The upper and lower boundaries of the spawning area are indicated, and the calculation method is as follows: In the formula, and These represent the upper and lower bounds of the optimization problem, respectively. Select the remaining As for the dung beetle, which is a thief dung beetle, its position update formula is: If the optimal fitness of the group is better than that of the previous generation, then the optimal value of the current generation is retained; otherwise, it remains unchanged. After repeatedly executing the specified number of iterations of "calculate the location and corresponding fitness function value of the rolling / dancing dung beetle, foraging dung beetle, breeding dung beetle, and stealing dung beetle in the first generation population, and record the optimal value of the population in this generation", the overall optimal value of each generation population is obtained and set as the hyperparameter of the pulse recognition deep learning model.
[0075] For example, the generalization performance of pulse recognition deep learning models can typically be evaluated by metrics including but not limited to precision, recall, and F1 score.
[0076] The accuracy calculation method is as follows: The recall rate is calculated as follows: The method for calculating the F1 value is as follows: Optionally, the pre-construction of the disease type control table includes: Step S203a: According to the preset encoding strategy, multiple pulse patterns are binary encoded to obtain multiple encoding results.
[0077] In this embodiment, a fixed order of 28 standard pulse types, such as floating pulse, deep pulse, slow pulse, rapid pulse, weak pulse, and strong pulse, is pre-defined to form a pulse sequence benchmark. A 0-1 binary encoding strategy is adopted, with each type of pulse occupying 1 bit in the binary encoding: if the pulse combination contains the type of pulse, the corresponding bit is assigned a value of 1; otherwise, it is assigned a value of 0. This generates a binary string of fixed length of 28 bits, which serves as the encoding result for a single pulse combination.
[0078] In step S203a, encoding operations are performed one by one for all single pulse patterns and combinations of multiple pulse patterns, generating binary encoding results corresponding to all pulse pattern combinations in batches, realizing the conversion of pulse pattern text information into standardized digital sequences, and providing a unified input format for subsequent hash addressing.
[0079] For example, 28 pulse types, such as floating pulse, deep pulse, slow pulse, rapid pulse, weak pulse, and strong pulse, are arranged in sequence and coded using a 0-1 combination. That is, the appearance of the target pulse type is marked as 1, and otherwise as 0. Taking the surging pulse, hollow pulse, and wiry pulse as examples, if the above three pulse types are combined, the corresponding coding result is: Step S203b converts multiple encoding results into multiple decimal values.
[0080] In this embodiment, for each group of 28-bit binary encoding results, an unsigned binary-to-decimal conversion algorithm is used for numerical conversion. The conversion rule is to sum the binary digits according to their bit weights, multiplying each binary digit by the corresponding power of 2 and then summing the results to obtain a unique unsigned decimal integer. This decimal value serves as the unique digital identifier for the current pulse pattern combination.
[0081] Understandably, all binary encoding results are converted sequentially to obtain multiple sets of decimal values that correspond one-to-one, eliminating the cumbersome problem of long binary string operations and simplifying the subsequent hash function calculation process.
[0082] For example, convert the above encoding result into a decimal value: Step S203c: Input multiple decimal values into a preset hash function to determine the storage addresses of multiple disease types corresponding to the multiple decimal values.
[0083] In this embodiment, the modulo operation is selected as the preset hash function, and the function expression is: , where y is the decimal value corresponding to the pulse combination, l is the pre-set total length of the hash table, and the function output value is the disease type storage address corresponding to the current pulse combination; for the decimal values converted by different pulse combinations, they are substituted into the hash function for independent calculation to obtain the independent storage address corresponding to each group of pulses in batches.
[0084] Understandably, for hash collisions where addresses overlap after different pulse pattern combinations are processed, chaining or open addressing methods are used to handle the collisions, thus preventing the overwriting and loss of cardiovascular disease data corresponding to different pulse patterns.
[0085] For example, the decimal value y is input into a hash function to calculate the corresponding cardiovascular disease type storage address; the hash function can be implemented based on typical methods or can be specified by the user, taking modulo operation as an example: It should be noted that the hash collision problem in hash table address calculation can be solved by methods including, but not limited to, chaining or open addressing.
[0086] Step S203d: Determine the disease type comparison table based on multiple pulse types and multiple disease type storage addresses.
[0087] In this embodiment, S203a to S203c are executed in a loop, traversing all pulse pattern combinations and completing data storage. Finally, a disease type comparison table is generated using a hash table as the carrier. The table completely stores the pulse pattern code, decimal identifier, storage address, and the association mapping relationship of the corresponding cardiovascular subtype.
[0088] Optionally, the target disease type can be determined based on the pulse diagnosis results and a pre-constructed disease type comparison table, specifically including: Step S2031: Perform binary encoding on the pulse pattern classification result to obtain the current type encoding result.
[0089] In this embodiment, encoding is performed according to a preset 0-1 encoding rule: the pulse bit that exists in the pulse pattern classification result is marked as 1, and the pulse bit that does not appear is marked as 0, generating a fixed 28-bit binary string as the current type encoding result corresponding to the current pulse pattern combination. This step converts the textual and categorized pulse pattern classification result into a standardized binary number sequence that can be computed by a computer.
[0090] Step S2032: Convert the current type encoding result into a decimal value, and input the converted decimal value into a preset hash function to determine the target storage address.
[0091] In this embodiment, an unsigned binary-to-decimal algorithm is used to convert the current type encoding result. The binary bits are weighted and summed according to their place values to obtain a unique decimal value. This decimal value is then used as the hash key and input into a preset hash function. In this embodiment, a modulo hash function is used. The function output is the target storage address corresponding to the pulse pattern classification result. If a hash address collision occurs, it is resolved using chaining or open addressing to ensure unique and effective addressing.
[0092] Step S2033: Determine the target disease type based on the target storage address and the disease type comparison table.
[0093] For example, in this embodiment of the application, the pre-constructed disease type comparison table is a pulse-cardiovascular disease type hash table, and each storage address in the table is pre-bound to a matching sub-type of cardiovascular disease. Based on the target storage address calculated in S2032, the pre-constructed disease type comparison table is directly retrieved, and the corresponding cardiovascular disease information, such as single or complex cardiovascular disease types like hypertension and myocardial infarction, is read from the storage area of that address. The sub-type of cardiovascular disease read is the target disease type corresponding to the subject being tested.
[0094] Based on the same inventive concept, this application also provides a pulse data processing apparatus for implementing the pulse data processing method described above. The solution provided by this apparatus is similar to the implementation scheme described in the above method; therefore, the specific limitations in one or more pulse data processing apparatus embodiments provided below can be found in the limitations of the pulse data processing method described above, and will not be repeated here.
[0095] In one exemplary embodiment, such as Figure 3As shown, a pulse data processing device 30 is provided, comprising: an acquisition module 301 for acquiring pulse samples to be processed; a first determination module 302 for inputting the pulse samples to be processed into a pulse identification deep learning model to determine the pulse classification result, wherein the pulse identification deep learning model is trained based on a pulse classification sample set; and a second determination module 303 for determining the target disease type based on the pulse classification result and a pre-constructed disease type comparison table, wherein the disease type comparison table includes the comparison relationship between pulse classification and disease type.
[0096] Optionally, the pulse data processing device further includes a first construction module connected to the first determination module 302, used for: acquiring a pulse detection dataset; determining a pulse pattern based on the pulse detection dataset; and labeling the pulse pattern using a preset labeling algorithm to obtain a pulse pattern classification sample set, wherein the pulse pattern classification sample set includes a training set and a test set.
[0097] Optionally, the first building module is further configured to: construct an initial deep learning model, wherein the initial deep learning model includes an input layer, a feature extraction layer, a feature selection layer, a pulse pattern classification layer, and an output layer connected in sequence; determine the hyperparameters of the initial deep learning model according to the dung beetle optimization algorithm; train the initial deep learning model based on the hyperparameters and the training set in the pulse pattern classification sample set to obtain the model to be verified; evaluate the generalization performance of the model to be verified based on the test set in the pulse pattern classification sample set to obtain the evaluation result; and, in response to the evaluation result indicating that the generalization performance of the model to be verified meets the preset performance index, determine the model to be verified as a pulse pattern recognition deep learning model.
[0098] Optionally, the first building module is also used to: initialize the parameters of the dung beetle optimization algorithm to obtain the initialization result; based on the initialization result, using the model training loss as the fitness function, update the position of the four types of dung beetles, iteratively calculate the fitness, and cyclically search for the optimal hyperparameter combination to obtain the search result; and determine the hyperparameters of the identification deep learning model based on the search result.
[0099] Optionally, the pulse data processing device further includes a second construction module connected to the second determination module 303, used for: performing binary encoding on multiple types of pulses according to a preset encoding strategy to obtain multiple encoding results; converting the multiple encoding results into multiple decimal values; inputting the multiple decimal values into a preset hash function to determine the storage addresses of multiple disease types corresponding to the multiple decimal values; and determining a disease type comparison table based on the multiple types of pulses and the storage addresses of multiple disease types.
[0100] Optionally, the second determining module 303 is further configured to: encode the pulse pattern classification result into binary form to obtain the current type encoding result; convert the current type encoding result into a decimal value and input the converted decimal value into a preset hash function to determine the target storage address; and determine the target disease type based on the target storage address and the disease type comparison table.
[0101] In one exemplary embodiment, a computer device is provided, which may be a server or a terminal, and its internal structure diagram may be as follows. Figure 4 As shown, this computer device includes a processor, memory, input / output (I / O) interfaces, and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The database stores control instructions. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communication with external terminals via a grid connection. When executed by the processor, the computer program implements a pulse data processing method.
[0102] Those skilled in the art will understand that Figure 4 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0103] In one exemplary embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.
[0104] In one exemplary embodiment, a computer-readable storage medium is provided storing a computer program that, when executed by a processor, implements the steps in the above-described method embodiments.
[0105] In one exemplary embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above-described method embodiments.
[0106] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.
[0107] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments described above. Any references to memory, databases, or other media 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), magnetic 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. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM).
[0108] The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0109] 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 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.
[0110] This document uses specific examples to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the methods and core ideas of this application. Furthermore, those skilled in the art will recognize that, based on the ideas of this application, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A method for processing pulse data, characterized in that, The pulse data processing method includes: Obtain the pulse sample to be processed; The pulse sample to be processed is input into the pulse identification deep learning model to determine the pulse classification result, wherein the pulse identification deep learning model is trained based on the pulse classification sample set. Based on the pulse pattern classification results and the pre-constructed disease type comparison table, the target disease type is determined, wherein the disease type comparison table includes the comparison relationship between pulse pattern classification and disease type.
2. The pulse data processing method according to claim 1, characterized in that, The construction of the pulse pattern typing sample set includes: Obtain the pulse detection dataset; The pulse pattern is determined based on the pulse detection dataset; The pulse image is labeled using a preset annotation algorithm to obtain a pulse image classification sample set, wherein the pulse image classification sample set includes a training set and a test set.
3. The pulse data processing method according to claim 1, characterized in that, The construction of the pulse recognition deep learning model includes: Construct an initial deep learning model, wherein the initial deep learning model includes an input layer, a feature extraction layer, a feature filtering layer, a pulse pattern classification layer and an output layer connected in sequence; Based on the dung beetle optimization algorithm, the hyperparameters of the initial deep learning model are determined; Based on the hyperparameters and the training set in the pulse pattern classification sample set, the initial deep learning model is trained to obtain the model to be verified. The generalization performance of the model to be validated is evaluated based on the test set in the pulse pattern classification sample set. In response to the evaluation results indicating that the generalization performance of the model to be verified meets the preset performance index, the model to be verified is determined as the pulse recognition deep learning model.
4. The pulse data processing method according to claim 3, characterized in that, The process of determining the hyperparameters of the initial deep learning model based on the dung beetle optimization algorithm specifically includes: The parameters of the dung beetle optimization algorithm are initialized to obtain the initialization results; Based on the initialization results, the model training loss is used as the fitness function. The positions of the four types of dung beetles are updated, the fitness is calculated iteratively, and the optimal hyperparameter combination is searched in a loop to obtain the search results. Based on the search results, the hyperparameters of the identification deep learning model are determined.
5. The pulse data processing method according to claim 1, characterized in that, The pre-construction of the disease type comparison table includes: According to the preset encoding strategy, multiple pulse patterns are binary encoded to obtain multiple encoding results; Convert the multiple encoding results into multiple decimal values; The multiple decimal values are input into a preset hash function to determine the storage addresses of the multiple disease types corresponding to the multiple decimal values; Based on the multiple pulse patterns and the multiple disease type storage addresses, the disease type comparison table is determined.
6. The pulse data processing method according to claim 5, characterized in that, The determination of the target disease type based on the pulse pattern classification results and the pre-constructed disease type comparison table specifically includes: The pulse pattern classification result is binary encoded to obtain the current type encoding result; The current type encoding result is converted into a decimal value, and the converted decimal value is input into the preset hash function to determine the target storage address; The target disease type is determined based on the target storage address and the disease type comparison table.
7. A pulse data processing device, characterized in that, The pulse data processing device includes: The acquisition module is used to acquire pulse samples to be processed. The first determining module is used to input the pulse sample to be processed into the pulse identification deep learning model to determine the pulse classification result, wherein the pulse identification deep learning model is trained based on the pulse classification sample set. The second determining module is used to determine the target disease type based on the pulse pattern classification results and a pre-constructed disease type comparison table, wherein the disease type comparison table includes the comparison relationship between pulse pattern classification and disease type.
8. A computer device, comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that the processor executes the computer program to implement the steps of the pulse data processing method according to any one of claims 1-6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the computer program implements the steps of the pulse data processing method according to any one of claims 1-6.
10. A computer program product, comprising a computer program, characterized in that, When executed by a processor, the computer program implements the steps of the pulse data processing method according to any one of claims 1-6.
