Electrocardiosignal type identification method and device by using fuzzification similarity template

文档序号:836929 发布日期:2021-04-02 浏览:31次 中文

阅读说明:本技术 利用模糊化相似性模板的心电信号类型识别方法和装置 (Electrocardiosignal type identification method and device by using fuzzification similarity template ) 是由 朱俊江 黄浩 王雨轩 于 2020-12-01 设计创作,主要内容包括:本申请涉及一种利用模糊化相似性模板的心电信号类型识别方法和装置,通过数据预处理、索引向量将室性早搏心跳向量构筑成模糊符号型向量,再以欧式距离对相似的模糊符号型向量进行归类,分别形成若干包含所有已知心电类型的模板,该模板即用于判别心电信号是否为室性早搏心跳,具有挑选准确,能够覆盖各种室性早搏心跳的形状。(The utility model relates to an electrocardiosignal type identification method and device using a fuzzification similarity template, which constructs ventricular premature beat vectors into fuzzy symbolic type vectors through data preprocessing and index vectors, classifies the similar fuzzy symbolic type vectors by Euclidean distance, and respectively forms a plurality of templates containing all known electrocardio types, namely, the template is used for judging whether the electrocardiosignals are ventricular premature beats or not, has accurate selection and can cover various ventricular premature beat shapes.)

1. An electrocardiosignal type identification method by using a fuzzified similarity template is characterized by comprising the following steps:

a1: constructing a plurality of fuzzification similarity templates by using the electrocardiosignals of known electrocardiosignal types;

a2: acquiring electrocardiosignal data of unknown types;

a3: processing the electrocardiosignal data of unknown types, and comparing the processed electrocardiosignal data with the similarity of all fuzzified similarity templates to judge whether the electrocardiosignal data of unknown types is the type of the electrocardiosignal;

a method for constructing a plurality of fuzzified similarity templates in the step A1 comprises the following steps:

s1: collecting data, namely collecting clinical resting electrocardiosignal data containing ventricular premature beat, wherein the occurrence position of the ventricular premature beat is known;

s2: data preprocessing, namely intercepting ventricular premature beat vectors from electrocardiosignals to obtain ventricular premature beat vectors, wherein the length of the vectors is equal to the number M of corresponding sampling points in preset time, and the position of an R wave peak is located at 2/3 positions from front to back in the ventricular premature beat vectors;

s3: constructing an index vector: randomly selecting a plurality of integer values from 1 to M to form an index vector indx (i);

s4: fuzzification treatment: screening all ventricular premature beat vectors by using numerical values of the index vectors indx (i) to obtain screening vectors p (j) with the same quantity as the ventricular premature beat vectors, wherein each quantity in the screening vectors p (j) has a voltage value of the electrocardiosignal of a sampling point corresponding to an integer value represented by i in the index vector indx (i), and the magnitudes of p (j) and p (j +1) are respectively compared from j (1), wherein j is an odd number between 1 and i, and when the p (j) is large, the value is marked as 1; when p (j +1) is large; is marked as-1; if p (j) is equal to p (j +1), recording as 0, and arranging the comparison results in sequence to form a fuzzy symbol type vector;

s5: similarity comparison, namely calculating the Euclidean distance between any two fuzzy symbolic type vectors aiming at the fuzzy symbolic type vectors obtained by all ventricular premature beat vectors;

s6: template generation, selecting fuzzy symbol type vectors to generate and obtain a plurality of fuzzy similarity templates, wherein all the templates comprise all fuzzy symbol type vectors, the first template is a first fuzzy symbol type vector, and the obtaining conditions of the first fuzzy symbol type vector are as follows: the fuzzy symbolic type vector with the Euclidean distance from the first fuzzy symbolic type vector smaller than a preset value accounts for the most of all fuzzy symbolic type vectors, and the occupation ratio is larger than 5%; the Nth template is an Nth fuzzy symbolic type vector, and the obtaining condition of the Nth fuzzy symbolic type vector is as follows: after fuzzy symbolic vectors with Euclidean distances to the former (N-1) th template smaller than a preset value are eliminated, fuzzy symbolic vectors with Euclidean distances to the Nth fuzzy symbolic vector smaller than the preset value have the most proportion in the residual fuzzy symbolic vectors, and the proportion is larger than 5%; n is a natural number more than or equal to 2;

