Disclosure of Invention
In order to solve the above problems, the present invention provides a myocardial infarction auxiliary determination method, a terminal device and a storage medium.
The specific scheme is as follows:
a myocardial infarction auxiliary judgment method comprises the following steps:
s1: acquiring an electrocardiogram of a patient within a period of time before the current moment, and extracting each ST value corresponding to each lead in each electrocardiogram;
s2: acquiring the ST value change trend of each lead in the electrocardiogram of the patient in the period of time according to the electrocardiogram of the period of time;
s3: calculating the deviation value of the ST myocardial infarction judgment threshold value and the ST myocardial infarction judgment threshold value according to the ST value of the latest time corresponding to each lead in the period of time;
s4: and judging whether the patient needs further examination and treatment according to the ST value change trend and the deviation value.
Furthermore, the method for extracting the ST value corresponding to the electrocardiogram comprises the following steps: the voltage value at the rated time after the J point is calculated as the ST value with the connecting line of the initial portions of the Q wave, the R wave, and the S wave as the baseline.
Further, the specific process of step S2 is:
s21: the ST values corresponding to the leads in the electrocardiogram in a period of time are sorted according to the time sequence to form an ST value sequence, the ST value serial number i is set to be 1, the ST value rising number p is set to be 0, and the rising number threshold value p is set to bemaxThe total number of ST values N;
s22: calculating the average value T of the first i ST valuesiAccording to its i +1 ST value Si+1Whether T is satisfied or not is judgedi<Si+1If so, go to S23; otherwise, go to S26;
s23: judging whether i-N-1 is true, if so, entering S27; otherwise, setting p to p +1, and proceeding to S24;
s24: judgment of p>pmaxIf yes, go to S27; otherwise, go to S25;
s25: removing the (i + 1) th ST value in the ST value sequence, and sorting the ST values again according to the time sequence, wherein i is (i + 1), N is (N-1), and returning to S22;
s26: making i equal to i +1, judging whether i equal to N is true or not, and if so, ending; otherwise, returning to S22;
s27: the ST value change trend is determined to be rising.
Further, the determination method in step S4 is: if the ST value of at least one lead changes to be upward and the deviation value is less than or equal to 0, the patient is determined to need further examination and treatment.
A myocardial infarction assistance determination terminal device comprising a processor, a memory and a computer program stored in the memory and operable on the processor, the processor implementing the steps of the method as described above in embodiments of the present invention when executing the computer program.
A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, carries out the steps of the method as described above for an embodiment of the invention.
By adopting the technical scheme, the invention can more accurately provide basis for diagnosing myocardial infarction by analyzing the change trend of the ST segment through analyzing the historical electrocardiogram data of the patient.
Detailed Description
To further illustrate the various embodiments, the invention provides the accompanying drawings. The accompanying drawings, which are incorporated in and constitute a part of this disclosure, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the embodiments. Those skilled in the art will appreciate still other possible embodiments and advantages of the present invention with reference to these figures.
The invention will now be further described with reference to the accompanying drawings and detailed description.
The first embodiment is as follows:
the embodiment of the invention provides a myocardial infarction auxiliary judgment method, as shown in fig. 1, which is a flow chart of the myocardial infarction auxiliary judgment method in the embodiment of the invention, and the method comprises the following steps:
s1: an electrocardiogram of the patient is acquired a period of time prior to the current time, and respective ST values corresponding to each lead in each electrocardiogram are extracted.
The method for extracting the ST value in the embodiment comprises the following steps: the voltage value at the rated time after the J point is calculated as the ST value with the line connecting the start portions of the Q wave, the R wave, and the S wave as the baseline. The rated time set in the embodiment is between 0.06 s and 0.08 s. Since fluctuation may occur at the J point, the voltage value at the rated time after the J point is acquired more accurately.
The period of time can be set by a person skilled in the art as desired, and the period of time is set to be half a month in this embodiment.
S2: and acquiring the ST value change trend of each lead in the electrocardiogram of the patient in the period of time according to the electrocardiogram of the period of time.
The specific determination process of the ST value variation trend of each lead in this embodiment is:
s21: sequencing ST values corresponding to leads in a electrocardiogram in a period of time according to a time sequence to form an ST value sequence, wherein the ST value sequence number i is 1, the ST value rising number p is 0, and a rising number threshold value p is set initiallymaxThe total number of ST values N;
s22: calculating the average value T of the first i ST valuesiAccording to its i +1 ST value Si+1Whether T is satisfied or not is judgedi<Si+1If so, go to S23; otherwise, go to S26;
s23: judging whether i-N-1 is true, if so, entering S27; otherwise, setting p to p +1, and proceeding to S24;
s24: judgment of p>pmaxIf yes, go to S27; otherwise, go to S25;
s25: removing the (i + 1) th ST value in the ST value sequence, and sorting the ST values again according to the time sequence, wherein i is (i + 1), N is (N-1), and returning to S22;
s26: judging whether i is true or not by making i +1, if so, judging that the ST value change trend is not rising, and ending; otherwise, returning to S22;
s27: the ST value change trend is determined to be rising.
S3: and calculating the deviation value of the ST myocardial infarction judgment threshold value according to the ST value of the latest time corresponding to each lead in the period of time.
Setting ST myocardial infarction judgment threshold value as STnThe deviation value is K, and the latest ST value in the period is ST1Then, the calculation formula of the deviation value K is:
K=STn-ST1
the ST myocardial infarction judgment threshold is a fixed value set according to medical standards, for example, in the V2 and V3 leads, the ST myocardial infarction judgment threshold is 0.2MV for men and 0.1MV for women, and in other leads, the ST myocardial infarction judgment threshold is 0.1MV for men and women.
S4: and judging whether the patient needs further examination and treatment according to the ST value change trend and the deviation value.
The specific determination method in this embodiment is: if the ST value of at least one lead changes to an upward trend and the deviation value is less than or equal to 0, the patient is determined to need further examination and treatment.
According to the embodiment of the invention, the change trend of the ST segment is analyzed by analyzing the historical electrocardiogram data of the patient, so that a basis can be provided for diagnosing myocardial infarction more accurately.
Example two:
the invention further provides a myocardial infarction auxiliary judgment terminal device, which comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor executes the computer program to realize the steps of the first embodiment of the method.
Further, as an executable scheme, the myocardial infarction auxiliary determination terminal device may be a computing device such as a desktop computer, a notebook, a palm computer, and a cloud server. The myocardial infarction auxiliary judgment terminal device can comprise, but is not limited to, a processor and a memory. It is understood by those skilled in the art that the above-mentioned composition structure of the myocardial infarction auxiliary determination terminal device is only an example of the myocardial infarction auxiliary determination terminal device, and does not constitute a limitation on the myocardial infarction auxiliary determination terminal device, and may include more or less components than the above, or combine some components, or different components, for example, the myocardial infarction auxiliary determination terminal device may further include an input/output device, a network access device, a bus, etc., which is not limited by the embodiment of the present invention.
Further, as an executable solution, the Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, a discrete hardware component, and the like. The general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc., and the processor is a control center of the myocardial infarction auxiliary judgment terminal device and connects various parts of the whole myocardial infarction auxiliary judgment terminal device by using various interfaces and lines.
The memory may be used to store the computer program and/or the module, and the processor may implement various functions of the myocardial infarction auxiliary determination terminal device by executing or executing the computer program and/or the module stored in the memory and calling data stored in the memory. The memory can mainly comprise a program storage area and a data storage area, wherein the program storage area can store an operating system and an application program required by at least one function; the storage data area may store data created according to the use of the mobile phone, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
The invention also provides a computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, carries out the steps of the above-mentioned method of an embodiment of the invention.
The module/unit integrated with the myocardial infarction auxiliary judgment terminal device can be stored in a computer readable storage medium if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), software distribution medium, and the like.
While the invention has been particularly shown and described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.