An auxiliary system for processing electrocardiogram interference waveform
By automatically identifying and labeling interference waveforms in electrocardiograms through the auxiliary system, it solves the workload and protocol compatibility problems of manual processing of interference waveforms in the existing technology, achieves efficient interference waveform processing, and improves doctors' work efficiency.
Patent Information
- Application Number
- CN202410853304.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-06-28
AI Technical Summary
When the existing electrocardiogram system processes long-term monitoring data, there are a large number of interference waveforms, which causes doctors to manually delete or mark interference waveforms before diagnosis, which increases the workload and needs to be compatible with multiple data protocols and the analysis of individual differences, making development difficult. big.
An auxiliary system is designed, including an interface extraction module, an operation processing module, a graphics file generation module, an interference waveform feature processing module and an interference waveform determination module. By simulating a doctor's operation, it can automatically identify and label interference waveforms in electrocardiograms, and skip Complex data parsing process, compatible with multiple monitors and window sizes.
Automatic batch processing of interference waveforms is realized, reducing repeated operations by doctors, improving work efficiency, and eliminating the need to consider data analysis and different data standards in the medical field.
Smart Images

Figure CN118398178B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image processing, and in particular to an auxiliary system for processing electrocardiogram interference waveforms. Background Art
[0002] Electrocardiogram (ECG or EKG) is an important medical test method for recording the electrical activity of the heart. A set of electrodes and wires are placed on a designated part of the patient to collect the tiny current changes generated by each heart beat to form a waveform. Some complex heart problems require long-term monitoring, such as 24 hours or 48 hours, through equipment such as Holter. When performing Holter monitoring, the patient is still carrying out a normal daily life. Some behaviors in daily life, such as driving and using electrical appliances, will cause electromagnetic interference to the ECG equipment, so there are a lot of interference waveforms in the collected ECG.
[0003] When ECG manufacturers develop ECG systems to read films, they generally perform preliminary processing on the waveform to eliminate interference. However, as the sampling frequency is getting higher and higher, and the waveform characteristics of each patient are clinically different, the preliminary processing is far from meeting clinical needs. On this basis, the ECG system provided by the ECG manufacturer provides doctors with a Figure 1 With the function of modifying the data, doctors can prepare for the diagnosis and analysis, that is, in the ECG system, select the interference waveform, delete it or mark it as "interference". The number of interference waves generated in an ECG based on 24 hours, 48 hours or 72 hours reaches thousands, which puts a great burden on doctors to prepare for the diagnosis. If the interference analysis is performed by combining the collected raw data with medical standards, it is necessary to adapt the standard protocol of ECG data. The protocols of ECG data include SCP-ECG, DAXML, DICOM and other types. The development process needs to be compatible with multiple protocols, which makes the development difficult. At the same time, the determination of ECG waveforms for different patients needs to be analyzed in combination with the actual situation of the patients, and there are individual differences. Summary of the invention
[0004] In order to solve the above problems, the present invention provides an auxiliary system for processing electrocardiogram interference waveforms, comprising:
[0005] An interface extraction module, an operation processing module, a graphic file generation module, an interference waveform feature processing module and an interference waveform determination module; wherein the interface extraction module and the operation processing module are deployed on the ECG system client provided by the ECG manufacturer; the graphic file generation module, the interference waveform feature processing module and the interference waveform determination module are deployed on the server side of the auxiliary system.
[0006] The interface extraction module is used to obtain display content from a specified display window in the electrocardiogram system interface, generate an acquisition file, and push the acquisition file to the graphic file generation module, wherein the acquisition file is a video file;
[0007] Operation processing module: used to obtain window events and simulate mouse and keyboard operations; the operation processing module includes an interface operation processing plug-in and an operation data processing unit. The interface operation processing plug-in is used to obtain window events, obtain operation instructions, and execute operation instructions to the ECG system interface; the operation data processing unit is used to generate simulated operation instructions and send the simulated operation instructions to the interface operation processing plug-in for execution;
[0008] Graphics file generation module: used to receive the acquisition file submitted by the interface extraction module and process the acquisition file into an electrocardiogram image file;
[0009] Interference waveform feature processing module: used to obtain the characteristics of the interference waveform area, locate the interference waveform area from the electrocardiogram image file, and determine the waveform mark to be processed;
[0010] Interference waveform determination module: used to generate an interference waveform identification group from the waveform identification to be processed, and send it to the operation data processing unit;
[0011] The information of the interference waveform identification group includes: the total duration T of the electrocardiogram sampling, and the waveform identification P. The total duration T is determined by the sampling end time and the sampling start time. The waveform identification P is determined by the sampling point time and the sampling start time. Each sampling point time determines an overall waveform. The waveform identification P is a unique identification for determining the overall waveform.
[0012] The operation data processing unit parses the interference waveform identification group into multiple simulation operation instructions, which are handed over to the interface operation processing plug-in for execution one by one; the simulation operation instructions include: the position of the image area corresponding to the waveform identification P, the mouse operation and keyboard operation to be performed on the position;
[0013] Before the interface operation processing plug-in executes the simulation operation instruction, the waveform marker is located according to the total duration T of the electrocardiogram sampling and the waveform marker P.
[0014] Among them, the interface extraction module includes a page extraction plug-in, a screen recording tool and a file transfer unit;
[0015] After the page extraction plug-in is running in the ECG system, it starts or stops screen recording in the ECG display window; after starting the screen recording, the screen recording tool is called to record the window, and after stopping, it is saved as a collection file;
[0016] Screen recording tools support the operating system's built-in screen recording tools or third-party screen recording tools;
[0017] The file transfer unit is used to push the collected files to the auxiliary system server.
[0018] Among them, after the page extraction plug-in starts screen recording, the interface operation processing plug-in of the scheduling operation processing module simulates the mouse to uniformly pull the scroll bar of the display window of the electrocardiogram at an appropriate speed.
[0019] Furthermore, the interface operation processing plug-in obtains the operation instruction including: the position of the mouse in the window selection, the mouse button mode, and the keyboard input instruction;
[0020] The interface operation processing plug-in also generates reference operation instructions, including the electrocardiogram area in the window selected by the doctor and the operation of marking the area as an interference waveform; the reference operation instructions are reference specifications for the data processing unit to generate simulation operation instructions.
[0021] Among them, the graphic file generation module converts the acquisition file into a horizontally long image file through the function provided by opencv; the content of the horizontally long image file is the waveform of the electrocardiogram, in which the horizontal axis is the signal acquisition time, and the vertical axis is multiple waveforms with consistent sampling time points; multiple waveforms with consistent sampling time points constitute an overall waveform; the duration corresponding to the sampling time point is the waveform identifier P of the waveform.
[0022] Furthermore, the interference waveform feature processing module provides an auxiliary system client; the doctor selects a waveform area as an interference waveform through the client; the interference waveform feature processing module identifies all areas that meet the image features from a long picture file based on the image features of the interference waveform, and extracts the duration corresponding to the sampling time point from the area as the waveform identifier of the interference waveform to be processed.
[0023] Furthermore, waveform marker positioning refers to: adjusting the window scroll bar according to the total time length T, waveform marker P and window parameters, so that the waveform corresponding to waveform marker P is in the visible area of the window, and then determining the position of the sampling time point corresponding to waveform marker P in the window.
[0024] When realizing waveform mark positioning, first perform horizontal scroll bar positioning, and after the horizontal scroll bar positioning is completed, perform sampling time point positioning;
[0025] The horizontal scroll bar positioning is used to place the waveform corresponding to the waveform mark within the displayable range of the current window;
[0026] The sampling time point positioning is used to determine the waveform corresponding to the waveform identifier P at the current window position.
[0027] The method for realizing horizontal scroll bar positioning includes:
[0028] Get the time period W, scroll bar length L, and slider length L2 of the ECG that can be displayed in a page window, and determine the horizontal scroll bar slider position as follows: L1 = K×(L-L2) / Kp; where K is the page number to which the waveform marker P belongs, expressed as K=math.ceil(P / W),
[0029] Kp is the number of pages that the electrocardiogram needs to be divided into corresponding to the total display time T, expressed as: Kp=math.ceil(T / W).
[0030] The realization of sampling time point positioning includes:
[0031] Get the width B of the window, determine the width F=B / W of the waveform mark P; get the time point Q corresponding to the waveform mark P in the current window, Q=((P%W) / W)×B; where P%W is the remainder of P divided by W;
[0032] The starting point and the ending point of the horizontal direction of the image area corresponding to the waveform marker P are calculated as: S(x1,y1) and E(x2,y2), where x1=QF / 2, x2=Q+F / 2; y1=y2=0.
[0033] According to the present invention, the complex electrocardiogram data analysis process can be skipped, and based on the functions already realized by the existing electrocardiogram system, the electrocardiogram image file can be extracted, the waveform features in the image file can be extracted, and the personalized interference waveform can be located without considering the waveform data analysis and different data standards in the medical field, and it can be compatible with a variety of displays and window sizes of the electrocardiogram system; at the same time, it can simulate the doctor's operation in the existing electrocardiogram system, and automatically batch process a large number of interference waveforms in the existing electrocardiogram system, thereby improving the doctor's work efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 is a schematic diagram of the structure of an auxiliary system for processing electrocardiogram interference waveforms according to an embodiment of the present invention;
[0035] Figure 2 is a timing diagram of processing interference waveforms by an auxiliary system for processing electrocardiogram interference waveforms provided by an embodiment of the present invention;
[0036] Figure 3 is a schematic diagram of a waveform region in an auxiliary system provided according to an embodiment of the present invention;
[0037] Figure 4 is a schematic diagram of positioning a horizontal scroll bar in an auxiliary system provided according to an embodiment of the present invention;
[0038] Figure 5 It is a schematic diagram of time point positioning in an auxiliary system provided according to an embodiment of the present invention. DETAILED DESCRIPTION
[0039] Based on the electrocardiogram system provided by the existing manufacturer, the present invention extracts the electrocardiogram waveform generated by the system and displayed in the window, processes it into a picture file, extracts the image features judged by the doctor as interference waveforms in the picture file, and uses this as a standard to extract and mark all similar interference waveforms in the picture file; after batch confirming all interference waveforms, the present invention simulates the mouse and keyboard operations of the doctor or staff in the electrocardiogram system window provided by the manufacturer, marks and processes all interference waveforms of the electrocardiogram in the electrocardiogram system, and realizes auxiliary processing of batch interference waveforms in the electrocardiogram system.
[0040] The specific implementation of the present invention is described in detail below with reference to the accompanying drawings.
[0041] Figure 1 A system structure diagram of an auxiliary system for processing electrocardiogram interference waveforms is provided, as shown in the figure, including the following parts:
[0042] P100 ECG system client: The auxiliary system for processing ECG interference waveforms provided by the present invention is based on the existing ECG system. It is an auxiliary system that assists doctors in implementing ECG system client operations to reduce doctors' repeated operations and improve work efficiency. Therefore, the solution of the present invention needs to rely on the client of the P100 ECG system. It needs to extract the ECG data to be processed from the P101 ECG system interface that runs the ECG system, collect the doctor's operation instructions, and then generate simulation operation instructions, and operate the simulation operation instructions on the client of the ECG system. Some modules of the auxiliary system proposed by the present invention are deployed on the client of the P100 ECG system; before the auxiliary system is executed, it is necessary to run the existing ECG system, activate the P101 ECG system interface, and determine the display window of the ECG to be processed.
[0043] The P100 ECG system client includes a P110 interface extraction module and a P120 operation processing module, wherein the P120 operation processing module is used to simulate the doctor's component operations on the ECG system client, such as using the mouse to determine the display window in the ECG system interface to be processed, capturing the cursor position, window events, controlling the cursor position, and simulating mouse and keyboard operations; the P110 interface extraction module is used to capture video from the display window in the ECG system interface to be processed. The details are as follows:
[0044] P110 interface extraction module: used to obtain display content from the display window in the ECG system interface to be processed, generate acquisition files, and push the acquisition files to the graphic file generation module;
[0045] The interface extraction module includes a page extraction plug-in, a screen recording tool, and a file transfer unit;
[0046] 1) After the page extraction plug-in runs in the ECG system, it records the screen in the ECG display window. The recording operation is triggered by manual keystrokes or requests sent by the server to start and stop. The manual start and stop method supports shortcut keys, such as Ctrl+1 to start and Ctrl+0 to stop. After starting, the screen recording tool is called to record the window, and after stopping, it is saved as a collection file;
[0047] After the screen recording is started, the interface operation processing plug-in of the operation processing module is scheduled to simulate the mouse to pull the scroll bar of the ECG display window at a suitable speed, so that all the waveforms of the ECG are displayed in the window at a suitable speed, so that all the waveforms of the ECG within the acquisition time period can be obtained during the screen recording process.
[0048] 2) Screen recording tools can support the screen recording tools that come with the operating system or third-party screen recording tools, such as screen recording software OBS. The acquisition file generated by screen recording is a video file, and its file format, parameters, and file size can be set according to computer parameters and intranet transmission requirements.
[0049] 3) The file transfer unit is used to establish a connection with the auxiliary system server and push the collected files to the graphic file generation module of the auxiliary system server; the connection method can be achieved through the network, equipment, etc.
[0050] P120 operation processing module: deployed on the client of the existing ECG system, used to obtain window events and simulate mouse and keyboard operations;
[0051] The operation processing module includes a P121 interface operation processing plug-in and a P122 operation data processing unit;
[0052] The P121 interface operation processing plug-in can select a window, obtain window events, obtain operation instructions from the ECG system interface, and execute operation instructions to the ECG system interface;
[0053] The interface operation processing plug-in selects the ECG display window to be processed, obtains and locates the properties of the window according to the shortcut key (such as Alt+0), so that subsequent operations are all performed in this window;
[0054] The interface operation processing plug-in obtains window events. It can be started by a shortcut key (such as Ctrl+2). After starting, it obtains window events executed by the user through the mouse. The window events that can be obtained include: the form Handle executes the form scrolling event, the scrolling event includes the scrolling event message of the WM_VSCROLL vertical scroll bar, the scrolling event message of the WM_HSCROLL horizontal scroll bar, etc.
[0055] The interface operation processing plug-in obtains operation instructions and can start the corresponding function through shortcut keys (such as Ctrl+3), including: identifying the position of the mouse in the window selection, the mouse button mode (select, release, single click, double click or right click), keyboard input instructions, etc. After the interface operation processing plug-in is started, the electrocardiogram area in the doctor selection window is obtained, and the operation of marking the area as an interference waveform generates a reference operation instruction, which is used for the subsequent generation of reference specifications for simulation operation instructions; for example: the doctor selects the area in the window, the starting and ending positions of the area are A(xa,0), B(xb,0), and the shortcut key Alt+R is entered to mark the waveform in the area as an interference waveform; the expression form of the reference operation instruction can be agreed upon, for example, it can be expressed as: {area:(xa,xb);key:(alt,R);mouse:()}, that is: the horizontal coordinate of the area (xa to xb), the keyboard operation alt,R, and the mouse no operation; in the present invention, the position of the electrocardiogram is based on the horizontal area, so the vertical area is ignored in the calculation.
[0056] The interface operation processing plug-in executes operation instructions and can be started through shortcut keys (such as Ctrl+4). After startup, it obtains simulation operation instructions, executes simulation operation instructions, and simulates the doctor's operations on the ECG system interface according to the simulation operation instructions. The operations that can be simulated include: dragging the scroll bar at a constant speed in the display window with the mouse, selecting the waveform area with the mouse, inputting shortcut keys on the keyboard, etc.
[0057] The P122 operation data processing unit is used to generate simulation operation instructions for multiple waveform markers and send the instructions to the interface operation processing plug-in for execution.
[0058] The multiple waveform identifiers come from an interference waveform identifier group sent by an interference waveform determination module in the auxiliary system server.
[0059] The simulation operation instruction is an operation instruction generated by the operation data processing unit for different waveform identifiers according to the reference operation instruction, including the waveform identifier to be processed and the corresponding image area information, mouse button mode, keyboard input instruction and other contents, and its expression is the same as that of the reference operation instruction;
[0060] The information in the interference waveform identification group includes: the total duration T of the electrocardiogram sampling (sampling end time-sampling start time), the waveform identification P (sampling point time-sampling start time); in the sampling result of the electrocardiogram, each sampling point time can determine a waveform, so the information corresponding to the sampling point time can be used as a unique identifier of the waveform, expressed as the waveform identification P.
[0061] For example: the ECG sampling start time is 10:15 on January 1, 2024, the sampling end time is 10:00 on January 2, 2024, and the sampling point time is 12:26:14 on January 1, 2024;
[0062] The total duration T is the time difference (in seconds) between 10:15 on January 1, 2024 and 10:00 on January 2, 2024, which is 85500;
[0063] The waveform marker P is the time difference (in seconds) between 10:15 on January 1, 2024 and 12:26:14 on January 1, 2024, which is 7874 seconds.
[0064] The auxiliary system for processing electrocardiogram interference waveform provided by the present invention includes a server and a client. The server can be arranged on the same computer device as the P100 electrocardiogram system client, or on other computer devices.
[0065] The server of the auxiliary system is used to obtain the screen recording results (i.e., acquisition files) pushed by the interface extraction module, and convert the video files into image files through tools (such as opencv); the image files are provided to the client, and the doctor selects multiple interference waveforms from the image files through the client; the server analyzes the characteristics of the interference waveforms selected by the doctor, and after confirmation, generates an interference waveform identification group consisting of multiple waveforms that meet the characteristics, and sends the interference waveform identification group to the operation data processing unit to generate simulation operation instructions.
[0066] Specifically, the server side of the auxiliary system includes:
[0067] P130 Graphics file generation module: used to receive the acquisition file submitted from the interface extraction module, and process the acquisition file into an electrocardiogram image file;
[0068] The acquisition file is a video file, which can be converted into a horizontally long image file through the function provided by opencv. The content of the horizontally long image file is the waveform of the electrocardiogram. A valid electrocardiogram consists of multiple waveforms, where the horizontal axis is the signal acquisition time and the vertical axis is the waveforms with the same sampling time points. Figure 3 In the present invention, multiple waveforms with the same sampling time points are processed as a whole waveform, such as Figure 3 In the figure, the framed part is the overall waveform at a time point. Based on this, the information related to the overall waveform at a time point includes: the start time and end time of the ECG sampling, the sampling time point, and the image features of the waveform area, where the duration corresponding to the sampling time point is the unique identifier of the waveform, that is, the waveform identifier P.
[0069] During the processing, based on the image size and the processing power of the server, the horizontally long image file is compressed without affecting the overall clarity, to facilitate subsequent image recognition and transmission during image recognition.
[0070] P140 interference waveform feature processing module: used to obtain interference waveform area features and locate the interference waveform area from the electrocardiogram image file;
[0071] The interference waveform feature processing module provides an auxiliary system client and a horizontally long image file to the client. The doctor selects the waveform area as the interference waveform through the client and submits it to the interference waveform feature processing module. The interference waveform feature processing module extracts the interference waveform based on the interference waveform image features (such as vector features) and other information through a third-party image recognition tool, that is, it identifies all areas that meet the interference waveform features from the long image file, extracts sampling time points from these areas, and uses the corresponding duration as the waveform identifier of the interference waveform to be processed.
[0072] In the interference waveform feature processing module, doctors can make personalized interference waveform confirmation for each ECG. For example, the interference waveform specified in a long image file of a patient is only used for recognition in that image file, thereby realizing personalized processing of ECG recognition for special patients. Interference waveform features in different ECGs can also be accumulated as a public interference waveform library for public image feature analysis.
[0073] The interference waveform feature processing module can also display all areas that meet the interference waveform features extracted by a third-party image recognition tool on the client, and after confirmation by the doctor, determine the waveform identification to be processed.
[0074] P150 interference waveform determination module: used to generate interference waveform identification groups according to the specifications for all waveform identifications to be processed and send them to P122 operation data processing unit.
[0075] The P122 operation data processing unit parses the interference waveform identification group into multiple simulation operation instructions, which are executed one by one by the interface operation processing plug-in.
[0076] When the interface operation processing plug-in executes the simulation operation instruction, it determines the waveform position and simulates the manual operation of the mouse and keyboard according to the simulation operation instruction. For example: first simulate the mouse to select the position of the interference waveform in the window, and simulate the keyboard to press the shortcut key to execute the operation annotated as the interference waveform.
[0077] Since the ECG sampling time is long, the ECG result cannot be fully displayed in one page of the window. Therefore, the waveform to be processed needs to be in the display area of the window. Therefore, the waveform identification positioning needs to be performed when the position of the interference waveform in the window is selected;
[0078] Since the graphics file generation module compresses the long image file, the image pixels will change. Different display settings and different window sizes will also cause the size of the window display area to be different. If a commonly used positioning method (such as pixel positioning) is used, each time the window or image changes, it is necessary to accurately capture the image attributes and window attributes and recalculate the pixels. In the electrocardiogram image, the proportion of the acquisition time point corresponding to the waveform mark to the total duration T will not change with the image clarity and the size of the window. In order to be compatible with the window size, display resolution, and image size of the electrocardiogram system client, and to reduce the amount of calculation when the window changes, the present invention performs waveform mark positioning through the proportional relationship between the total duration T and the waveform mark P.
[0079] Waveform marker positioning means: adjusting the window scroll bar according to the total time length T, waveform marker P and window parameters, so that the waveform corresponding to waveform marker P is in the visible area of the window, and then determining the position of the sampling time point corresponding to waveform marker P in the window.
[0080] When realizing waveform mark positioning, first perform horizontal scroll bar positioning, and after the horizontal scroll bar positioning is completed, perform sampling time point positioning.
[0081] 1) Horizontal scroll bar positioning is used to place the waveform corresponding to the waveform marker within the displayable range of the current window (such as Figure 4 shown)
[0082] First, determine the horizontal scroll bar position: obtain the time period W of the ECG that can be displayed in a page window, the scroll bar length L, and the slider length L2, and then calculate the horizontal scroll bar slider position: L1 = K×(L-L2) / Kp;
[0083] Where: K is the page number to which the waveform symbol P belongs. If implemented in Python, it is expressed as K=math.ceil(P / W).
[0084] Kp is the number of pages that the electrocardiogram needs to be divided into to display the total duration T. If implemented in Python, it is expressed as: Kp=math.ceil(T / W).
[0085] 2) Sampling time point positioning is used to determine the waveform corresponding to the waveform identifier P in the current window position:
[0086] The method of time point positioning is: obtain the width B of the window through tools (such as Python professional libraries), set the leftmost point at the bottom of the window as the origin O'(0,0), and the rightmost point O is O(B,0) (such as Figure 5 ), Figure 5 x=B;
[0087] Determine the waveform mark P corresponding to the graph width F=B / W;
[0088] Get the time point corresponding to the waveform marker P at the current window position Q, Q = ((P%W) / W) × B; where P%W is the remainder of P divided by W;
[0089] The waveform marker P is calculated to correspond to the horizontal starting and ending points of the image area, such as Figure 5 S(x1,y1) and E(x2,y2) are shown, where x1=QF / 2, x2=Q+F / 2; y1=y2=0;
[0090] Thus, the waveform corresponding to the waveform mark can be obtained at the current window position.
[0091] In the simulation operation instruction, the position of the image area corresponding to the waveform mark P, the mouse operation and keyboard operation to be performed on the position are provided to realize the simulation operation of the operator processing an interference waveform.
[0092] For example: the total duration T is 85500, the waveform mark P is 7874 seconds, the time period that can be displayed on one page is W=30 seconds, the scroll bar length is L=1134px, the slider length is L2=38px, and the window width is B=1200px;
[0093] The waveform marker positioning calculation process includes:
[0094] The page number K to which the waveform symbol P belongs = math.ceil(P / W) = math.ceil(7874 / 30) = 263;
[0095] The number of pages that the total time T corresponds to for the electrocardiogram is Kp = math.ceil(T / W) = math.ceil(85500 / 30) = 2850;
[0096] Horizontal scroll bar slider position: L1 = K×(L-L2) / Kp=263×(1134-38) / 2850=101px;
[0097] The waveform symbol P corresponds to the graph width F=B / W=1200 / 30=40;
[0098] The time point corresponding to the waveform marker P is at the current window position Q=((P%W) / W)×B=((7874%30) / 30)×1200=560px;
[0099] The waveform marker P corresponds to the horizontal starting point and ending point of the image area, S(540,0) and E(580,0).
[0100] After obtaining the horizontal starting point and ending point of the image area corresponding to the waveform mark P, the simulation operation instruction is generated according to the convention of the reference operation instruction: {area:(540,580);key:(alt,R);mouse:()}.
[0101] It should be noted that, according to the auxiliary system provided by the present invention, when processing the electrocardiogram interference waveform from the perspective of the window, in order to avoid the increase in overall calculation complexity due to the change in the size of the electrocardiogram image, no deletion processing of the interference waveform is provided.
[0102] The auxiliary system for processing electrocardiogram interference waveform provided by the present invention and the parts deployed in the electrocardiogram system terminal (interface extraction module, operation processing module) and the collaborative interaction process with the electrocardiogram system are as follows Figure 2 As shown:
[0103] After the ECG system is running, the auxiliary system server or the operator schedules the interface extraction module to trigger the screen recording. At the same time, the trigger operation processing module simulates the mouse to simulate pulling the scroll bar at an appropriate speed, so that all ECG waveforms within the acquisition time period can be obtained during the screen recording process; after the screen recording is completed, the interface extraction module pushes the video file to the auxiliary system server, converts it into an image file, and determines the waveform identification of the interference waveform on the server; the operation processing module identifies the manual operation in the ECG system, generates a reference operation instruction, generates a simulation operation instruction according to the waveform identification of the interference waveform, and runs the simulation operation instruction in the ECG system to simulate manual operation and realize the identification and labeling of interference waveforms in batches.
[0104] The present invention firstly skips the complicated electrocardiogram data analysis process, and starts from the functions realized by the electrocardiogram system, extracts the electrocardiogram picture file, and extracts the waveform features in the picture file. The waveform features at this time are image features, and the personalized interference waveform is analyzed only from the perspective of the image. Therefore, there is no need to consider waveform data analysis in the medical field, and there is no need to consider different data standards. The present invention is compatible with displays with different resolutions and windows of different sizes running the electrocardiogram system. Thirdly, on the basis of determining the interference waveform features, the present invention simulates the doctor's operation in the electrocardiogram system, assists the doctor in realizing automatic batch processing of interference waveforms, reduces the doctor's repeated operations, and improves the doctor's work efficiency.
[0105] The above disclosures are only several specific embodiments of the present invention; however, the present invention is not limited thereto, and any changes that can be conceived by those skilled in the art should fall within the protection scope of the present invention.
Claims
1. An auxiliary system for processing electrocardiogram interference waveforms, characterized in that: Based on the operation of the existing electrocardiogram system, it includes: an interface extraction module, an operation processing module, a graphic file generation module, an interference waveform feature processing module and an interference waveform determination module, wherein the interface extraction module and the operation processing module are deployed on the electrocardiogram system client; the graphic file generation module, the interference waveform feature processing module and the interference waveform determination module are deployed on the server side of the auxiliary system; The interface extraction module is used to obtain the display content from the display window in the electrocardiogram system interface, generate an acquisition file, and push the acquisition file to the graphic file generation module, wherein the acquisition file is a video file; the interface extraction module includes a page extraction plug-in, a screen recording tool and a file transfer unit, and the page extraction plug-in starts or stops screen recording in the display window of the electrocardiogram after the electrocardiogram system is running; after starting the screen recording, the screen recording tool is called to record the window, and after stopping, it is saved as an acquisition file; The operation processing module is used to obtain window events and simulate mouse and keyboard operations; the operation processing module includes an interface operation processing plug-in and an operation data processing unit, the interface operation processing plug-in is used to obtain window events, obtain operation instructions, and execute operation instructions to the electrocardiogram system interface, and the operation data processing unit is used to generate simulation operation instructions and send the simulation operation instructions to the interface operation processing plug-in for execution; After the page extraction plug-in starts screen recording, the interface operation processing plug-in of the scheduling operation processing module simulates the mouse to uniformly pull the scroll bar of the display window of the electrocardiogram at an appropriate speed; so that all the waveforms of the electrocardiogram are displayed in the window at an appropriate speed, so as to facilitate the acquisition of all the waveforms of the electrocardiogram within the acquisition time period during the screen recording process; the interface operation processing plug-in also collects the doctor's operation instructions and generates reference operation instructions, including the operation of the doctor selecting the electrocardiogram area in the window and marking the area as an interference waveform; the reference operation instruction is a reference specification for the operation data processing unit to generate a simulation operation instruction; The graphic file generation module is used to receive the acquisition file submitted by the interface extraction module and process the acquisition file into an electrocardiogram image file; Interference waveform feature processing module: used to obtain interference waveform area features, locate the interference waveform area from the ECG image file, and determine the waveform identifier to be processed; the interference waveform area features are image features in the ECG image file that are judged by the doctor to be interference waveforms; the interference waveform area is all areas identified from the ECG image file that meet the image features; Interference waveform determination module: used for generating an interference waveform identification group from the waveform identification to be processed and sending it to the operation data processing unit; The information of the interference waveform identification group includes: the total duration T of the electrocardiogram sampling, and the waveform identification P, wherein the total duration T is determined by the sampling end time and the sampling start time, and the waveform identification P is determined by the sampling point time and the sampling start time, each sampling point time determines an overall waveform, and the waveform identification P is a unique identification for determining the overall waveform; The operation data processing unit parses the interference waveform identification group into multiple simulation operation instructions, which are handed over to the interface operation processing plug-in for execution one by one; the simulation operation instructions include: the position of the image area corresponding to the waveform identification P, the mouse operation and keyboard operation to be performed on the position; Before the interface operation processing plug-in executes the simulation operation instruction, the waveform marker is positioned according to the total duration T of the electrocardiogram sampling in combination with the waveform marker P; the waveform marker positioning refers to: according to the total duration T, the waveform marker P and the window parameters, the window scroll bar is adjusted so that the waveform corresponding to the waveform marker P is in the visible area of the window, and then the position of the sampling time point corresponding to the waveform marker P in the window is determined; when realizing the waveform marker positioning, the horizontal scroll bar positioning is first performed, and after the horizontal scroll bar positioning is completed, the sampling time point positioning is performed; wherein, the horizontal scroll bar positioning is used to place the waveform corresponding to the waveform marker P in the displayable range of the current window; the sampling time point positioning is used to determine the waveform corresponding to the waveform marker P in the current window position.
2. The auxiliary system according to claim 1, characterized in that: The screen recording tool supports the screen recording tool provided by the operating system or a third-party screen recording tool; The file transmission unit is used to push the collected files to the auxiliary system server.
3. The auxiliary system according to claim 1, characterized in that: The content of the operation instruction obtained by the interface operation processing plug-in includes: the position of the mouse in the window selection, the mouse button mode, and the keyboard input instruction.
4. The auxiliary system according to claim 1, characterized in that: The graphic file generation module converts the acquisition file into a horizontally long image file through the function provided by opencv; the content of the horizontally long image file is a waveform diagram of the electrocardiogram, in which the horizontal axis is the signal acquisition time, and the vertical axis is multiple waveforms with consistent sampling time points; multiple waveforms with consistent sampling time points constitute an overall waveform; the duration corresponding to the sampling time point is the waveform identifier P of the waveform.
5. The auxiliary system according to claim 4, characterized in that: The interference waveform feature processing module provides an auxiliary system client; the doctor selects a waveform area as an interference waveform through the client; the interference waveform feature processing module identifies all areas that meet the image features from a long picture file based on the image features of the interference waveform, and extracts the duration corresponding to the sampling time point from the area as the waveform identifier of the interference waveform to be processed.
6. The auxiliary system according to claim 1, characterized in that: The horizontal scroll bar positioning includes: Get the time period W of the electrocardiogram that can be displayed in a page window, the length of the scroll bar L, and the length of the slider L2, and determine the position of the horizontal scroll bar slider: L1 = K×(L-L2) / Kp; Where, K is the page number to which the waveform symbol P belongs, expressed as K=math.ceil(P / W), Kp is the number of pages that the electrocardiogram needs to be divided into corresponding to the total display time T, expressed as: Kp=math.ceil(T / W).
7. The auxiliary system according to claim 1, characterized in that: The sampling time point positioning includes: Get the width B of the window, and determine the corresponding graphic width F=B / W of the waveform mark P; Get the time point corresponding to the waveform marker P at the current window position Q, Q = ((P%W) / W) × B; where P%W is the remainder of P divided by W; The starting point and the ending point of the horizontal direction of the image area corresponding to the waveform marker P are calculated as: S(x1,y1) and E(x2,y2), where x1=QF / 2, x2=Q+F / 2; y1=y2=0.
