WO2020154909A1 - Method and apparatus for determining rotation direction of vector cardiographic loop - Google Patents

Method and apparatus for determining rotation direction of vector cardiographic loop Download PDF

Info

Publication number
WO2020154909A1
WO2020154909A1 PCT/CN2019/073745 CN2019073745W WO2020154909A1 WO 2020154909 A1 WO2020154909 A1 WO 2020154909A1 CN 2019073745 W CN2019073745 W CN 2019073745W WO 2020154909 A1 WO2020154909 A1 WO 2020154909A1
Authority
WO
WIPO (PCT)
Prior art keywords
ring
parent ring
node
parent
determined
Prior art date
Application number
PCT/CN2019/073745
Other languages
French (fr)
Chinese (zh)
Inventor
刘晓潞
李上奖
Original Assignee
深圳市科曼医疗设备有限公司
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 深圳市科曼医疗设备有限公司 filed Critical 深圳市科曼医疗设备有限公司
Priority to PCT/CN2019/073745 priority Critical patent/WO2020154909A1/en
Publication of WO2020154909A1 publication Critical patent/WO2020154909A1/en

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/24Detecting, measuring or recording bioelectric or biomagnetic signals of the body or parts thereof
    • A61B5/316Modalities, i.e. specific diagnostic methods
    • A61B5/318Heart-related electrical modalities, e.g. electrocardiography [ECG]

