CN118398178A - Auxiliary system for processing interference waveforms of electrocardiographic diagram - Google Patents

Auxiliary system for processing interference waveforms of electrocardiographic diagram Download PDF

Info

Publication number
CN118398178A
CN118398178A CN202410853304.6A CN202410853304A CN118398178A CN 118398178 A CN118398178 A CN 118398178A CN 202410853304 A CN202410853304 A CN 202410853304A CN 118398178 A CN118398178 A CN 118398178A
Authority
CN
China
Prior art keywords
waveform
module
window
file
electrocardiogram
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202410853304.6A
Other languages
Chinese (zh)
Other versions
CN118398178B (en
Inventor
蒲艳
黄河清
谷天宇
高峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guizhou Zhongzhi Heyi Technology Development Co ltd
Original Assignee
Guizhou Zhongzhi Heyi Technology Development Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guizhou Zhongzhi Heyi Technology Development Co ltd filed Critical Guizhou Zhongzhi Heyi Technology Development Co ltd
Priority to CN202410853304.6A priority Critical patent/CN118398178B/en
Publication of CN118398178A publication Critical patent/CN118398178A/en
Application granted granted Critical
Publication of CN118398178B publication Critical patent/CN118398178B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Measurement And Recording Of Electrical Phenomena And Electrical Characteristics Of The Living Body (AREA)

Abstract

The invention discloses an auxiliary system for processing an interference waveform of an electrocardio graph, which comprises the following components: the device comprises an interface extraction module, an operation processing module, a graphic file generation module, an interference waveform characteristic processing module and an interference waveform determining module; the interface extraction module is used for acquiring the acquisition file and pushing the acquisition file to the graphic file generation module; and an operation processing module: the method is used for acquiring window events and simulating mouse and keyboard operations; a graphics file generation module: the system is used for receiving the acquisition file and processing the acquisition file into an electrocardiogram image file; the interference waveform characteristic processing module is used for: for determining a waveform identification to be processed; an interference waveform determining module: the operation processing module is used for generating an interference waveform identification group and sending the interference waveform identification group to the operation processing module; the operation processing module analyzes the interference waveform identification group into a plurality of simulation operation instructions, and the simulation operation instructions are executed one by one. According to the technical scheme, the operation of a doctor in an electrocardiogram system can be simulated, a plurality of interference waveforms can be automatically processed in batches, and the working efficiency of the doctor is improved.

Description

Auxiliary system for processing interference waveforms of electrocardiographic diagram
Technical Field
The invention relates to the technical field of image processing, in particular to an auxiliary system for processing an interference waveform of an electrocardio graph.
Background
Electrocardiogram (ECG or EKG) is an important medical test for recording the electrical activity of the heart, and a waveform is formed by a set of electrodes and leads which collect minute changes in current produced by each beat of the heart at a designated portion of the patient. Some complex cardiac problems require long-term, e.g., 24 hour, 48 hour monitoring by devices such as dynamic electrocardiographs (Holter). When monitoring dynamic electrocardiogram, the patient still has normal daily life, and some behaviors in daily life, such as driving and using electric appliances, are subjected to electromagnetic interference, so that a large number of interference waveforms exist in the collected electrocardiogram.
When an electrocardiograph manufacturer develops an electrocardiograph system to read a film, the waveform is generally subjected to preliminary treatment of interference, but along with the current higher sampling frequency, the waveform characteristics of each patient are clinically different, so that the preliminary treatment is far from clinical requirements. On the basis, the electrocardiogram system provided by an electrocardiogram manufacturer provides the function of modifying the electrocardiogram while reading the diagram, and a doctor can prepare before performing diagnostic analysis, namely, in the electrocardiogram system, an interference waveform is selected and deleted or marked as 'interference', and the number of interference waves generated in an electrocardiogram based on 24 hours, even 48 hours and 72 hours reaches thousands, so that the doctor generates great burden in the preparation before diagnosis. If the interference analysis is carried out by combining the acquired original data with the medical standard, standard protocols of the electrocardiographic data are required to be adapted, the electrocardiographic data protocols comprise SCP-ECG, DAXML, DICOM and other types, the research and development process is required to be compatible with various protocols, and the development difficulty is high; meanwhile, the electrocardiographic waveforms of different patients are determined to be combined with the actual condition analysis of the patients, and individual differences exist.
Disclosure of Invention
In order to solve the above problems, the present invention provides an auxiliary system for processing an interference waveform of an electrocardiographic, comprising:
The device comprises an interface extraction module, an operation processing module, a graphic file generation module, an interference waveform characteristic processing module and an interference waveform determining module; the interface extraction module and the operation processing module are deployed at an electrocardiogram system client provided by an electrocardiogram manufacturer; the image file generating module, the interference waveform characteristic processing module and the interference waveform determining module are deployed at the service end of the auxiliary system.
The interface extraction module is used for acquiring display content from a designated display window in an electrocardiogram system interface, generating an acquisition file and pushing the acquisition file to the graphic file generation module, wherein the acquisition file is a video file;
and an operation processing module: the method is used for acquiring window events and simulating mouse and keyboard operations; the operation processing module comprises an interface operation processing plug-in and an operation data processing unit, and the interface operation processing plug-in is used for acquiring window events, acquiring operation instructions and executing the operation instructions to an electrographic system interface; the operation data processing unit is used for generating a simulation operation instruction and sending the simulation operation instruction to the interface operation processing plug-in for execution;
A graphics file generation module: the system comprises an interface extraction module, an electrocardiographic image processing module and a storage module, wherein the interface extraction module is used for receiving an acquisition file submitted by the interface extraction module and processing the acquisition file into an electrocardiographic image file;
The interference waveform characteristic processing module is used for: the method comprises the steps of acquiring characteristics of an interference waveform area, positioning the interference waveform area from an electrocardiographic image file, and determining a waveform identifier to be processed;
an interference waveform determining module: the method comprises the steps of generating an interference waveform identification group from a waveform identification to be processed and sending the interference waveform identification group to an operation data processing unit;
Wherein the information of the interference waveform identification group includes: the method comprises the steps of determining the total time length T of electrocardiographic sampling and a waveform identifier P, wherein the total time length T is determined by sampling end time and sampling start time, the waveform identifier P is determined by sampling point time and sampling start time, each sampling point time determines an integral waveform, and the waveform identifier P is a unique identifier for determining the integral waveform;
The operation data processing unit analyzes the interference waveform identification group into a plurality of simulation operation instructions, and the simulation operation instructions are transmitted to the interface operation processing plug-in unit for execution one by one; the simulation operation instruction comprises: the waveform mark P corresponds to the position of the image area, the mouse operation to be executed on the position and the keyboard operation;
Before the interface operation processing plug-in executes the simulation operation instruction, waveform identification positioning is carried out according to the total duration T of electrocardiograph sampling and the waveform identification P.
The interface extraction module comprises a page extraction plug-in, a screen recording tool and a file transmission unit;
after the page extraction plug-in runs in the electrocardiogram system, a screen recording is started or stopped in a display window of the electrocardiogram; after the screen recording is started, a screen recording tool is called to record the screen of the window, and the window is saved as an acquisition file after the screen recording is stopped;
The screen recording tool supports a screen recording tool or a third party screen recording tool carried by an operating system;
the file transmission unit is used for pushing the acquired file to the auxiliary system server side.
After the page extraction plug-in starts screen recording, the interface operation processing plug-in of the scheduling operation processing module simulates a mouse to pull the display window scroll bar of the electrocardiogram at a proper speed at a uniform speed.
Further, the content of the operation instruction obtained by the interface operation processing plug-in unit includes: the mouse inputs instructions at the selected position of the window, the mode of mouse key and keyboard;
The interface operation processing plug-in also generates a reference operation instruction, including an electrocardiogram area in a window selected by a doctor and an operation of marking the area as an interference waveform; the reference operation instruction is a reference specification for the data processing unit to generate the simulated operation instruction.
The graphic file generation module converts the acquired file into a transverse long picture file through a function provided by opencv; the content of the transverse long picture file is a waveform chart of an electrocardiogram, wherein the transverse axis is signal acquisition time, and the longitudinal direction is waveforms with consistent sampling time points; the waveforms with the same sampling time points form an integral waveform; the duration corresponding to the sampling time point is the waveform identifier P of the waveform.
Further, the interference waveform characteristic processing module provides an auxiliary system client; a doctor selects a waveform area as an interference waveform through a client; the interference waveform feature processing module identifies all areas conforming to the image features from the long picture file according to the image features of the interference waveform, and extracts the duration corresponding to the sampling time point from the areas as the waveform identification of the interference waveform to be processed.
Further, the waveform identification positioning finger: and adjusting the window scroll bar according to the total duration T, the waveform identifier P and the window parameters, so that the position of the sampling time point corresponding to the waveform identifier P in the window is determined after the waveform corresponding to the waveform identifier P is in the window visible region.
When the waveform identification positioning is realized, firstly, horizontal scroll bar positioning is carried out, and after the horizontal scroll bar positioning is finished, sampling time point positioning is carried out;
the horizontal scroll bar is positioned to enable the waveform corresponding to the waveform identifier to be in a displayable range of the current window;
The sampling time point positioning is used for determining that the waveform corresponding to the waveform identification P is at the current window position.
The method for realizing the horizontal scroll bar positioning comprises the following steps:
Acquiring a time period W, a rolling bar length L and a sliding block length L2 of an electrocardiogram which can be displayed by a page window, and determining the sliding block position of the horizontal rolling bar as follows: l1=k× (L-L2)/Kp; wherein K is the page number to which the waveform identification P belongs, expressed as K=math.ceil (P/W),
Kp is the number of pages to be divided of the electrocardiogram corresponding to the total time length T, and is expressed as: kp=math.
Implementing sampling time point positioning includes:
Acquiring the width B of a window, and determining the width F=B/W of a graph corresponding to the waveform mark P; acquiring the position Q, Q= ((P% W)/W) x B of the waveform identifier P corresponding to the time point at the current window; wherein P% W is P divided by W to obtain remainder;
the starting point and the ending point of the waveform mark P corresponding to the transverse direction of the image area are calculated as follows: s (x 1, y 1), E (x 2, y 2), wherein x1=q-F/2, x2=q+f/2; y1=y2=0.
According to the invention, the complex electrocardiographic data analysis process can be skipped, the image file of the electrocardiograph is extracted based on the realized functions of the existing electrocardiographic system, the waveform characteristics in the image file are extracted, the personalized interference waveform is positioned, the waveform data analysis in the medical field and different data standards do not need to be considered, and the size of various displays and windows of the electrocardiographic system can be compatibly executed; meanwhile, the operation of doctors in the existing electrocardiogram system can be simulated, a large number of interference waveforms can be automatically processed in batches in the existing electrocardiogram system, and the working efficiency of the doctors is improved.
Drawings
FIG. 1 is a schematic diagram of an auxiliary system for processing an electrocardiogram disturbance waveform according to an embodiment of the present invention;
FIG. 2 is a timing diagram of an auxiliary system for processing an electrocardiogram disturbance waveform according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of waveform regions in an auxiliary system provided according to an embodiment of the present invention;
FIG. 4 is a schematic illustration of horizontal scrollbar positioning in an assistance system provided according to an embodiment of the invention;
fig. 5 is a schematic diagram of time point positioning in an auxiliary system according to an embodiment of the present invention.
Detailed Description
On the basis of an electrocardiogram system provided by the existing manufacturer, the invention extracts the electrocardiogram waveform which is generated by the system and displayed in a window, processes the electrocardiogram waveform into a picture file, extracts the image characteristics which are judged as interference waveforms by doctors in the picture file, and extracts and marks all similar interference waveforms in the picture file by taking the image characteristics as a standard; after confirming all interference waveforms in batches, simulating mouse and keyboard operations of an electrocardiograph system window provided by a doctor or a worker in a manufacturer, marking and processing all interference waveforms of the electrocardiograph in the electrocardiograph system, and realizing auxiliary processing of batch interference waveforms in the electrocardiograph system.
The following describes in detail the specific implementation of the present invention with reference to the drawings accompanying the specification.
FIG. 1 provides a system block diagram of an auxiliary system for processing an electrocardiogram disturbance waveform, as shown, comprising the following:
P100 Electrocardiogram System client: the auxiliary system for processing the electrocardiogram interference waveform is based on the existing electrocardiogram system, and is an auxiliary system for assisting doctors in realizing client operation of the electrocardiogram system, so that repeated operations of the doctors are reduced, and the working efficiency is improved. Therefore, the proposal of the invention depends on the client of the P100 electrocardiogram system, the electrocardiogram data to be processed is extracted from the P101 electrocardiogram system interface of the running electrocardiogram system, the operation instruction of the doctor is collected and then the simulation operation instruction is regenerated, and the simulation operation instruction is operated at the client of the electrocardiogram system. The auxiliary system provided by the invention is partially deployed at the client of the P100 electrocardiogram system; before the auxiliary system is executed, the existing electrocardiogram system is required to be operated, the P101 electrocardiogram system interface is activated, and the display window of the electrocardiogram to be processed is determined.
The P120 operation processing module is used for simulating the part operation of a doctor on the electrocardiograph system client, for example, determining a display window in an electrocardiograph system interface to be processed through a mouse, capturing the position of a cursor and the event of the window, controlling the position of the cursor and simulating the operation of a mouse keyboard; the P110 interface extraction module is used for carrying out video acquisition from a display window in an electrocardiogram system interface to be processed. The method comprises the following steps:
P110 interface extraction module: the system comprises a graphic file generation module, a display window, a display content acquisition module and a graphic file generation module, wherein the display window is used for acquiring display content from an electrocardiographic system interface to be processed, generating an acquisition file and pushing the acquisition file to the graphic file generation module;
The interface extraction module comprises a page extraction plug-in, a screen recording tool and a file transmission unit;
1) After the page extraction plug-in runs in the electrocardiogram system, recording a screen on a display window of the electrocardiogram, wherein the screen recording operation is triggered to start and stop by a manual key or a request sent by a server; the manual starting and stopping modes support shortcut keys, such as Ctrl+1 starting and Ctrl+0 stopping, a screen recording tool is called to record a screen of a window after the starting, and the window is saved as an acquisition file after the stopping;
After the screen recording is started, the interface operation processing plug-in unit of the operation processing module is simultaneously scheduled to simulate the mouse to pull the display window scroll bar of the electrocardiogram at a constant speed at a proper speed, so that all waveforms of the electrocardiogram are displayed at a window at a proper speed, and all waveforms of the electrocardiogram in an acquisition time period can be conveniently acquired in the screen recording process.
2) The logging tool may support a logging tool that is self-contained with the operating system or a third party logging tool, such as a logging software obs for logging. The acquisition file generated by the screen is a video file, and the file format, parameters and file size of the acquisition file can be set according to the computer parameters and the intranet transmission requirements.
3) The file transmission unit is used for establishing connection with the auxiliary system server and pushing the acquired file to the graphic file generation module of the auxiliary system server; the connection mode can be realized by a network, equipment and the like.
P120 operation processing module: the system is deployed at a client of the existing electrocardiogram system and is used for acquiring window events and simulating mouse and keyboard operations;
the operation processing module comprises a P121 interface operation processing plug-in and a P122 operation data processing unit;
The P121 interface operation processing plug-in can select a window from an electrocardiogram system interface, acquire a window event, acquire an operation instruction and execute the operation instruction to the electrocardiogram system interface;
the interface operation processing plug-in selects an electrocardiogram display window to be processed, acquires and positions the attribute of the window according to a shortcut key (such as Alt+0), and facilitates the follow-up operation to be carried out in the window;
The interface operation processing plug-in obtains window events, which can be started by a shortcut key (such as ctrl+2), and obtains window events executed by a user through a mouse after the startup, wherein the window events which can be obtained include: the frame Handle executes frame scrolling events, the scrolling events comprise a scrolling event message of a WM_ VSCROLL vertical scroll bar, a scrolling event message of a WM_ HSCROLL horizontal scroll bar and the like;
The interface operation processing plug-in obtains an operation instruction, and can start corresponding functions through a shortcut key (such as ctrl+3), including: and identifying the position of the mouse selected in the window, the mode of mouse key pressing (selected, released, single-click, double-click or right-click), keyboard input instructions and other contents. After the interface operation processing plug-in is started, acquiring an electrocardiogram area in a doctor selection window, marking the area as an operation of interference waveform to generate a reference operation instruction, and using the reference instruction to generate a reference specification of a simulation operation instruction subsequently; for example: the doctor selects a region in the window, the starting point and the end point of the region are A (xa, 0), B (xb, 0), a shortcut key Alt+R is input, and the waveform of the region is marked as an interference waveform; the expression of the reference operation instruction may be contracted, for example, expressed as: { area (xa, xb); key (alt, R); mouse: () }, i.e.: the abscissa (xa to xb) of the area, keyboard operation alt, R, mouse no operation; in the present invention, the position of the electrocardiogram is based on the lateral area, so the longitudinal area is neglected in calculation.
The interface operation processing plug-in executes an operation instruction, can be started through a shortcut key (such as Ctrl+4), acquires a simulation operation instruction after the starting, executes the simulation operation instruction, simulates the operation of a doctor on an electrocardiogram system interface according to the simulation operation instruction, and comprises the following steps: the mouse pulls the scroll bar at a constant speed on the display window, the mouse selects the waveform area, the keyboard inputs shortcut keys and the like.
The P122 operation data processing unit is used for generating simulation operation instructions aiming at a plurality of waveform identifiers and sending the instructions to the interface operation processing plug-in for execution.
The plurality of waveform identifications are from an interference waveform identification group transmitted by an interference waveform determining module in the auxiliary system server.
The simulation operation instruction is an operation instruction generated by the operation data processing unit according to the reference operation instruction and comprises the waveform identification to be processed, corresponding image area information, a mouse button mode, a keyboard input instruction and other contents, and the expression mode of the simulation operation instruction is the same as the expression mode of the reference operation instruction;
The information in the interference waveform identification group includes: the total duration T of electrocardiographic 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 that the information corresponding to the sampling point time can be used as a unique identifier of the waveform and expressed as a waveform identifier P.
For example: the electrocardiograph sampling start time is 2024, 1 month, 1 day, 10 points and 15 minutes, the sampling end time is 2024, 1 month, 2 days, 10 points and the sampling point time is 2024, 1 month, 1 day, 12 points, 26 minutes and 14 seconds;
the total time length T is 85500, which is the time difference (unit second) between 10 points 15 on 1 month of 2024 and 10 points on 2 months of 2024;
The waveform mark P is a time difference (unit seconds) of 2024, 1 month, 1 day, 10 points 15 and 2024, 1 month, 1 day, 12 points 26 minutes and 14 seconds, 7874 seconds.
The auxiliary system for processing the electrocardiogram interference waveforms comprises a server and a client, wherein the server can be arranged on the same computer equipment as the client of the P100 electrocardiogram system or can be arranged on other computer equipment.
The server side of the auxiliary system is used for acquiring a screen recording result (namely, an acquisition file) pushed by the interface extraction module, and converting the video file into a picture file through a tool (such as opencv); providing the picture file to a client, and selecting a plurality of interference waveforms from the picture file by a doctor through the client; the server analyzes the characteristics of the interference waveform selected by the doctor, generates an interference waveform identification group composed of a plurality of waveforms conforming to the characteristics after confirmation, and sends the interference waveform identification group to the operation data processing unit to generate a simulation operation instruction.
Specifically, the service end of the auxiliary system includes:
P130 graphics file generation module: the system comprises an interface extraction module, an electrocardiographic image acquisition module and a storage module, wherein the interface extraction module is used for receiving an acquisition file submitted by the interface extraction module and processing the acquisition file into an electrocardiographic image file;
The acquisition file is a video file, and can be converted into a transverse long picture file through the function provided by opencv. The content of the transverse long picture file is a waveform diagram of an electrocardiogram, and one effective electrocardiogram consists of a plurality of waveform diagrams, wherein the transverse axis is signal acquisition time, and the longitudinal axis is waveforms with consistent sampling time points, and the waveform diagram is shown in fig. 3. In the present invention, a plurality of waveforms having identical sampling time points are processed as one integral waveform, and as shown in fig. 3, the framed portion is the integral waveform at one time point. Based on this, the information related to the overall waveform at one point in time includes: the electrocardiographic sampling start time and end time, sampling time points and waveform region image characteristics, wherein the time length corresponding to the sampling time points is the unique identifier of the waveform, namely the waveform identifier P.
In the processing process, the transverse long picture file is compressed according to the image size and the processing capacity of the server under the condition of not affecting the overall definition, so that the subsequent image recognition and the transmission during the image recognition are facilitated.
P140 interference waveform characteristic processing module: the method comprises the steps of acquiring characteristics of an interference waveform area, and positioning the interference waveform area from an electrocardiogram sheet file;
The interference waveform characteristic processing module provides an auxiliary system client and a transverse long picture file to the client, a doctor selects a waveform region as an interference waveform through the client and submits the waveform region to the interference waveform characteristic processing module, the interference waveform characteristic processing module extracts the interference waveform through a third party image recognition tool according to information such as interference waveform image characteristics (such as vector characteristics) and the like, namely all regions conforming to the interference waveform characteristics are recognized from the long picture file, sampling time points are extracted from the regions, and corresponding duration is used as waveform identification of the interference waveform to be processed.
In the interference waveform characteristic processing module, a doctor can perform personalized interference waveform confirmation on each electrocardiogram, for example, the interference waveform appointed from a certain long picture file of a certain patient is only used for identifying in the picture file of the heart, so that personalized treatment of special patient electrocardiogram identification is realized; the interference waveform characteristics in different electrograms can also be accumulated as a common interference waveform library for common image characteristic analysis.
The interference waveform characteristic processing module can also display all areas which are extracted by the third-party image recognition tool and accord with the interference waveform characteristics on the client, and after the areas are confirmed by a doctor, the waveform identification to be processed is determined.
P150 interference waveform determination module: and the method is used for generating an interference waveform identification group according to the specifications for all the waveform identifications to be processed and sending the interference waveform identification group to the P122 operation data processing unit.
And P122, analyzing the interference waveform identification group into a plurality of simulation operation instructions by the operation data processing unit, and transmitting the simulation operation instructions to the interface operation processing plug-in for execution one by one.
When the interface operation processing plug-in executes the simulation operation instruction, determining the waveform position, and simulating the operation of a worker on a mouse and a keyboard according to the simulation operation instruction, for example: firstly, simulating the position of the interference waveform in the selected window of the mouse, and executing the operation remarked as the interference waveform by pressing a shortcut key by a simulated keyboard.
Because the electrocardiograph sampling time is long, the electrocardiograph result cannot be displayed completely in one page of the window, and therefore the waveform to be processed is required to be positioned in the display area of the window, and waveform identification positioning is required when the position of the interference waveform in the window is selected;
Because the image file generating module compresses the long image file, the image pixels can be changed, and different displays and different window sizes can also enable the sizes of the display areas of the windows to be different. If a common positioning mode (such as pixel positioning) is adopted, each time a window or a picture changes, the picture attribute and the window attribute need to be captured again accurately, and the pixel point needs to be recalculated. In the electrocardiogram picture, the proportion of the acquisition time point corresponding to the waveform identifier to the total duration T does not change along with the image definition and the size of the window. In order to be compatible with the size of a window of an electrocardiogram system client, the resolution of a display and the size of a picture, and reduce the calculated amount when the window changes, the waveform identification positioning is carried out through the proportional relation between the total duration T and the waveform identification P.
Waveform identification positioning finger: and adjusting the window scroll bar according to the total duration T, the waveform identifier P and the window parameters, so that the position of the sampling time point corresponding to the waveform identifier P in the window is determined after the waveform corresponding to the waveform identifier P is in the window visible region.
When the waveform identification positioning is realized, firstly, horizontal scroll bar positioning is carried out, and after the horizontal scroll bar positioning is finished, sampling time point positioning is carried out.
1) The horizontal scroll bar is positioned to bring the waveform corresponding to the waveform identification to a displayable range of the current window (as shown in fig. 4)
First determining the horizontal scroll bar position: the time period W, the length L of the scroll bar and the length L2 of the slide block of the electrocardiogram which can be displayed by a page window are obtained, and the slide block position of the horizontal scroll bar can be calculated by the time period W, the length L of the scroll bar and the length L2 of the slide block: l1=k× (L-L2)/Kp;
wherein: k is the page number to which the waveform identification P belongs, and is expressed as k=math.ceil (P/W) if implemented using python,
Kp is the number of pages needed to be divided for displaying the electrocardiogram corresponding to the total duration T, and is expressed as follows, if python is adopted: kp=math.
2) The sampling time point positioning is used for determining that the waveform corresponding to the waveform identifier P is at the current window position:
the time point positioning method comprises the following steps: acquiring the width B of the window by a tool (such as a professional library of python), setting the leftmost point at the bottom of the window as an origin O' (0, 0), and setting the rightmost point O as O (B, 0) (as shown in fig. 5), wherein x=b in fig. 5;
determining a waveform identifier P corresponding to a graph width F=B/W;
acquiring the position Q, Q= ((P% W)/W) x B of the waveform identifier P corresponding to the time point at the current window; wherein P% W is P divided by W to obtain remainder;
Calculating a starting point and an ending point of the waveform identifier P corresponding to the transverse direction of the image region, such as S (x 1, y 1) and E (x 2, y 2) shown in FIG. 5, wherein x1=Q-F/2 and x2=Q+F/2; y1=y2=0;
Thus, the current window position of the waveform corresponding to the waveform identifier can be obtained.
In the simulation operation instruction, the position of the waveform identifier P corresponding to the image area, the mouse operation to be executed on the position and the keyboard operation are provided, so that the simulation operation of processing an interference waveform for an operator is realized.
For example: the total duration T is 85500, the waveform mark P is 7874 seconds, the time period W=30 seconds for which one page can be displayed, the length L of the scroll bar=1134px, the length L2=38px of the sliding block, and the width B=1200px of the window;
The waveform identification positioning calculation process comprises the following steps:
the waveform identifier P belongs to the page number k=math.ceil (P/W) =math.ceil (7874/30) =263;
the number of pages kp=math.ceil (T/W) =math.ceil (85500/30) =2850 of the electrocardiogram corresponding to the total time period T;
horizontal scrollbar slider position: l1=k× (L-L2)/kp=263× (1134-38)/2850=101 px;
Waveform identifier P corresponds to a pattern width f=b/w=1200/30=40;
the waveform mark P corresponds to the position q= ((P% W)/W) ×b= ((7874% 30)/30) ×1200=560 px where the time point is located in the current window;
The waveform identifier P corresponds to the starting and ending points of the image region in the lateral direction, S (540,0), E (580,0).
After the waveform identifier P is acquired to correspond to the transverse starting point and the transverse ending point of the image area, generating a simulation operation instruction according to the convention of the reference operation instruction, wherein the simulation operation instruction comprises the following steps: { area (540,580); key (alt, R); mouse: () }.
It should be noted that, according to the auxiliary system provided by the present invention, when the processing of the electrocardiogram interference waveform is performed from the window point of view, the deletion processing of the interference waveform is not provided in order to avoid the increase of the overall computational complexity due to the change of the dimension of the electrocardiogram image.
The auxiliary system for processing the electrocardiogram interference waveform and the part (interface extraction module and operation processing module) deployed at the terminal of the electrocardiogram system provided by the invention are shown in figure 2:
After the electrocardiogram system operates, an auxiliary system server or an operator scheduling interface extraction module triggers a screen recording, and simultaneously triggers an operation processing module to simulate a mouse to simulate pulling a scroll bar at a proper speed, so that all waveforms of an electrocardiogram in an acquisition time period can be ensured to be acquired in the screen recording process; after the screen recording is completed, the interface extraction module pushes the video file to an auxiliary system server, converts the video file into an image file, and determines a waveform identifier of an interference waveform at the server; the operation processing module identifies manual operation in the electrocardiogram 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 to simulate manual operation so as to realize identification and labeling of the interference waveform in batches.
The invention skips the process of analyzing the data of the complex electrocardiogram, starts with the realized function of the electrocardiogram system, extracts the picture file of the electrocardiogram, extracts the waveform characteristics in the picture file, and at the moment, the waveform characteristics are the image characteristics, and only analyzes the personalized interference waveform from the angle of the image, so that the waveform data analysis in the medical field is not required to be considered, different data standards are not required to be considered, and displays with different resolutions and windows with different sizes of the electrocardiogram system can be compatible to operate; and on the basis of determining the characteristics of the interference waveforms, the invention simulates the operation of doctors on an electrocardiogram system, assists the doctors in realizing automatic batch processing of the interference waveforms, reduces repeated operations of the doctors and improves the working efficiency of the doctors.
The above disclosure is only a few specific embodiments of the present invention, but the present invention is not limited thereto, and any changes that can be thought by those skilled in the art should fall within the protection scope of the present invention.