the processing of the electrocardiographic signal data of the unknown type in the step a3 is the same as that in the steps S2 to S4;

and comparing the similarity with all the fuzzified similarity templates, namely judging whether the Euclidean distance between the template and all the fuzzified similarity templates is smaller than a preset value.

2. The method as claimed in claim 1, wherein the pre-processing is performed by filtering with a fir filter with upper and lower cut-off frequencies of 0.1Hz and 100Hz, and if the sampling frequency of the electrocardiographic signal is not 500Hz, the signal is resampled to 500Hz by nearest neighbor interpolation.

3. The method for identifying types of electrocardiosignals by using the fuzzified similarity template as claimed in claim 1 or 2, wherein an integer value of 10% M to 15% M is randomly selected from 1 to M to form an index vector indx (i), i being 10% M to 15% M.

4. The method for recognizing the type of the electrocardiographic signal by using the blur similarity template according to any one of claims 1 to 3, wherein the preset value is 5.

5. The method for recognizing the type of electrocardiographic signals by using the fuzzified similarity template according to any one of claims 1 to 4, wherein the length of the clinical resting electrocardiographic signal data containing ventricular premature beats is at least 10s, and the preset time is 0.9 s.

6. An electrocardiosignal type recognition device using a fuzzified similarity template, comprising:

a template construction module: the method is used for constructing a plurality of fuzzification similarity templates by using the electrocardiosignals of known electrocardiosignal types;

a data input module: the electrocardiosignal acquisition device is used for acquiring electrocardiosignal data of unknown types;

a data processing module: the device is used for processing the electrocardiosignal data of unknown types and carrying out similarity comparison with all fuzzification similarity templates so as to judge whether the electrocardiosignal data of unknown types is the electrocardiosignal type;

the template construction module specifically includes:

a data collection submodule: the ventricular premature beat collecting device is used for collecting clinical rest electrocardiosignal data containing ventricular premature beat, and the occurrence position of the ventricular premature beat is known;

a data preprocessing submodule: the ventricular premature beat vector is obtained by intercepting the electrocardiosignal, the length of the vector is equal to the number M of corresponding sampling points in preset time, and the position of the R wave peak is located at the position 2/3 from front to back in the ventricular premature beat vector;

constructing an index vector submodule: for randomly selecting a plurality of integer values from 1 to M to form an index vector indx (i);

fuzzification processing submodule: screening all ventricular premature beat vectors by using the numerical value of the index vector indx (i) to obtain a screening vector p (j) with the same quantity as the ventricular premature beat vectors, wherein each quantity in the screening vector p (j) has the voltage value of the electrocardiosignal of a sampling point corresponding to the integer value represented by i in the index vector indx (i), and the magnitudes of p (j) and p (j +1) are respectively compared from j (1), wherein j is an odd number between 1 and i, and when the p (j) is large, the value is marked as 1; when p (j +1) is large; is marked as-1; if p (j) is equal to p (j +1), recording as 0, and arranging the comparison results in sequence to form a fuzzy symbol type vector;

similarity comparison submodule: the Euclidean distance calculating device is used for calculating Euclidean distances of any two fuzzy symbolic type vectors aiming at the fuzzy symbolic type vectors obtained by all ventricular premature beat vectors;

a template generation submodule: the method is used for selecting fuzzy symbolic type vectors, generating and obtaining a plurality of templates, wherein all the templates comprise all the fuzzy symbolic type vectors, the first template is a first fuzzy symbolic type vector, and the obtaining conditions of the first fuzzy symbolic type vector are as follows: the fuzzy symbolic type vector with the Euclidean distance from the first fuzzy symbolic type vector smaller than a preset value accounts for the most of all fuzzy symbolic type vectors, and the occupation ratio is larger than 5%; the Nth template is an Nth fuzzy symbolic type vector, and the obtaining condition of the Nth fuzzy symbolic type vector is as follows: after fuzzy symbolic vectors with Euclidean distances to the former (N-1) th template smaller than a preset value are eliminated, fuzzy symbolic vectors with Euclidean distances to the Nth fuzzy symbolic vector smaller than the preset value have the most proportion in the residual fuzzy symbolic vectors, and the proportion is larger than 5%; n is a natural number more than or equal to 2;