Definitions

  • the invention belongs to the technical field of electrocardiogram vector analysis, and particularly relates to a method and device for judging the rotation direction of an electrocardiogram ring.
  • the vector product algorithm is mostly used to determine the rotation direction of the ring.
  • the judgment result is inaccurate due to the existence of multiple nodes.
  • the type of ECG vector loop cannot be determined, so the direct use of the vector product algorithm cannot accurately determine its rotation direction.
  • the technical problem to be solved by the present invention is how to accurately determine the rotation direction of the multi-figure ECG ring.
  • an embodiment of the present invention discloses a method for judging the direction of rotation of an electrocardiogram loop, including:
  • the parent ring to be judged is at least two nodeless subrings, and the nodeless subring is a subring without nodes on the ring; calculate the vector product of the nodeless subrings according to the vector product algorithm to calculate the vector product of the nodeless subrings according to the vector of the nodeless subrings
  • the size of the product modulus is used to determine the direction of rotation of the parent ring to be determined.
  • judging whether there is a node on the parent ring to be judged based on the starting point and the end point according to the recursive algorithm includes: judging whether the line segments on the parent ring to be judged intersect based on the starting point and the end point; if the line segments on the parent ring to be judged intersect , Then calculate the intersection point and determine the intersection point as the node.
  • the parent ring to be judged between obtaining the starting point and the end point of the parent ring to be judged and the parent ring to be judged and judging whether there are nodes on the parent ring to be judged based on the starting point and the end point according to the recursive algorithm, it also includes: removing the parent ring to be judged Repeat the dots continuously.
  • dividing the parent ring to be judged into at least two nodeless child rings according to the nodes includes: if there are nodes on the parent ring to be judged, dividing the parent ring to be judged according to the nodes
  • the parent ring is two child rings, and the child ring is determined as the new parent ring; based on the nodes, it is determined whether there are other nodes on the new parent ring according to the recursive algorithm; if there are no other nodes on the new parent ring, the new parent is determined
  • the ring is the nodeless child ring of the parent ring to be judged.
  • an embodiment of the present invention provides a device for judging the direction of rotation of an electrocardiogram loop, including:
  • the parent ring to be judged module is used to obtain the starting point and the end point of the parent ring to be judged and the parent ring to be judged; the node judgment module is used to judge whether there is a node on the parent ring to be judged based on the starting point and the end point according to the recursive algorithm;
  • the sub-ring division module is used to divide the parent ring to be judged into at least two nodeless child rings according to the nodes if there are nodes on the parent ring to be judged, and the nodeless child ring is a child ring without nodes on the ring;
  • the vector product calculation module is used to calculate the vector products of the nodeless sub-rings according to the vector product algorithm to determine the direction of rotation of the parent ring to be determined according to the magnitude of the vector product of the nodeless sub-rings.
  • the node judging module includes: an intersection judging unit for judging whether the line segments on the parent ring to be judged intersect based on the starting point and the end point; the node determining unit is used for judging if the intersection judging unit judges on the parent ring to be judged If the line segments intersect, the intersection is calculated and the intersection is determined as the node.
  • a repeated point elimination module for eliminating consecutive repeated points on the parent ring to be determined.
  • the sub-ring division module includes: a new parent ring unit, which is used to divide the parent ring to be determined into two child rings according to the node if there is a node on the parent ring to be determined, and determine the child ring as the new parent ring ;
  • the new node judgment unit is used to judge whether there are other nodes on the new parent ring based on the nodes according to the recursive algorithm;
  • the nodeless child ring determination unit is used to determine if the new node judgment unit judges that there are no other nodes on the new parent ring Node, the new parent ring is determined to be the nodeless child ring of the parent ring to be determined.
  • the present invention provides a computer device, including a processor, configured to execute a computer program stored in a memory to implement the method for determining the direction of rotation of the ECG loop of any one of the above-mentioned first aspects.
  • the present invention provides a computer-readable storage medium on which a computer program is stored, and the processor is configured to execute the computer program stored in the storage medium to realize the direction of rotation of the ECG loop of any one of the above-mentioned first aspect Judgment method.
  • the method and device for judging the direction of rotation of the electrocardiogram loop disclosed in the embodiment of the present invention first obtain the starting point and the end point of the parent ring to be judged and the parent ring to be judged, and then judge whether there is a node on the parent ring to be judged, and if so According to the node, the parent ring to be judged is divided into at least two nodeless child rings, and then the vector product of the nodeless child ring is calculated according to the vector product algorithm to determine the parent ring to be judged according to the magnitude of the vector product modulus The direction of rotation.
  • the solution disclosed in the embodiment of the present invention enables the determination of the rotation direction of the ECG vector loop through the nodeless sub-ring vector product model
  • the size is used to determine whether the parent ring to be determined is a figure-eight ring, and then the direction of rotation of the ECG ring is determined, which improves the accuracy of the judgment.
  • the consecutive repeated points on the parent ring to be judged are first eliminated to prevent unnecessary sub-rings with 0 area from being generated, which reduces the amount of calculation. Improve calculation speed.
  • FIG. 1 is a flowchart of a method for determining the direction of rotation of an electrocardiogram loop according to an embodiment of the present invention
  • Fig. 2 is a schematic structural diagram of a device for determining the direction of rotation of an electrocardiogram loop according to an embodiment of the present invention.
  • installation should be interpreted broadly unless otherwise clearly specified and limited.
  • it can be a fixed connection or a detachable connection.
  • Connected or integrally connected can be a mechanical connection or an electrical connection; it can be directly connected, or indirectly connected through an intermediate medium, or it can be the internal connection of the two components, which can be a wireless connection or a wired connection connection.
  • the specific meaning of the above-mentioned terms in the present invention can be understood under specific circumstances.
  • FIG. 1 is a flowchart of a method for judging the rotation direction of the electrocardiogram loop disclosed in this embodiment.
  • the method for judging the rotation direction of the electrocardiogram loop includes:
  • Step S101 Obtain the starting point and the end point of the parent ring to be determined and the parent ring to be determined.
  • the parent ring to be determined refers to the electrocardiographic vector ring that needs to be determined in the direction of rotation.
  • the parent ring to be determined may be an ECG ring with a known shape, for example, a nodeless ring, a single figure-eight ring, a multi-figure eight ring, or an ECG ring with an unknown shape. Since the starting point and the end point of the ECG loop are known, the starting point and end point of the parent ring to be judged are also obtained when the parent ring to be judged is obtained. In the specific implementation process, when the parent ring to be determined is a multi-figure eight ring, the starting point can be on the initial child ring of the parent ring to be determined, the tail terminal ring, or the middle child ring.
  • step S101 may further include: excluding consecutive repeated points on the parent ring to be determined. It can avoid generating unnecessary sub-rings with zero area and reduce the amount of calculation.
  • Step S102 based on the starting point and the ending point, it is judged whether there is a node on the parent ring to be judged according to the recursive algorithm.
  • step S102 may further include: separately determining whether the line segments on the parent ring to be determined intersect based on the starting point and the end point; if the line segments on the parent ring to be determined intersect, calculating the intersection point and determining the intersection point as a node.
  • a loop statement can be used to determine whether the line segment p i p i+1 and the line segment p j p j+1 on the parent ring to be determined intersect, where the condition is j>i+1.
  • no intersection judgment is made for the following special cases:
  • Pi and p j+1 are one point; (2) The line segment p i p i+1 and the line segment p j p j+1 are collinear.
  • the vector method can be used to calculate the intersection point of the line segment p i p i+1 and the line segment p j p j+1 , or the plane geometric method can be used to solve the point oblique equation.
  • using the vector method to solve the intersection point should be a calculation method well known to those skilled in the art, and the method of obtaining the intersection point of the line segment p i p i+1 and the line segment p j p j+1 using other methods should be regarded as Direct replacement of common technical means in this field.
  • step S103 If it is judged that there is a node on the parent ring to be judged, proceed to step S103; if it is judged that there is no node on the parent ring to be judged, the vector product of the parent ring to be judged is directly calculated according to the vector product algorithm to judge the current parent ring to be judged The direction of rotation of the parent ring. In addition, in this step, the shape of the parent ring to be determined can also be determined. If there is a node on the parent ring to be determined, then the parent ring to be determined is determined to be a figure-eight ring. If there is no node on the parent ring to be determined, Then it is to be judged that the parent ring is a nodeless ring.
  • the vector product of the parent ring to be determined is positive, it means that the parent ring to be determined is rotating clockwise, otherwise, it means that the parent ring to be determined is rotating counterclockwise.
  • Step S103 dividing the parent ring to be judged into at least two nodeless child rings according to the nodes.
  • a nodeless sub-ring is a sub-ring without nodes on the ring.
  • Step S103 specifically includes: if there is a node on the parent ring to be determined, divide the parent ring to be determined into two child rings according to the nodes, and determine the child ring as the new parent ring; and determine the new parent ring based on the nodes according to the recursive algorithm. Whether there are other nodes on the ring; if there are no other nodes on the new parent ring, the new parent ring is determined to be the nodeless child ring of the parent ring to be determined.
  • step S103 is repeated until the parent ring to be determined is all divided into nodeless child rings. If it is determined that there are no other nodes on the new parent ring, it is determined that the new parent ring is the nodeless child ring of the parent ring to be determined. Then, according to the vector product algorithm, the vector product of each nodeless sub-ring is calculated. For the vector product calculation method of each nodeless sub-ring, please refer to the description in step S102.
  • the shape of the parent ring to be determined can be further determined. If there is a node on the new parent ring, it is determined that the parent ring to be determined is a multi-figure eight ring. If there is no node on the new parent ring, then The parent ring to be determined is a single 8-shaped ring.
  • Step S104 Calculate the vector products of the nodeless sub-rings according to the vector product algorithm to determine the direction of rotation of the parent ring to be determined according to the magnitude of the vector product of the nodeless sub-rings.
  • the rotation direction of the nodeless subring with positive vector product is clockwise
  • the rotation direction of the nodeless subring with negative vector product is clockwise.
  • the direction of rotation is counterclockwise.
  • This embodiment first obtains the starting point and end point of the parent ring to be judged and the parent ring to be judged, and then judges whether there is a node on the parent ring to be judged. If there is a node, the parent ring to be judged is divided into at least two according to the node. According to the vector product algorithm, calculate the vector products of the nodeless sub-rings to determine the direction of rotation of the parent ring to be judged according to the magnitude of the vector product modulus.
  • the solution disclosed in the embodiment of the present invention enables the determination of the rotation direction of the ECG vector loop through the nodeless sub-ring vector product model
  • the size is used to determine whether the parent ring to be determined is a figure-eight ring, and then the direction of rotation of the ECG ring is determined, which improves the accuracy of the judgment.
  • This embodiment also discloses a device for judging the direction of rotation of the electrocardiogram loop.
  • FIG. 2 is a schematic structural diagram of the device for judging the direction of rotation of the electrocardiogram loop.
  • the device for judging the direction of rotation of the electrocardiogram loop includes:
  • the parent ring to be judged module 201 is used to obtain the starting point and the end point of the parent ring to be judged and the parent ring to be judged; the node judgment module 202 is used to judge whether there is a node on the parent ring to be judged based on the starting point and the end point according to the recursive algorithm.
  • sub-ring division module 203 for if there is a node on the parent ring to be determined, the parent ring to be determined is divided into at least two nodeless child rings according to the node, and the nodeless child ring is the one where no node exists on the ring
  • the sub-ring; the vector product calculation module 204 is used to calculate the vector products of the nodeless sub-rings according to the vector product algorithm to determine the direction of rotation of the parent ring to be judged according to the magnitude of the modulus of the nodeless sub-rings.
  • the node determining module 202 includes: an intersection determining unit, which is used to determine whether the line segments on the parent ring to be determined intersect based on the starting point and the end point; the node determining unit is used to determine if the intersecting determining unit determines When it is judged that the line segments on the parent ring intersect, the intersection is calculated and the intersection is determined as a node.
  • the device for judging the direction of rotation of the electrocardiogram loop further includes: a repeated point elimination module for eliminating consecutive repeated points on the parent ring to be determined.
  • the sub-ring division module 203 includes: a new parent ring unit, which is used to divide the parent ring to be determined into two sub-rings according to the node if there is a node on the parent ring to be determined, and divide the child ring Determined as the new parent ring; the new node judgment unit is used to determine whether there are other nodes on the new parent ring based on the nodes and according to the recursive algorithm; the nodeless child ring determination unit is used to determine if the new node judgment unit judges the new parent If there are no other nodes on the ring, the new parent ring is determined to be the nodeless child ring of the parent ring to be determined.
  • an embodiment of the present invention also provides a computer device, and the processor executes the computer instruction to implement the following method:
  • the parent ring to be judged is at least two nodeless subrings, and the nodeless subring is a subring without nodes on the ring; calculate the vector product of the nodeless subrings according to the vector product algorithm to calculate the vector product of the nodeless subrings according to the vector of the nodeless subrings
  • the size of the product modulus is used to determine the direction of rotation of the parent ring to be determined.
  • the program can be stored in a computer readable storage medium. During execution, it may include the procedures of the above-mentioned method embodiments.
  • the storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
  • the computer processor is used to execute the computer program stored in the storage medium to implement the following methods:
  • the parent ring to be judged is at least two nodeless subrings, and the nodeless subring is a subring without nodes on the ring; calculate the vector product of the nodeless subrings according to the vector product algorithm to calculate the vector product of the nodeless subrings according to the vector of the nodeless subrings
  • the size of the product modulus is used to determine the direction of rotation of the parent ring to be determined.

