Mobile power supply system and electrocardiosignal processing method
Through the mobile power system, the ECG data is collected and processed and transmitted to the cloud platform for comparison, solving the problems of poor convenience of electrocardiogram detection and complex operation, and achieving convenient ECG monitoring and health warning.
Patent Information
- Application Number
- CN202410985533.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-11-01
AI Technical Summary
The prior art center electrogram detection is poor and has high operational complexity. Users need to perform detection at specific times and places, and need to download additional applications, which increases the complexity of user operations.
Provide a mobile power supply system, including an electrocardiogram sensor, an electrocardiogram signal acquisition module, a microcontroller module, a battery cell and a power supply module, which collects electrocardiogram data through a mobile power supply device and performs signal processing to generate an electrocardiogram waveform diagram, and Transmit it to the cloud platform for comparison, achieving convenient ECG monitoring without a specific time and place, reducing user operation complexity.
It improves the convenience of ECG monitoring, and users do not need to use it at specific times and places, reduces operational complexity, realizes real-time health monitoring and the establishment of health records, and promptly detects and warnings for health problems.
Smart Images

Figure CN118873149A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of health monitoring of mobile devices, and in particular to a mobile power system and an electrocardiogram signal processing method. Background Art
[0002] Electrocardiogram (ECG) is a biomedical signal that can evaluate the function and status of the heart by recording the electrical activity of the heart. Currently, when performing an ECG test, users are often required to go to a specific testing location at a specific time, which makes ECG testing less convenient. In addition, related monitoring equipment also requires users to download additional applications, which increases the complexity of user operations.
[0003] Therefore, when the related technology realizes electrocardiogram detection, there are problems of poor convenience and high operational complexity.
[0004] With regard to the problem of poor convenience and high complexity of electrocardiogram detection in related technologies, no effective solution has been proposed so far. Summary of the invention
[0005] In this embodiment, a mobile power system and an ECG signal processing method are provided to solve the problem of poor convenience and high complexity of ECG detection in the related art.
[0006] In a first aspect, a mobile power system is provided in this embodiment, comprising: a mobile power device, a host computer and a cloud platform; wherein the mobile power device comprises: an electrocardiogram sensor, an electrocardiogram signal acquisition module, a microcontroller processor module, a battery cell and a power module; the electrocardiogram sensor is arranged on the housing of the mobile power device;
[0007] The ECG signal acquisition module is connected to the ECG sensor and the microcontroller module;
[0008] The microcontroller module is connected to the host computer;
[0009] The power module is used to control the discharge of the battery cell to provide energy;
[0010] The ECG signal acquisition module is used to collect initial ECG data from the ECG sensor and transmit the initial ECG data to the microcontroller module;
[0011] The microcontroller module is used to perform signal processing on the initial ECG data to obtain ECG characteristic data, and transmit the ECG characteristic data to the host computer;
[0012] The host computer is used to generate and display an electrocardiogram waveform based on the electrocardiogram characteristic data, and transmit the electrocardiogram waveform to the cloud platform;
[0013] The cloud platform is used to compare the ECG waveform diagram based on a preset reference ECG database to obtain a comparison result.
[0014] In some of these embodiments, the ECG sensor includes a pair of metal sensors;
[0015] The signal acquisition channel of the electrocardiogram signal acquisition module is connected to the metal sensor.
[0016] In some of the embodiments, the microcontroller module is connected to the host computer via Bluetooth for data transmission.
[0017] In some embodiments, the ECG signal acquisition module is connected to the microcontroller processor module via an SPI bus.
[0018] In a second aspect, in this embodiment, a method for processing an electrocardiogram signal is provided, which is applied to the mobile power system described in the first aspect. The method includes:
[0019] Collect initial ECG data;
[0020] Performing signal processing on the initial ECG data to obtain ECG characteristic data;
[0021] The ECG characteristic data is transmitted to the host computer so that the host computer generates and displays an ECG waveform diagram based on the ECG characteristic data, and performs an abnormality comparison on the ECG waveform diagram based on a preset reference ECG database through the cloud platform to obtain a comparison result.
[0022] In some embodiments, the initial ECG data is subjected to signal processing to obtain ECG characteristic data, including:
[0023] Performing low-pass filtering on the initial ECG data to obtain filtered data;
[0024] Correcting the filtered data based on a baseline drift correction algorithm to obtain corrected data;
[0025] The corrected data is subjected to electrocardiographic waveform recognition to obtain electrocardiographic characteristic data.
[0026] In some embodiments, the correction data is subjected to ECG waveform recognition to obtain ECG characteristic data, including:
[0027] Deriving the correction data to obtain a derivative sequence;
[0028] identifying a local maximum from the sequence of derivatives;
[0029] All local maxima are screened according to a preset amplitude threshold to obtain ECG characteristic data.
[0030] In a third aspect, in this embodiment, a method for processing an electrocardiogram signal is provided, which is applied to the mobile power system described in the first aspect. The method includes:
[0031] Receiving the ECG characteristic data transmitted by the mobile power device; wherein the ECG characteristic data is generated by the mobile power device after performing signal processing on the collected initial ECG data;
[0032] Based on the electrocardiogram characteristic data, generate and display an electrocardiogram waveform diagram;
[0033] The ECG waveform diagram is transmitted to the cloud platform, so that the cloud platform compares the ECG waveform diagram based on a preset reference ECG database to obtain a comparison result.
[0034] In some embodiments, generating and displaying an ECG waveform diagram based on the ECG characteristic data includes:
[0035] The electrocardiogram characteristic data is processed based on a wavelet transform algorithm to obtain an electrocardiogram waveform diagram.
[0036] In some embodiments, the ECG waveform is transmitted to the cloud platform so that the cloud platform compares the ECG waveform based on a preset reference ECG database. After the comparison result is obtained, the method further includes:
[0037] According to the comparison result, determine whether there is an abnormal waveform shape; if so, output a prompt message.
[0038] Compared with the related art, a mobile power system and an ECG signal processing method are provided in this embodiment. The mobile power system includes a mobile power device, a host computer and a cloud platform; wherein the mobile power device includes: an ECG sensor, an ECG signal acquisition module, a microcontroller module, a battery cell and a power module; the ECG sensor is arranged on the housing of the mobile power device; the ECG signal acquisition module is connected to the ECG sensor and the microcontroller module; the microcontroller module is connected to the host computer; the power module is used to control the discharge of the battery cell to provide energy; the ECG signal acquisition module is used to collect initial ECG data from the ECG sensor and transmit the initial ECG data to the microcontroller module; the microcontroller module is used to perform signal processing on the initial ECG data to obtain ECG characteristic data and transmit the ECG characteristic data to the host computer; the host computer is used to generate and display an ECG waveform diagram based on the ECG characteristic data and transmit the ECG waveform diagram to the cloud platform; the cloud platform is used to compare the ECG waveform diagram based on a preset reference ECG database to obtain a comparison result. It can perform ECG monitoring while the user is using a mobile power device, eliminating the need to use it at a specific time and place, improving the convenience of ECG monitoring; it does not require users to manually enter health data or download additional applications, reducing the complexity of user operations.
[0039] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0041] Figure 1 is a schematic structural diagram of the mobile power system of this embodiment;
[0042] Figure 2 is a schematic diagram of a shell of the mobile power supply device of this embodiment;
[0043] Figure 3 is a flow chart of the ECG signal processing method of this embodiment;
[0044] Figure 4 Schematic diagram of the C language program implementation of the baseline drift of this embodiment;
[0045] Figure 5 is a flow chart of another electrocardiogram signal processing method of this embodiment;
[0046] Figure 6 is a flowchart of a method for processing an ECG signal in some embodiments. DETAILED DESCRIPTION
[0047] In order to more clearly understand the purpose, technical solutions and advantages of the present application, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments.
[0048] Unless otherwise defined, the technical terms or scientific terms involved in this application shall have the general meaning understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the", "these" and the like in this application do not represent quantitative restrictions, and they can be singular or plural. The terms "include", "comprise", "have" and any variants thereof involved in this application are intended to cover non-exclusive inclusions; for example, a process, method and system, product or device comprising a series of steps or modules (units) is not limited to the listed steps or modules (units), but may include unlisted steps or modules (units), or may include other steps or modules (units) inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether directly or indirectly. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships. For example, "A and / or B" can mean: A exists alone, A and B exist at the same time, and B exists alone. Usually, the character " / " indicates that the objects associated with each other are in an "or" relationship. The terms "first", "second", "third", etc. involved in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.
[0049] In this embodiment, a mobile power system is provided. Figure 1 is a schematic diagram of the structure of the mobile power system 10 of this embodiment. Figure 1As shown, the mobile power system 10 includes: a mobile power device 11, a host computer 12 and a cloud platform 13; wherein the mobile power device 11 includes: an electrocardiogram sensor 111, an electrocardiogram signal acquisition module 112, a microcontroller module 113, a battery cell 114 and a power module 115; the electrocardiogram sensor 111 is arranged on the housing of the mobile power device 11; the electrocardiogram signal acquisition module 112 is connected to the electrocardiogram sensor 111 and the microcontroller module 113; the microcontroller module 113 is connected to the host computer 12; the power module 115 is used to control the discharge of the battery cell 114 To provide energy; the ECG signal acquisition module 112 is used to collect initial ECG data from the ECG sensor 111, and transmit the initial ECG data to the microcontroller module 113; the microcontroller module 113 is used to perform signal processing on the initial ECG data to obtain ECG characteristic data, and transmit the ECG characteristic data to the host computer 12; the host computer 12 is used to generate and display an ECG waveform based on the ECG characteristic data, and transmit the ECG waveform to the cloud platform 13; the cloud platform 13 is used to compare the ECG waveform based on a preset reference ECG database to obtain a comparison result. In addition, the mobile power supply device 11 may also include a charging control module. The charging control module is used to manage the speed and current of the external power supply charging the battery cell.
[0050] Specifically, the mobile power device in this embodiment integrates an ECG sensor and an ECG signal acquisition module, so as to provide the user with a convenient ECG detection function based on the original power supply function of the mobile power device. Figure 2 FIG. 1 is a schematic diagram of a housing of the mobile power supply device 11 of this embodiment. Figure 2As shown, the housing of the mobile power device 11 is provided with a charging data cable 116 suitable for different interfaces, a power indicator light 117 for indicating the remaining power of the mobile power device, and an ECG sensor 118 arranged above the housing for collecting ECG signals. In addition, a function switch (not shown in the figure) may also be provided on the mobile power device 11. Exemplarily, the mobile power device 11 may be a shared mobile power device. When the mobile power device 11 needs to be rented, the user can scan the cabinet and enter the associated applet on the mobile phone to perform the rental operation so that the cabinet pops up the available mobile power device 11. Among them, the applet mentioned in this embodiment is a lightweight application based on the Internet platform, which realizes the concept of "no need to download and install to use". The user can access and use the functions therein by simple operations, such as accessing and using the applet by using the mobile phone to scan the QR code, search and other functions. When using the mobile power device 11, the user can place the thumbs of both hands on the two ECG sensors 118 at the same time to collect ECG signals. The collected initial ECG data will be transmitted to the microcontroller processor module 113 through the ECG signal acquisition module 112. The microcontroller processor module 113 will perform signal processing, obtain ECG characteristic data, and upload it to the host computer 12 in real time. The host computer 12 can be a mobile phone. After the above-mentioned applet in the mobile phone receives the ECG characteristic data, it performs waveform correction and waveform display and other processing, and at the same time sends the waveform data to the cloud platform 13 to determine whether there is an abnormal waveform. In addition, the cloud platform 13 can also save measurement records and establish a health file for the user. At the same time, it supports functions such as expert interpretation, so as to make more accurate judgments and interpretations of the ECG data uploaded by the user, help users to understand their own health in time, and realize real-time health monitoring.
[0051] The initial ECG data may be digital ECG data obtained by converting analog ECG data into digital data based on the ECG signal acquisition module. The signal processing may include signal preprocessing, noise suppression, waveform recognition, heartbeat recognition and other processing. The ECG feature data may be data obtained after signal processing that includes features such as heart rate and waveform.
[0052] The above-mentioned ECG signal acquisition module can be a chip for biopotential measurement, such as a chip with low power consumption, 8 channels, 24-bit analog front end, mainly used for biopotential measurement, model ADS1294. The microcontroller module can be a microcontroller unit (MCU) with electronic signal processing capabilities, for example, a chip model Nrf52833 can be used as the microcontroller module of this embodiment. The Nrf52833 chip can not only process data as an MCU, but also upload the data of the mobile power device to the host computer as a Bluetooth module, and supports low power consumption function.
[0053] In the related art, users are required to go to a specific place at a specific time to perform ECG testing, which limits the convenience of use. Alternatively, an additional independent application is downloaded to view the ECG test report, which increases the complexity of the operation. In addition, the use of ECG detection equipment in the related art is often restricted by battery life, and requires frequent charging or battery replacement, which causes inconvenience in use. In summary, the ECG detection technology of the related art cannot provide long-term continuous monitoring of the user's health status, nor can it easily form a user's health profile, and thus cannot generate health warning information for the user in a timely manner.
[0054] Unlike the related art, in this embodiment, by integrating the ECG monitoring function into the mobile power device, the convenience of ECG monitoring can be improved, so that ECG monitoring is no longer limited to a specific time and place, thereby improving the convenience of use. When the user uses the mobile power device, the device will collect the user's ECG data in real time, and upload it to the host computer such as the mobile phone held by the user after processing. The user can observe the ECG waveform through the software such as the applet associated with the mobile power device in the host computer. At the same time, the host computer can upload the results of each user's collection to the cloud platform, thereby establishing a health file for the user. The cloud platform will also promptly analyze the anomalies in the user's ECG waveform and promptly warn the user's health status. In addition, the ECG monitoring function is integrated into the mobile power device, so that it can be directly powered by the mobile power device itself, reducing the limit on the battery life. It should also be noted that the ECG monitoring function of this embodiment is directly powered by the internal circuit of the mobile power device, such as using a high-energy-density lithium-ion battery cell for power supply, which can not only ensure the user's charging needs, but also provide sufficient power for the ECG monitoring function. Users can obtain accurate data without using additional ECG signal acquisition equipment, which reduces operational complexity and improves user experience.
[0055] Therefore, compared with the related art, this embodiment can perform ECG monitoring while the user is using the mobile power device, so there is no need to use it at a specific time and place, which improves the convenience of ECG monitoring. The mobile power device can directly upload the collected ECG data to the host computer for further analysis and processing, without the need for the user to manually enter health data or download additional applications, reducing the user's operation complexity and avoiding data errors that may be caused by manual input. The cloud platform can establish a health profile for the user, and use the ECG data collected by the user during the use of the mobile power device to perform real-time and continuous health monitoring, so that the user's health problems can be discovered and warned more promptly.
[0056] In one embodiment, the ECG sensor 111 includes a pair of metal sensors; the signal acquisition channel of the ECG signal acquisition module 112 is connected to the metal sensors. Specifically, the metal sensors are arranged on the outer shell of the mobile power device 11, and the user can collect ECG signals by placing the thumbs of both hands on the metal sensors at the same time.
[0057] In addition, in one embodiment, the microcontroller module 113 is connected to the host computer 12 via Bluetooth for data transmission. Specifically, a single-chip microcomputer having Bluetooth function and signal processing function can be used as the microcontroller module 113, and the ECG characteristic data after signal processing can be transmitted to the host computer 12 via Bluetooth connection. The user's ECG characteristic data is uploaded to the host computer via Bluetooth without manual input by the user, which reduces the complexity of operation and ensures the accuracy and integrity of the data.
[0058] In addition, in one embodiment, the ECG signal acquisition module 112 is connected to the microcontroller module 113 via an SPI bus. The connection between the ECG signal acquisition module 112 and the microcontroller module 113 is realized via the SPI bus, which can realize the accurate transmission of ECG data inside the mobile power device.
[0059] In this embodiment, a method for processing an electrocardiogram signal is provided, which is applied to the mobile power supply system provided in any of the above embodiments. Figure 3 is a flow chart of the ECG signal processing method of this embodiment. Figure 3 As shown, the process includes the following steps:
[0060] Step S310, collecting initial ECG data.
[0061] Before collecting the initial ECG data, the ECG monitoring function of the mobile power supply device can be initialized. Specifically, the ECG signal acquisition module can be initialized first, and the relevant registers can be configured to complete the frequency, resolution, and filter required for acquisition. In the process of collecting the initial ECG data, the microcontroller module reads the digital ECG data collected by the ECG signal acquisition module and stores the data in the buffer of the microcontroller module.
[0062] Step S320, performing signal processing on the initial ECG data to obtain ECG characteristic data.
[0063] Specifically, the microcontroller module performs signal processing on the read initial ECG data, wherein the signal processing on the initial ECG data may include filtering, noise suppression, waveform recognition and other processing, thereby obtaining ECG characteristic data.
[0064] Step S330, transmitting the ECG characteristic data to the host computer, so that the host computer generates and displays the ECG waveform based on the ECG characteristic data, and performs abnormal comparison on the ECG waveform based on a preset reference ECG database through the cloud platform to obtain the comparison result.
[0065] Through the above steps S310 to S330, it is possible to perform ECG monitoring while the user is using the mobile power device, without the need to use it at a specific time and place, thereby improving the accuracy of ECG monitoring. The mobile power device can directly upload the collected ECG data to the host computer for further processing, without the user having to download additional applications, reducing the complexity of user operations.
[0066] In one embodiment, based on the above step S320, the initial ECG data is subjected to signal processing to obtain ECG characteristic data, which may specifically include:
[0067] The initial ECG data is low-pass filtered to obtain filtered data; the filtered data is corrected based on a baseline drift correction algorithm to obtain corrected data; the corrected data is subjected to ECG waveform recognition to obtain ECG characteristic data.
[0068] Optionally, the collected initial ECG data may be low-pass filtered first, and the high-frequency noise and interference signals may be removed by using the low-pass filter. The low-pass filter may be based on an infinite impulse response filter structure (Infinite Impulse Response, referred to as IIR), and the implemented discrete time equation may be expressed as follows:
[0069] Y[n]=η·X[n]+(1-η)·Y[n-1]
[0070] Among them, Y[n] is the current output value; X[n] is the current input value; η is the filter coefficient, which determines the cutoff frequency and damping of the filter. η is usually related to the time constant t and the adopted frequency fs of the filter; Y[n-1] is the previous output value.
[0071] Considering the limitation of low-pass filter performance, a baseline drift correction algorithm is introduced in this embodiment to correct the data. The basic principle of the baseline drift correction algorithm is to average the signal in a fixed time window, use the average value as the correction value of the center point of the window, and move the window to achieve the correction of the baseline drift.
[0072] Specifically, assuming the original signal is x 1 [n], where n is the discrete time point of the signal. The window size of the sliding average correction is N, and N is an odd number to facilitate the center.
[0073] Calculate the average value of data in the window
[0074]
[0075] Correction signal:
[0076] y 1 [n] = x 1 [n]-avg[n]
[0077] The key parameter of baseline drift correction is the window size N. A smaller N has a faster response speed, but its effect of eliminating drift is limited. A larger window can achieve a smoother baseline drift correction, but it will lose some fast-changing signals. Therefore, the window size N can be set according to the needs of the actual application scenario.
[0078] Figure 4 Schematic diagram of the C language program implementation of the baseline drift of this embodiment. Figure 4 As shown, it can specifically include a C language implementation portion of the sliding average function; a portion that initializes the first "window_size-1" (sliding window size minus 1) elements of the array to "NaN" or other appropriate values, because these elements do not have a complete window for averaging; and a portion that includes a sliding window and calculates the average value.
[0079] After correction, the corrected data can be subjected to ECG waveform recognition to obtain ECG characteristic data. Specifically, the ECG waveform can be recognized by using methods such as threshold method, difference method, template matching method, sliding window method, etc., to obtain ECG characteristic data including waveform and heart rate.
[0080] Based on this, in this embodiment, based on the signal processing of the microcontroller processor module, ECG characteristic data that can be analyzed can be obtained. Afterwards, the microcontroller processor module uploads the ECG characteristic data to the host computer for further analysis and processing, thereby providing the user with ECG monitoring results.
[0081] Additionally, in one embodiment, performing ECG waveform recognition on the corrected data to obtain ECG characteristic data may specifically include:
[0082] The corrected data is differentiated to obtain a derivative sequence; a local maximum is identified from the derivative sequence; all local maximum values are screened according to a preset amplitude threshold to obtain electrocardiographic characteristic data.
[0083] The ECG waveform recognition of the corrected data may specifically be the recognition of the R wave. The R wave is a sharp peak in the ECG signal. After the correction data is derived, an obvious local maximum value can be obtained. By detecting these local maximum values, the R wave can be accurately detected.
[0084] Specifically, firstly, the correction data is approximately derived using the difference method. Let the correction data be the sequence x 2 [n], n is the index of the time series, then for each data point, the corresponding derivative is dx 2 [n], specifically in the following form:
[0085] dx 2 [n] = x 2 [n+1]-x 2 [n]
[0086] After obtaining the derivative sequence, identify the local maximum in the sequence, that is, if the value of a point is equal to that of its adjacent points, then the point is identified as a local maximum. Specifically, the local maximum can be identified by comparing the value of each point in the derivative sequence with that of its adjacent points. 2 [n], if the following conditions are met at the same time, it is possible that the point corresponds to an R wave and the point is identified as a local maximum point:
[0087] dx 2 [n]>dx 2 [n-1]
[0088] dx 2 [n]>dx 2 [n+1]
[0089] Based on this, local maxima can be identified from the derivative sequence.
[0090] Afterwards, in order to avoid misjudgment caused by noise and other interference, an amplitude threshold can be further set to filter out local maxima with amplitudes higher than the threshold from several local maxima, so as to filter out local maxima with smaller amplitudes. The amplitude threshold can be determined based on factors such as the amplitude noise level of the ECG signal. Based on this, the following processing is performed on the filtered local maxima:
[0091] dx 2 [n]>threshold
[0092] Wherein, threshold represents the amplitude threshold.
[0093] Afterwards, the mobile power device uploads the processed data to the applet of the host computer via Bluetooth, so that the applet can calculate the heart rate value through the RR interval of the R wave. Among them, the RR interval refers to the time limit between two R waves on the electrocardiogram, that is, the time interval between two ventricular depolarization waves (R waves in the QRS complex). The RR interval reflects the frequency and rhythm of the heart beat. By measuring the RR interval, the heart rate can be calculated and whether the heart has problems such as tachycardia, bradycardia or arrhythmia can be evaluated.
[0094] In this embodiment, the R wave is identified based on derivation to obtain ECG characteristic data, thereby improving the accuracy of waveform recognition.
[0095] This embodiment also provides an electrocardiogram signal processing method, which is applied to the mobile power system provided in any of the above embodiments. Figure 5 is a flow chart of another electrocardiogram signal processing method of this embodiment. Figure 5 As shown, the process includes the following steps:
[0096] Step S510, receiving ECG characteristic data transmitted by the mobile power device, wherein the ECG characteristic data is generated by the mobile power device after signal processing of the collected initial ECG data. Specifically, the host computer receives the ECG characteristic data transmitted by the mobile power device through Bluetooth and formed after signal processing.
[0097] Step S520, generating and displaying an ECG waveform diagram based on the ECG characteristic data.
[0098] The host computer can calculate the heart rate value based on the R wave in the ECG characteristic data and the RR interval of the R wave. In addition, the wavelet transform algorithm can be used to analyze the data uploaded by the mobile power device to further obtain the characteristics of the ECG characteristic data at different scales and frequencies. The specific wavelet transform algorithm is as follows:
[0099]
[0100] Among them, W(a,b) is the wavelet coefficient representing the signal, (ψ(t)) is the wavelet odd function, a is the scale parameter, and b is the translation parameter.
[0101] Specifically, firstly, a wavelet basis function suitable for the current ECG characteristic data can be selected, then the ECG characteristic data can be subjected to wavelet transformation, and the ECG characteristic data can be compared with a series of wavelet basis functions of different scales and translations to obtain a series of wavelet coefficients.
[0102] Step S530, the ECG waveform is transmitted to the cloud platform, so that the cloud platform compares the ECG waveform with a preset reference ECG database to obtain a comparison result. For example, the wavelet coefficients obtained in the above steps can be compared with the model coefficients in the reference ECG database to determine whether the heart rate is abnormal.
[0103] A health warning mechanism can be set up in the mini program. When the user's ECG data or health status is abnormal, the mini program will immediately issue a warning to prompt the user to seek medical treatment in time. At the same time, the mini program can also provide users with personalized health advice and improvement plans based on the user's historical ECG data and health information.
[0104] Optionally, a cloud database can be established on the cloud platform to store the ECG data and health information of all users. The stored data can provide data reference for future research and clinical applications, and can also be used to optimize the intelligent algorithm of the mini program and improve the accuracy of the mini program's assessment of the user's health status.
[0105] Through the above steps S510 to S530, it is possible to perform ECG monitoring while the user is using the mobile power device, without the need to use it at a specific time and place, thereby improving the accuracy of ECG monitoring. The mobile power device can directly upload the collected ECG data to the host computer for further processing, without the user having to download additional applications, reducing the complexity of user operations.
[0106] In one embodiment, generating and displaying an ECG waveform diagram based on ECG characteristic data may include: processing the ECG characteristic data based on a wavelet transform algorithm to obtain the ECG waveform diagram.
[0107] In this embodiment, the ECG characteristic data is processed based on the wavelet transform algorithm to obtain the ECG waveform graph, which can improve the accuracy of the waveform graph.
[0108] Additionally, in one embodiment, the ECG waveform is transmitted to the cloud platform so that the cloud platform compares the ECG waveform based on a preset reference ECG database. After obtaining the comparison result, the ECG signal processing method may further include: judging whether there is an abnormal waveform form according to the comparison result; if so, outputting prompt information. For example, judging whether there is an abnormal waveform form such as arrhythmia or atrial fibrillation according to the comparison result, and outputting prompt information accordingly.
[0109] Figure 6 is a flowchart of an ECG signal processing method in some embodiments, such as Figure 6 As shown, the electrocardiogram signal processing method comprises the following steps:
[0110] Step S601, initializing the ECG signal acquisition module; specifically, the chip ADC1294 may be initialized, and related registers may be configured to complete the frequency, resolution, and filter required for acquisition.
[0111] Step S602, collecting ECG signals; specifically, the ECG signal collection module collects analog ECG signals from the ECG sensor, converts them into digital ECG signals as initial ECG signals, and transmits them to the microcontroller processor module through the SPI bus for processing.
[0112] Step S603, preprocessing the initial ECG signal; the microcontroller module performs low-pass filtering on the collected initial ECG signal to remove high-frequency noise and interference signals, and corrects the data using a baseline drift correction algorithm.
[0113] Step S604, performing waveform recognition on the corrected data; specifically, the local maximum value can be identified by approximate derivation using Li Tong's differential method, and the local maximum value is screened using an amplitude threshold to determine the local maximum point corresponding to the R wave.
[0114] Step S605, heartbeat analysis and parameter calculation: the microcontroller module uploads the ECG characteristic data obtained after waveform recognition to the host computer, which generates and displays the waveform. In addition, the host computer can also extract the wavelet coefficients of the ECG characteristic data through wavelet transformation, and compare the wavelet coefficients with other model coefficients in the reference ECG database through the cloud platform to determine whether there are abnormal waveforms such as arrhythmia.
[0115] The above steps S601 to S605 can perform ECG monitoring while the user is using the mobile power device, without the need to use it at a specific time and place, thereby improving the accuracy of ECG monitoring. The mobile power device can directly upload the collected ECG data to the host computer for further processing, without the user having to download additional applications, reducing the complexity of user operations.
[0116] It should be understood that the specific embodiments described herein are only used to explain the application, rather than to limit it. Based on the embodiments provided in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the protection scope of this application.
[0117] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.
[0118] Obviously, the drawings are only some examples or embodiments of the present application. For ordinary technicians in the field, the present application can also be applied to other similar situations based on these drawings without creative work. In addition, it is understandable that although the work done in this development process may be complicated and lengthy, for ordinary technicians in the field, certain changes in design, manufacturing or production based on the technical content disclosed in this application are only conventional technical means and should not be regarded as insufficient content disclosed in this application.
[0119] The term "embodiment" in this application refers to a specific feature, structure or characteristic described in conjunction with the embodiment that can be included in at least one embodiment of the present application. The appearance of this phrase in various locations in the specification does not necessarily mean the same embodiment, nor does it mean that it is mutually exclusive with other embodiments and is independent or optional. It is clearly or implicitly understood by those of ordinary skill in the art that the embodiments described in this application can be combined with other embodiments without conflict.
[0120] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of patent protection. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the scope of protection of the present application. Therefore, the scope of protection of the present application shall be subject to the attached claims.
Claims
1. A mobile power system, characterized in that: include: A mobile power supply device, a host computer and a cloud platform; wherein the mobile power supply device comprises: an electrocardiogram sensor, an electrocardiogram signal acquisition module, a microcontroller processor module, a battery cell and a power supply module; the electrocardiogram sensor is arranged in the housing of the mobile power supply device; The ECG signal acquisition module is connected to the ECG sensor and the microcontroller module; The microcontroller module is connected to the host computer; The power module is used to control the discharge of the battery cell to provide energy; The ECG signal acquisition module is used to collect initial ECG data from the ECG sensor and transmit the initial ECG data to the microcontroller module; The microcontroller module is used to perform signal processing on the initial ECG data to obtain ECG characteristic data, and transmit the ECG characteristic data to the host computer; The host computer is used to generate and display an electrocardiogram waveform based on the electrocardiogram characteristic data, and transmit the electrocardiogram waveform to the cloud platform; The cloud platform is used to compare the ECG waveform diagram based on a preset reference ECG database to obtain a comparison result.
2. The mobile power system according to claim 1, characterized in that: The electrocardiogram sensor includes a pair of metal sensors; The signal acquisition channel of the electrocardiogram signal acquisition module is connected to the metal sensor.
3. The mobile power system according to claim 1, characterized in that: The microcontroller module is connected to the host computer via Bluetooth for data transmission.
4. The mobile power system according to any one of claims 1 to 3, characterized in that: The electrocardiogram signal acquisition module is connected to the microcontroller processor module via a SPI bus.
5. A method for processing an electrocardiogram signal, characterized in that: The mobile power system according to any one of claims 1 to 4, wherein the method comprises: Collect initial ECG data; Performing signal processing on the initial ECG data to obtain ECG characteristic data; The ECG characteristic data is transmitted to the host computer so that the host computer generates and displays an ECG waveform diagram based on the ECG characteristic data, and performs an abnormality comparison on the ECG waveform diagram based on a preset reference ECG database through the cloud platform to obtain a comparison result.
6. The electrocardiogram signal processing method according to claim 5, characterized in that: The initial ECG data is subjected to signal processing to obtain ECG characteristic data, including: Performing low-pass filtering on the initial ECG data to obtain filtered data; Correcting the filtered data based on a baseline drift correction algorithm to obtain corrected data; The corrected data is subjected to electrocardiographic waveform recognition to obtain electrocardiographic characteristic data.
7. The electrocardiogram signal processing method according to claim 6, characterized in that: Performing ECG waveform recognition on the corrected data to obtain ECG characteristic data includes: Deriving the correction data to obtain a derivative sequence; identifying a local maximum from the sequence of derivatives; All local maxima are screened according to a preset amplitude threshold to obtain ECG characteristic data.
8. A method for processing an electrocardiogram signal, characterized in that: The mobile power system according to any one of claims 1 to 4, wherein the method comprises: Receiving the ECG characteristic data transmitted by the mobile power device; wherein the ECG characteristic data is generated by the mobile power device after performing signal processing on the collected initial ECG data; Based on the electrocardiogram characteristic data, generate and display an electrocardiogram waveform diagram; The ECG waveform diagram is transmitted to the cloud platform, so that the cloud platform compares the ECG waveform diagram based on a preset reference ECG database to obtain a comparison result.
9. The electrocardiogram signal processing method according to claim 8, characterized in that: Based on the electrocardiogram characteristic data, an electrocardiogram waveform is generated and displayed, including: The electrocardiogram characteristic data is processed based on a wavelet transform algorithm to obtain an electrocardiogram waveform diagram.
10. The electrocardiogram signal processing method according to claim 8, characterized in that: The ECG waveform is transmitted to the cloud platform so that the cloud platform compares the ECG waveform based on a preset reference ECG database. After obtaining the comparison result, the method further includes: According to the comparison result, determine whether there is an abnormal waveform shape; if so, output a prompt message.