the data processing module processes the electrocardiosignal data of unknown types, and the processing is the same as that in the data preprocessing submodule, the index vector constructing submodule and the fuzzification processing submodule;

and comparing the similarity with all the fuzzified similarity templates, namely judging whether the Euclidean distance between the template and all the fuzzified similarity templates is smaller than a preset value.

7. The apparatus of claim 6, wherein the pre-processing is performed by filtering with a fir filter with upper and lower cut-off frequencies of 0.1Hz and 100Hz, and if the sampling frequency of the ECG signal is not 500Hz, the signal is resampled to 500Hz by nearest neighbor interpolation.

8. The apparatus for discriminating between electrocardiographic signal types according to claim 6 or 7, wherein the index vector indx (i) is formed by randomly selecting an integer value from 1 to M, i being 10% M to 15% M, from 10% M to 15% M.

9. The apparatus for recognizing types of electrocardiographic signals using a blur similarity template according to any one of claims 6 to 8, wherein the preset value is 5.

10. The apparatus for discriminating between cardiac signal types using a fuzzy similarity template as set forth in any one of claims 6 to 9, wherein the clinical resting cardiac signal data including ventricular premature beats has a length of at least 10s and a preset time of 0.9 s.

Technical Field

The application belongs to the technical field of electrocardiogram processing, and particularly relates to an electrocardiosignal type identification method and device by using a fuzzification similarity template.

Background

All ectopic heartbeats are identified from the 24-hour dynamic electrocardiogram, and a large amount of manpower and material resources are consumed; if the electrocardiogram doctor carries out manual analysis, the increase of detectors brings heavy pressure to the doctor; and doctors may ignore or misjudge certain electrocardiographic features due to fatigue, computer-assisted analysis of electrocardiographic signals becomes particularly important. Ventricular premature beats are one of the common types of ectopic heartbeats. Aiming at the automatic diagnosis of ventricular premature beat, many achievements with guiding significance have appeared at home and abroad, but the activation points of ventricular premature beat can come from different parts, so that the waveform of ventricular premature beat is complex. Finding templates of all waveform types is therefore particularly important for ventricular premature beat selection, and the templates directly result in accuracy of ventricular premature beat identification.

Disclosure of Invention

The technical problem to be solved by the invention is as follows: in order to solve the defects in the prior art, the method and the device for recognizing the electrocardiosignal type by using the fuzzified similarity template are provided.

The technical scheme adopted by the invention for solving the technical problems is as follows:

an electrocardiosignal type identification method by using a fuzzified similarity template comprises the following steps:

the method comprises the following steps:

a1: constructing a plurality of fuzzification similarity templates by using the electrocardiosignals of known electrocardiosignal types;

a2: acquiring electrocardiosignal data of unknown types;

a3: processing the electrocardiosignal data of unknown types, and comparing the processed electrocardiosignal data with the similarity of all fuzzified similarity templates to judge whether the electrocardiosignal data of unknown types is the type of the electrocardiosignal;

a method for constructing a plurality of fuzzified similarity templates in the step A1 comprises the following steps:

s1: collecting data, namely collecting clinical resting electrocardiosignal data containing ventricular premature beat, wherein the occurrence position of the ventricular premature beat is known;

s2: data preprocessing, namely intercepting ventricular premature beat vectors from electrocardiosignals to obtain ventricular premature beat vectors, wherein the length of the vectors is equal to the number M of corresponding sampling points in preset time, and the position of an R wave peak is located at 2/3 positions from front to back in the ventricular premature beat vectors;

s3: constructing an index vector: randomly selecting a plurality of integer values from 1 to M to form an index vector indx (i);

s4: fuzzification treatment: screening all ventricular premature beat vectors by using numerical values of the index vectors indx (i) to obtain screening vectors p with the same quantity as the ventricular premature beat vectors, wherein each quantity in the screening vectors p has the voltage value of the electrocardiosignal of a sampling point corresponding to an integer value represented by i in the index vector indx (i), and comparing the values of p and p respectively from j to 1, wherein j is an odd number between 1 and i, and when the p is large, the value is marked as 1; when p (j +1) is large; is marked as-1; if p (j) is equal to p (j +1), recording as 0, and arranging the comparison results in sequence to form a fuzzy symbol type vector;