Landscapes

  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Medical Informatics (AREA)
  • Biophysics (AREA)
  • Pathology (AREA)
  • Engineering & Computer Science (AREA)
  • Biomedical Technology (AREA)
  • Cardiology (AREA)
  • Physics & Mathematics (AREA)
  • Molecular Biology (AREA)
  • Surgery (AREA)
  • Animal Behavior & Ethology (AREA)
  • General Health & Medical Sciences (AREA)
  • Public Health (AREA)
  • Veterinary Medicine (AREA)
  • Measurement And Recording Of Electrical Phenomena And Electrical Characteristics Of The Living Body (AREA)

Abstract

A method and apparatus for determining the rotation direction of a vector cardiographic loop. The method comprises: acquiring a parent loop to be determined, and a starting point and an end point of said parent loop (S101); based on the starting point and the end point, determining, according to a recursive algorithm, whether there is a node on said parent loop (S102); if there is a node on said parent loop, dividing, according to the node, said parent loop into at least two node-free child loops (S103), wherein the node-free child loops are child loops without nodes on the loops; and respectively calculating the vector products of the node-free child loops according to a vector product algorithm, so as to determine, according to the sizes of the moduli of the vector products of the node-free child loops, the rotation direction of said parent loop (S104). According to the solution, the rotation direction of a multi-8-shaped vector cardiographic loop can be accurately determined.

Description