Claims (8)

1. An auxiliary system for processing an interference waveform of an electrocardiographic, comprising: the system comprises an interface extraction module, an operation processing module, a graphic file generation module, an interference waveform characteristic processing module and an interference waveform determining module, wherein the interface extraction module and the operation processing module are deployed at an electrocardiogram system client; the graphic file generation module, the interference waveform characteristic processing module and the interference waveform determining module are deployed at a server side of the auxiliary system;
The interface extraction module is used for acquiring display content from a display window in an electrocardiogram system interface, generating an acquisition file and pushing the acquisition file to the graphic file generation module, wherein the acquisition file is a video file;
The operation processing module is used for: the device is used for acquiring window events and simulating mouse and keyboard operations; the operation processing module comprises an interface operation processing plug-in and an operation data processing unit, wherein the interface operation processing plug-in is used for acquiring window events, acquiring operation instructions and executing operation instructions on an interface of the electrocardiogram system, and the operation data processing unit is used for generating a simulation operation instruction and sending the simulation operation instruction to the interface operation processing plug-in for execution;
the graphic file generation module: the system comprises an interface extraction module, an electrocardiographic image processing module and a storage module, wherein the interface extraction module is used for receiving an acquisition file submitted by the interface extraction module and processing the acquisition file into an electrocardiographic image file;
the interference waveform characteristic processing module is used for: the method comprises the steps of acquiring characteristics of an interference waveform area, positioning the interference waveform area from an electrocardiographic image file, and determining a waveform identifier to be processed;
An interference waveform determining module: the method comprises the steps of generating an interference waveform identification group by the waveform identification to be processed and sending the interference waveform identification group to an operation data processing unit;
Wherein the information of the interference waveform identification group includes: the method comprises the steps of determining the total time length T of electrocardiograph sampling and a waveform identifier P, wherein the total time length T is determined by sampling end time and sampling start time, the waveform identifier P is determined by sampling point time and sampling start time, each sampling point time determines an integral waveform, and the waveform identifier P is a unique identifier for determining the integral waveform;
the operation data processing unit analyzes the interference waveform identification group into a plurality of simulation operation instructions, and the simulation operation instructions are transmitted to an interface operation processing plug-in unit for execution one by one; the simulation operation instruction comprises: the waveform mark P corresponds to the position of the image area, the mouse operation to be executed on the position and the keyboard operation;
Before the interface operation processing plug-in executes the simulation operation instruction, waveform identification positioning is carried out according to the total duration T of the electrocardiogram sampling and the waveform identification P; the waveform identification positioning finger: according to the total duration T, the waveform identification P and the window parameters, adjusting the window scroll bar to enable the waveform corresponding to the waveform identification P to be in the window visible region, and determining the position of the sampling time point corresponding to the waveform identification P in the window; when the waveform identification positioning is realized, firstly, horizontal scroll bar positioning is carried out, and after the horizontal scroll bar positioning is finished, sampling time point positioning is carried out; the horizontal scroll bar is positioned to enable the waveform corresponding to the waveform identifier P to be in a displayable range of the current window; the sampling time point positioning is used for determining that the waveform corresponding to the waveform identifier P is at the current window position.
2. The auxiliary system according to claim 1, wherein the interface extraction module comprises a page extraction plug-in, a screen recording tool, and a file transfer unit;
after the page extraction plug-in runs in the electrocardiogram system, a screen recording is started or stopped in a display window of the electrocardiogram; after the screen recording is started, a screen recording tool is called to record the screen of the window, and the window is saved as an acquisition file after the screen recording is stopped;
the screen recording tool supports a screen recording tool or a third party screen recording tool carried by an operating system;
The file transmission unit is used for pushing the acquired file to the auxiliary system server side.
3. The auxiliary system according to claim 2, wherein after the page extraction plug-in starts the screen recording, the interface operation processing plug-in of the scheduling operation processing module simulates a mouse to pull a display window scroll bar of an electrocardiogram at a proper speed at a uniform speed.
4. The assistance system of claim 2, wherein the interface operation processing plug-in obtains content of an operation instruction comprising: the mouse inputs instructions at the selected position of the window, the mode of mouse key and keyboard;
The interface operation processing plug-in also generates a reference operation instruction, including an electrocardiogram area in a window selected by a doctor and an operation of marking the area as an interference waveform; the reference operation instruction is a reference specification for the data processing unit to generate the simulated operation instruction.
5. The auxiliary system according to claim 1, wherein the graphic file generation module converts the acquisition file into a horizontally long picture file through a function provided by opencv; the content of the transverse long picture file is a waveform chart of an electrocardiogram, wherein the transverse axis is signal acquisition time, and the longitudinal direction is waveforms with consistent sampling time points; the waveforms with the same sampling time points form an integral waveform; the duration corresponding to the sampling time point is the waveform identifier P of the waveform.
6. The assistance system of claim 5, wherein the interference waveform characteristics processing module provides an assistance system client; the doctor selects the waveform area as an interference waveform through the client; and the interference waveform characteristic processing module identifies all areas conforming to the image characteristics from a long picture file according to the image characteristics of the interference waveform, and extracts the duration corresponding to the sampling time point from the areas as the waveform identification of the interference waveform to be processed.
7. The assistance system of claim 1, wherein the horizontal scroll bar positioning comprises:
acquiring a time period W, a rolling bar length L and a sliding block length L2 of an electrocardiogram which can be displayed by a page window, and determining the sliding block position of the horizontal rolling bar as follows: l1=k× (L-L2)/Kp;
Wherein K is the page number to which the waveform identification P belongs, expressed as K=math.ceil (P/W),
Kp is the number of pages to be divided of the electrocardiogram corresponding to the total time length T, and is expressed as: kp=math.
8. The assistance system of claim 1, wherein the sampling time point positioning comprises:
Acquiring the width B of a window, and determining the width F=B/W of a graph corresponding to the waveform mark P;
acquiring the position Q, Q= ((P% W)/W) x B of the waveform identifier P corresponding to the time point at the current window; wherein P% W is P divided by W to obtain remainder;
the starting point and the ending point of the waveform mark P corresponding to the transverse direction of the image area are calculated as follows: s (x 1, y 1), E (x 2, y 2), wherein x1=q-F/2, x2=q+f/2; y1=y2=0.
CN202410853304.6A 2024-06-28 2024-06-28 Auxiliary system for processing interference waveforms of electrocardiographic diagram Active CN118398178B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410853304.6A CN118398178B (en) 2024-06-28 2024-06-28 Auxiliary system for processing interference waveforms of electrocardiographic diagram

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410853304.6A CN118398178B (en) 2024-06-28 2024-06-28 Auxiliary system for processing interference waveforms of electrocardiographic diagram