s5: similarity comparison, namely calculating the Euclidean distance between any two fuzzy symbolic type vectors aiming at the fuzzy symbolic type vectors obtained by all ventricular premature beat vectors;

s6: template generation, selecting fuzzy symbol type vectors to generate and obtain a plurality of fuzzy similarity templates, wherein all the templates comprise all fuzzy symbol type vectors, the first template is a first fuzzy symbol type vector, and the obtaining conditions of the first fuzzy symbol type vector are as follows: the fuzzy symbolic type vector with the Euclidean distance from the first fuzzy symbolic type vector smaller than a preset value accounts for the most of all fuzzy symbolic type vectors, and the occupation ratio is larger than 5%; the Nth template is an Nth fuzzy symbolic type vector, and the obtaining condition of the Nth fuzzy symbolic type vector is as follows: after fuzzy symbolic vectors with Euclidean distances to the former (N-1) th template smaller than a preset value are eliminated, fuzzy symbolic vectors with Euclidean distances to the Nth fuzzy symbolic vector smaller than the preset value have the most proportion in the residual fuzzy symbolic vectors, and the proportion is larger than 5%; n is a natural number more than or equal to 2;

the processing of the electrocardiographic signal data of the unknown type in the step a3 is the same as that in the steps S2 to S4;

and comparing the similarity with all the fuzzified similarity templates, namely judging whether the Euclidean distance between the template and all the fuzzified similarity templates is smaller than a preset value.

Preferably, in the method for identifying the type of the electrocardiosignal by using the fuzzified similarity template, the preprocessing adopts a fir filter with upper and lower cut-off frequencies of 0.1Hz and 100Hz for filtering, and if the sampling frequency of the electrocardiosignal is not 500Hz, the signal is resampled to be 500Hz by adopting a nearest neighbor interpolation method.

Preferably, the electrocardiosignal type identification method using the fuzzified similarity template randomly selects an integer value of 10% M-15% M from 1 to M to form an index vector indx (i), wherein i is 10% M-15% M.

Preferably, in the electrocardiosignal type identification method using the fuzzified similarity template, the preset value is 5.

Preferably, the method for identifying the electrocardiosignal type by using the fuzzified similarity template has the length of clinical rest electrocardiosignal data containing ventricular premature beat of at least 10s and the preset time of 0.9 s.

The invention also provides an electrocardiosignal type identification device using the fuzzified similarity template, which comprises:

a template construction module: the method is used for constructing a plurality of fuzzification similarity templates by using the electrocardiosignals of known electrocardiosignal types;

a data input module: the electrocardiosignal acquisition device is used for acquiring electrocardiosignal data of unknown types;

a data processing module: the device is used for processing the electrocardiosignal data of unknown types and carrying out similarity comparison with all fuzzification similarity templates so as to judge whether the electrocardiosignal data of unknown types is the electrocardiosignal type;

the template construction module specifically includes:

a data collection submodule: the ventricular premature beat collecting device is used for collecting clinical rest electrocardiosignal data containing ventricular premature beat, and the occurrence position of the ventricular premature beat is known;

a data preprocessing submodule: the ventricular premature beat vector is obtained by intercepting the electrocardiosignal, the length of the vector is equal to the number M of corresponding sampling points in preset time, and the position of the R wave peak is located at the position 2/3 from front to back in the ventricular premature beat vector;

constructing an index vector submodule: for randomly selecting a plurality of integer values from 1 to M to form an index vector indx (i);

fuzzification processing submodule: the method comprises the steps that all ventricular premature beat vectors are screened by numerical values of index vectors indx (i) to obtain screening vectors p with the same quantity as the ventricular premature beat vectors, each quantity in the screening vectors p has the voltage value of an electrocardiosignal of a sampling point corresponding to an integer value represented by i in the index vector indx (i), the sizes of p and p are compared from j to 1, wherein j is an odd number between 1 and i, and when the p is large, the p is marked as 1; when p (j +1) is large; is marked as-1; if p (j) is equal to p (j +1), recording as 0, and arranging the comparison results in sequence to form a fuzzy symbol type vector;