一种心电向量环旋转方向判断方法和装置Method and device for judging rotation direction of electrocardiogram vector loop 技术领域Technical field
本发明属于心电向量分析技术领域,具体涉及一种心电向量环旋转方向判断方法和装置。The invention belongs to the technical field of electrocardiogram vector analysis, and particularly relates to a method and device for judging the rotation direction of an electrocardiogram ring.
背景技术Background technique
在心电向量分析中,判断心电向量环的旋转方向是一个重要的部分。但是在心电向量环中标记处心电向量环的运行方向需要医生用肉眼观察各个泪点,工作量较大,对于含有密集泪点的心电向量环,观察时间正常,因此为了便于会诊,仍然需要增添自动判断心电向量环的运行方向的模块。In the ECG vector analysis, judging the direction of rotation of the ECG ring is an important part. However, the running direction of the ECG vector ring marked in the ECG vector ring requires the doctor to observe each punctum with the naked eye. The workload is relatively large. For the ECG vector ring with dense punctum, the observation time is normal. Therefore, in order to facilitate the consultation, it is still It is necessary to add a module to automatically determine the direction of the ECG vector loop.
在现有技术中,对于无结点环和单8字形环大多采用矢量积算法判断环的旋转方向。但是对于多8字形的心电向量环,直接使用矢量积算法对其旋转方向进行判断时,由于其存在多个结点,导致判断结果不准确。此外,对于未知的心电向量环,由于无法判断其心电向量环的类型,因此直接使用矢量积的算法也无法准确的判断其旋转方向。In the prior art, for nodeless rings and single figure-of-eight rings, the vector product algorithm is mostly used to determine the rotation direction of the ring. However, for the multi-figure ECG vector loop, when the vector product algorithm is directly used to judge its rotation direction, the judgment result is inaccurate due to the existence of multiple nodes. In addition, for unknown ECG vector loops, the type of ECG vector loop cannot be determined, so the direct use of the vector product algorithm cannot accurately determine its rotation direction.
因此,如何准确的判断多8字形的心电向量环的旋转方向成为亟待解决的技术问题。Therefore, how to accurately determine the rotation direction of the multi-eight-shaped electrocardiogram loop becomes a technical problem to be solved urgently.
发明内容Summary of the invention
本发明要解决的技术问题在于如何准确的判断多8字形的心电向量环的旋转方向。The technical problem to be solved by the present invention is how to accurately determine the rotation direction of the multi-figure ECG ring.
为此,根据第一方面,本发明实施例公开了一种心电向量环旋转方向判断方法,包括:To this end, according to the first aspect, an embodiment of the present invention discloses a method for judging the direction of rotation of an electrocardiogram loop, including:
获取待判断父环和待判断父环的起始点和终点;基于起始点和终点按照递归算法判断待判断父环上是否存在结点;如果待判断父环上存在结点,则根据结点划分待判断父环为至少两个无结点子环,无结点子环为环上不存在结点的子环;按照矢量积算法分别计算无结点子环的矢量积,以根据无结点子环的矢量积的模的大小来判断待判断父环的旋转方向。Get the starting point and end point of the parent ring to be judged and the parent ring to be judged; based on the starting point and end point, it is judged whether there is a node on the parent ring to be judged according to the recursive algorithm; if there is a node on the parent ring to be judged, it is divided according to the node The parent ring to be judged is at least two nodeless subrings, and the nodeless subring is a subring without nodes on the ring; calculate the vector product of the nodeless subrings according to the vector product algorithm to calculate the vector product of the nodeless subrings according to the vector of the nodeless subrings The size of the product modulus is used to determine the direction of rotation of the parent ring to be determined.
可选地,基于起始点和终点按照递归算法判断待判断父环上是否存在结点包括:基于起始点和终点分别判断待判断父环上的线段是否相交;如果待判断父环上的线段相交,则计算交点,并确定交点为结点。Optionally, judging whether there is a node on the parent ring to be judged based on the starting point and the end point according to the recursive algorithm includes: judging whether the line segments on the parent ring to be judged intersect based on the starting point and the end point; if the line segments on the parent ring to be judged intersect , Then calculate the intersection point and determine the intersection point as the node.
可选地,在获取待判断父环和待判断父环的起始点和终点与基于起始点和终点按照递归 算法判断待判断父环上是否存在结点之间,还包括:剔除待判断父环上连续的重复点。Optionally, between obtaining the starting point and the end point of the parent ring to be judged and the parent ring to be judged and judging whether there are nodes on the parent ring to be judged based on the starting point and the end point according to the recursive algorithm, it also includes: removing the parent ring to be judged Repeat the dots continuously.
可选地,如果待判断父环上存在结点,则根据结点划分待判断父环为至少两个无结点子环包括:如果待判断父环上存在结点,则根据结点划分待判断父环为两个子环,并将子环确定为新父环;基于结点按照递归算法分别判断新父环上是否存在其他结点;如果新父环上不存在其他结点,则确定新父环为待判断父环的无结点子环。Optionally, if there are nodes on the parent ring to be judged, dividing the parent ring to be judged into at least two nodeless child rings according to the nodes includes: if there are nodes on the parent ring to be judged, dividing the parent ring to be judged according to the nodes The parent ring is two child rings, and the child ring is determined as the new parent ring; based on the nodes, it is determined whether there are other nodes on the new parent ring according to the recursive algorithm; if there are no other nodes on the new parent ring, the new parent is determined The ring is the nodeless child ring of the parent ring to be judged.
根据第二方面,本发明实施例提供了一种心电向量环旋转方向判断装置,包括:According to the second aspect, an embodiment of the present invention provides a device for judging the direction of rotation of an electrocardiogram loop, including:
待判断父环模块,用于获取待判断父环和待判断父环的起始点和终点;结点判断模块,用于基于起始点和终点按照递归算法判断待判断父环上是否存在结点;子环划分模块,用于如果待判断父环上存在结点,则根据结点划分待判断父环为至少两个无结点子环,无结点子环为环上不存在结点的子环;矢量积计算模块,用于按照矢量积算法分别计算无结点子环的矢量积,以根据无结点子环的矢量积的模的大小来判断待判断父环的旋转方向。The parent ring to be judged module is used to obtain the starting point and the end point of the parent ring to be judged and the parent ring to be judged; the node judgment module is used to judge whether there is a node on the parent ring to be judged based on the starting point and the end point according to the recursive algorithm; The sub-ring division module is used to divide the parent ring to be judged into at least two nodeless child rings according to the nodes if there are nodes on the parent ring to be judged, and the nodeless child ring is a child ring without nodes on the ring; The vector product calculation module is used to calculate the vector products of the nodeless sub-rings according to the vector product algorithm to determine the direction of rotation of the parent ring to be determined according to the magnitude of the vector product of the nodeless sub-rings.
可选地,结点判断模块包括:相交判断单元,用于基于起始点和终点分别判断待判断父环上的线段是否相交;结点确定单元,用于如果相交判断单元判断待判断父环上的线段相交,则计算交点,并确定交点为结点。Optionally, the node judging module includes: an intersection judging unit for judging whether the line segments on the parent ring to be judged intersect based on the starting point and the end point; the node determining unit is used for judging if the intersection judging unit judges on the parent ring to be judged If the line segments intersect, the intersection is calculated and the intersection is determined as the node.
可选地,还包括:重复点剔除模块,用于剔除待判断父环上连续的重复点。Optionally, it further includes: a repeated point elimination module for eliminating consecutive repeated points on the parent ring to be determined.
可选地,子环划分模块包括:新父环单元,用于如果待判断父环上存在结点,则根据结点划分待判断父环为两个子环,并将子环确定为新父环;新结点判断单元,用于基于结点按照递归算法分别判断新父环上是否存在其他结点;无结点子环确定单元,用于如果新结点判断单元判断新父环上不存在其他结点,则确定新父环为待判断父环的无结点子环。Optionally, the sub-ring division module includes: a new parent ring unit, which is used to divide the parent ring to be determined into two child rings according to the node if there is a node on the parent ring to be determined, and determine the child ring as the new parent ring ; The new node judgment unit is used to judge whether there are other nodes on the new parent ring based on the nodes according to the recursive algorithm; the nodeless child ring determination unit is used to determine if the new node judgment unit judges that there are no other nodes on the new parent ring Node, the new parent ring is determined to be the nodeless child ring of the parent ring to be determined.
根据第三方面,本发明提供了一种计算机装置,包括处理器,处理器用于执行存储器中存储的计算机程序实现上述第一方面任意一项的心电向量环旋转方向判断方法。According to a third aspect, the present invention provides a computer device, including a processor, configured to execute a computer program stored in a memory to implement the method for determining the direction of rotation of the ECG loop of any one of the above-mentioned first aspects.
根据第四方面,本发明提供了一种计算机可读存储介质,其上存储有计算机程序,处理器用于执行存储介质中存储的计算机程序实现上述第一方面任意一项的心电向量环旋转方向判断方法。According to a fourth aspect, the present invention provides a computer-readable storage medium on which a computer program is stored, and the processor is configured to execute the computer program stored in the storage medium to realize the direction of rotation of the ECG loop of any one of the above-mentioned first aspect Judgment method.
本发明的有益效果在于:The beneficial effects of the present invention are:
本发明实施例公开的一种心电向量环旋转方向判断方法和装置,首先获取待判断父环和待判断父环的起始点和终点,然后判断待判断父环上是否存在结点,如果存在结点,则根据结点将待判断父环划分为至少两个无结点子环,再按照矢量积算法分别计算无结点子环的矢 量积,以根据矢量积模的大小来判断待判断父环的旋转方向。相对于现有技术中直接使用矢量积判断心电向量环的旋转方向的方案,本发明实施例公开的方案使得在判断心电向量环的旋转方向时,能够通过无结点子环矢量积模的大小来判断待判断父环是否为8字形环,继而确定心电向量环的旋转方向,提高了判断的准确性。The method and device for judging the direction of rotation of the electrocardiogram loop disclosed in the embodiment of the present invention first obtain the starting point and the end point of the parent ring to be judged and the parent ring to be judged, and then judge whether there is a node on the parent ring to be judged, and if so According to the node, the parent ring to be judged is divided into at least two nodeless child rings, and then the vector product of the nodeless child ring is calculated according to the vector product algorithm to determine the parent ring to be judged according to the magnitude of the vector product modulus The direction of rotation. Compared with the solution in the prior art that directly uses the vector product to determine the rotation direction of the ECG vector loop, the solution disclosed in the embodiment of the present invention enables the determination of the rotation direction of the ECG vector loop through the nodeless sub-ring vector product model The size is used to determine whether the parent ring to be determined is a figure-eight ring, and then the direction of rotation of the ECG ring is determined, which improves the accuracy of the judgment.
在可选的实施例中,在判断待判断父环上是否存在结点之前,首先剔除待判断父环上连续的重复点,以防生成不必要的0面积的子环,减少了计算量,提高计算速度。In an alternative embodiment, before judging whether there is a node on the parent ring to be judged, the consecutive repeated points on the parent ring to be judged are first eliminated to prevent unnecessary sub-rings with 0 area from being generated, which reduces the amount of calculation. Improve calculation speed.
附图说明Description of the drawings
为了更清楚地说明本发明具体实施方式或现有技术中的技术方案,下面将对具体实施方式或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施方式,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the specific embodiments of the present invention or the technical solutions in the prior art more clearly, the following will briefly introduce the drawings that need to be used in the specific embodiments or the description of the prior art. Obviously, the appendix in the following description The drawings are some embodiments of the present invention. For those skilled in the art, without creative work, other drawings can be obtained from these drawings.
图1为本发明实施例一种心电向量环旋转方向判断方法的流程图;FIG. 1 is a flowchart of a method for determining the direction of rotation of an electrocardiogram loop according to an embodiment of the present invention;
图2为本发明实施例一种心电向量环旋转方向判断装置的结构示意图。Fig. 2 is a schematic structural diagram of a device for determining the direction of rotation of an electrocardiogram loop according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合附图对本发明的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of them. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.
在本发明的描述中,需要说明的是,术语“中心”、“上”、“下”、“左”、“右”、“竖直”、“水平”、“内”、“外”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本发明和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本发明的限制。此外,术语“第一”、“第二”、“第三”仅用于描述目的,而不能理解为指示或暗示相对重要性。In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. The indicated orientation or positional relationship is based on the orientation or positional relationship shown in the drawings, and is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the pointed device or element must have a specific orientation or a specific orientation. The structure and operation cannot therefore be understood as a limitation of the present invention. In addition, the terms "first", "second", and "third" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance.
在本发明的描述中,需要说明的是,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,还可以是两个元件内部的连通,可以是无线连接,也可以是有线连接。对于本领域的普通技 术人员而言,可以具体情况理解上述术语在本发明中的具体含义。In the description of the present invention, it should be noted that the terms "installation", "connected" and "connected" should be interpreted broadly unless otherwise clearly specified and limited. For example, it can be a fixed connection or a detachable connection. Connected or integrally connected; it can be a mechanical connection or an electrical connection; it can be directly connected, or indirectly connected through an intermediate medium, or it can be the internal connection of the two components, which can be a wireless connection or a wired connection connection. For those of ordinary skill in the art, the specific meaning of the above-mentioned terms in the present invention can be understood under specific circumstances.
此外,下面所描述的本发明不同实施方式中所涉及的技术特征只要彼此之间未构成冲突就可以相互结合。In addition, the technical features involved in the different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
请参考图1,为本实施例公开的一种心电向量环旋转方向判断方法的流程图,该心电向量环旋转方向判断方法包括:Please refer to FIG. 1, which is a flowchart of a method for judging the rotation direction of the electrocardiogram loop disclosed in this embodiment. The method for judging the rotation direction of the electrocardiogram loop includes:
步骤S101,获取待判断父环和待判断父环的起始点和终点。Step S101: Obtain the starting point and the end point of the parent ring to be determined and the parent ring to be determined.
在本实施例中,待判断父环是指需要进行旋转方向判断的心电向量环。在具体实施例中,待判断父环可以是已知形状的心电向量环,例如,无结点环,单8字形环,多8字形环,也可以是未知形状的心电向量环。由于在心电向量环中,其起始点和终点为已知的,因此获取待判断父环的同时也获取到待判断父环的起始点和终点。在具体实施过程中,当待判断父环为多8字形环时,起始点可以在待判断父环的起始子环上,也可以在尾端子环上,还可以是在中间子环上。In this embodiment, the parent ring to be determined refers to the electrocardiographic vector ring that needs to be determined in the direction of rotation. In a specific embodiment, the parent ring to be determined may be an ECG ring with a known shape, for example, a nodeless ring, a single figure-eight ring, a multi-figure eight ring, or an ECG ring with an unknown shape. Since the starting point and the end point of the ECG loop are known, the starting point and end point of the parent ring to be judged are also obtained when the parent ring to be judged is obtained. In the specific implementation process, when the parent ring to be determined is a multi-figure eight ring, the starting point can be on the initial child ring of the parent ring to be determined, the tail terminal ring, or the middle child ring.
在可选的实施例中,在步骤S101之后,还可以包括:剔除待判断父环上连续的重复点。能够避免生成不必要的0面积的子环,减少计算量。In an optional embodiment, after step S101, it may further include: excluding consecutive repeated points on the parent ring to be determined. It can avoid generating unnecessary sub-rings with zero area and reduce the amount of calculation.
步骤S102,基于起始点和终点按照递归算法判断待判断父环上是否存在结点。Step S102, based on the starting point and the ending point, it is judged whether there is a node on the parent ring to be judged according to the recursive algorithm.
在本实施例中,步骤S102还可以包括:基于起始点和终点分别判断待判断父环上的线段是否相交;如果待判断父环上的线段相交,则计算交点,并确定交点为结点。In this embodiment, step S102 may further include: separately determining whether the line segments on the parent ring to be determined intersect based on the starting point and the end point; if the line segments on the parent ring to be determined intersect, calculating the intersection point and determining the intersection point as a node.
在具体实施例中,可以通过循环语句判断待判断父环上的线段p ip i+1和线段p jp j+1是否相交,其中,条件为j>i+1。在具体实施过程中,为了提高面积计算的准确度,对于以下特殊情况不进行相交判断: In a specific embodiment, a loop statement can be used to determine whether the line segment p i p i+1 and the line segment p j p j+1 on the parent ring to be determined intersect, where the condition is j>i+1. In the specific implementation process, in order to improve the accuracy of area calculation, no intersection judgment is made for the following special cases:
(1)p i与p j+1为一点;(2)线段p ip i+1和线段p jp j+1二者共线。 (1) Pi and p j+1 are one point; (2) The line segment p i p i+1 and the line segment p j p j+1 are collinear.
当计算判断线段p ip i+1和线段p jp j+1相交时,则可以计算出二者的交点p oo点(第二个o=1,2,…,n),从而将待判断父环切分为两个子环。 When the calculation determines that the line segment p i p i+1 and the line segment p j p j+1 intersect, the intersection point p oo of the two can be calculated (the second o = 1, 2, ..., n), and the waiting It is judged that the parent ring is divided into two child rings.
在具体实施过程中,计算线段p ip i+1和线段p jp j+1的交点可以采用向量法求解交点,也可以使用平面几何方法,列点斜式方程来进行求解。在具体实施过程中,使用向量法求解交点应当是本领域内技术人员所熟知的计算方法,使用其他方式得到线段p ip i+1和线段p jp j+1交点的方法应当视为是本领域内常用技术手段的直接置换。 In the specific implementation process, the vector method can be used to calculate the intersection point of the line segment p i p i+1 and the line segment p j p j+1 , or the plane geometric method can be used to solve the point oblique equation. In the specific implementation process, using the vector method to solve the intersection point should be a calculation method well known to those skilled in the art, and the method of obtaining the intersection point of the line segment p i p i+1 and the line segment p j p j+1 using other methods should be regarded as Direct replacement of common technical means in this field.
如果判断待判断父环上存在结点,则继续执行步骤S103;如果判断待判断父环上不存在 结点,则直接按照矢量积算法计算当前待判断父环的矢量积,以判断当前待判断父环的旋转方向。此外,在此步骤中,也可以确定待判断父环的形状,如果待判断父环上存在结点,则判断该待判断父环为8字形环,如果待判断父环上不存在结点,则待判断父环为无结点环。If it is judged that there is a node on the parent ring to be judged, proceed to step S103; if it is judged that there is no node on the parent ring to be judged, the vector product of the parent ring to be judged is directly calculated according to the vector product algorithm to judge the current parent ring to be judged The direction of rotation of the parent ring. In addition, in this step, the shape of the parent ring to be determined can also be determined. If there is a node on the parent ring to be determined, then the parent ring to be determined is determined to be a figure-eight ring. If there is no node on the parent ring to be determined, Then it is to be judged that the parent ring is a nodeless ring.
矢量积算法计算过程列举如下:The calculation process of the vector product algorithm is listed as follows:
由于采用矢量积法的前提是确定环在数学意义上是闭环的,即p n等于p 1。为了保证上述条件,在已知的点后添加p n+1点,p n+1等于p 1Since the premise of using the vector product method is to determine that the ring is closed in the mathematical sense, that is, p n is equal to p 1 . In order to ensure the above conditions, p n+1 points are added after the known points, and p n+1 is equal to p 1 .
由此,其矢量积为:Therefore, its vector product is:
Figure PCTCN2019073745-appb-000001
Figure PCTCN2019073745-appb-000001
即使p n+1也等于p 1,最后一个行列式为0,因此,其矢量积的大小不受影响,因此添加p n+1并不影响环的矢量积。反而,如果p n不等于p 1,则计算的环的矢量积有误差。 Even if p n+1 is equal to p 1 , the last determinant is 0, so the size of its vector product is not affected, so adding p n+1 does not affect the vector product of the ring. On the contrary, if p n is not equal to p 1 , the calculated vector product of the ring has an error.
当待判断父环的矢量积为正时,则表示待判断父环为顺时针旋转,反之,则表示待判断父环为逆时针旋转。When the vector product of the parent ring to be determined is positive, it means that the parent ring to be determined is rotating clockwise, otherwise, it means that the parent ring to be determined is rotating counterclockwise.
步骤S103,根据结点划分待判断父环为至少两个无结点子环。Step S103, dividing the parent ring to be judged into at least two nodeless child rings according to the nodes.
在本实施例中,无结点子环为环上不存在结点的子环。步骤S103具体的包括:如果待判断父环上存在结点,则根据结点划分待判断父环为两个子环,并将子环确定为新父环;基于结点按照递归算法分别判断新父环上是否存在其他结点;如果新父环上不存在其他结点,则确定新父环为待判断父环的无结点子环。In this embodiment, a nodeless sub-ring is a sub-ring without nodes on the ring. Step S103 specifically includes: if there is a node on the parent ring to be determined, divide the parent ring to be determined into two child rings according to the nodes, and determine the child ring as the new parent ring; and determine the new parent ring based on the nodes according to the recursive algorithm. Whether there are other nodes on the ring; if there are no other nodes on the new parent ring, the new parent ring is determined to be the nodeless child ring of the parent ring to be determined.
在具体实施过程中,如果判断新父环上存在其他结点,则重复执行步骤S103,直至将待判断父环全部划分为无结点子环。如果判断新父环上不存在其他节点,则确定新父环即为待判断父环的无结点子环。随后按照矢量积算法,分别计算各个无结点子环的矢量积。各个无结点子环的矢量积计算方法请参考步骤S102中所述。In the specific implementation process, if it is determined that there are other nodes on the new parent ring, step S103 is repeated until the parent ring to be determined is all divided into nodeless child rings. If it is determined that there are no other nodes on the new parent ring, it is determined that the new parent ring is the nodeless child ring of the parent ring to be determined. Then, according to the vector product algorithm, the vector product of each nodeless sub-ring is calculated. For the vector product calculation method of each nodeless sub-ring, please refer to the description in step S102.
此外,在此步骤中,可以进一步确定待判断父环的形状,如果新父环上存在结点,则判断该待判断父环为多8字形环,如果新父环上不存在结点,则待判断父环为单8字形环。In addition, in this step, the shape of the parent ring to be determined can be further determined. If there is a node on the new parent ring, it is determined that the parent ring to be determined is a multi-figure eight ring. If there is no node on the new parent ring, then The parent ring to be determined is a single 8-shaped ring.
步骤S104,按照矢量积算法分别计算无结点子环的矢量积,以根据无结点子环的矢量积的模的大小来判断待判断父环的旋转方向。Step S104: Calculate the vector products of the nodeless sub-rings according to the vector product algorithm to determine the direction of rotation of the parent ring to be determined according to the magnitude of the vector product of the nodeless sub-rings.
在本实施例中,在按照矢量积算法分别计算出了各个无结点子环的矢量积后,矢量积为正的无结点子环的旋转方向为顺时针,矢量积为负的无结点子环的旋转方向为逆时针。In this embodiment, after the vector product of each nodeless subring is calculated according to the vector product algorithm, the rotation direction of the nodeless subring with positive vector product is clockwise, and the rotation direction of the nodeless subring with negative vector product is clockwise. The direction of rotation is counterclockwise.
本实施例首先获取待判断父环和待判断父环的起始点和终点,然后判断待判断父环上是否存在结点,如果存在结点,则根据结点将待判断父环划分为至少两个无结点子环,再按照矢量积算法分别计算无结点子环的矢量积,以根据矢量积模的大小来判断待判断父环的旋转方向。相对于现有技术中直接使用矢量积判断心电向量环的旋转方向的方案,本发明实施例公开的方案使得在判断心电向量环的旋转方向时,能够通过无结点子环矢量积模的大小来判断待判断父环是否为8字形环,继而确定心电向量环的旋转方向,提高了判断的准确性。This embodiment first obtains the starting point and end point of the parent ring to be judged and the parent ring to be judged, and then judges whether there is a node on the parent ring to be judged. If there is a node, the parent ring to be judged is divided into at least two according to the node. According to the vector product algorithm, calculate the vector products of the nodeless sub-rings to determine the direction of rotation of the parent ring to be judged according to the magnitude of the vector product modulus. Compared with the solution in the prior art that directly uses the vector product to determine the rotation direction of the ECG vector loop, the solution disclosed in the embodiment of the present invention enables the determination of the rotation direction of the ECG vector loop through the nodeless sub-ring vector product model The size is used to determine whether the parent ring to be determined is a figure-eight ring, and then the direction of rotation of the ECG ring is determined, which improves the accuracy of the judgment.
本实施例还公开了一种心电向量环旋转方向判断装置,请参考图2,为该心电向量环旋转方向判断装置结构示意图,该心电向量环旋转方向判断装置包括:This embodiment also discloses a device for judging the direction of rotation of the electrocardiogram loop. Please refer to FIG. 2, which is a schematic structural diagram of the device for judging the direction of rotation of the electrocardiogram loop. The device for judging the direction of rotation of the electrocardiogram loop includes:
待判断父环模块201,用于获取待判断父环和待判断父环的起始点和终点;结点判断模块202,用于基于起始点和终点按照递归算法判断待判断父环上是否存在结点;子环划分模块203,用于如果待判断父环上存在结点,则根据结点划分待判断父环为至少两个无结点子环,无结点子环为环上不存在结点的子环;矢量积计算模块204,用于按照矢量积算法分别计算无结点子环的矢量积,以根据无结点子环的矢量积的模的大小来判断待判断父环的旋转方向。The parent ring to be judged module 201 is used to obtain the starting point and the end point of the parent ring to be judged and the parent ring to be judged; the node judgment module 202 is used to judge whether there is a node on the parent ring to be judged based on the starting point and the end point according to the recursive algorithm. Point; sub-ring division module 203, for if there is a node on the parent ring to be determined, the parent ring to be determined is divided into at least two nodeless child rings according to the node, and the nodeless child ring is the one where no node exists on the ring The sub-ring; the vector product calculation module 204 is used to calculate the vector products of the nodeless sub-rings according to the vector product algorithm to determine the direction of rotation of the parent ring to be judged according to the magnitude of the modulus of the nodeless sub-rings.
在可选的实施例中,结点判断模块202包括:相交判断单元,用于基于起始点和终点分别判断待判断父环上的线段是否相交;结点确定单元,用于如果相交判断单元判断待判断父环上的线段相交,则计算交点,并确定交点为结点。In an optional embodiment, the node determining module 202 includes: an intersection determining unit, which is used to determine whether the line segments on the parent ring to be determined intersect based on the starting point and the end point; the node determining unit is used to determine if the intersecting determining unit determines When it is judged that the line segments on the parent ring intersect, the intersection is calculated and the intersection is determined as a node.
在可选的实施例中,该心电向量环旋转方向判断装置还包括:重复点剔除模块,用于剔除待判断父环上连续的重复点。In an optional embodiment, the device for judging the direction of rotation of the electrocardiogram loop further includes: a repeated point elimination module for eliminating consecutive repeated points on the parent ring to be determined.
在可选的实施例中,子环划分模块203包括:新父环单元,用于如果待判断父环上存在结点,则根据结点划分待判断父环为两个子环,并将子环确定为新父环;新结点判断单元,用于基于结点按照递归算法分别判断新父环上是否存在其他结点;无结点子环确定单元,用于如果新结点判断单元判断新父环上不存在其他结点,则确定新父环为待判断父环的无结点子环。In an optional embodiment, the sub-ring division module 203 includes: a new parent ring unit, which is used to divide the parent ring to be determined into two sub-rings according to the node if there is a node on the parent ring to be determined, and divide the child ring Determined as the new parent ring; the new node judgment unit is used to determine whether there are other nodes on the new parent ring based on the nodes and according to the recursive algorithm; the nodeless child ring determination unit is used to determine if the new node judgment unit judges the new parent If there are no other nodes on the ring, the new parent ring is determined to be the nodeless child ring of the parent ring to be determined.
此外,本发明实施例中还提供一种计算机装置,处理器通过执行所述计算机指令,从而实现以下方法:In addition, an embodiment of the present invention also provides a computer device, and the processor executes the computer instruction to implement the following method:
获取待判断父环和待判断父环的起始点和终点;基于起始点和终点按照递归算法判断待判断父环上是否存在结点;如果待判断父环上存在结点,则根据结点划分待判断父环为至少 两个无结点子环,无结点子环为环上不存在结点的子环;按照矢量积算法分别计算无结点子环的矢量积,以根据无结点子环的矢量积的模的大小来判断待判断父环的旋转方向。Get the starting point and end point of the parent ring to be judged and the parent ring to be judged; based on the starting point and end point, it is judged whether there is a node on the parent ring to be judged according to the recursive algorithm; if there is a node on the parent ring to be judged, it is divided according to the node The parent ring to be judged is at least two nodeless subrings, and the nodeless subring is a subring without nodes on the ring; calculate the vector product of the nodeless subrings according to the vector product algorithm to calculate the vector product of the nodeless subrings according to the vector of the nodeless subrings The size of the product modulus is used to determine the direction of rotation of the parent ring to be determined.
本领域技术人员可以理解,实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(ROM)或随机存储记忆体(RAM)等。计算机处理器用于执行存储介质中存储的计算机程序实现以下方法:Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing relevant hardware through a computer program. The program can be stored in a computer readable storage medium. During execution, it may include the procedures of the above-mentioned method embodiments. Wherein, the storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc. The computer processor is used to execute the computer program stored in the storage medium to implement the following methods:
获取待判断父环和待判断父环的起始点和终点;基于起始点和终点按照递归算法判断待判断父环上是否存在结点;如果待判断父环上存在结点,则根据结点划分待判断父环为至少两个无结点子环,无结点子环为环上不存在结点的子环;按照矢量积算法分别计算无结点子环的矢量积,以根据无结点子环的矢量积的模的大小来判断待判断父环的旋转方向。Get the starting point and end point of the parent ring to be judged and the parent ring to be judged; based on the starting point and end point, it is judged whether there is a node on the parent ring to be judged according to the recursive algorithm; if there is a node on the parent ring to be judged, it is divided according to the node The parent ring to be judged is at least two nodeless subrings, and the nodeless subring is a subring without nodes on the ring; calculate the vector product of the nodeless subrings according to the vector product algorithm to calculate the vector product of the nodeless subrings according to the vector of the nodeless subrings The size of the product modulus is used to determine the direction of rotation of the parent ring to be determined.
以上所述的仅是本发明的实施例,方案中公知的具体结构及特性等常识在此未作过多描述。应当指出,对于本领域的技术人员来说,在不脱离本发明结构的前提下,还可以作出若干变形和改进。这些也应该视为本发明的保护范围,这些都不会影响本发明实施的效果和专利的实用性。本申请要求的保护范围应当以其权利要求的内容为准,说明书中的具体实施方式等记载可以用于解释权利要求的内容。The above are only the embodiments of the present invention, and common knowledge such as specific structures and characteristics known in the solutions are not described here. It should be pointed out that for those skilled in the art, a number of modifications and improvements can be made without departing from the structure of the present invention. These should also be regarded as the protection scope of the present invention, and these will not affect the effect of the implementation of the present invention and the practicability of the patent. The scope of protection claimed in this application shall be subject to the content of the claims, and the specific implementation modes in the description can be used to interpret the content of the claims.