Publications (2)

Publication Number Publication Date
CN118398178A true CN118398178A (en) 2024-07-26
CN118398178B CN118398178B (en) 2024-10-01

Family

ID=91985245

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410853304.6A Active CN118398178B (en) 2024-06-28 2024-06-28 Auxiliary system for processing interference waveforms of electrocardiographic diagram

Country Status (1)

Country Link
CN (1) CN118398178B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7162406B1 (en) * 2003-01-08 2007-01-09 Unisys Corporation Control program for executing, viewing and editing another program that simulates operator actions
WO2018095253A1 (en) * 2016-11-28 2018-05-31 优酷网络技术(北京)有限公司 Method and device for making graphics interchange format chart
CN108836312A (en) * 2018-07-13 2018-11-20 希蓝科技(北京)有限公司 A kind of method and system of the novel progress clutter rejecting based on artificial intelligence
CN110507311A (en) * 2019-08-27 2019-11-29 中科麦迪人工智能研究院(苏州)有限公司 A kind of ecg analysis method, apparatus, equipment and medium based on image information
CN112137610A (en) * 2020-08-28 2020-12-29 杭州质子科技有限公司 Automatic identification method for single-lead dynamic electrocardiosignal interference fragments
CN114828070A (en) * 2022-04-22 2022-07-29 周口师范学院 Interference waveform matching system and positioning method thereof
CN114847967A (en) * 2022-04-15 2022-08-05 无锡市中健科仪有限公司 Method and system for analyzing missing QRS waves of dynamic electrocardiograms in batches
CN115512130A (en) * 2022-09-30 2022-12-23 台州南科智能传感科技有限公司 Automatic measurement method for paper electrocardiogram waveform parameters
CN115708685A (en) * 2022-12-07 2023-02-24 无锡市中健科仪有限公司 Electrocardiogram analysis method based on three-dimensional electrocardio-stack diagram
WO2023101089A1 (en) * 2021-12-02 2023-06-08 (주)씨어스테크놀로지 Method and device for classifying electrocardiogram waveform by using machine learning

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7162406B1 (en) * 2003-01-08 2007-01-09 Unisys Corporation Control program for executing, viewing and editing another program that simulates operator actions
WO2018095253A1 (en) * 2016-11-28 2018-05-31 优酷网络技术(北京)有限公司 Method and device for making graphics interchange format chart
CN108836312A (en) * 2018-07-13 2018-11-20 希蓝科技(北京)有限公司 A kind of method and system of the novel progress clutter rejecting based on artificial intelligence
CN110507311A (en) * 2019-08-27 2019-11-29 中科麦迪人工智能研究院(苏州)有限公司 A kind of ecg analysis method, apparatus, equipment and medium based on image information
CN112137610A (en) * 2020-08-28 2020-12-29 杭州质子科技有限公司 Automatic identification method for single-lead dynamic electrocardiosignal interference fragments
WO2023101089A1 (en) * 2021-12-02 2023-06-08 (주)씨어스테크놀로지 Method and device for classifying electrocardiogram waveform by using machine learning
CN114847967A (en) * 2022-04-15 2022-08-05 无锡市中健科仪有限公司 Method and system for analyzing missing QRS waves of dynamic electrocardiograms in batches
CN114828070A (en) * 2022-04-22 2022-07-29 周口师范学院 Interference waveform matching system and positioning method thereof
CN115512130A (en) * 2022-09-30 2022-12-23 台州南科智能传感科技有限公司 Automatic measurement method for paper electrocardiogram waveform parameters
CN115708685A (en) * 2022-12-07 2023-02-24 无锡市中健科仪有限公司 Electrocardiogram analysis method based on three-dimensional electrocardio-stack diagram

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
JUN-YING CHEN等: "Multi-lead Data Extraction Method of ECG Waveform Based on Mobile Device Application", 《2020 INTERNATIONAL SYMPOSIUM ON COMPUTER, CONSUMER AND CONTROL (IS3C)》, vol. 1, 31 December 2020 (2020-12-31), pages 557 - 60 *
冯焕清, 张更生, 张作生, 董守玲, 薛长海: "几种疑难心电波形的自动识别方法探讨", 中国科学技术大学学报, no. 02, 30 June 1992 (1992-06-30), pages 27 - 32 *
杨钢;陆蔚时;周嘉成;: "心电信息系统中图形浏览兼容解决方案", 中国医疗器械杂志, no. 06, 30 November 2009 (2009-11-30), pages 75 - 77 *
雷著宇, 茅成, 周伟: "心脏电生理参数自动测试中心电波形的自动识别与预测发放刺激脉冲", 仪器仪表学报, no. 04, 20 August 1993 (1993-08-20), pages 78 - 82 *