similarity comparison submodule: the Euclidean distance calculating device is used for calculating Euclidean distances of any two fuzzy symbolic type vectors aiming at the fuzzy symbolic type vectors obtained by all ventricular premature beat vectors;

a template generation submodule: the method is used for selecting fuzzy symbolic type vectors, generating and obtaining a plurality of templates, wherein all the templates comprise all the fuzzy symbolic type vectors, the first template is a first fuzzy symbolic type vector, and the obtaining conditions of the first fuzzy symbolic type vector are as follows: the fuzzy symbolic type vector with the Euclidean distance from the first fuzzy symbolic type vector smaller than a preset value accounts for the most of all fuzzy symbolic type vectors, and the occupation ratio is larger than 5%; the Nth template is an Nth fuzzy symbolic type vector, and the obtaining condition of the Nth fuzzy symbolic type vector is as follows: after fuzzy symbolic vectors with Euclidean distances to the former (N-1) th template smaller than a preset value are eliminated, fuzzy symbolic vectors with Euclidean distances to the Nth fuzzy symbolic vector smaller than the preset value have the most proportion in the residual fuzzy symbolic vectors, and the proportion is larger than 5%; n is a natural number more than or equal to 2;

the data processing module processes the electrocardiosignal data of unknown types, and the processing is the same as that in the data preprocessing submodule, the index vector constructing submodule and the fuzzification processing submodule;

and comparing the similarity with all the fuzzified similarity templates, namely judging whether the Euclidean distance between the template and all the fuzzified similarity templates is smaller than a preset value.

Preferably, the electrocardiosignal type identification device using the fuzzified similarity template of the invention adopts a fir filter with upper and lower cut-off frequencies of 0.1Hz and 100Hz for filtering in the preprocessing, and adopts a nearest neighbor interpolation method to resample the electrocardiosignal to 500Hz if the sampling frequency of the electrocardiosignal is not 500 Hz.

Preferably, the electrocardiosignal type identification device using the fuzzified similarity template randomly selects an integer value of 10% M-15% M from 1 to M to form an index vector indx (i), wherein i is 10% M-15% M.

Preferably, in the electrocardiosignal type identification device using the fuzzified similarity template, the preset value is 5.

Preferably, the electrocardiosignal type identification device utilizing the fuzzified similarity template comprises the clinical resting electrocardiosignal data of ventricular premature beat, the length of the clinical resting electrocardiosignal data is at least 10s, and the preset time is 0.9 s.

The invention has the beneficial effects that:

according to the electrocardiosignal type identification method and device using the fuzzified similarity template, ventricular premature beat vectors are constructed into fuzzy symbolic type vectors through data preprocessing and index vectors, the similar fuzzy symbolic type vectors are classified according to Euclidean distances, a plurality of templates containing all known electrocardio types are respectively formed, the templates are used for judging whether the electrocardiosignals are ventricular premature beats or not, the selection is accurate, and various shapes of the ventricular premature beats can be covered.

Drawings

The technical solution of the present application is further explained below with reference to the drawings and the embodiments.

FIG. 1 is a flow chart of a template generation method including a fuzzified similarity measurement method according to an embodiment of the present application;

Detailed Description

It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.

The technical solutions of the present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.

Example 1

The embodiment provides an electrocardiograph signal type identification method using a fuzzified similarity template, as shown in fig. 1, which includes the following steps:

a1: constructing a plurality of fuzzification similarity templates by using the electrocardiosignals of known electrocardiosignal types;

a2: acquiring electrocardiosignal data of unknown types;

a3: processing the electrocardiosignal data of unknown types, and comparing the processed electrocardiosignal data with the similarity of all fuzzified similarity templates to judge whether the electrocardiosignal data of unknown types is the type of the electrocardiosignal;

s1: collecting data, namely collecting clinical resting 10s electrocardiosignal data containing ventricular premature beat, wherein the occurrence position of the ventricular premature beat is known;

s2: data preprocessing, namely intercepting ventricular premature beat vectors (consisting of voltage values of all sampling points) from the electrocardiosignals to obtain the ventricular premature beat vectors, wherein the length of the vectors is equal to the number M of the corresponding sampling points within 0.9s, and the position of an R wave peak is positioned at the position 2/3 from front to back in the ventricular premature beat vectors;