Claims (10)

  1. 一种心电向量环旋转方向判断方法,其特征在于,包括:A method for judging the direction of rotation of an electrocardiogram loop, which is characterized in that it includes:
    获取待判断父环和所述待判断父环的起始点和终点;Acquiring the parent ring to be determined and the starting point and end point of the parent ring to be determined;
    基于所述起始点和所述终点按照递归算法判断所述待判断父环上是否存在结点;Judging whether there is a node on the parent ring to be judged according to a recursive algorithm based on the starting point and the ending point;
    如果所述待判断父环上存在结点,则根据所述结点划分所述待判断父环为至少两个无结点子环,所述无结点子环为环上不存在结点的子环;If there is a node on the parent ring to be determined, the parent ring to be determined is divided into at least two nodeless child rings according to the nodes, and the nodeless child ring is a child ring without nodes on the ring ;
    按照矢量积算法分别计算所述无结点子环的矢量积,以根据所述无结点子环的矢量积的模的大小来判断所述待判断父环的旋转方向。The vector products of the nodeless subrings are respectively calculated according to the vector product algorithm to determine the rotation direction of the parent ring to be determined according to the magnitude of the modulus of the vector product of the nodeless subrings.
  2. 如权利要求1所述的心电向量环旋转方向判断方法,其特征在于,所述基于所述起始点和所述终点按照递归算法判断所述待判断父环上是否存在结点包括:The method for judging the direction of rotation of the ECG loop according to claim 1, wherein said judging whether there is a node on said parent ring to be judged based on said starting point and said end point according to a recursive algorithm comprises:
    基于起始点和所述终点分别判断所述待判断父环上的线段是否相交;Determine whether the line segments on the parent ring to be determined intersect respectively based on the starting point and the end point;
    如果所述待判断父环上的线段相交,则计算交点,并确定所述交点为结点。If the line segments on the parent ring to be judged intersect, the intersection is calculated, and the intersection is determined as a node.
  3. 如权利要求2所述的心电向量环旋转方向判断方法,其特征在于,在所述获取待判断父环和所述待判断父环的起始点和所述终点与所述基于所述起始点和所述终点按照递归算法判断所述待判断父环上是否存在结点之间,还包括:The method for judging the direction of rotation of the electrocardiogram loop according to claim 2, wherein the obtaining the parent ring to be judged and the starting point and the end point of the parent ring to be judged are based on the starting point. Judging whether there are nodes on the parent ring to be judged according to the recursive algorithm with the end point, further including:
    剔除所述待判断父环上连续的重复点。Eliminate consecutive repeated points on the parent ring to be determined.
  4. 如权利要求1-3任意一项所述的心电向量环旋转方向判断方法,其特征在于,所述如果所述待判断父环上存在结点,则根据所述结点划分所述待判断父环为至少两个无结点子环包括:The method for judging the direction of rotation of the electrocardiogram loop according to any one of claims 1 to 3, wherein if there is a node on the parent ring to be judged, the to-be judged is divided according to the node. The parent ring is at least two nodeless child rings including:
    如果所述待判断父环上存在结点,则根据所述结点划分所述待判断父环为两个子环,并将所述子环确定为新父环;If there is a node on the parent ring to be determined, divide the parent ring to be determined into two child rings according to the nodes, and determine the child ring as a new parent ring;
    基于所述结点按照递归算法分别判断所述新父环上是否存在其他结点;Determine whether there are other nodes on the new parent ring based on the nodes according to a recursive algorithm;
    如果所述新父环上不存在其他结点,则确定所述新父环为所述待判断父环的无结点子环。If there are no other nodes on the new parent ring, it is determined that the new parent ring is a nodeless child ring of the parent ring to be determined.
  5. 一种心电向量环旋转方向判断装置,其特征在于,包括:A device for judging the direction of rotation of an electrocardiogram loop, which is characterized in that it comprises:
    待判断父环模块,用于获取待判断父环和所述待判断父环的起始点和终点;The parent ring to be judged module is used to obtain the parent ring to be judged and the starting point and end point of the parent ring to be judged;
    结点判断模块,用于基于所述起始点和所述终点按照递归算法判断所述待判断父环上 是否存在结点;A node judgment module, configured to judge whether there is a node on the parent ring to be judged according to a recursive algorithm based on the starting point and the ending point;
    子环划分模块,用于如果所述待判断父环上存在结点,则根据所述结点划分所述待判断父环为至少两个无结点子环,所述无结点子环为环上不存在结点的子环;The sub-ring division module is configured to divide the parent ring to be judged into at least two node-less sub-rings according to the node if there are nodes on the parent ring to be judged, and the node-free child ring is an upper ring There is no sub-ring of the node;
    矢量积计算模块,用于按照矢量积算法分别计算所述无结点子环的矢量积,以根据所述无结点子环的矢量积的模的大小来判断所述待判断父环的旋转方向。The vector product calculation module is used to calculate the vector products of the nodeless sub-rings according to the vector product algorithm to determine the rotation direction of the parent ring to be determined according to the magnitude of the vector product of the nodeless sub-rings.
  6. 如权利要求5所述的心电向量环旋转方向判断装置,其特征在于,所述结点判断模块包括:The device for judging the direction of rotation of the ECG loop according to claim 5, wherein the node judging module comprises:
    相交判断单元,用于基于起始点和所述终点分别判断所述待判断父环上的线段是否相交;An intersection judging unit, configured to judge whether the line segments on the parent ring to be judged intersect respectively based on the starting point and the ending point;
    结点确定单元,用于如果所述相交判断单元判断所述待判断父环上的线段相交,则计算交点,并确定所述交点为结点。The node determination unit is configured to, if the intersection determination unit determines that the line segments on the parent ring to be determined intersect, calculate the intersection point, and determine that the intersection point is a node.
  7. 如权利要求6所述的心电向量环旋转方向判断装置,其特征在于,还包括:The device for judging the direction of rotation of the ECG vector loop according to claim 6, characterized in that it further comprises:
    重复点剔除模块,用于剔除所述待判断父环上连续的重复点。The repeated point elimination module is used to eliminate consecutive repeated points on the parent ring to be determined.
  8. 如权利要求5-7任意一项所述的心电向量环旋转方向判断装置,其特征在于,所述子环划分模块包括:7. The device for judging the direction of rotation of the ECG ring according to any one of claims 5-7, wherein the sub-ring dividing module comprises:
    新父环单元,用于如果所述待判断父环上存在结点,则根据所述结点划分所述待判断父环为两个子环,并将所述子环确定为新父环;A new parent ring unit, configured to divide the parent ring to be determined into two child rings according to the node if there is a node on the parent ring to be determined, and determine the child ring as the new parent ring;
    新结点判断单元,用于基于所述结点按照递归算法分别判断所述新父环上是否存在其他结点;A new node judging unit, configured to separately judge whether there are other nodes on the new parent ring based on the nodes according to a recursive algorithm;
    无结点子环确定单元,用于如果所述新结点判断单元判断所述新父环上不存在其他结点,则确定所述新父环为所述待判断父环的无结点子环。A nodeless child ring determining unit is configured to determine that the new parent ring is a nodeless child ring of the parent ring to be determined if the new node determining unit determines that there are no other nodes on the new parent ring.
  9. 一种计算机装置,其特征在于,包括处理器,所述处理器用于执行存储器中存储的计算机程序实现如权利要求1-4任意一项的所述的心电向量环旋转方向判断方法。A computer device characterized by comprising a processor configured to execute a computer program stored in a memory to implement the method for judging the rotation direction of the electrocardiogram loop according to any one of claims 1-4.
  10. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,处理器用于执行存储介质中存储的计算机程序实现如权利要求1-4任意一项所述的心电向量环旋转方向判断方法。A computer-readable storage medium with a computer program stored thereon, wherein the processor is used to execute the computer program stored in the storage medium to realize the determination of the rotation direction of the ECG loop according to any one of claims 1-4 method.
PCT/CN2019/073745 2019-01-29 2019-01-29 Method and apparatus for determining rotation direction of vector cardiographic loop WO2020154909A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/073745 WO2020154909A1 (en) 2019-01-29 2019-01-29 Method and apparatus for determining rotation direction of vector cardiographic loop

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/073745 WO2020154909A1 (en) 2019-01-29 2019-01-29 Method and apparatus for determining rotation direction of vector cardiographic loop

Publications (1)

Publication Number Publication Date
WO2020154909A1 true WO2020154909A1 (en) 2020-08-06

Family

ID=71840331

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/073745 WO2020154909A1 (en) 2019-01-29 2019-01-29 Method and apparatus for determining rotation direction of vector cardiographic loop

Country Status (1)

Country Link
WO (1) WO2020154909A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150133803A1 (en) * 2013-11-12 2015-05-14 Analytics For Life Noninvasive electrocardiographic method for estimating mammalian cardiac chamber size and mechanical function
US20150366478A1 (en) * 2013-02-08 2015-12-24 Ivana I. VRANIC A method and system for vector analysis of electrocardiogram in assessment of risk of sudden cardiac death (scd) due to arrhythmogenic right ventricular dysplasia/cardiomyopathy by quantifying micro scars (i.e. "bites") in three dimensional vector loops
WO2016011273A1 (en) * 2014-07-16 2016-01-21 University Of South Florida Integrated vectorcardiogram system and method of use
CN105534519A (en) * 2016-02-24 2016-05-04 四川大智信诚海纳天时科技有限公司 Color vector cardiogram display method
WO2018190715A1 (en) * 2017-04-12 2018-10-18 Peacs B.V. Heart condition determination method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150366478A1 (en) * 2013-02-08 2015-12-24 Ivana I. VRANIC A method and system for vector analysis of electrocardiogram in assessment of risk of sudden cardiac death (scd) due to arrhythmogenic right ventricular dysplasia/cardiomyopathy by quantifying micro scars (i.e. "bites") in three dimensional vector loops
US20150133803A1 (en) * 2013-11-12 2015-05-14 Analytics For Life Noninvasive electrocardiographic method for estimating mammalian cardiac chamber size and mechanical function
WO2016011273A1 (en) * 2014-07-16 2016-01-21 University Of South Florida Integrated vectorcardiogram system and method of use
CN105534519A (en) * 2016-02-24 2016-05-04 四川大智信诚海纳天时科技有限公司 Color vector cardiogram display method
WO2018190715A1 (en) * 2017-04-12 2018-10-18 Peacs B.V. Heart condition determination method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
YANG, CHANJUAN ET AL: " Automatically Analyze and Process the Data of the ECG Vector Diagram with a Microcomputer", COMPUTER ENGINEERING AND APPLICATIONS, no. 09, 31 December 1989 (1989-12-31), pages 33 - 37, XP009522393, ISSN: 1002-8331 *

Similar Documents

Publication Publication Date Title
WO2021219053A1 (en) Federated learning modeling method, apparatus and device, and readable storage medium
WO2019127924A1 (en) Sample weight allocation method, model training method, electronic device, and storage medium
WO2021218124A1 (en) Method and device for detecting vehicle
WO2022134948A1 (en) Computing deployment method and apparatus for neural network, and storage medium and computer device
WO2021073130A1 (en) Frequency modulation method and apparatus for processor, and computing device
US9769186B2 (en) Determining a reputation through network characteristics
US11709756B2 (en) Dynamic distributed tracing instrumentation in a microservice architecture
WO2020093566A1 (en) Cerebral hemorrhage image processing method and device, computer device and storage medium
WO2016101780A1 (en) Method and device for deploying service in virtualized network
WO2020154909A1 (en) Method and apparatus for determining rotation direction of vector cardiographic loop
US10659479B2 (en) Determination of sensor usage
WO2020154907A1 (en) Method and apparatus for calculating area of vector cardiographic loop
Wang et al. A hybrid model composed of two convolutional neural networks (CNNs) for automatic retinal layer segmentation of OCT images in retinitis pigmentosa (RP)
CN105184372B (en) Knowledge network construction method and device
WO2020154908A1 (en) Calculation method and device for quadrantal distribution of vectorcardiographic loops
JP2011045675A (en) Image analyzer, measurement method therefor and program
JP2011217811A (en) Image processing apparatus and method
WO2020119765A1 (en) Bluetooth device connection method, connection device, terminal and computer device
CN109864709A (en) A kind of vectorcardiographic loop direction of rotation judgment method and device
CN107688613B (en) Data packet processing rule optimization method and computing device
WO2020154910A1 (en) Method and apparatus for drawing vector cardiographic loop
RU2016129483A (en) ROUTING MESSAGES WITHOUT Saving State
CN114419050B (en) Gastric mucosa visualization degree quantification method and device, terminal and readable storage medium
CN108683807B (en) Radar animation display method, device and equipment based on mobile phone gyroscope
EP3992794A2 (en) Method and apparatus for acquiring information

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19912316

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19912316

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 23.09.2021)

122 Ep: pct application non-entry in european phase

Ref document number: 19912316

Country of ref document: EP

Kind code of ref document: A1