Also Published As

Publication number Publication date
CN118398178B (en) 2024-10-01

Similar Documents

Publication Publication Date Title
US6934578B2 (en) Method and apparatus for interactive annotation and measurement of time series data with automatic marker sequencing
JP5057635B2 (en) Method and apparatus for performing interactive annotation and measurement functions of time series data for centralized analysis and review
JP4493310B2 (en) Method and apparatus for performing interactive annotation and measurement functions of time series data by automatic marking
JP4460180B2 (en) Medical image interpretation support apparatus, medical image interpretation support processing program, and recording medium for the program
US20040051721A1 (en) Method and apparatus for interactive annotation and measurement of time series data
JP5665903B2 (en) Image processing apparatus and method, image processing system, and program
CN110495872A (en) Ecg analysis method, apparatus, equipment and medium based on picture and heart-beat messages
US7181054B2 (en) System for processing image representative data
CN104395883A (en) Application coordination system, application coordination method, and application coordination program
CN113079411B (en) Multi-modal data synchronous visualization system
CN104866579A (en) Dynamic cardiogram graphical data processing method, client and server
CN118021316B (en) Dynamic electrocardiographic data processing method and device, electronic equipment and storage medium
CN118398178B (en) Auxiliary system for processing interference waveforms of electrocardiographic diagram
EP1406198A2 (en) Method and apparatus for interactive annotation and measurement of time series data
CN115868933B (en) Method and system for collecting waveform of monitor
EP2979161B1 (en) Preferred view generation on structure level based on user preferences
CN115868995A (en) Dynamic electrocardiogram analysis method and system based on waveform rhythm two-stage template
CN110618749A (en) Medical activity auxiliary system based on augmented/mixed reality technology
JP2006026396A (en) Image processing system and method, control program, and storage medium
CN111449649B (en) Electrocardiogram data processing method and device and computer readable storage medium
CN113616239A (en) Automatic ultrasonic detection method and system
JP2012003465A (en) Schema drawing device, schema drawing system and schema drawing program
CN113662555A (en) Drawing method, analysis method, drawing device, mobile terminal and storage medium
US11806181B2 (en) Display system, display control device, and display control method
CN108572943B (en) Form identification method based on GDI interception

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant