CN118398178A - An auxiliary system for processing electrocardiogram interference waveform - Google Patents
An auxiliary system for processing electrocardiogram interference waveform Download PDFInfo
- 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
- window
- module
- interference
- 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
Links
- 238000012545 processing Methods 0.000 title claims abstract description 107
- 238000000605 extraction Methods 0.000 claims abstract description 31
- 238000004088 simulation Methods 0.000 claims abstract description 28
- 238000000034 method Methods 0.000 claims abstract description 22
- 238000005070 sampling Methods 0.000 claims description 52
- 239000000284 extract Substances 0.000 claims description 8
- 238000012546 transfer Methods 0.000 claims description 5
- 230000005540 biological transmission Effects 0.000 claims description 3
- 238000005096 rolling process Methods 0.000 claims 2
- 238000002565 electrocardiography Methods 0.000 description 59
- 239000003550 marker Substances 0.000 description 23
- 238000010586 diagram Methods 0.000 description 6
- 238000004364 calculation method Methods 0.000 description 4
- 238000007405 data analysis Methods 0.000 description 4
- 238000004458 analytical method Methods 0.000 description 3
- 238000012790 confirmation Methods 0.000 description 3
- 238000012544 monitoring process Methods 0.000 description 2
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 1
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 1
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 1
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 1
- 238000010923 batch production Methods 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 230000009133 cooperative interaction Effects 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000003745 diagnosis Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000002372 labelling Methods 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000010339 medical test Methods 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 238000012827 research and development Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Classifications
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/24—Detecting, measuring or recording bioelectric or biomagnetic signals of the body or parts thereof
- A61B5/316—Modalities, i.e. specific diagnostic methods
- A61B5/318—Heart-related electrical modalities, e.g. electrocardiography [ECG]
- A61B5/346—Analysis of electrocardiograms
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/24—Detecting, measuring or recording bioelectric or biomagnetic signals of the body or parts thereof
- A61B5/316—Modalities, i.e. specific diagnostic methods
- A61B5/318—Heart-related electrical modalities, e.g. electrocardiography [ECG]
- A61B5/321—Accessories or supplementary instruments therefor, e.g. cord hangers
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/24—Detecting, measuring or recording bioelectric or biomagnetic signals of the body or parts thereof
- A61B5/316—Modalities, i.e. specific diagnostic methods
- A61B5/318—Heart-related electrical modalities, e.g. electrocardiography [ECG]
- A61B5/339—Displays specially adapted therefor
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16H—HEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
- G16H30/00—ICT specially adapted for the handling or processing of medical images
- G16H30/20—ICT specially adapted for the handling or processing of medical images for handling medical images, e.g. DICOM, HL7 or PACS
Landscapes
- Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Public Health (AREA)
- Engineering & Computer Science (AREA)
- Cardiology (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Physics & Mathematics (AREA)
- Surgery (AREA)
- Veterinary Medicine (AREA)
- Animal Behavior & Ethology (AREA)
- Molecular Biology (AREA)
- Biophysics (AREA)
- Pathology (AREA)
- Biomedical Technology (AREA)
- Heart & Thoracic Surgery (AREA)
- Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
- Primary Health Care (AREA)
- Radiology & Medical Imaging (AREA)
- Epidemiology (AREA)
- Measurement And Recording Of Electrical Phenomena And Electrical Characteristics Of The Living Body (AREA)
Abstract
本发明公开了一种处理心电力图干扰波形的辅助系统,包括:界面提取模块、操作处理模块、图形文件生成模块、干扰波形特征处理模块和干涉波形确定模块;界面提取模块用于获取采集文件,推送至图形文件生成模块;操作处理模块:用于获取窗口事件、模拟鼠标键盘操作;图形文件生成模块:用于接收采集文件,处理为心电图图像文件;干扰波形特征处理模块:用于确定待处理波形标识;干涉波形确定模块:用于生成干扰波形标识组发送至操作处理模块;操作处理模块将干扰波形标识组解析为多个模拟操作指令,逐个执行。根据上述技术方案,可以模拟医生在心电图系统的操作,自动批量处理多个干扰波形,提高医生的工作效率。
The present invention discloses an auxiliary system for processing electrocardiogram interference waveforms, including: 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; the interface extraction module is used to obtain acquisition files and push them to the graphic file generation module; the operation processing module is used to obtain window events and simulate mouse and keyboard operations; the graphic file generation module is used to receive acquisition files and process them into electrocardiogram image files; the interference waveform feature processing module is used to determine the waveform identification to be processed; the interference waveform determination module is used to generate an interference waveform identification group and send it to the operation processing module; the operation processing module parses the interference waveform identification group into multiple simulation operation instructions and executes them one by one. According to the above technical scheme, the doctor's operation in the electrocardiogram system can be simulated, and multiple interference waveforms can be automatically processed in batches, thereby improving the doctor's work efficiency.
Description
技术领域Technical Field
本发明涉及图像处理技术领域,具体而言,涉及一种处理心电力图干扰波形的辅助系统。The present invention relates to the technical field of image processing, and in particular to an auxiliary system for processing electrocardiogram interference waveforms.
背景技术Background technique
心电图(Electrocardiogram,简称ECG或EKG)是一种记录心脏电活动的重要医学测试手段,将一组电极及导线在病人的指定部分采集心脏每次跳动时产生的微小电流变化,构成波形图。某些复杂的心脏问题,需要通过如动态心电图(Holter)的设备进行长时间,如24小时、48小时的监测。进行动态心电图监测时,病人仍在进行正常的起居生活,日常生活中有些行为,如开车、使用电器时,心电设备会受到电磁干扰,因此采集的心电图中存在大量的干扰波形。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.
心电图厂家开发心电图系统阅片时,一般会对波形进行干扰的初步处理,但随着目前采样频率越来越高,同时每个病人的波形特征在临床上存在区别,因此初步处理远远达不到临床上的需求。在此基础上,心电图厂家提供的心电图系统提供了医生一边读图一边修改的功能,医生可以在进行诊断分析前进行准备工作,即在心电图系统中,选择干扰波形,将其删除或者将其标注命名为“干扰”,而一个基于24小时甚至48小时、72小时的心电图中产生的干扰波的数量达到上千条,让医生在诊断前的准备工作产生极大的负担。如果通过采集的原始数据结合医学的标准进行干扰分析,则需要适配心电数据的标准协议,而心电数据的协议包括SCP-ECG、DAXML、DICOM等类型,研发过程需要兼容多种协议,开发难度大;同时,对于不同病人的心电波形确定需要结合病人的实际情况分析,存在个体差异。When developing an ECG system for reading films, ECG manufacturers generally perform preliminary processing of the interference on the waveform. 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 the function of doctors modifying while reading the image. Doctors can prepare before conducting diagnostic analysis, that is, in the ECG system, select the interference waveform, delete it or mark it as "interference", and the number of interference waves generated in an ECG based on 24 hours, even 48 hours, or 72 hours reaches thousands, which puts a great burden on doctors' preparation before diagnosis. If 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, etc. The research and development process needs to be compatible with multiple protocols, which is difficult to develop; at the same time, the determination of the ECG waveforms of different patients needs to be analyzed in combination with the actual situation of the patients, and there are individual differences.
发明内容Summary of the invention
为解决上述问题,本发明提供了一种处理心电力图干扰波形的辅助系统,包括:In order to solve the above problems, the present invention provides an auxiliary system for processing electrocardiogram interference waveforms, comprising:
界面提取模块、操作处理模块、图形文件生成模块、干扰波形特征处理模块和干涉波形确定模块;其中,界面提取模块和操作处理模块部署于心电图厂家提供的心电图系统客户端;图形文件生成模块、干扰波形特征处理模块和干涉波形确定模块部署于辅助系统的服务端。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.
界面提取模块用于从心电图系统界面中的指定显示窗口获取显示内容,生成采集文件,将采集文件推送至图形文件生成模块,其中,采集文件为视频文件;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;
操作处理模块:用于获取窗口事件、模拟鼠标键盘操作;操作处理模块包括界面操作处理插件和操作数据处理单元,界面操作处理插件用于获取窗口事件、获取操作指令、向心电图系统界面执行操作指令;操作数据处理单元用于生成模拟操作指令,将模拟操作指令发送给界面操作处理插件执行;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;
图形文件生成模块:用于接收来自界面提取模块提交的采集文件,将采集文件处理为心电图图像文件;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;
干扰波形特征处理模块:用于获取干扰波形区域特征,从心电图像文件中定位干扰波形区域,确定待处理波形标识;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;
干涉波形确定模块:用于将待处理波形标识生成干扰波形标识组,发送至操作数据处理单元;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;
其中,干扰波形标识组的信息包括:心电图采样的总时长T、波形标识P,总时长T通过采样结束时间和采样开始时间确定,波形标识P由采样点时间和采样开始时间确定,每个采样点时间确定一个整体波形,波形标识P为确定整体波形的唯一标识;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.
其中,操作数据处理单元将干扰波形标识组解析为多个模拟操作指令,交由界面操作处理插件逐个执行;模拟操作指令包括:波形标识P对应图像区域的位置、对该位置要执行的鼠标操作、键盘操作;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;
界面操作处理插件执行模拟操作指令前,根据心电图采样的总时长T结合波形标识P进行波形标识定位。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.
其中,界面提取模块包括页面提取插件、录屏工具和文件传输单元;Among them, the interface extraction module includes a page extraction plug-in, a screen recording tool and a file transfer unit;
页面提取插件在心电图系统运行后,在心电图的显示窗口启动或停止录屏;启动录屏后调用录屏工具对窗口进行录屏,停止后保存为采集文件;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;
录屏工具支持操作系统自带的录屏工具或第三方录屏工具;Screen recording tools support the operating system's built-in screen recording tools or third-party screen recording tools;
文件传输单元用于将采集文件推送给辅助系统服务器端。The file transfer unit is used to push the collected files to the auxiliary system server.
其中,页面提取插件启动录屏后,调度操作处理模块的界面操作处理插件模拟鼠标以合适的速度匀速拉动心电图的显示窗口滚动条。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.
进一步的,界面操作处理插件获取操作指令的内容包括:鼠标在窗口选择的位置、鼠标按键方式、键盘输入指令;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;
界面操作处理插件还生成参考操作指令,包括医生选择的窗口中的心电图区域、将该区域标注为干扰波形的操作;所述参考操作指令是数据处理单元生成模拟操作指令的参考规范。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.
其中,图形文件生成模块通过opencv提供的功能将采集文件转换为横向长图片文件;横向长图片文件的内容为心电图的波形图,其中横轴为信号采集时间,纵向为多份采样时间点一致的波形;多份采样时间点一致的波形构成一份整体波形;采样时间点对应的时长为波形的波形标识P。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.
进一步的,干扰波形特征处理模块提供辅助系统客户端;医生通过客户端选择波形区域作为干扰波形;干扰波形特征处理模块根据干扰波形的图像特征从长图片文件中识别符合图像特征的所有区域,从区域中提取采样时间点对应的时长作为待处理的干扰波形的波形标识。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 the 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.
进一步的,波形标识定位指:根据总时长T、波形标识P和窗口参数,调整窗口滚动条,使波形标识P对应的波形在窗口可见区域后,确定波形标识P对应的采样时间点在窗口的位置。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.
实现波形标识定位时,首先进行水平滚动条定位,水平滚动条定位完成后,进行采样时间点定位;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;
其中,水平滚动条定位用于将波形标识对应的波形处于当前窗口可显示的范围;The horizontal scroll bar positioning is used to place the waveform corresponding to the waveform marker within the displayable range of the current window;
采样时间点定位用于确定波形标识P对应的波形在当前窗口位置。The sampling time point positioning is used to determine the waveform corresponding to the waveform identifier P in the current window position.
其中,实现水平滚动条定位的方法包括:The method for realizing horizontal scroll bar positioning includes:
获取一页窗口能显示的心电图的时间段W、滚动条长度L、滑块长度L2,确定水平滚动条滑块位置为:L1 = K×(L-L2)/Kp;其中, K为波形标识P所属页次,表示为K=math.ceil(P/W),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: 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),
Kp为显示总时长T对应的心电图需要分的页数,表示为:Kp=math.ceil(T/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).
实现采样时间点定位包括:The realization of sampling time point positioning includes:
获取窗体的宽度B,确定波形标识P 对应图形宽度F=B/W;获取波形标识P对应时间点在当前窗口所在位置Q,Q=((P%W)/W)×B;其中,P%W为P除以W取余数;Get the width B of the window, determine the width F=B/W of the waveform marker P; get the time point Q corresponding to the waveform marker P in the current window, Q=((P%W)/W)×B; where P%W is the remainder of P divided by W;
计算波形标识P对应图像区域横向的起始点和终止点分别为:S(x1,y1) 、E(x2,y2),其中,x1=Q-F/2,x2=Q+F/2;y1=y2=0。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=Q-F/2, x2=Q+F/2; y1=y2=0.
根据本发明,可以跳过复杂的心电图的数据解析的过程,以已有的心电图系统已实现的功能出发,提取心电图的图片文件,提取图片文件中的波形特征,定位个性化的干扰波形,不需要考虑医学领域的波形数据分析和不同的数据标准,并可兼容执行心电图系统的多种的显示器、窗口的大小;同时,可模拟医生在已有心电图系统的操作,在已有心电图系统自动批量处理大量干扰波形,提高医生的工作效率。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
图1是根据本发明实施例提供的处理心电图干扰波形的辅助系统结构示意图;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;
图2 是根据本发明实施例提供的处理心电图干扰波形的辅助系统处理干扰波形的时序图;2 is a timing diagram of an auxiliary system for processing electrocardiogram interference waveforms according to an embodiment of the present invention;
图3是根据本发明实施例提供的辅助系统中波形区域示意图;FIG3 is a schematic diagram of a waveform region in an auxiliary system provided according to an embodiment of the present invention;
图4是根据本发明实施例提供的辅助系统中水平滚动条定位示意图;4 is a schematic diagram of positioning a horizontal scroll bar in an auxiliary system provided according to an embodiment of the present invention;
图5是根据本发明实施例提供的辅助系统中时间点定位示意图。FIG5 is a schematic diagram of time point positioning in an auxiliary system according to an embodiment of the present invention.
具体实施方式Detailed ways
本发明在已有厂家提供的心电图系统的基础上,提取由该系统已生成并在窗口显示的心电图波形,处理为图片文件,提取图片文件中由医生判断为干扰波形的图像特征,以此为标准,提取并标注该图片文件中所有的类似的干扰波形;批量确认所有干扰波形后,模拟医生或工作人员在厂家提供的心电图系统窗口的鼠标和键盘操作,对心电图系统中该心电图的所有干扰波形进行标注和处理,实现在心电图系统中批量干扰波形的辅助处理。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.
下面结合说明书附图对本发明的具体实现方式做详细描述。The specific implementation of the present invention is described in detail below with reference to the accompanying drawings.
图1提供了处理心电图干扰波形的辅助系统的系统结构图,如图所示,包括以下部分:FIG1 provides a system structure diagram of an auxiliary system for processing an electrocardiogram interference waveform, as shown in the figure, including the following parts:
P100心电图系统客户端:本发明提供的处理心电图干扰波形的辅助系统,基于已有心电图系统,是辅助医生实现心电图系统客户端操作的辅助系统,以减少医生重复操作,提高工作效率。因此,本发明的方案需要依赖于P100心电图系统的客户端,需从运行心电图系统的P101心电图系统界面中提取要处理的心电图数据,采集医生操作指令后再生成模拟操作指令,将模拟操作指令在心电图系统的客户端进行操作。本发明提出的辅助系统的部分模块部署于P100心电图系统的客户端;在辅助系统执行前,需要运行已有的心电图系统,激活P101心电图系统界面,确定要处理的心电图的显示窗口。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.
部署在P100心电图系统客户端包括P110界面提取模块和P120操作处理模块,其中,P120操作处理模块用于模拟医生对心电图系统客户端进行的部件操作,例如通过鼠标确定需要处理的心电图系统界面中的显示窗口,捕捉光标的位置、窗口的事件,控制光标的位置、模拟鼠标键盘的操作;P110界面提取模块用于从要处理的心电图系统界面中的显示窗口进行视频采集。具体如下: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:
P110界面提取模块:用于从需要处理的心电图系统界面中的显示窗口,获取显示内容,生成采集文件,将采集文件推送至图形文件生成模块;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;
界面提取模块包括页面提取插件、录屏工具和文件传输单元;The interface extraction module includes a page extraction plug-in, a screen recording tool, and a file transfer unit;
1)页面提取插件在心电图系统运行后,在心电图心电图的显示窗口进行录屏,录屏操作由人工按键或者服务端发送请求触发启动和停止;人工启动和停止的方式支持快捷键,如Ctrl+1启动、Ctrl+0停止,启动后调用录屏工具对窗口进行录屏,停止后保存为采集文件;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;
录屏启动后,同时调度操作处理模块的界面操作处理插件模拟鼠标以合适的速度匀速拉动心电图的显示窗口滚动条,使心电图所有的波形以适合的速度在窗口显示,便于录屏过程中可获取在该心电图在采集时间段内的所有波形。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.
2)录屏工具可支持操作系统自带的录屏工具或第三方录屏工具,例如录屏软件obs进行录屏。录屏产生的采集文件为视频文件,其文件格式、参数、文件大小可根据电脑参数、内网传输要求进行设定。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.
3)文件传输单元用于与辅助系统服务器端建立连接,将采集文件推送给辅助系统服务器端的图形文件生成模块;连接方式可通过网络、设备等方式实现。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.
P120操作处理模块:部署于已有心电图系统的客户端,用于获取窗口事件、模拟鼠标键盘操作;P120 operation processing module: deployed on the client of the existing ECG system, used to obtain window events and simulate mouse and keyboard operations;
操作处理模块包括P121界面操作处理插件和P122操作数据处理单元;The operation processing module includes a P121 interface operation processing plug-in and a P122 operation data processing unit;
P121界面操作处理插件可以从心电图系统界面选定窗口、获取窗口事件、获取操作指令,向心电图系统界面执行操作指令;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;
界面操作处理插件选择要处理的心电图显示窗口,根据快捷键(如Alt+0)获取和定位该窗口的属性,便于后续的操作均在该窗口中进行;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;
界面操作处理插件获取窗口事件,可通过快捷键(如Ctrl+2)启动,启动后获取用户通过鼠标执行的窗口事件,可获取的窗口事件包括:窗体Handle执行窗体滚动事件、滚动事件包括WM_VSCROLL垂直滚动条的滚动事件消息、WM_HSCROLL水平滚动条的滚动事件消息等;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.
界面操作处理插件获取操作指令,可通过快捷键(如Ctrl+3)启动相应功能,包括:识别鼠标在窗口选择的位置、鼠标按键方式(选中、松开、单击、双击或右键)、键盘输入指令等内容。界面操作处理插件启动后,获取医生选择窗口中的心电图区域、将该区域标注为干扰波形的操作生成参考操作指令,用于后续生成模拟操作指令的参考规范;例如:医生选择窗口中的区域,区域起点和终点位置为A(xa,0),B(xb,0),输入快捷键Alt+R,将该区域的波形标注为干扰波型;参考操作指令的表现形式可进行约定,例如表示为:{area:(xa,xb);key:(alt,R);mouse:()},即:区域的横坐标(xa至xb),键盘操作alt,R,鼠标无操作;在本发明中,心电图的位置以横向区域为准,因此纵向区域忽略计算。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.
界面操作处理插件执行操作指令,可通过快捷键(如Ctrl+4)启动,启动后获取模拟操作指令,执行模拟操作指令,根据模拟操作指令模拟医生在心电图系统界面的操作,可模拟的操作包括:鼠标在显示窗口匀速拉动滚动条、鼠标选中波形区域、键盘输入快捷键等。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.
P122操作数据处理单元用于生成为针对多个波形标识的模拟操作指令,将指令发送给界面操作处理插件执行。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.
多个波形标识来自辅助系统服务端中的干涉波形确定模块发送的干扰波形标识组。The multiple waveform identifiers come from an interference waveform identifier group sent by an interference waveform determination module in the auxiliary system server.
其中,模拟操作指令是操作数据处理单元为不同的波形标识,根据参考操作指令生成的操作指令,包括要处理的波形标识及对应的图像区域信息、鼠标按键方式、键盘输入指令等内容,其表达方式与参考操作指令的表现形式相同;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;
干扰波形标识组中的信息包括:心电图采样的总时长T(采样结束时间-采样开始时间),波形标识P(采样点时间-采样开始时间);在心电图的采样结果中,每个采样点时间可确定一个波形,因此采样点时间对应的信息可作为波形的唯一标识,表示为波形标识P。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.
例如:心电图采样开始时间为2024年1月1日10点15分,采样终止时间为2024年1月2日10点整,采样点时间为2024年1月1日12点26分14秒;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;
总时长T为2024年1月1日10点15分与2024年1月2日10点整的时间差(单位秒),为85500;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;
波形标识P为2024年1月1日10点15分与2024年1月1日12点26分14秒的时间差(单位秒),为7874秒。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.
本发明提供的处理心电图干扰波形的辅助系统,包括服务端和客户端,其服务端可与P100心电图系统客户端布局在同一台电脑设备,也可布局于其他电脑设备。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.
辅助系统的服务端用于获取界面提取模块推送的录屏结果(即采集文件),通过工具(如opencv)将视频文件转换为图片文件;将图片文件提供给客户端,由医生通过客户端从图片文件中选择多个干扰波形;服务端分析医生选择的干扰波形的特征,确认后生成由多个符合该特征的波形构成的干扰波形标识组,将干扰波形标识组发送给操作数据处理单元生成模拟操作指令。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.
具体的,辅助系统的服务端包括:Specifically, the server side of the auxiliary system includes:
P130图形文件生成模块:用于接收来自所述界面提取模块提交的采集文件,将采集文件处理为心电图图像文件;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;
其中,采集文件为视频文件,可通过opencv提供的功能将其转换为横向长图片文件。横向长图片文件的内容为心电图的波形图,一份有效的心电图由多份波形图构成,其中,横轴为信号采集时间,纵向为多份采样时间点一致的波形,具体如图3所示。在本发明中,将多份采样时间点一致的波形作为一个整体波形进行处理,如图3中,框出的部分为一个时间点的整体波形。基于此,和一个时间点的整体波形相关的信息包括:心电图采样开始时间与终止时间、采样时间点、波形区域图像特征,其中采样时间点对应的时长为波形的唯一标识,即波形标识P。Among them, 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 is composed of multiple waveforms, wherein the horizontal axis is the signal acquisition time, and the vertical axis is the waveform with the same sampling time points, as shown in Figure 3. In the present invention, the waveforms with the same sampling time points are processed as a whole waveform. As shown in Figure 3, the framed part is the whole waveform at a time point. Based on this, the information related to the whole waveform at a time point includes: the start time and end time of the electrocardiogram sampling, the sampling time point, and the image features of the waveform area, wherein the duration corresponding to the sampling time point is the unique identifier of the waveform, that is, the waveform identifier P.
在处理过程中,根据图像尺寸、服务器的处理能力,在不影响整体清晰度的情况下对横向长图片文件进行压缩,便于后续的图像识别及图像识别时的传输。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.
P140干扰波形特征处理模块:用于获取干扰波形区域特征,从所述心电图片文件中定位干扰波形区域;P140 interference waveform feature processing module: used to obtain interference waveform area features and locate the interference waveform area from the electrocardiogram image file;
干扰波形特征处理模块提供辅助系统客户端,向客户端提供横向长图片文件,医生通过客户端选择波形区域作为干扰波形,提交至干扰波形特征处理模块,干扰波形特征处理模块根据干扰波形图像特征(如矢量特征)等信息,通过第三方图像识别工具进行干涉波形提取,即从长图片文件中识别符合该干涉波形特征的的所有区域,从这些区域中提取采样时间点,对应时长作为待处理的干扰波形的波形标识。The interference waveform feature processing module provides an auxiliary system client and a horizontal 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 time length as the waveform identifier of the interference waveform to be processed.
在干扰波形特征处理模块中,医生可针对每一份心电图做个性化的干扰波形确认,例如,从某病人的某份长图片文件中指定的干扰波形只用于该份心图片文件中的识别,实现特殊病患心电图识别的个性处理;也可以积累不同心电图中的干扰波形特征,作为公共干扰波形库,用于公用图像特征分析。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.
干扰波形特征处理模块还可以将通过第三方图像识别工具提取出的符合该干涉波形特征的的所有区域在客户端显示,由医生确认后,确定待处理波形标识。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.
P150干涉波形确定模块:用于将所有待处理波形标识根据规范,生成干扰波形标识组发送给P122操作数据处理单元。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 the P122 operation data processing unit.
P122操作数据处理单元将干扰波形标识组解析为多个模拟操作指令,交由界面操作处理插件逐个执行。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.
界面操作处理插件执行模拟操作指令时,确定波形位置,根据模拟操作指令模拟工作人工对鼠标和键盘的操作,例如:首先模拟鼠标选中窗口中干扰波形的位置,模拟键盘按下快捷键执行备注为干扰波形的操作。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.
由于心电图采样时间长,心电图的结果无法在窗口的一页中显示完整,因此,需要将待处理的波形处于窗口的显示区中,因此,选中窗口中干扰波形的位置时需要进行波形标识定位;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;
由于图形文件生成模块对长图片文件进行压缩会使图片像素发生变化,不同设置的显示器、不同的窗口大小也会使窗口的显示区的大小存在不同。如果采用常用的定位方式(如像素定位),每次窗口或者图片发生变化时,需要重新准确捕捉图片属性和窗口属性,重新计算像素点。而心电图图片中,波形标识对应的采集时间点占总时长T的比例不会随图像清晰度和窗口的大小改变。为了兼容心电图系统客户端的窗口的大小、显示器的分辨率、图片的尺寸,减少窗口变化时的计算量,本发明通过总时长T和波形标识P之间的比例关系来进行波形标识定位。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.
波形标识定位指:根据总时长T、波形标识P和窗口参数,调整窗口滚动条,使波形标识P对应的波形在窗口可见区域后,确定波形标识P对应的采样时间点在窗口的位置。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.
实现波形标识定位时,首先进行水平滚动条定位,水平滚动条定位完成后,进行采样时间点定位。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.
1)水平滚动条定位用于将波形标识对应的波形处于当前窗口可显示的范围(如图4所示)1) The horizontal scroll bar is used to position the waveform corresponding to the waveform marker within the displayable range of the current window (as shown in Figure 4)
首先确定水平滚动条位置:获取一页窗口能显示的心电图的时间段W、滚动条长度L、滑块长度L2,可由此计算水平滚动条滑块位置:L1 = K×(L-L2)/Kp;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;
其中: K为波形标识P所属页次,如采用python实现,表示为K=math.ceil(P/W),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).
Kp为显示总时长T对应的心电图需要分的页数,如采用python实现,表示为:Kp=math.ceil(T/W)。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).
2)采样时间点定位用于确定波形标识P对应的波形在当前窗口位置:2) Sampling time point positioning is used to determine the waveform corresponding to the waveform marker P in the current window position:
时间点定位的方法为:通过工具(如python的专业库)获取窗体的宽度B,设定窗口底部最左点为原点O’(0,0),则最右侧点O为O(B,0)(如如图5所示),图5中x=B;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), then the rightmost point O is O(B,0) (as shown in Figure 5), and x=B in Figure 5;
确定波形标识P 对应图形宽度F=B/W;Determine the waveform mark P corresponding to the graph width F=B/W;
获取波形标识P对应时间点在当前窗口所在位置Q,Q=((P%W)/W)×B;其中,P%W为P除以W取余数;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;
计算波形标识P对应图像区域横向的起始点和终止点,如图5所示的S(x1,y1) 、E(x2,y2),其中,x1=Q-F/2,x2=Q+F/2;y1=y2=0;The waveform marker P is calculated to correspond to the horizontal starting point and ending point of the image area, such as S(x1,y1) and E(x2,y2) as shown in FIG5 , where x1=Q-F/2, x2=Q+F/2; y1=y2=0;
由此可获得波形标识对应的波形在当前窗口位置。Thus, the waveform corresponding to the waveform mark can be obtained at the current window position.
模拟操作指令中,提供波形标识P对应图像区域的位置、对该位置要执行的鼠标操作、键盘操作,以实现对操作人员处理一项干扰波形的模拟操作。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.
例如:总时长T为85500,波形标识P为7874秒,一页能够显示的时间段W=30秒、滚动条长度L=1134px、滑块长度L2=38px、窗体的宽度B=1200px;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;
波形标识定位计算过程包括:The waveform marker positioning calculation process includes:
波形标识P所属页次K=math.ceil(P/W) =math.ceil(7874/30)=263;The page number K to which the waveform symbol P belongs = math.ceil(P/W) = math.ceil(7874/30) = 263;
总时长T对应的心电图需要分的页数Kp =math.ceil(T/W) = math.ceil(85500/30) =2850;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;
水平滚动条滑块位置:L1 = K×(L-L2)/Kp=263×(1134-38)/2850=101px;Horizontal scroll bar slider position: L1 = K×(L-L2)/Kp=263×(1134-38)/2850=101px;
波形标识P 对应图形宽度F=B/W=1200/30=40;The waveform symbol P corresponds to the graph width F=B/W=1200/30=40;
波形标识P对应时间点在当前窗口所在位置Q=((P%W)/W)×B=((7874%30)/30)×1200=560px;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;
波形标识P对应图像区域横向的起始点和终止点,S(540,0) 、E(580,0)。The waveform marker P corresponds to the horizontal starting point and ending point of the image area, S(540,0) and E(580,0).
获取波形标识P对应图像区域横向的起始点和终止点后,根据参考操作指令的约定生成模拟操作指令为:{area:(540,580);key:(alt,R);mouse:()}。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:()}.
需要注意的是,根据本发明提供的辅助系统,从窗口的角度进行心电图干扰波形处理时,为了避免心电图图像尺寸变化增加整体计算复杂度,不提供对干扰波形的删除处理。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.
本发明提供的处理心电图干扰波形的辅助系统与部署于心电图系统终端的部分(界面提取模块、操作处理模块)及与心电图系统的协同交互过程如图2所示:The auxiliary system for processing electrocardiogram interference waveforms 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 shown in FIG2 :
心电图系统运行后,由辅助系统服务端或操作人员调度界面提取模块触发录屏,同时,触发操作处理模块模拟鼠标以合适的速度模拟拉动滚动条,便于录屏过程中能够保证心电图在采集时间段内的所有波形都能获取;录屏完成后,界面提取模块将视频文件推送至辅助系统服务端,转换为图像文件,并在服务端确定干扰波形的波形标识;由操作处理模块在心电图系统识别人工的操作,生成参考操作指令,根据干扰波形的波形标识生成模拟操作指令,在心电图系统运行模拟操作指令,以模拟人工操作,批量实现对干扰波形的识别和标注。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.
本发明首先跳过复杂的心电图的数据解析的过程,以心电图系统已实现的功能出发,提取心电图的图片文件,提取图片文件中的波形特征,此时的波形特征为图像特征,仅从图像的角度去分析个性化的干扰波形,因此也不需要考虑医学领域的波形数据分析,不需要考虑不同的数据标准,并可兼容运行心电图系统的不同分辨率的显示器和不同大小的窗口;再次,本发明在确定了干扰波形特征的基础上,模拟医生在心电图系统的操作,辅助医生实现干扰波形的自动批量处理,减少医生的重复操作,提高医生的工作效率。The present invention firstly skips the complicated electrocardiogram data analysis process, starts from the functions realized by the electrocardiogram system, extracts the electrocardiogram picture file, extracts the waveform features in the picture file, and the waveform features at this time are image features, and only analyzes the personalized interference waveform from the perspective of the image, so there is no need to consider the waveform data analysis in the medical field, there is no need to consider different data standards, and it 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.
以上公开的仅为本发明的几个具体实施例,但是,本发明并非局限于此,任何本领域的技术人员能思之的变化都应落入本发明的保护范围。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 (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410853304.6A CN118398178B (en) | 2024-06-28 | 2024-06-28 | An auxiliary system for processing electrocardiogram interference waveform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410853304.6A CN118398178B (en) | 2024-06-28 | 2024-06-28 | An auxiliary system for processing electrocardiogram interference waveform |
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 | An auxiliary system for processing electrocardiogram interference waveform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118398178B (en) |
Citations (10)
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 |
-
2024
- 2024-06-28 CN CN202410853304.6A patent/CN118398178B/en active Active
Patent Citations (10)
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)
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 |
---|---|---|
JP4493310B2 (en) | Method and apparatus for performing interactive annotation and measurement functions of time series data by automatic marking | |
JP3578457B2 (en) | Information management in endoscopy systems | |
JP4493311B2 (en) | Method and apparatus for performing interactive annotation and measurement functions of time series data with automatic marker sequence creation | |
JP5057636B2 (en) | Method and apparatus for performing interactive annotation and measurement functions of time series data | |
CN103777840B (en) | For the stacking chart of the navigation of intraoral image | |
JP4405172B2 (en) | Medical system | |
CN104395883A (en) | Application coordination system, application coordination method, and application coordination program | |
CN110495872A (en) | Ecg analysis method, apparatus, equipment and medium based on picture and heart-beat messages | |
JP2004261583A (en) | Method and apparatus for interactive annotation and measurement of time series data to perform central intensive analysis and review | |
KR101576047B1 (en) | Method and apparatus of generating structured report including region of interest information in medical image reading processing | |
CN112381006A (en) | Ultrasonic image analysis method, storage medium and terminal equipment | |
CN104866579A (en) | Dynamic cardiogram graphical data processing method, client and server | |
CN108664119B (en) | Method and device for configuring mapping relation between somatosensory motion and virtual operation | |
CN118398178B (en) | An auxiliary system for processing electrocardiogram interference waveform | |
EP1406198A2 (en) | Method and apparatus for interactive annotation and measurement of time series data | |
CN110269641B (en) | Ultrasonic imaging auxiliary guiding method, system, equipment and storage medium | |
EP4397233A1 (en) | Process control system and implementation method for standardized blood pressure measurement | |
CN111326263A (en) | Method, device and equipment for displaying labeling track and computer readable storage medium | |
CN117224141A (en) | Waveform icon marking method, waveform icon display device and readable storage medium | |
WO2024005344A1 (en) | Thumbnail provision method for patient management system, and computing device performing same method | |
JP5181008B2 (en) | Automatic processing list creation apparatus, method and program | |
CN113223693B (en) | Electrocardiogram machine online interaction method, electrocardiograph machine and storage medium | |
JP4583721B2 (en) | Interpretation support system and interpretation support program | |
CN101321493A (en) | Lead wire type electrocardiograph | |
CN117274139B (en) | Oral area identification method, device, equipment and storage medium |
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 | ||
TR01 | Transfer of patent right |
Effective date of registration: 20250109 Address after: 8th Floor, Guizhou (Wudang) Big Data Smart Industry Base, No. 67 Gaoxin Road, Wudang District, Guiyang City, Guizhou Province, 550000 Patentee after: GUIZHOU ZHONGZHI HEYI TECHNOLOGY DEVELOPMENT CO.,LTD. Country or region after: China Patentee after: GUIZHOU PROVINCIAL PEOPLE'S Hospital Patentee after: THE AFFILIATED HOSPITAL OF GUIZHOU MEDICAL University Address before: 8th Floor, Guizhou (Wudang) Big Data Smart Industry Base, No. 67 Gaoxin Road, Wudang District, Guiyang City, Guizhou Province, 550000 Patentee before: GUIZHOU ZHONGZHI HEYI TECHNOLOGY DEVELOPMENT CO.,LTD. Country or region before: China |
|
TR01 | Transfer of patent right |