the preprocessing can also adopt a fir filter with upper and lower cut-off frequencies of 0.1Hz and 100Hz for filtering, if the sampling frequency of the electrocardiosignal is not 500Hz, the signal is also needed to be resampled to be 500Hz by adopting a nearest neighbor interpolation method, and because 500 sampling points are arranged in 1s, the number of the corresponding sampling points in 0.9s is 450, the corresponding sampling points are truncated according to 150 points from R wave front 299 points to R wave rear, and the position of the R wave peak is all at 300 th point. And then, carrying out mean value filtering and normalization on each electrocardiosignal.

S3: constructing an index vector: randomly selecting an integer value of 10% -15% M from 1 to M to form an index vector indx (i), wherein i is 10% -15% M;

s4: fuzzification treatment:

screening all ventricular premature beat vectors by using numerical values of the index vectors indx (i) to obtain screening vectors p (j) with the same quantity as the ventricular premature beat vectors, wherein each quantity in the screening vectors p (j) has a voltage value of the electrocardiosignal of a sampling point corresponding to an integer value represented by i in the index vector indx (i), and the magnitudes of p (j) and p (j +1) are respectively compared from j (1), wherein j is an odd number between 1 and i, and when the p (j) is large, the value is marked as 1; when p (j +1) is large; is marked as-1; if p (j) is equal to p (j +1), recording as 0, and arranging the comparison results in sequence to form a fuzzy symbol type vector;

s5: similarity comparison, namely calculating the Euclidean distance between any two fuzzy symbolic type vectors aiming at the fuzzy symbolic type vectors obtained by all ventricular premature beat vectors; the Euclidean distance represents the similarity between corresponding ventricular premature beats, and the closer the distance is, the closer the shape is;

s6: template generation, selecting fuzzy symbolic type vector to generate and obtain several templates, in which all templates contain all fuzzy symbolic type vectors

The first template is a first fuzzy symbolic type vector, and the obtaining condition of the first fuzzy symbolic type vector is as follows: the fuzzy symbolic type vector with Euclidean distance less than 5 to the first fuzzy symbolic type vector accounts for the most of all fuzzy symbolic type vectors, and the proportion is more than 5%;

the Nth template is an Nth fuzzy symbolic type vector, and the obtaining condition of the Nth fuzzy symbolic type vector is as follows: after fuzzy symbolic vectors with Euclidean distance less than 5 with the former (N-1) th template are eliminated, fuzzy symbolic vectors with Euclidean distance less than 5 with the Nth fuzzy symbolic vector have the most proportion in the residual fuzzy symbolic vectors, and the proportion is more than 5%; n is a natural number more than or equal to 2.

Several templates for identifying ventricular premature beats are generated by the above method.

The processing of the electrocardiographic signal data of the unknown type in the step a3 is the same as that in the steps S2 to S4;

and comparing the similarity with all the fuzzified similarity templates, namely judging whether the Euclidean distance between the template and all the fuzzified similarity templates is smaller than a preset value.

Constructing a fuzzy symbolic vector according to the method of the steps S2-S4 for a new electrocardiosignal which is unknown whether the electrocardiosignal is ventricular premature beat, and sequentially carrying out Euclidean distance calculation on the fuzzy symbolic vector and a first template and an Nth template, wherein the Euclidean distance between the fuzzy symbolic vector and any template is greater than 5, the ventricular premature beat is considered, and the Euclidean distance between the fuzzy symbolic vector and all templates is greater than 5; the new heartbeat is deemed not to belong to the ventricular premature beat.

Example 2

The present embodiment provides an electrocardiographic signal type identification device using a fuzzified similarity template, including:

a template construction module: the method is used for constructing a plurality of fuzzification similarity templates by using the electrocardiosignals of known electrocardiosignal types;

a data input module: the electrocardiosignal acquisition device is used for acquiring electrocardiosignal data of unknown types;

a data processing module: the device is used for processing the electrocardiosignal data of unknown types and carrying out similarity comparison with all fuzzification similarity templates so as to judge whether the electrocardiosignal data of unknown types is the electrocardiosignal type;

