Heart beat recognition model updating method, device, computer equipment and system
By verifying and updating the recognition accuracy of the heart beat recognition model, the problem of inaccurate heart beat type recognition is solved, the accuracy of heart beat type recognition is improved, and the support for cardiac parameter analysis is enhanced.
Patent Information
- Application Number
- CN202310358109.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-31
- Publication Date
- 2024-10-01
AI Technical Summary
The existing technology has the problem of inaccurate heart beat type identification, which affects the accuracy of cardiac parameter analysis.
By obtaining the labeled heartbeat data and labeled heartbeat type of the target object at the current moment, the current heartbeat recognition model is verified, its recognition accuracy is determined, and the update conditions are judged based on the recognition accuracy. If not, the model is updated, using multiple sets of updates. The heartbeat data and weights are used to update the model.
It improves the accuracy of heart beat type recognition, ensures that the model can accurately identify the heart beat data type at the current moment, and enhances support for cardiac parameter analysis.
Smart Images

Figure CN118734008A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a method, device, computer equipment and system for updating a heartbeat recognition model. Background Art
[0002] With the development of machine learning technology, machine learning is increasingly being used in the medical field. By identifying ECG data through machine learning, the heartbeat type can be determined. The heartbeat type can reflect the human heart condition and help doctors analyze the human heart parameters.
[0003] In the related art, an initial current heartbeat recognition model can be trained using historical sample data, and the acquired heartbeat data can be analyzed using the trained current heartbeat recognition model to obtain the heartbeat type corresponding to the heartbeat data.
[0004] However, the related art has the problem of inaccurate heartbeat type recognition. Summary of the invention
[0005] Based on this, it is necessary to provide a method, device, computer equipment and system for updating a heartbeat recognition model that can improve the accuracy of heartbeat type recognition in order to address the above technical problems.
[0006] In a first aspect, the present application provides a method for updating a heartbeat recognition model, the method comprising:
[0007] Obtain the heartbeat data of the target object at the current moment and the annotated heartbeat type corresponding to the heartbeat data;
[0008] Verify the current heartbeat recognition model according to the heartbeat data to determine the recognized heartbeat type of the target object; the current heartbeat recognition model is a personalized heartbeat recognition model that matches the target object;
[0009] Determine whether the current heartbeat recognition model meets the update condition according to each marked heartbeat type and each recognized heartbeat type;
[0010] If the current heartbeat recognition model meets the update condition, the current heartbeat recognition model is updated.
[0011] In one embodiment, determining whether the current heartbeat recognition model meets the update condition according to each labeled heartbeat type and each recognized heartbeat type includes:
[0012] Determining the recognition accuracy of the current heartbeat recognition model according to each labeled heartbeat type and each recognized heartbeat type;
[0013] Based on the recognition accuracy, determine whether the current heartbeat recognition model meets the update condition.
[0014] In one embodiment, determining the recognition accuracy of the current heartbeat recognition model according to the labeled heartbeat type and the recognized heartbeat type includes:
[0015] Get the number of heartbeats with the same type in the marked heartbeat type and the identified heartbeat type;
[0016] The recognition accuracy of the current heartbeat recognition model is determined according to the number of heartbeats of the same type.
[0017] In one embodiment, determining whether the current heartbeat recognition model meets the update condition based on the recognition accuracy includes:
[0018] Obtain the current recognition accuracy and historical recognition accuracy of the current heartbeat recognition model;
[0019] According to the current recognition accuracy and the historical recognition accuracy, it is determined whether the current heartbeat recognition model meets the update condition.
[0020] In one embodiment, if the historical recognition accuracy includes the previous recognition accuracy, determining whether the current heartbeat recognition model meets the update condition according to the current recognition accuracy and the historical recognition accuracy includes:
[0021] According to the current recognition accuracy and the previous recognition accuracy, the current heartbeat recognition model is verified to obtain a verification result;
[0022] According to the verification result, it is determined whether the current heartbeat recognition model meets the update condition.
[0023] In one embodiment, the current heartbeat recognition model is verified to obtain a verification result, including:
[0024] Obtain the annotated heartbeat type and the verification heartbeat type of the verification heartbeat data of the target object; the verification heartbeat data is the heartbeat data of an unannotated type in the heartbeat data;
[0025] Verify the current heartbeat recognition model according to the marked heartbeat type of the verification heartbeat data and the verification heartbeat type to obtain the verification accuracy;
[0026] The verification result is determined based on the accuracy difference between the previous recognition accuracy and the verification accuracy.
[0027] In one embodiment, determining the verification result according to the accuracy difference between the previous recognition accuracy and the verification accuracy includes:
[0028] If the accuracy difference is greater than the first preset accuracy threshold, the verification result is verification passed; if the accuracy difference is less than or equal to the first preset accuracy threshold, the verification result is verification failed.
[0029] In one embodiment, determining whether the current heartbeat recognition model meets the update condition according to the verification result includes:
[0030] If the verification result is that the verification is passed, it is determined that the current heartbeat recognition model meets the update condition; if the verification result is that the verification is not passed, it is determined that the current heartbeat recognition model does not meet the update condition.
[0031] In one embodiment, if the historical recognition accuracy includes the recognition accuracies of the three previous consecutive times, determining whether the current heartbeat recognition model meets the update condition according to the current recognition accuracy and the historical recognition accuracy includes:
[0032] According to the current recognition accuracy and the three previous recognition accuracies, multiple historical recognition accuracy differences of the current heartbeat recognition model are obtained;
[0033] According to the historical recognition accuracy differences, it is determined whether the current heartbeat recognition model meets the update condition.
[0034] In one embodiment, according to the current recognition accuracy and the three previous recognition accuracies, a plurality of historical recognition accuracy differences of the current heartbeat recognition model are obtained, including:
[0035] According to the current recognition accuracy and the three previous recognition accuracies, the accuracy difference between every two adjacent historical recognition accuracies is calculated to obtain the historical recognition accuracy difference of the current heartbeat recognition model at each consecutive historical moment.
[0036] In one embodiment, determining whether the current heartbeat recognition model meets the update condition according to each historical recognition accuracy difference includes:
[0037] If the historical recognition accuracy differences are all greater than the second preset accuracy threshold, it is determined that the current heartbeat recognition model meets the update condition;
[0038] If any one of the historical recognition accuracy differences is less than or equal to the second preset accuracy threshold, it is determined that the current heartbeat recognition model does not meet the update condition.
[0039] In one embodiment, updating the current heartbeat recognition model includes:
[0040] Acquire multiple groups of updated heartbeat data and weights corresponding to each updated heartbeat data; the multiple groups of updated heartbeat data are labeled heartbeat data, and the labeled heartbeat data are determined based on the heartbeat data of the labeled type at the current moment and the heartbeat data of the unlabeled type at the historical moment;
[0041] The current heartbeat recognition model is updated according to each updated heartbeat data and the corresponding weight.
[0042] In one embodiment, the method further comprises:
[0043] Testing the updated heartbeat recognition model using a first preset frequency;
[0044] If the updated heartbeat recognition model meets the performance requirements within the preset time, the updated heartbeat recognition model is tested using a second preset frequency;
[0045] The first preset frequency is greater than the second preset frequency.
[0046] In a second aspect, the present application further provides a device for updating a heartbeat recognition model, the device comprising:
[0047] An acquisition module is used to acquire the heartbeat data of the target object at the current moment and the annotated heartbeat type corresponding to the heartbeat data;
[0048] A first determination module is used to verify the current heartbeat recognition model according to the heartbeat data, and determine the recognized heartbeat type of the target object; the current heartbeat recognition model is a personalized heartbeat recognition model that matches the target object;
[0049] A second determination module is used to determine whether the current heartbeat recognition model meets the update condition according to each marked heartbeat type and each recognized heartbeat type;
[0050] The output module is used to update the current heartbeat recognition model when the current heartbeat recognition model meets the update conditions.
[0051] In a third aspect, the present application further provides a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the content of any one of the heartbeat recognition models in the first aspect is realized.
[0052] In a fourth aspect, the present application further provides a heartbeat recognition model update system, the heartbeat recognition model update system comprising a labeling device and a heartbeat device and the computer device in the third aspect above;
[0053] A heartbeat device, used to obtain the initial heartbeat data of the target object at the current moment, and send the initial heartbeat data to the computer device;
[0054] A computer device, used for forwarding the initial heartbeat data to the annotation device;
[0055] A labeling device, used for receiving the initial heartbeat data sent by the computer device, labeling the type of the initial heartbeat data, and sending the heartbeat data with the labeled type at the current moment and the labeled heartbeat type to the computer device;
[0056] The computer device is also used to receive the heartbeat data of the annotated type and the annotated heartbeat type at the current moment sent by the annotation device; and verify the current heartbeat recognition model based on the heartbeat data to determine the recognized heartbeat type of the target object; the current heartbeat recognition model is a personalized heartbeat recognition model that matches the target object; based on each annotated heartbeat type and each recognized heartbeat type, determine whether the current heartbeat recognition model meets the update conditions; if the current heartbeat recognition model meets the update conditions, update the current heartbeat recognition model.
[0057] In a fifth aspect, the present application further provides a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the content of any one of the heartbeat recognition models in the first aspect is realized.
[0058] In a sixth aspect, the present application further provides a computer program product, including a computer program, which implements the content of any one of the heartbeat recognition models in the first aspect when executed by a processor.
[0059] The above-mentioned heartbeat recognition model updating method, device, computer equipment and system obtain the heartbeat data of the target object with the marked type at the current moment and the marked heartbeat type corresponding to the heartbeat data; verify the current heartbeat recognition model according to the heartbeat data to determine the recognized heartbeat type of the target object; the current heartbeat recognition model is a personalized heartbeat recognition model that matches the target object; determine whether the current heartbeat recognition model meets the update conditions according to each marked heartbeat type and each recognized heartbeat type; if the current heartbeat recognition model meets the update conditions, the current heartbeat recognition model is updated. The method recognizes the heartbeat data through the current recognition model to obtain the heartbeat recognition type corresponding to the heartbeat data. According to the heartbeat recognition type and the marked heartbeat type, it can be determined whether the current heartbeat recognition model can accurately recognize the current heartbeat data. If it cannot be accurately recognized, the current heartbeat recognition model is updated in time so that the updated heartbeat recognition model can more accurately recognize the type of heartbeat data. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] Figure 1 A diagram of an application environment of a method for updating a center beat recognition model in one embodiment;
[0061] Figure 2 It is a flowchart of a method for updating a central beat recognition model according to an embodiment;
[0062] Figure 3 It is a flowchart of a method for updating a central beat recognition model according to an embodiment;
[0063] Figure 4It is a flowchart of a method for updating a central beat recognition model according to an embodiment;
[0064] Figure 5 It is a flowchart of a method for updating a central beat recognition model according to an embodiment;
[0065] Figure 6 It is a flowchart of a method for updating a central beat recognition model according to an embodiment;
[0066] Figure 7 It is a flowchart of a method for updating a central beat recognition model according to an embodiment;
[0067] Figure 8 It is a flowchart of a method for updating a central beat recognition model according to an embodiment;
[0068] Fig. 9 It is a flowchart of a method for updating a central beat recognition model according to an embodiment;
[0069] Fig.10 It is a flowchart of a method for updating a central beat recognition model according to an embodiment;
[0070] Fig.11 It is a flowchart of a method for updating a central beat recognition model according to an embodiment;
[0071] Fig.12 It is a flowchart of a method for updating a central beat recognition model according to an embodiment;
[0072] Fig.13 It is a flowchart of a method for updating a central beat recognition model according to an embodiment;
[0073] Fig.14 It is a structural block diagram of a device for updating a central beat recognition model in one embodiment. DETAILED DESCRIPTION
[0074] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0075] The updating method of the heartbeat recognition model provided in the embodiment of the present application can be applied to Figure 1In the application environment shown. The computer device can be a server, and the computer device includes a processor, a memory and a network interface connected by a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data in the updating process of the heartbeat recognition model. The network interface of the computer device is used to communicate with an external terminal through a network connection, and the computer program is executed by the processor to implement a method for updating the heartbeat recognition model. Among them, the computer device can be implemented by an independent computer device or a computer device cluster composed of multiple computer devices.
[0076] In one embodiment, Figure 2 As shown, a method for updating a heartbeat recognition model is provided, and the method is applied to Figure 1 The computer device in the example is used to illustrate, including the following steps:
[0077] S201, obtaining the heartbeat data of the target object at the current moment with annotated types and the annotated heartbeat type corresponding to the heartbeat data.
[0078] The heartbeat data is heartbeat data with annotated types, that is, the heartbeats in the corresponding heartbeat data are all annotated with corresponding type labels. The annotated heartbeat type indicates the type label corresponding to each heartbeat of the annotated heartbeat data. The type label can be represented by a symbol, and different symbols indicate which type the heartbeat belongs to. For example, the types include normal heartbeat, atrial fibrillation heartbeat, etc.
[0079] In this embodiment, the server can determine the heartbeat data of the marked type from the heartbeat data according to the marked time. For example, when the marked time is the 10th second, 20th second, and 30th second, the heartbeat data of the marked type is the data of the 10th second, 20th second, and 30th second. Further, the server can determine the type corresponding to each heartbeat data in the heartbeat data of the marked type according to the type label of the heartbeat data of the marked type.
[0080] S202, verifying the current heartbeat recognition model according to the heartbeat data, and determining the recognized heartbeat type of the target object; the current heartbeat recognition model is a personalized heartbeat recognition model that matches the target object.
[0081] Among them, the current heartbeat recognition model is obtained by training with a large amount of historical sample heartbeat data of the target object. In order to ensure the accuracy of the current heartbeat recognition model, the current heartbeat recognition model has high sensitivity in recognizing the heartbeat data of the target object. Different target objects correspond to different current heartbeat recognition models.
[0082] In this embodiment, since the current heartbeat recognition model is obtained by training the historical heartbeat data of the target object, the current heartbeat recognition model is more suitable for recognizing the historical heartbeat data of the target object. Due to the abnormal development of the target object's disease course, its heartbeat data will also change. Therefore, whether the current heartbeat recognition model can accurately recognize the heartbeat data of the target object at the current moment needs to be verified through the recognition result and the annotated heartbeat type to determine whether the heartbeat data type at the current moment can be accurately recognized. The server can input the annotated heartbeat data as input information into the current heartbeat recognition model, and the current heartbeat recognition model can recognize the annotated heartbeat data to determine the heartbeat recognition type corresponding to the heartbeat data at the current moment.
[0083] S203: Determine whether the current heartbeat recognition model meets an update condition according to each labeled heartbeat type and each recognized heartbeat type.
[0084] Optionally, the update condition may be the ratio of the number of the same type in the marked heartbeat type and the identified heartbeat type to the total number. The server may obtain the number of the same type in the marked heartbeat type and the identified heartbeat type, and calculate the ratio of the number of the same type to the total number. According to the ratio, it is determined whether the current heartbeat recognition model meets the update condition. For example, the ratio is compared with a preset threshold value. When the ratio is greater than the preset threshold value, it is determined that the current heartbeat recognition model does not meet the update condition; when the ratio is less than or equal to the preset threshold value, it is determined that the current heartbeat recognition model meets the update condition.
[0085] S204: If the current heartbeat recognition model meets the update condition, the current heartbeat recognition model is updated.
[0086] In this embodiment, when the server determines that the current heartbeat recognition model meets the update conditions, it means that the current recognition model's recognition result for the target object's heartbeat data at the current moment is inaccurate. At this time, the current heartbeat recognition model needs to be updated so that the updated heartbeat recognition model can accurately recognize the heartbeat data at the current moment.
[0087] In the above-mentioned method for updating the heartbeat recognition model, the heartbeat data of the target object with the marked type at the current moment and the marked heartbeat type corresponding to the heartbeat data are obtained; the current heartbeat recognition model is verified according to the heartbeat data to determine the recognized heartbeat type of the target object; the current heartbeat recognition model is a personalized heartbeat recognition model that matches the target object; according to each marked heartbeat type and each recognized heartbeat type, it is determined whether the current heartbeat recognition model meets the update conditions; if the current heartbeat recognition model meets the update conditions, the current heartbeat recognition model is updated. This method recognizes the heartbeat data through the current recognition model to obtain the heartbeat recognition type corresponding to the heartbeat data. According to the heartbeat recognition type and the marked heartbeat type, it can be determined whether the current heartbeat recognition model can accurately recognize the current heartbeat data. If it cannot be accurately recognized, the current heartbeat recognition model is updated in time so that the updated heartbeat recognition model can more accurately recognize the type of heartbeat data.
[0088] Based on the above embodiments, this embodiment is to Figure 2 The relevant contents of step S203 "determining whether the current heartbeat recognition model meets the update condition according to each marked heartbeat type and each recognized heartbeat type" are introduced and explained. Figure 3 As shown, the above step S203 may include the following contents:
[0089] S301, determining the recognition accuracy of the current heartbeat recognition model according to each labeled heartbeat type and each recognized heartbeat type.
[0090] Among them, the recognition accuracy of the current heartbeat recognition model represents the accuracy of the current heartbeat recognition model in recognizing the heartbeat data type. The higher the recognition accuracy, the higher the corresponding recognition accuracy.
[0091] Optionally, the server can compare the annotated heartbeat type and the identified heartbeat type corresponding to each heartbeat to determine whether the annotated heartbeat type and the corresponding identified heartbeat type are of the same type. If they are of the same type, the heartbeat recognition is considered correct, otherwise it is considered wrong. Finally, the accuracy is determined based on the comparison result, thereby determining the recognition accuracy of the current heartbeat recognition model. Optionally, the server can input each annotated heartbeat type and each identified heartbeat type into the accuracy recognition model, analyze each annotated heartbeat type and each identified heartbeat type through the accuracy recognition model, and output the recognition accuracy of the current heartbeat recognition model. This embodiment does not limit the method of determining the recognition accuracy of the current heartbeat recognition model based on each annotated heartbeat type and each identified heartbeat type.
[0092] S302: Determine whether the current heartbeat recognition model meets the update condition based on the recognition accuracy.
[0093] In this embodiment, the server can compare the recognition accuracy with the preset accuracy. If the recognition accuracy is greater than the preset accuracy, it means that the current heartbeat recognition model can accurately recognize the heartbeat data at the current moment, which means that the current heartbeat recognition model does not meet the update conditions; if the recognition accuracy is less than or equal to the preset accuracy, it means that the current heartbeat recognition model cannot accurately recognize the heartbeat data at the current moment, which means that the current heartbeat recognition model meets the update conditions and needs to be updated.
[0094] In the above-mentioned method for updating the heartbeat recognition model, the recognition accuracy of the current heartbeat recognition model is determined according to each labeled heartbeat type and each identified heartbeat type, and based on the recognition accuracy, it is determined whether the current heartbeat recognition model meets the update condition. This method can accurately obtain the recognition accuracy of the current heartbeat recognition model by labeling the heartbeat type and identifying the heartbeat type, so that it can accurately determine whether the current heartbeat recognition model meets the update condition based on the recognition accuracy.
[0095] Based on the above embodiments, this embodiment is to Figure 3 The relevant contents of step S301 "determining the recognition accuracy of the current heartbeat recognition model according to the marked heartbeat type and the recognized heartbeat type" are introduced and explained. Figure 4 As shown, the above step S301 may include the following contents:
[0096] S401, obtaining the number of heartbeats of the same type in the marked heartbeat type and the identified heartbeat type.
[0097] In this embodiment, the server can compare the labeled heart beat type of each heart beat with the identified heart beat type. If the labeled heart beat type of a heart beat is the same as the identified heart beat type, then the statistical number of the same type is increased by one; if the labeled heart beat type of a heart beat is different from the identified heart beat type, then the heart beat is ignored, and the labeled heart beat type of the next heart beat is compared with the identified heart beat type, and so on, to obtain the number of heart beats of the same type in the labeled heart beat type and the identified heart beat type.
[0098] S402, determining the recognition accuracy of the current heartbeat recognition model according to the number of heartbeats of the same type.
[0099] In this embodiment, the server can obtain the number of heartbeats with marked heartbeat types or identified heartbeat types, and determine the number as the total number of heartbeats, by calculating the ratio of the number of heartbeats of the same type to the total number of heartbeats, and determine the obtained ratio as the recognition accuracy of the current heartbeat recognition model. For example, when the number of heartbeats of the same type is 9 and the total number of heartbeats is 10, the recognition accuracy of the current heartbeat recognition model is 0.9.
[0100] In the above-mentioned method for updating the heartbeat recognition model, the number of heartbeats of the same type in the marked heartbeat type and the recognized heartbeat type is obtained, and the recognition accuracy of the current heartbeat recognition model is determined according to the number of heartbeats of the same type. This method can accurately obtain the number of heartbeats of the same type by comparing the marked heartbeat type with the recognized heartbeat type, thereby making the recognition accuracy of the current heartbeat recognition model higher.
[0101] Based on the above embodiments, this embodiment is to Figure 3 The relevant contents of step S302 "determining whether the current heartbeat recognition model meets the update condition based on the recognition accuracy" are introduced and explained. Figure 5 As shown, the above step S302 may include the following contents:
[0102] S501, obtaining the current recognition accuracy and historical recognition accuracy of the current heartbeat recognition model.
[0103] The historical recognition accuracy indicates the recognition accuracy of the current heartbeat recognition model in the previous N times, and the historical recognition accuracy of each time may be the same or different.
[0104] In this embodiment, the server can determine the current recognition accuracy of the current heartbeat recognition model based on the labeled heartbeat type at the current moment and the ratio of the number of heartbeats of the same type in the identified heartbeat type to the total number of heartbeats; at the same time, the server can obtain the records of historical recognition accuracy for the previous N times.
[0105] S502: Determine whether the current heartbeat recognition model meets the update condition according to the current recognition accuracy and the historical recognition accuracy.
[0106] In this embodiment, the server can determine the curve trend of the recognition accuracy of the current heartbeat recognition model based on the current recognition accuracy and the historical recognition accuracy. If the curve trend of the recognition accuracy is continuously decreasing, it means that the current heartbeat recognition model is not suitable for the current heartbeat data type recognition of the target object, that is, the current heartbeat recognition model needs to be updated, and the current heartbeat recognition model meets the update conditions; if the curve trend of the recognition accuracy is gradually increasing, or the curve trend is stable, it means that the current heartbeat recognition model is suitable for the current heartbeat data type recognition of the target object, that is, the current heartbeat recognition model does not need to be updated, and the current heartbeat recognition model does not meet the update conditions.
[0107] In the above-mentioned method for updating the heartbeat recognition model, the current recognition accuracy and the historical recognition accuracy of the current heartbeat recognition model are obtained, and whether the current heartbeat recognition model meets the update condition is determined according to the current recognition accuracy and the historical recognition accuracy. This method can accurately determine the recognition accuracy change trend of the current heartbeat recognition model through the current recognition accuracy and the historical recognition accuracy, and thus can accurately determine whether the current heartbeat recognition model meets the update condition.
[0108] Based on the above embodiment, if the historical recognition accuracy includes the previous recognition accuracy, this embodiment is Figure 5 The relevant contents of step S502 "determining whether the current heartbeat recognition model meets the update condition according to the current recognition accuracy and the historical recognition accuracy" are introduced and explained. Figure 6 As shown, the above step S502 may include the following contents:
[0109] S601, verifying the current heartbeat recognition model according to the current recognition accuracy and the previous recognition accuracy to obtain a verification result.
[0110] In this embodiment, the server can subtract the current recognition accuracy from the previous recognition accuracy to obtain the difference between the previous recognition accuracy and the current recognition accuracy, and use the difference as the accuracy difference between the previous recognition accuracy and the current recognition accuracy. When the accuracy difference is greater than a first preset accuracy threshold, it indicates that the current heartbeat recognition model may have performance degradation. In order to further determine whether the current heartbeat recognition model has performance degradation, it is necessary to verify the current heartbeat recognition model through other unlabeled heartbeat data to obtain the verification result of the current heartbeat recognition model.
[0111] S602: Determine whether the current heartbeat recognition model meets the update condition according to the verification result.
[0112] In this embodiment, if the verification result of the current heartbeat recognition model is that the verification passed, it means that the recognition result of the current heartbeat recognition model is inaccurate. At this time, the current heartbeat recognition model needs to be updated, that is, the current heartbeat recognition model meets the update conditions; if the verification result of the current heartbeat recognition model is that the verification failed, it means that the recognition result of the current heartbeat recognition model is accurate. At this time, there is no need to update the current heartbeat recognition model, that is, the current heartbeat recognition model does not meet the update conditions.
[0113] In the above-mentioned method for updating the heartbeat recognition model, the current heartbeat recognition model is verified according to the current recognition accuracy and the previous recognition accuracy to obtain a verification result, and according to the verification result, it is determined whether the current heartbeat recognition model meets the update conditions. This method determines whether to verify the current heartbeat recognition model according to the current recognition accuracy and the previous recognition accuracy. Through the two processes of verification and recognition accuracy, it can more accurately determine whether the current heartbeat recognition model meets the update conditions and troubleshoot the problem of poor accuracy interference in a single judgment.
[0114] Based on the above embodiments, this embodiment is to Figure 6 The relevant contents of step S601 "verifying the current heartbeat recognition model to obtain the verification result" are introduced and explained. Figure 7As shown, the above step S601 may include the following contents:
[0115] S701, obtaining the annotated heartbeat type and the verification heartbeat type of the verification heartbeat data of the target object; the verification heartbeat data is the heartbeat data of an unannotated type in the heartbeat data.
[0116] Among them, the verification heartbeat data is the heartbeat data of an unlabeled type in the heartbeat data. For example, the heartbeat data of an labeled type in the heartbeat data are the heartbeat data of the 1st second, the 5th second and the 10th second, and the verification heartbeat data can be the unlabeled heartbeat data of the 2nd to 4th seconds and the 6th to 9th seconds.
[0117] In this embodiment, the server can arbitrarily select the verification heartbeat data of the target object from the heartbeat data of unlabeled types, send the verification heartbeat data to the labeling doctor, and receive the labeled heartbeat type of the verification heartbeat data after the labeling doctor labels it. At the same time, the server can use the verification heartbeat data as input information, input it into the current heartbeat recognition model, recognize the verification heartbeat data through the current heartbeat recognition model, and obtain the verification heartbeat type corresponding to the verification heartbeat data.
[0118] S702, verifying the current heartbeat recognition model according to the annotated heartbeat type of the verification heartbeat data and the verification heartbeat type to obtain verification accuracy.
[0119] In this embodiment, the server can compare the labeled heart beat type and the verification heart beat type of each verification heart beat data, obtain the number of heart beats of the same type between the labeled heart beat type and the verification heart beat type, and determine the ratio of the number of heart beats of the same type to the total number of verification heart beats as the verification accuracy.
[0120] S703, determining a verification result according to the accuracy difference between the previous recognition accuracy and the verification accuracy.
[0121] In this embodiment, the server can subtract the verification accuracy from the previous recognition accuracy to obtain the difference between the previous recognition accuracy and the verification accuracy, and use the difference as the accuracy difference between the previous recognition accuracy and the verification accuracy. If the accuracy difference is greater than zero, it is determined that the previous recognition accuracy of the current heartbeat recognition model is greater than the verification accuracy, and the verification result is verification failure; if the accuracy difference is less than or equal to zero, and when the absolute value of the accuracy difference is greater than the preset accuracy threshold, the verification result is determined to be verification passed; if the absolute value of the accuracy difference is less than or equal to the preset accuracy threshold, the verification result is determined to be verification failed.
[0122] In the above-mentioned method for updating the heartbeat recognition model, the annotated heartbeat type and the verification heartbeat type of the verification heartbeat data of the target object are obtained, and the current heartbeat recognition model is verified according to the annotated heartbeat type and the verification heartbeat type of the verification heartbeat data to obtain the verification accuracy, and the verification result is determined according to the accuracy difference between the previous recognition accuracy and the verification accuracy. This method can accurately obtain the verification accuracy of the current heartbeat recognition model by obtaining the annotated heartbeat type corresponding to the verification heartbeat data, thereby accurately obtaining the accuracy difference between the previous recognition accuracy and the verification accuracy, and then accurately determining the verification result according to the accuracy difference.
[0123] Based on the above embodiments, this embodiment is to Figure 7 The relevant contents of step S703 "determining the verification result according to the accuracy difference between the previous recognition accuracy and the verification accuracy" are introduced and explained. The above step S703 may include the following contents: if the accuracy difference is greater than the first preset accuracy threshold, the verification result is verification passed; if the accuracy difference is less than or equal to the first preset accuracy threshold, the verification result is verification failed.
[0124] In this embodiment, after the server obtains the accuracy difference between the previous recognition accuracy and the verification accuracy, it compares the accuracy difference with the first preset accuracy threshold. If the accuracy difference is greater than the first preset accuracy threshold, it can be determined that the current heartbeat recognition model cannot accurately recognize the current heartbeat data, that is, the verification result is passed; if the accuracy difference is less than or equal to the first preset accuracy threshold, it can be determined that the current heartbeat recognition model can accurately recognize the current heartbeat data, that is, the verification result is failed.
[0125] In the above-mentioned method for updating the heartbeat recognition model, the accuracy difference between the previous recognition accuracy and the verification accuracy is compared with the first preset accuracy threshold. According to the comparison result, it can be accurately determined whether the current heartbeat recognition model has passed the verification, that is, when the accuracy difference is greater than the first preset accuracy threshold, the verification result is passed; when the accuracy difference is less than or equal to the first preset accuracy threshold, the verification result is failed.
[0126] Based on the above embodiments, this embodiment is to Figure 6 The relevant contents of step S602 "determine whether the current heartbeat recognition model meets the update conditions according to the verification result" are introduced and explained. The above step S602 may include the following contents: if the verification result is that the verification passes, it is determined that the current heartbeat recognition model meets the update conditions; if the verification result is that the verification fails, it is determined that the current heartbeat recognition model does not meet the update conditions.
[0127] In this embodiment, when the verification result is passed, it means that the current heartbeat recognition model cannot accurately recognize the heartbeat data at the current moment and the future moments, and the current heartbeat recognition model needs to be updated, that is, the current heartbeat recognition model meets the update conditions; when the verification result is failed, it means that the current heartbeat recognition model can still accurately recognize the heartbeat data at the current moment, and there is no need to update the current heartbeat recognition model, that is, the current heartbeat recognition model does not meet the update conditions.
[0128] In the above-mentioned method for updating the heartbeat recognition model, based on the verification result of the current heartbeat recognition model, it is possible to accurately determine whether the current heartbeat recognition model meets the update conditions, that is, if the verification result is that the verification passes, it is determined that the current heartbeat recognition model meets the update conditions; if the verification result is that the verification fails, it is determined that the current heartbeat recognition model does not meet the update conditions.
[0129] Based on the above embodiment, if the historical recognition accuracy includes the recognition accuracy of the three previous consecutive times, this embodiment is Figure 5 The relevant contents of step S502 "determining whether the current heartbeat recognition model meets the update condition according to the current recognition accuracy and the historical recognition accuracy" are introduced and explained. Figure 8 As shown, the above step S502 may include the following contents:
[0130] S801, obtaining multiple historical recognition accuracy differences of the current heartbeat recognition model according to the current recognition accuracy and the three previous recognition accuracies.
[0131] In this embodiment, after the server obtains the current recognition accuracy and the previous three adjacent recognition accuracies, the server may optionally calculate the previous three adjacent recognition accuracies minus the current recognition accuracy to obtain three recognition accuracy differences, and determine the three recognition accuracy differences as the three historical recognition accuracy differences of the current heartbeat recognition model. Alternatively, the server may also calculate the three adjacent accuracy differences between the previous first recognition accuracy and the current recognition accuracy, the previous second recognition accuracy and the previous first recognition accuracy, and the previous third recognition accuracy and the previous second recognition accuracy, and determine the three adjacent accuracy differences as the three historical recognition accuracy differences of the current heartbeat recognition model.
[0132] S802: Determine whether the current heartbeat recognition model meets the update condition based on the historical recognition accuracy differences.
[0133] In this embodiment, when the historical recognition accuracy difference is three recognition accuracy differences, the server can compare the three recognition accuracy differences. If the three recognition accuracy differences show a downward trend over time, it is determined that the current heartbeat recognition model meets the update condition; if the three recognition accuracy differences do not show a downward trend over time, it is determined that the current heartbeat recognition model does not meet the update condition. For example, the accuracy difference between the previous first recognition accuracy and the current recognition accuracy is 0.2, the accuracy difference between the previous second recognition accuracy and the current recognition accuracy is 0.5, and the accuracy difference between the previous third recognition accuracy and the current recognition accuracy is 0.8. That is to say, from the previous third recognition accuracy to the current recognition accuracy, the three recognition accuracy differences show a downward trend over time, which means that the current heartbeat recognition model meets the update condition.
[0134] In the case where the historical recognition accuracy difference is three adjacent accuracy differences, the server can compare each historical recognition accuracy difference with the second preset accuracy threshold. If each historical recognition accuracy difference is greater than the second preset accuracy threshold, it is determined that the current heartbeat recognition model meets the update condition; if at least one accuracy difference among the historical recognition accuracy differences is less than or equal to the second preset accuracy threshold, it is determined that the current heartbeat recognition model does not meet the update condition. For example, the accuracy difference between the previous first recognition accuracy and the current recognition accuracy is 0.3, the accuracy difference between the previous second recognition accuracy and the previous first recognition accuracy is 0.4, and the accuracy difference between the previous third recognition accuracy and the previous second recognition accuracy is 0.6. If the second preset accuracy threshold is 0.2, the three adjacent accuracy differences are greater than the second preset accuracy threshold, and it can be determined that the current heartbeat recognition model meets the update condition.
[0135] In the above-mentioned method for updating the heartbeat recognition model, multiple historical recognition accuracy differences of the current heartbeat recognition model are obtained according to the current recognition accuracy and the recognition accuracy of the three previous adjacent times, and whether the current heartbeat recognition model meets the update condition is determined according to each historical recognition accuracy difference. This method verifies the recognition accuracy and the current recognition accuracy three times in a row, and can accurately obtain multiple historical recognition accuracy differences between the recognition accuracies of the current heartbeat recognition model, so that it can accurately determine whether the current heartbeat recognition model meets the update condition based on multiple historical recognition accuracy differences.
[0136] Based on the above embodiments, this embodiment is to Figure 8 The relevant contents of step S801 "According to the current recognition accuracy and the three previous adjacent recognition accuracies, obtaining multiple historical recognition accuracy differences of the current heartbeat recognition model" are introduced and explained. The above step S801 may include the following contents: according to the current recognition accuracy and the three previous adjacent recognition accuracies, the accuracy difference between each two adjacent historical recognition accuracies is calculated to obtain the historical recognition accuracy difference of the current heartbeat recognition model at each consecutive historical moment.
[0137] In this embodiment, the server can calculate the previous first recognition accuracy minus the current recognition accuracy to obtain the difference between the previous first recognition accuracy and the current recognition accuracy, and determine the difference as the first accuracy difference; it can also calculate the previous second recognition accuracy minus the previous first recognition accuracy to obtain the difference between the previous second recognition accuracy and the previous first recognition accuracy, and determine the difference as the second accuracy difference; it can also calculate the previous third recognition accuracy minus the previous second recognition accuracy to obtain the difference between the previous third recognition accuracy and the previous second recognition accuracy, and determine the difference as the third accuracy difference, and determine the first accuracy difference, the second accuracy difference and the third accuracy difference as multiple historical recognition accuracy differences of the current heartbeat recognition model.
[0138] In the above-mentioned method for updating the heartbeat recognition model, the accuracy difference between each two adjacent historical recognition accuracies is calculated based on the current recognition accuracy and the three previous adjacent recognition accuracies, and the historical recognition accuracy difference of the current heartbeat recognition model at each consecutive historical moment is obtained. This method can accurately calculate the accuracy difference between adjacent historical recognition accuracies through the current recognition accuracy and the three previous adjacent recognition accuracies, so that the historical recognition accuracy difference of the current heartbeat recognition model at each consecutive historical moment is more accurate.
[0139] Based on the above embodiments, this embodiment is to Figure 8 The relevant contents of step S801 "According to the current recognition accuracy and the recognition accuracy of the three previous adjacent times, obtaining multiple historical recognition accuracy differences of the current heartbeat recognition model" are introduced and explained. Fig. 9 As shown, the above step S801 may include the following contents:
[0140] S901: If the differences in the historical recognition accuracies are all greater than a second preset accuracy threshold, it is determined that the current heartbeat recognition model meets the update condition.
[0141] In this embodiment, each historical recognition accuracy difference is compared with a second preset accuracy threshold. If each historical recognition accuracy difference is greater than the second preset accuracy threshold, it is determined that the recognition accuracy of the current recognition model is gradually decreasing, indicating that the current recognition model cannot accurately recognize the current heartbeat data, and it is determined that the current heartbeat recognition model meets the update conditions.
[0142] S902: If any one of the historical recognition accuracy differences is less than or equal to a second preset accuracy threshold, it is determined that the current heartbeat recognition model does not meet the update condition.
[0143] In this embodiment, if one of the historical recognition accuracy differences is less than or equal to the second preset accuracy threshold, but other historical recognition accuracy differences are greater than the second preset accuracy threshold, then it is determined that although the accuracy of the current heartbeat recognition model has a downward trend, the degree of decline in accuracy is small, and the current recognition model can still accurately recognize the current heartbeat data, then it is determined that the current heartbeat recognition model does not meet the update conditions.
[0144] In the above-mentioned method for updating the heartbeat recognition model, each historical recognition accuracy difference is compared with the second preset accuracy threshold, and based on the comparison result, it can be accurately determined whether the current heartbeat recognition model meets the update conditions. If each historical recognition accuracy difference is greater than the second preset accuracy threshold, it is determined that the current heartbeat recognition model meets the update conditions. If any one of the historical recognition accuracy differences is less than or equal to the second preset accuracy threshold, it is determined that the current heartbeat recognition model does not meet the update conditions.
[0145] Based on the above embodiments, this embodiment is to Figure 2 The relevant contents of step S204 "updating the current heartbeat recognition model" are introduced and explained. Fig.10 As shown, the above step S204 may include the following contents:
[0146] S1001, obtaining multiple groups of updated heartbeat data and weights corresponding to each updated heartbeat data; the multiple groups of updated heartbeat data are labeled heartbeat data, and the labeled heartbeat data are determined based on the heartbeat data of the labeled type at the current moment and the heartbeat data of the unlabeled type at the historical moment.
[0147] In this embodiment, the server can determine part of the heartbeat data from the heartbeat data of unlabeled types at historical moments, label the part of the heartbeat data, determine the labeled part of the data and the heartbeat data of the labeled type at the current moment as labeled heartbeat data, and determine the labeled heartbeat data as multiple groups of updated heartbeat data. And according to the time corresponding to each group of updated heartbeat data, the weight of each group of updated heartbeat data is determined, for example, the weight corresponding to the updated heartbeat data corresponding to the current moment is higher, and the weight corresponding to the updated heartbeat data at the historical moment farther from the current moment is lower.
[0148] S1002: Update the current heartbeat recognition model according to each updated heartbeat data and the corresponding weight.
[0149] In this embodiment, the server can use multiple groups of updated heartbeat data and corresponding weights as sample data to retrain the current heartbeat recognition model until the current heartbeat recognition model converges again to obtain an updated heartbeat recognition model.
[0150] In the above-mentioned method for updating the heartbeat recognition model, multiple groups of updated heartbeat data and weights corresponding to each updated heartbeat data are obtained. The multiple groups of updated heartbeat data are labeled heartbeat data. The labeled heartbeat data is determined based on the heartbeat data of the labeled type at the current moment and the heartbeat data of the unlabeled type at the historical moment. The current heartbeat recognition model is updated according to each updated heartbeat data and the corresponding weight. When determining the updated heartbeat data, this method can accurately determine the labeled heartbeat data from the heartbeat data at the current moment and the heartbeat data of the unlabeled type at the historical moment by means of weights. Based on the labeled heartbeat data, more accurate updated heartbeat data can be obtained, so that the current heartbeat recognition model can be updated more accurately based on the updated heartbeat data.
[0151] Based on the above embodiment, this embodiment introduces and explains the relevant contents of the heartbeat recognition model test. Fig.11 As shown, the above method may also include the following contents:
[0152] S1101, testing the updated heartbeat recognition model using a first preset frequency.
[0153] In this embodiment, during the testing of the updated heartbeat recognition model, for example, if the current frequency is a detection every 6 hours, the first preset frequency can be a detection every 3 hours or 2 hours or other multiples. It is only necessary to ensure that the first preset frequency is greater than the current frequency.
[0154] S1102: If the updated heartbeat recognition model meets the performance requirements within the preset time, the updated heartbeat recognition model is tested with a second preset frequency; wherein the first preset frequency is greater than the second preset frequency.
[0155] In this embodiment, after the server tests the updated heartbeat recognition model for multiple times, and the recognition accuracy of the multiple tests is greater than the preset test accuracy threshold, it is determined that the updated heartbeat recognition model meets the performance requirements within the preset time length, and when the updated heartbeat recognition model is subsequently tested, the frequency is adjusted from the first preset frequency to the second preset frequency. For example, the second preset frequency in the subsequent test process is still to test the updated heartbeat recognition model once every 6 hours using the test heartbeat data.
[0156] In the above-mentioned method for updating the heartbeat recognition model, the updated heartbeat recognition model is tested with a first preset frequency. If the updated heartbeat recognition model meets the performance requirements within a preset time, the updated heartbeat recognition model is tested with a second preset frequency; wherein the first preset frequency is greater than the second preset frequency. The method adjusts the test frequency of the updated heartbeat recognition model in real time according to different situations, so that the updated heartbeat recognition model can be tested multiple times in a short period of time, so as to quickly determine whether the updated heartbeat recognition model has stable performance. If it is not stable, the model can be updated again more quickly, so that the most suitable and best-performing model can be used to recognize heartbeat data, thereby improving the accuracy of type recognition of heartbeat data.
[0157] In one embodiment, the updating method of the heartbeat recognition model is described in detail below. Fig.12 As shown, the method may include:
[0158] S1201, obtaining the heartbeat data of the target object with annotated types at the current moment and the annotated heartbeat type corresponding to the heartbeat data;
[0159] S1202, verifying the current heartbeat recognition model according to the heartbeat data, and determining the recognized heartbeat type of the target object;
[0160] S1203, obtaining the number of heartbeats of the same type in the marked heartbeat type and the identified heartbeat type;
[0161] S1204, determining the recognition accuracy of the current heartbeat recognition model according to the number of heartbeats of the same type;
[0162] S1205, obtaining the current recognition accuracy and historical recognition accuracy of the current heartbeat recognition model;
[0163] S1206, obtaining the annotated heartbeat type and the verification heartbeat type of the verification heartbeat data of the target object;
[0164] S1207, verifying the current heartbeat recognition model according to the annotated heartbeat type of the verification heartbeat data and the verification heartbeat type to obtain a verification accuracy;
[0165] S1208, if the accuracy difference between the previous recognition accuracy and the verification accuracy is greater than the first preset accuracy threshold, and the verification result is verification passed, it is determined that the current heartbeat recognition model meets the update condition;
[0166] S1209, if the accuracy difference between the previous recognition accuracy and the verification accuracy is less than or equal to the first preset accuracy threshold, and the verification result is verification failure, it is determined that the current heartbeat recognition model does not meet the update condition;
[0167] S1210, calculating the accuracy difference between every two adjacent historical recognition accuracies based on the current recognition accuracy and the three previous adjacent recognition accuracies, and obtaining the historical recognition accuracy difference of the current heartbeat recognition model at each consecutive historical moment;
[0168] S1211, if the historical recognition accuracy differences are all greater than a second preset accuracy threshold, determining that the current heartbeat recognition model meets the update condition;
[0169] S1212, if any one of the historical recognition accuracy differences is less than or equal to a second preset accuracy threshold, determining that the current heartbeat recognition model does not meet the update condition;
[0170] S1213, obtaining multiple groups of updated heartbeat data and weights corresponding to each updated heartbeat data;
[0171] S1214, updating the current heartbeat recognition model according to each updated heartbeat data and the corresponding weight;
[0172] S1215, testing the updated heartbeat recognition model using a first preset frequency;
[0173] S1216: If the updated heartbeat recognition model meets the performance requirements within the preset time, the updated heartbeat recognition model is tested using a second preset frequency.
[0174] Fig.13 A flow chart showing a method for updating a heartbeat recognition model, wherein the server determines whether to update the heartbeat recognition model based on the acquired labeled heartbeat data and recognized heartbeat data, by updating the initial heartbeat recognition model to the first updated heartbeat recognition model, updating the first updated heartbeat recognition model to the second updated heartbeat recognition model, and so on, so that the heartbeat recognition model can be more suitable for type recognition of the current heartbeat data at any time, thereby improving the recognition accuracy of the current heartbeat data.
[0175] Based on the same inventive concept, the embodiment of the present application also provides a heartbeat recognition model update system for implementing the heartbeat recognition model update method involved above. The implementation scheme for solving the problem provided by the system is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiment of the update system of one or more heartbeat recognition models provided below can refer to the limitations of the heartbeat recognition model update method above, and will not be repeated here.
[0176] In one embodiment, a heartbeat recognition model updating system is provided, the heartbeat recognition model updating system comprising a labeling device, a heartbeat device and a computer device, wherein:
[0177] A heartbeat device, used to obtain the initial heartbeat data of the target object at the current moment, and send the initial heartbeat data to the computer device;
[0178] A computer device, used for forwarding the initial heartbeat data to the annotation device;
[0179] A labeling device, used for receiving the initial heartbeat data sent by the computer device, labeling the type of the initial heartbeat data, and sending the heartbeat data with the labeled type at the current moment and the labeled heartbeat type to the computer device;
[0180] The computer device is also used to receive the heartbeat data of the annotated type and the annotated heartbeat type at the current moment sent by the annotation device; and verify the current heartbeat recognition model based on the heartbeat data to determine the recognized heartbeat type of the target object; the current heartbeat recognition model is a personalized heartbeat recognition model that matches the target object; based on each annotated heartbeat type and each recognized heartbeat type, determine whether the current heartbeat recognition model meets the update conditions; if the current heartbeat recognition model meets the update conditions, update the current heartbeat recognition model.
[0181] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0182] Based on the same inventive concept, the embodiment of the present application also provides a device for updating a heartbeat recognition model for implementing the method for updating a heartbeat recognition model involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiments of one or more heartbeat recognition model update devices provided below can refer to the limitations of the heartbeat recognition model update method above, and will not be repeated here.
[0183] In one embodiment, Fig.14 As shown, a device for updating a heartbeat recognition model is provided, comprising: an acquisition module 11, a first determination module 12, a second determination module 13 and an output module 14, wherein:
[0184] An acquisition module 11 is used to acquire the heartbeat data of the target object at the current moment and the annotated heartbeat type corresponding to the heartbeat data;
[0185] A first determination module 12 is used to verify the current heartbeat recognition model according to the heartbeat data, and determine the recognized heartbeat type of the target object; the current heartbeat recognition model is a personalized heartbeat recognition model that matches the target object;
[0186] A second determination module 13, for determining whether the current heartbeat recognition model meets the update condition according to each marked heartbeat type and each recognized heartbeat type;
[0187] The output module 14 is used to update the current heartbeat recognition model when the current heartbeat recognition model meets the update condition.
[0188] In one embodiment, the second determining module 13 includes: a first determining unit and a second determining unit, wherein:
[0189] A first determining unit, configured to determine the recognition accuracy of the current heartbeat recognition model according to each labeled heartbeat type and each recognized heartbeat type;
[0190] The second determining unit is used to determine whether the current heartbeat recognition model meets the update condition based on the recognition accuracy.
[0191] In one embodiment, the first determination unit is further used to obtain the number of heartbeats of the same type in the labeled heartbeat type and the identified heartbeat type; and determine the recognition accuracy of the current heartbeat recognition model according to the number of heartbeats of the same type.
[0192] In one embodiment, the second determination unit is further used to obtain the current recognition accuracy and the historical recognition accuracy of the current heartbeat recognition model; and determine whether the current heartbeat recognition model meets the update condition according to the current recognition accuracy and the historical recognition accuracy.
[0193] In one embodiment, the second determination unit is further used to verify the current heartbeat recognition model according to the current recognition accuracy and the previous recognition accuracy to obtain a verification result; and determine whether the current heartbeat recognition model meets the update condition according to the verification result.
[0194] In one embodiment, the second determination unit is also used to obtain the labeled heartbeat type and the verification heartbeat type of the verification heartbeat data of the target object; the verification heartbeat data is the heartbeat data of an unlabeled type in the heartbeat data; the current heartbeat recognition model is verified according to the labeled heartbeat type and the verification heartbeat type of the verification heartbeat data to obtain the verification accuracy; the verification result is determined according to the accuracy difference between the previous recognition accuracy and the verification accuracy.
[0195] In one embodiment, the second determination unit is further configured to determine that the verification result is passed when the accuracy difference is greater than a first preset accuracy threshold; and determine that the verification result is failed when the accuracy difference is less than or equal to the first preset accuracy threshold.
[0196] In one embodiment, the second determination unit is further used to determine that the current heartbeat recognition model meets the update condition if the verification result is a passed verification; and to determine that the current heartbeat recognition model does not meet the update condition if the verification result is a failed verification.
[0197] In one embodiment, the second determination unit is further used to obtain multiple historical recognition accuracy differences of the current heartbeat recognition model based on the current recognition accuracy and the three previous adjacent recognition accuracies; and determine whether the current heartbeat recognition model meets the update condition based on each historical recognition accuracy difference.
[0198] In one embodiment, the second determination unit is further used to calculate the accuracy difference between every two adjacent historical recognition accuracies based on the current recognition accuracy and the three previous adjacent recognition accuracies, and obtain the historical recognition accuracy difference of the current heartbeat recognition model at each consecutive historical moment.
[0199] In one embodiment, the second determination unit is further configured to determine that the current heartbeat recognition model meets the update condition when all historical recognition accuracy differences are greater than a second preset accuracy threshold;
[0200] If any one of the historical recognition accuracy differences is less than or equal to the second preset accuracy threshold, it is determined that the current heartbeat recognition model does not meet the update condition.
[0201] In one embodiment, the output module includes: an acquisition unit and an update unit, wherein:
[0202] An acquisition unit, used to acquire multiple groups of updated heartbeat data and weights corresponding to each updated heartbeat data; the multiple groups of updated heartbeat data are labeled heartbeat data, and the labeled heartbeat data are determined based on the heartbeat data of the labeled type at the current moment and the heartbeat data of the unlabeled type at the historical moment;
[0203] The updating unit is used to update the current heartbeat recognition model according to each updated heartbeat data and the corresponding weight.
[0204] In one embodiment, the device for updating the heartbeat recognition model further includes: a first test module and a second test module, wherein:
[0205] A first testing module, used to test the updated heartbeat recognition model using a first preset frequency;
[0206] The second test module is used to test the updated heartbeat recognition model at a second preset frequency when the updated heartbeat recognition model meets the performance requirements within a preset time period; wherein the first preset frequency is greater than the second preset frequency.
[0207] Each module in the above-mentioned updating device of the heartbeat recognition model can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0208] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the content of any one embodiment of the method for updating the heartbeat recognition model is implemented.
[0209] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the content of any one embodiment of the method for updating the heartbeat recognition model is implemented.
[0210] In one embodiment, a computer program product is provided, including a computer program, which, when executed by a processor, implements the content of any one of the embodiments of the method for updating a heartbeat recognition model.
[0211] 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, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.
[0212] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0213] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0214] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for updating a heartbeat recognition model, It is characterized in that The method comprises: Obtain the heartbeat data of the target object at the current moment with the marked type and the marked heartbeat type corresponding to the heartbeat data; Verifying the current heartbeat recognition model according to the heartbeat data to determine the recognized heartbeat type of the target object; the current heartbeat recognition model is a personalized heartbeat recognition model that matches the target object; Determining whether the current heartbeat recognition model meets an update condition according to each of the labeled heartbeat types and each of the recognized heartbeat types; If the current heartbeat recognition model meets the update condition, the current heartbeat recognition model is updated.
2. The method according to claim 1, It is characterized in that The determining, according to each of the labeled heartbeat types and each of the recognized heartbeat types, whether the current heartbeat recognition model satisfies an update condition comprises: Determining the recognition accuracy of the current heartbeat recognition model according to each of the labeled heartbeat types and each of the recognized heartbeat types; Based on the recognition accuracy, it is determined whether the current heartbeat recognition model meets an update condition.
3. The method according to claim 2, It is characterized in that The determining the recognition accuracy of the current heartbeat recognition model according to the marked heartbeat type and the recognized heartbeat type includes: Obtain the number of heartbeats of the same type in the marked heartbeat type and the identified heartbeat type; The recognition accuracy of the current heartbeat recognition model is determined according to the number of heartbeats of the same type.
4. The method according to claim 2 or 3, It is characterized in that The determining, based on the recognition accuracy, whether the current heartbeat recognition model satisfies an update condition comprises: Obtaining the current recognition accuracy and historical recognition accuracy of the current heartbeat recognition model; According to the current recognition accuracy and the historical recognition accuracy, it is determined whether the current heartbeat recognition model meets an update condition.
5. The method according to claim 4, It is characterized in that If the historical recognition accuracy includes the previous recognition accuracy, determining whether the current heartbeat recognition model meets the update condition according to the current recognition accuracy and the historical recognition accuracy includes: Verifying the current heartbeat recognition model according to the current recognition accuracy and the previous recognition accuracy to obtain a verification result; According to the verification result, it is determined whether the current heartbeat recognition model meets the update condition.
6. The method according to claim 5, It is characterized in that The verifying the current heartbeat recognition model to obtain a verification result includes: Acquire the marked heartbeat type and the verification heartbeat type of the verification heartbeat data of the target object; the verification heartbeat data is the heartbeat data of the unmarked type in the heartbeat data; Verifying the current heartbeat recognition model according to the annotated heartbeat type of the verification heartbeat data and the verification heartbeat type to obtain verification accuracy; A verification result is determined according to the accuracy difference between the previous recognition accuracy and the verification accuracy.
7. The method according to claim 6, It is characterized in that The step of determining the verification result according to the accuracy difference between the previous recognition accuracy and the verification accuracy comprises: If the accuracy difference is greater than the first preset accuracy threshold, the verification result is a passed verification; if the accuracy difference is less than or equal to the first preset accuracy threshold, the verification result is a failed verification.
8. The method according to claim 7, It is characterized in that Determining whether the current heartbeat recognition model meets an update condition according to the verification result includes: If the verification result is that the verification passes, it is determined that the current heartbeat recognition model meets the update condition; if the verification result is that the verification fails, it is determined that the current heartbeat recognition model does not meet the update condition.
9. The method according to claim 4, It is characterized in that If the historical recognition accuracy includes the recognition accuracies of three consecutive previous times, determining whether the current heartbeat recognition model meets the update condition according to the current recognition accuracy and the historical recognition accuracy includes: According to the current recognition accuracy and the three previous recognition accuracies, obtaining a plurality of historical recognition accuracy differences of the current heartbeat recognition model; According to each of the historical recognition accuracy differences, it is determined whether the current heartbeat recognition model meets an update condition.
10. The method according to claim 9, It is characterized in that The step of obtaining a plurality of historical recognition accuracy differences of the current heartbeat recognition model according to the current recognition accuracy and the three previous adjacent recognition accuracies includes: The accuracy difference between every two adjacent historical recognition accuracies is calculated according to the current recognition accuracy and the three previous adjacent recognition accuracies, so as to obtain the historical recognition accuracy difference of the current heartbeat recognition model at each consecutive historical moment.
11. The method according to claim 9, It is characterized in that The determining, based on each of the historical recognition accuracy differences, whether the current heartbeat recognition model meets the update condition comprises: If all of the historical recognition accuracy differences are greater than a second preset accuracy threshold, determining that the current heartbeat recognition model meets the update condition; If any one of the historical recognition accuracy differences is less than or equal to the second preset accuracy threshold, it is determined that the current heartbeat recognition model does not meet the update condition.
12. The method according to any one of claims 1 to 3, It is characterized in that The updating of the current heartbeat recognition model includes: Acquire multiple groups of updated heartbeat data and weights corresponding to each of the updated heartbeat data; the multiple groups of updated heartbeat data are labeled heartbeat data, and the labeled heartbeat data are determined based on the heartbeat data of the labeled type at the current moment and the heartbeat data of the unlabeled type at the historical moment; The current heartbeat recognition model is updated according to each of the updated heartbeat data and the corresponding weights.
13. The method according to claim 12, It is characterized in that The method further comprises: Testing the updated heartbeat recognition model using a first preset frequency; If the updated heartbeat recognition model meets the performance requirement within the preset time, testing the updated heartbeat recognition model with a second preset frequency; Wherein, the first preset frequency is greater than the second preset frequency.
14. A device for updating a heartbeat recognition model, It is characterized in that The device comprises: An acquisition module, used for acquiring the heartbeat data of the target object at the current moment with a marked type and the marked heartbeat type corresponding to the heartbeat data; A first determination module is used to verify the current heartbeat recognition model according to the heartbeat data to determine the recognized heartbeat type of the target object; the current heartbeat recognition model is a personalized heartbeat recognition model that matches the target object; A second determination module is used to determine whether the current heartbeat recognition model meets the update condition according to each of the marked heartbeat types and each of the recognized heartbeat types; The output module is used to update the current heartbeat recognition model when the current heartbeat recognition model meets the update condition.
15. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 13 are implemented.
16. A heartbeat recognition model updating system, It is characterized in that The heartbeat recognition model updating system comprises a labeling device and a heartbeat device and the computer device according to claim 13; The heartbeat device is used to obtain the initial heartbeat data of the target object at the current moment, and send the initial heartbeat data to the computer device; The computer device is used to forward the initial heartbeat data to the labeling device; The labeling device is used to receive the initial heartbeat data sent by the computer device, label the type of the initial heartbeat data, and send the heartbeat data with the labeled type at the current moment and the labeled heartbeat type to the computer device; The computer device is further used to receive the heartbeat data of the annotated type and the annotated heartbeat type at the current moment sent by the annotation device; and verify the current heartbeat recognition model according to the heartbeat data to determine the recognized heartbeat type of the target object; The current heartbeat recognition model is a personalized heartbeat recognition model that matches the target object; according to each of the labeled heartbeat types and each of the recognized heartbeat types, determining whether the current heartbeat recognition model meets the update condition; If the current heartbeat recognition model meets the update condition, the current heartbeat recognition model is updated.
17. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 13 are implemented.
18. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 13 are implemented.