the template construction module specifically includes:

the data collection submodule is used for collecting clinical rest 10s electrocardiosignal data containing ventricular premature beat, and the occurrence position of the ventricular premature beat is known;

the data preprocessing submodule is used for intercepting ventricular premature beat vectors from the electrocardiosignals to obtain the ventricular premature beat vectors, the length of the vectors is equal to the number M of corresponding sampling points within preset time (0.9s), and the position of the R wave peak is located at the position 2/3 from front to back in the ventricular premature beat vectors;

the preprocessing can also adopt a fir filter with upper and lower cut-off frequencies of 0.1Hz and 100Hz for filtering, if the sampling frequency of the electrocardiosignal is not 500Hz, the signal is also needed to be resampled to be 500Hz by adopting a nearest neighbor interpolation method, and because 500 sampling points are arranged in 1s, the number of the corresponding sampling points in 0.9s is 450, the corresponding sampling points are truncated according to 150 points from R wave front 299 points to R wave rear, and the position of the R wave peak is all at 300 th point. And then, carrying out mean value filtering and normalization on each electrocardiosignal.

Constructing an index vector submodule: randomly selecting an integer value of 10% -15% M from 1 to M to form an index vector indx (i), wherein i is 10% -15% M;

fuzzification processing submodule: screening all ventricular premature beat vectors by using the numerical value of an index vector indx (i) to obtain a screening vector p with the same quantity as the ventricular premature beat vectors, wherein each quantity in the screening vector p has the voltage value of the electrocardiosignal of a sampling point corresponding to an integer value represented by i in the index vector indx (i), for example, indx (i) is 1,3,7,9 … …, then the screening vector p is the voltage value/mV of the electrocardiosignal corresponding to the 1 st, 3 rd, 7 th and 9 th sampling points … …, starting from j is 1, and comparing the magnitudes of p and p, wherein j is an odd number between 1 and i, and when the p is large, the magnitude of p is 1; when p (j +1) is large; is marked as-1; if p (j) is equal to p (j +1), recording as 0, and arranging the comparison results in sequence to form a fuzzy symbol type vector;

similarity comparison submodule: the Euclidean distance calculating device is used for calculating Euclidean distances of any two fuzzy symbolic type vectors aiming at the fuzzy symbolic type vectors obtained by all ventricular premature beat vectors; the Euclidean distance represents the similarity between corresponding ventricular premature beats, and the closer the distance is, the closer the shape is;

a template generation submodule: the method is used for selecting fuzzy symbolic type vectors, generating and obtaining a plurality of templates, wherein all the templates comprise all the fuzzy symbolic type vectors, the first template is a first fuzzy symbolic type vector, and the obtaining conditions of the first fuzzy symbolic type vector are as follows: the fuzzy symbolic type vector with Euclidean distance less than 5 to the first fuzzy symbolic type vector accounts for the most of all fuzzy symbolic type vectors, and the proportion is more than 5%;

the Nth template is an Nth fuzzy symbolic type vector, and the obtaining condition of the Nth fuzzy symbolic type vector is as follows: after removing the fuzzy symbolic type vectors with Euclidean distance from the previous (N-1) th template being smaller than a preset value (such as 5), the fuzzy symbolic type vectors with Euclidean distance from the Nth fuzzy symbolic type vector being smaller than 5 have the most occupation ratio in the residual fuzzy symbolic type vectors, and the occupation ratio is larger than 5%; n is a natural number more than or equal to 2.

Several templates for identifying ventricular premature beats are generated by the above method.

The data processing module processes the electrocardiosignal data of unknown types, and the processing is the same as that in the data preprocessing submodule, the index vector constructing submodule and the fuzzification processing submodule;

and comparing the similarity with all the fuzzified similarity templates, namely judging whether the Euclidean distance between the template and all the fuzzified similarity templates is smaller than a preset value.

In light of the foregoing description of the preferred embodiments according to the present application, it is to be understood that various changes and modifications may be made without departing from the spirit and scope of the invention. The technical scope of the present application is not limited to the contents of the specification, and must be determined according to the scope of the claims.

As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media having computer-usable program code embodied in the medium.

The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus, and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.

These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

11页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种融合U-net网络和滤波方法的12导联T波提取装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!