CN111603154B - Method and device for detecting heart rhythm, storage medium and mobile terminal - Google Patents

Method and device for detecting heart rhythm, storage medium and mobile terminal Download PDF

Info

Publication number
CN111603154B
CN111603154B CN202010472175.8A CN202010472175A CN111603154B CN 111603154 B CN111603154 B CN 111603154B CN 202010472175 A CN202010472175 A CN 202010472175A CN 111603154 B CN111603154 B CN 111603154B
Authority
CN
China
Prior art keywords
fingerprint data
fingerprint
heart rhythm
detection
data acquisition
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010472175.8A
Other languages
Chinese (zh)
Other versions
CN111603154A (en
Inventor
俞斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Percussion Technology Co ltd
Original Assignee
Shenzhen Percussion Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Percussion Technology Co ltd filed Critical Shenzhen Percussion Technology Co ltd
Priority to CN202010472175.8A priority Critical patent/CN111603154B/en
Publication of CN111603154A publication Critical patent/CN111603154A/en
Application granted granted Critical
Publication of CN111603154B publication Critical patent/CN111603154B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/02Detecting, measuring or recording pulse, heart rate, blood pressure or blood flow; Combined pulse/heart-rate/blood pressure determination; Evaluating a cardiovascular condition not otherwise provided for, e.g. using combinations of techniques provided for in this group with electrocardiography or electroauscultation; Heart catheters for measuring blood pressure
    • A61B5/024Detecting, measuring or recording pulse rate or heart rate
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/12Fingerprints or palmprints
    • G06V40/13Sensors therefor

Abstract

The invention relates to the technical field of communication and discloses a method and a device for detecting heart rhythm, a storage medium and a mobile terminal. The method comprises the following steps: providing at least one heart rhythm detection mode for a user to select settings; wherein, the heart rhythm detection mode comprises manual detection and automatic detection; acquiring fingerprint data through a fingerprint data acquisition device, and calculating the duty ratio of the fingerprint data; when the ratio of the fingerprint data exceeds a set threshold, at least one measuring point is selected in a data acquisition area of the fingerprint data acquisition device at intervals of a first set time, the change times of the fingerprint data on the measuring point in a second set time are obtained, and the corresponding heart rhythm value is calculated through the change times. The method solves the problems of high detection cost and inconvenient carrying of detection equipment caused by the existing heart rhythm detection, so that a user can simply and quickly detect the heart rhythm by the mobile terminal, know the heart rhythm condition in time and improve the user experience.

Description

Method and device for detecting heart rhythm, storage medium and mobile terminal
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and apparatus for detecting a heart rhythm, a storage medium, and a mobile terminal.
Background
Along with the development of national economy and medical level, the attention degree of people to self health is continuously improved, and applications related to health such as pedometers, rest clocks and the like are introduced into mobile terminals such as smart phones, tablets and the like.
Heart rhythm is one of the most important health indications, and often requires immediate detection, whereas it is not possible for an average user to carry a stethoscope or the like device at any time that can measure heart rhythm. In the prior art, the heart rhythm is usually measured through some additional equipment and then transmitted to the mobile terminal for display through a wireless transmission mode.
Therefore, in the prior art, the detection cost is high due to the additional device for detecting the heart rhythm, and the detection device is inconvenient to carry, so that improvement on the heart rhythm detection method is needed.
Disclosure of Invention
The invention provides a method, a device, a storage medium and a mobile terminal for detecting the heart rhythm, which solve the problems that the existing heart rhythm detection is high in detection cost due to the fact that equipment for detecting the heart rhythm is additionally arranged, and the detection equipment is inconvenient to carry, so that a user can simply and rapidly detect the heart rhythm through the mobile terminal, timely know the condition of the heart rhythm and improve user experience.
The invention provides a heart rhythm detection method, which comprises the following steps:
acquiring fingerprint data through a fingerprint data acquisition device, and calculating the duty ratio of the fingerprint data;
when the ratio of the fingerprint data exceeds a set threshold, at least one measuring point is selected in a data acquisition area of the fingerprint data acquisition device at intervals of a first set time, the change times of the fingerprint data on the measuring point in a second set time are obtained, and the corresponding heart rhythm value is calculated through the change times.
Preferably, before the step of acquiring fingerprint data by the fingerprint data acquisition device and calculating the fingerprint data duty ratio, the method further comprises:
providing at least one heart rhythm detection mode for a user to select settings; wherein, the liquid crystal display device comprises a liquid crystal display device,
the heart rhythm detection mode comprises manual detection and automatic detection.
Preferably, the step of acquiring fingerprint data by the fingerprint data acquisition device and calculating the fingerprint data duty ratio includes:
when the manual detection is set, after a starting instruction from a user is received, starting the fingerprint data acquisition device to acquire fingerprint data, and calculating the fingerprint data duty ratio;
when the automatic detection is set, after the pressing signal is detected, the fingerprint data acquisition device is started to acquire fingerprint data, and the fingerprint data duty ratio is calculated.
Preferably, the fingerprint data includes a fingerprint number and a fingerprint contour.
Preferably, the step of acquiring fingerprint data by the fingerprint data acquisition device and calculating the fingerprint data duty ratio includes:
when the fingerprint data is the fingerprint number, acquiring the fingerprint number acquired by the fingerprint data acquisition device, dividing the acquired fingerprint number by the fingerprint number of the complete fingerprint, and calculating to obtain the fingerprint data duty ratio;
when the fingerprint data is a fingerprint contour, the fingerprint contour acquired by the fingerprint data acquisition device is acquired, the occupied area of the acquired fingerprint contour is divided by the occupied area of the fingerprint contour of the complete fingerprint, and the fingerprint data duty ratio is calculated.
Preferably, the method further comprises:
when a plurality of measuring points are selected every other the first set time, the change times of a plurality of fingerprint data corresponding to the measuring points in the second set time are obtained, a plurality of corresponding cardiac rhythm values are calculated through the change times, and an average cardiac rhythm value is obtained by averaging the cardiac rhythm values;
the calculation method for calculating the corresponding cardiac rhythm value through the change times comprises the following steps:
heart rate value= (number of changes/second set time) (1 minute/second set time).
The invention also provides a heart rhythm detection device, which is applied to the mobile terminal and comprises:
the fingerprint data acquisition module is used for acquiring fingerprint data through the fingerprint data acquisition device and calculating the duty ratio of the fingerprint data;
and the heart rhythm detection module is used for selecting at least one measuring point in a data acquisition area of the fingerprint data acquisition device when the fingerprint data duty ratio exceeds a set threshold, acquiring the change times of the fingerprint data on the measuring point in set time, and calculating the corresponding heart rhythm value according to the change times.
Preferably, the apparatus further comprises:
the setting module is used for providing at least one heart rhythm detection mode for a user to select settings; wherein, the heart rhythm detection mode comprises manual detection and automatic detection.
The present invention also provides a computer readable storage medium having stored therein a plurality of instructions adapted to be loaded by a processor to perform the method of heart rhythm detection of any of the above.
The invention also provides a mobile terminal, which comprises a processor and a memory, wherein the processor is electrically connected with the memory, the memory is used for storing instructions and data, and the processor is used for executing the steps in the heart rhythm detection method.
According to the heart rhythm detection method, the heart rhythm detection device, the storage medium and the mobile terminal, fingerprint data are acquired through the fingerprint data acquisition device, and the fingerprint data duty ratio is calculated; when the ratio of the fingerprint data exceeds a set threshold, at least one measuring point is selected in a data acquisition area of the fingerprint data acquisition device at intervals of a first set time, the change times of the fingerprint data on the measuring point in a second set time are obtained, and the corresponding heart rhythm value is calculated through the change times. The method provided by the invention enables the user to simply and rapidly detect the heart rhythm by the mobile terminal, so that the user can know the heart rhythm condition in time, and the user experience is improved.
Drawings
The technical solution and other advantageous effects of the present invention will be made apparent by the following detailed description of the specific embodiments of the present invention with reference to the accompanying drawings.
Fig. 1 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention;
fig. 2 is another schematic structural diagram of a mobile terminal according to an embodiment of the present invention;
FIG. 3 is a flowchart of a method for detecting heart rhythm according to an embodiment of the present invention;
fig. 4 is a block diagram of a heart rhythm detection device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It will be apparent that the described embodiments are only some, but not all, embodiments of the invention. In the drawings, like elements are designated by like reference numerals. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to fall within the scope of the invention.
In the description of the present invention, it should be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more of the described features. In the description of the present invention, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
Aiming at the problems that the detection cost is high and the detection equipment is inconvenient to carry due to the fact that the existing heart rhythm detection needs to be additionally provided with the equipment for detecting the heart rhythm, the embodiment of the invention is used for solving the problems.
The embodiment of the invention provides a mobile terminal which can be a smart phone or a tablet personal computer and the like. As shown in fig. 1, the mobile terminal 100 includes a processor 101, a memory 102. The processor 101 is electrically connected to the memory 102.
The processor 101 is a control center of the mobile terminal 100, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by running or loading an application program stored in the memory 102 and calling data stored in the memory 102, thereby performing overall monitoring of the mobile terminal.
In this embodiment, the processor 101 in the mobile terminal 100 loads the instructions corresponding to the processes of one or more application programs into the memory 102 according to the following steps, and the processor 101 executes the application programs stored in the memory 102, so as to implement various functions, such as a heart rhythm detection method:
acquiring fingerprint data through a fingerprint data acquisition device, and calculating the duty ratio of the fingerprint data;
when the ratio of the fingerprint data exceeds a set threshold, at least one measuring point is selected in a data acquisition area of the fingerprint data acquisition device at intervals of a first set time, the change times of the fingerprint data on the measuring point in a second set time are obtained, and the corresponding heart rhythm value is calculated through the change times.
The mobile terminal 100 may implement any of the steps of the heart rhythm detection method.
Fig. 2 shows a specific block diagram of a mobile terminal 100 according to an embodiment of the present invention. As shown in fig. 2, the mobile terminal 100 may include Radio Frequency (RF) circuitry 110, memory 120 including one or more computer-readable storage media, an input unit 130, a display unit 140, a sensor 150, audio circuitry 160, a transmission module 170 (e.g., wireless fidelity, wiFi, wireless Fidelity), a processor 180 including one or more processing cores, and a power supply 190. Those skilled in the art will appreciate that the mobile terminal structure shown in fig. 1 is not limiting of the mobile terminal and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
The RF circuit 110 is configured to receive and transmit electromagnetic waves, and to perform mutual conversion between the electromagnetic waves and the electrical signals, so as to communicate with a communication network or other devices. RF circuitry 110 may include various existing circuit components for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and the like. The RF circuitry 110 may communicate with various networks such as the internet, intranets, wireless networks, or other devices via wireless networks. The wireless network may include a cellular telephone network, a wireless local area network, or a metropolitan area network. The wireless network may use various communication standards, protocols, and technologies including, but not limited to, global system for mobile communications (Global System for Mobile Communication, GSM), enhanced mobile communications technology (Enhanced Data GSM Environment, EDGE), wideband code division multiple access technology (Wideband Code Division Multiple Access, WCDMA), code division multiple access technology (Code Division Access, CDMA), time division multiple access technology (Time Division Multiple Access, TDMA), wireless fidelity technology (Wireless Fidelity, wi-Fi) (e.g., american society of electrical and electronic engineers standard IEEE802.11a, IEEE 802.11.11 b, IEEE802.11g, and/or IEEE802.11 n), internet telephony (Voice over Internet Protocol, voIP), worldwide interoperability for microwave access (Worldwide Interoperability for Microwave Access, wi-Max), other protocols for mail, instant messaging, and short messaging, and any other suitable communication protocols, even those not currently developed.
The memory 120 may be used to store software programs and modules, such as corresponding program instructions in the above-described heart rhythm detection method, and the processor 180 executes the software programs and modules stored in the memory 120 to perform various functional applications and data processing, i.e., to achieve the acquisition of the frequency of the information transmission signal carried by the mobile terminal 100. Generating an interference signal and the like. Memory 120 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 120 may further include memory remotely located relative to the processor 180, which may be connected to the mobile terminal 100 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 130 may be used to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 130 may comprise a touch sensitive surface 131 and other input devices 132. The touch-sensitive surface 131, also referred to as a touch display screen or a touch pad, may collect touch operations thereon or thereabout by a user (such as operations of the user on the touch-sensitive surface 131 or thereabout by any suitable object or accessory such as a finger, stylus, etc.), and actuate the corresponding connection means according to a pre-set program. Alternatively, the touch sensitive surface 131 may comprise two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into touch point coordinates, which are then sent to the processor 180, and can receive commands from the processor 180 and execute them. In addition, the touch-sensitive surface 131 may be implemented in various types of resistive, capacitive, infrared, surface acoustic wave, and the like. In addition to the touch-sensitive surface 131, the input unit 130 may also comprise other input devices 132. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc.
The display unit 140 may be used to display information input by a user or information provided to the user and various graphical user interfaces of the mobile terminal 100, which may be composed of graphics, text, icons, video, and any combination thereof. The display unit 140 may include a display panel 141, and alternatively, the display panel 141 may be configured in the form of an LCD (Liquid Crystal Display ), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 631 may overlay the display panel 141 and upon detection of a touch operation thereon or thereabout by the touch-sensitive surface 131, the touch-sensitive surface is communicated to the processor 180 to determine the type of touch event, and the processor 180 then provides a corresponding visual output on the display panel 141 based on the type of touch event. Although in the figures the touch-sensitive surface 131 and the display panel 141 are implemented as two separate components for input and output functions, in some embodiments the touch-sensitive surface 131 may be integrated with the display panel 141 for input and output functions.
The mobile terminal 100 may also include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may generate an interrupt when the folder is closed or closed. As one of the motion sensors, the gravity acceleration sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and the direction when the mobile phone is stationary, and can be used for applications of recognizing the gesture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured with the mobile terminal 100 are not described in detail herein.
Audio circuitry 160, speaker 161, and microphone 162 may provide an audio interface between a user and mobile terminal 100. The audio circuit 160 may transmit the received electrical signal converted from audio data to the speaker 161, and the electrical signal is converted into a sound signal by the speaker 161 to be output; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal, receives the electrical signal from the audio circuit 160, converts the electrical signal into audio data, outputs the audio data to the processor 180 for processing, transmits the audio data to, for example, another terminal via the RF circuit 110, or outputs the audio data to the memory 120 for further processing. Audio circuitry 160 may also include an ear bud jack to provide communication of a peripheral ear bud with mobile terminal 100.
The mobile terminal 100 may facilitate user reception of requests, transmission of information, etc. via the transmission module 170 (e.g., wi-Fi module), which provides wireless broadband internet access to the user. Although the transmission module 170 is shown in the drawings, it is understood that it does not belong to the essential constitution of the mobile terminal 100, and may be omitted entirely as required within the scope of not changing the essence of the invention.
The processor 180 is a control center of the mobile terminal 100, connects various parts of the entire handset using various interfaces and lines, and performs various functions of the mobile terminal 100 and processes data by running or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby performing overall monitoring of the mobile terminal. Optionally, the processor 180 may include one or more processing cores; in some embodiments, the processor 180 may integrate an application processor that primarily processes operating systems, user interfaces, applications, etc., with a modem processor that primarily processes wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
The mobile terminal 100 also includes a power supply 190 (e.g., a battery) for powering the various components, which in some embodiments may be logically connected to the processor 180 via a power management system so as to perform functions such as managing charging, discharging, and power consumption via the power management system. The power supply 190 may also include one or more of any of a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the mobile terminal 100 further includes a camera (e.g., front camera, rear camera), a bluetooth module, a flashlight, etc., which will not be described herein. In particular, in the present embodiment, the display unit of the mobile terminal 100 is a touch screen display, the mobile terminal further includes a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions for:
acquiring fingerprint data through a fingerprint data acquisition device, and calculating the duty ratio of the fingerprint data;
when the ratio of the fingerprint data exceeds a set threshold, at least one measuring point is selected in a data acquisition area of the fingerprint data acquisition device at intervals of a first set time, the change times of the fingerprint data on the measuring point in a second set time are obtained, and the corresponding heart rhythm value is calculated through the change times.
In order to better use the mobile terminal 100, so that the process of detecting the heart rhythm is more convenient and better user experience is obtained, the embodiment of the invention also provides a heart rhythm detection method, which is applied to the mobile terminal 100, wherein a flow chart of the heart rhythm detection method is shown in fig. 3, and the specific steps are as follows:
step S101, providing at least one heart rhythm detection mode for a user to select setting; wherein, the heart rhythm detection mode comprises manual detection and automatic detection.
When the user turns on the heart rate detection, the mobile terminal 100 provides at least one heart rate detection mode for the user to select settings, wherein the heart rate detection mode comprises manual detection and automatic detection. When the setting is selected, a selection interface can be popped up in the form of a dialog box so that a user can select different heart rhythm detection modes.
Step S102, fingerprint data are acquired through a fingerprint data acquisition device, and the fingerprint data duty ratio is calculated.
In the existing mobile terminal devices such as smart phones, most of the mobile terminal devices have a fingerprint identification function, and the existing fingerprint identification technology is generally used for fingerprint unlocking and has an identity verification function. The change of the heart rhythm may cause weak jump on the surface of the finger skin, so that the fingerprint data collected on the surface of the finger skin may also change periodically, so in the embodiment of the present invention, the heart rhythm may be detected by using the fingerprint data, so that the user may simply and quickly detect the heart rhythm by using the mobile terminal 100 independently, without adding an additional device for detecting the heart rhythm.
Specifically, when the user selects to set the mode of detecting the heart rhythm to be manual detection, the operation interface of the mobile terminal 100 includes a "start" option, and after receiving a start instruction from the user, the mobile terminal 100 may specifically start the fingerprint data acquisition device after receiving the "start" option on the user click operation interface, at this time, the user presses a finger on the fingerprint data acquisition device, the fingerprint data acquisition device acquires fingerprint data, and calculates a fingerprint data duty ratio. Further, after the finger of the user leaves the fingerprint data acquisition device, the fingerprint data acquisition device cannot be immediately closed, and in a fixed time period, the user does not press the finger on the fingerprint data acquisition device, and at the moment, the fingerprint data acquisition device is closed, so that the purpose of reducing power consumption is achieved. Wherein, the fixed duration may be 3min.
When the user chooses to set the heart rhythm detection mode to be automatic detection, the "start" option is not required to be included on the operation interface of the mobile terminal 100. In this arrangement, the fingerprint data collection device will remain closed when no pressing signal is detected, and the mobile terminal 100 will turn on the fingerprint data collection device and acquire the fingerprint data to calculate the fingerprint data duty ratio when a pressing signal is detected. Specifically, after the user selects to set, the mobile terminal 100 will not immediately turn on the fingerprint data collection device, and the fingerprint data collection device is still in a closed state, when a pressing signal is generated, that is, when the finger of the user presses, the mobile terminal 100 detects the pressing signal, specifically, after the fingerprint data collection device detects the pressing signal, the fingerprint data collection device is turned on to obtain the fingerprint data, and the fingerprint data duty ratio is calculated. Further, the pressing signal disappears after the finger of the user leaves the fingerprint data collection device, so that the mobile terminal 100 will immediately turn off the fingerprint data collection device.
Preferably, the fingerprint data may include a fingerprint number and a fingerprint profile.
When the fingerprint data is the fingerprint number, the step S102 may be: and obtaining the fingerprint number collected by the fingerprint data collection device, dividing the collected fingerprint number by the fingerprint number of the complete fingerprint, and calculating to obtain the fingerprint data duty ratio. When a user presses a finger on the fingerprint data acquisition device each time, the acquired fingerprint numbers are different, so that different fingerprint data duty ratios can be calculated according to different fingerprint numbers.
When the fingerprint data is a fingerprint profile, the step S102 may be: and obtaining the fingerprint profile acquired by the fingerprint data acquisition device, dividing the occupied area of the acquired fingerprint profile by the occupied area of the fingerprint profile of the complete fingerprint, and calculating the fingerprint data duty ratio. At this time, the fingerprint data duty ratio is the integrity of the corresponding fingerprint under different pressing conditions.
And step 103, when the ratio of the fingerprint data exceeds a set threshold, selecting at least one measuring point in a data acquisition area of the fingerprint data acquisition device at intervals of a first set time, acquiring the change times of the fingerprint data on the measuring point in a second set time, and calculating the corresponding heart rhythm value according to the change times.
To ensure accuracy of heart rhythm detection, in this embodiment, the set threshold is 80%, that is, when the fingerprint data is more than 80%, the subsequent step of heart rhythm detection may be performed.
And when the fingerprint data is the fingerprint number or the fingerprint outline and the fingerprint data accounts for more than 80 percent, namely the fingerprint number acquired by the fingerprint data acquisition device exceeds 80 percent or the integrity of the fingerprint exceeds 80 percent, selecting at least one measuring point in a data acquisition area of the fingerprint data acquisition device at intervals of a first set time, acquiring the change times of the fingerprint data on the measuring point in a second set time, and calculating the corresponding heart rhythm value according to the change times.
In the embodiment of the invention, at least one measuring point is selected at intervals of a first set time instead of repeatedly detecting the same measuring point, so that the heart rhythm is calculated through the change times of the fingerprint data acquired at different measuring points, and the accuracy of a detection result is improved.
The calculation method for calculating the corresponding cardiac rhythm value through the change times comprises the following steps: heart rate value= (number of changes/second set time) (1 minute/second set time).
Preferably, when the calculated heart rate value remains within the error range for the error confirmation time, the calculated heart rate value may be output as a result for display to the user. Further, for better convenience to the user, the mobile terminal 100 will also store the last detection result, so that the user can check before the next detection, and at the same time, can compare the two detection results, so that the user can evaluate the situation of the mobile terminal.
In a specific example, the first setting time and the second setting time may be set to 3s, the error confirmation time may be set to 10s, and the error range may be ±5%. That is, when the calculation results of two consecutive times are within the error range, the detection result can be output and displayed to the user.
Preferably, when a plurality of measurement points are selected at intervals of the first set time, the change times of a plurality of fingerprint data corresponding to a plurality of measurement points in the second set time are obtained, a plurality of corresponding cardiac rhythm values are calculated according to the change times, and an average cardiac rhythm value is obtained by averaging the cardiac rhythm values.
Wherein a plurality of said heart rhythm values calculated prior to averaging should be within an error range; and when calculating the heart rhythm value according to the change times corresponding to the plurality of measuring points, averaging the plurality of heart rhythm values to obtain an average heart rhythm value as a result and outputting the average heart rhythm value.
Further, to ensure the accuracy of the change times acquisition result in the second set time, a timing acquisition may be adopted. In order to avoid missing the number of changes, the timing duration should be small enough, for example, 100ms, that is, the number of changes is acquired every 100ms, so as to determine the total number of changes in the second set time.
The method provided by the embodiment of the invention obtains fingerprint data through the fingerprint data acquisition device and calculates the ratio of the fingerprint data; when the ratio of the fingerprint data exceeds a set threshold, at least one measuring point is selected in a data acquisition area of the fingerprint data acquisition device at intervals of a first set time, the change times of the fingerprint data on the measuring point in a second set time are obtained, the corresponding heart rhythm value is calculated through the change times, and the last detection result can be stored so as to be convenient to check before next detection. Therefore, the method provided by the embodiment of the invention enables the user to simply and rapidly detect the heart rhythm through the mobile terminal, know the heart rhythm condition in time and store the detection result, thereby improving the user experience. And because fingerprint identification and fingerprint detection have little influence on users, the heart rhythm detection method provided by the embodiment of the invention realizes that the influence on users is reduced to be extremely low while detecting heart rhythms.
In order to better implement the above-mentioned method for detecting a heart rhythm, the embodiment of the present invention will be further described from the perspective of a heart rhythm detection device, where the heart rhythm detection device may be implemented as an independent entity, or may be integrated into the mobile terminal 100 provided by the embodiment of the present invention, and the mobile terminal 100 may include a mobile phone, a tablet computer, and so on.
As shown in fig. 4, fig. 4 is a block diagram of a heart rhythm detection device according to an embodiment of the present invention, and the heart rhythm detection device is applied to a mobile terminal 100, where the heart rhythm detection device may include:
a setting module 201, configured to provide at least one heart rhythm detection mode for a user to select a setting; wherein, the heart rhythm detection mode comprises manual detection and automatic detection;
the fingerprint data acquisition module 202 is configured to acquire fingerprint data through the fingerprint data acquisition device, and calculate a fingerprint data duty ratio;
and the heart rhythm detection module 203 is configured to select at least one measurement point every first set time in a data acquisition area of the fingerprint data acquisition device when the fingerprint data duty ratio exceeds a set threshold, obtain the number of changes of the fingerprint data on the measurement point in a second set time, and calculate a corresponding heart rhythm value according to the number of changes.
Specifically, the setting module 201 may include a manual detection module 2011 and an automatic detection module 2012. The manual detection module 2011 is configured to execute a step of starting the fingerprint data acquisition device after receiving a start instruction from a user when the manual detection is set. The automatic detection module 2012 is used for executing the operation that when the automatic detection is set, the fingerprint data acquisition device is started after the pressing signal is detected.
The fingerprint data acquisition module 202 may include a data acquisition module 2021 and a duty cycle calculation 2022. The data acquisition module 2021 is configured to perform the step of acquiring the fingerprint data, and the duty ratio calculation 2022 is configured to perform the step of calculating a fingerprint data duty ratio according to the fingerprint data acquired by the data acquisition module 2021.
Further, the fingerprint data acquisition module 202 may be integrated with an existing fingerprint unlocking device, or may be separately provided.
The heart rhythm detection module 203 may include a heart rhythm calculation module 2031, an error determination module 2032, and a mean calculation module 2033. The heart rhythm calculation module 2031 may specifically further include a change number acquisition module 20311 and a calculation module 20312. The change number obtaining module 20311 is configured to perform a step of selecting at least one measurement point every first set time in a data collection area of the fingerprint data collection device when the fingerprint data duty ratio exceeds a set threshold, and obtaining a change number of fingerprint data on the measurement point in a second set time; the calculating module 20312 is configured to perform the step of calculating a corresponding heart rhythm value according to the number of changes. The error determination module 2032 is configured to perform a step of outputting the calculated heart rhythm value as a result when the calculated heart rhythm value remains within the error range for the error confirmation time. The average calculating module 2033 is configured to perform a step of averaging a plurality of calculated cardiac rhythm values when calculating the cardiac rhythm value with the number of changes corresponding to a plurality of measurement points, and outputting the obtained average cardiac rhythm value as a result.
In the implementation, each module may be implemented as an independent entity, or may be combined arbitrarily, and implemented as the same entity or a plurality of entities, where the implementation of each module may refer to the foregoing method embodiment, and the specific beneficial effects that may be achieved may refer to the beneficial effects in the foregoing method embodiment, which are not described herein again.
It will be appreciated by those of ordinary skill in the art that all or part of the steps of the method of heart rhythm detection described above may be performed by instructions or by controlling associated hardware by instructions that may be stored on a computer readable storage medium and loaded and executed by a processor. To this end, an embodiment of the present invention further provides a storage medium storing a plurality of instructions that can be loaded by a processor to perform any of the steps of the above-described method for detecting a heart rhythm.
Wherein the storage medium may include: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
Because the instructions stored in the storage medium can execute any step of the above-mentioned heart rhythm detection method, the beneficial effects that can be achieved by the heart rhythm detection method provided by the embodiment of the present invention can be achieved, and detailed descriptions of the foregoing are omitted herein.
The method, the device, the storage medium and the mobile terminal for detecting the heart rhythm provided by the embodiment of the invention are described in detail, and specific examples are applied to the explanation of the principle and the implementation mode of the invention, and the explanation of the above embodiments is only used for helping to understand the technical scheme and the core idea of the invention; those of ordinary skill in the art will appreciate that: the technical scheme described in the foregoing embodiments can be modified or some of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the technical solutions according to the embodiments of the present invention.

Claims (8)

1. A method for detecting a heart rhythm, applied to a mobile terminal, comprising:
acquiring fingerprint data through a fingerprint data acquisition device, calculating the ratio of the fingerprint data, wherein the fingerprint data comprises fingerprint numbers and fingerprint outlines, when the fingerprint data is the fingerprint numbers, acquiring the fingerprint numbers acquired by the fingerprint data acquisition device, dividing the acquired fingerprint numbers by the fingerprint numbers of the complete fingerprints, and calculating the ratio of the fingerprint data; when the fingerprint data is a fingerprint contour, acquiring the fingerprint contour acquired by the fingerprint data acquisition device, dividing the occupied area of the acquired fingerprint contour by the occupied area of the fingerprint contour of the complete fingerprint, and calculating to obtain the fingerprint data duty ratio;
when the ratio of the fingerprint data exceeds a set threshold, at least one measuring point is selected in a data acquisition area of the fingerprint data acquisition device at intervals of a first set time, the change times of the fingerprint data on the measuring point in a second set time are obtained, and the corresponding heart rhythm value is calculated through the change times.
2. The method of claim 1, wherein prior to the step of acquiring fingerprint data by the fingerprint data acquisition device and calculating a fingerprint data duty cycle, the method further comprises:
providing at least one heart rhythm detection mode for a user to select settings; wherein, the liquid crystal display device comprises a liquid crystal display device,
the heart rhythm detection mode comprises manual detection and automatic detection.
3. The heart rhythm detection method according to claim 2, wherein the step of acquiring fingerprint data by the fingerprint data acquisition device and calculating a fingerprint data duty ratio comprises:
when the manual detection is set, after a starting instruction from a user is received, starting the fingerprint data acquisition device to acquire fingerprint data, and calculating the fingerprint data duty ratio;
when the automatic detection is set, after the pressing signal is detected, the fingerprint data acquisition device is started to acquire fingerprint data, and the fingerprint data duty ratio is calculated.
4. The method of heart rhythm detection according to claim 1, wherein the method further comprises:
when a plurality of measuring points are selected every first set time, the change times of a plurality of fingerprint data corresponding to the measuring points in the second set time are obtained, a plurality of corresponding cardiac rhythm values are calculated according to the change times, and an average cardiac rhythm value is obtained by averaging the cardiac rhythm values.
5. A heart rhythm detection device for use in a mobile terminal, comprising:
the fingerprint data acquisition module is used for acquiring fingerprint data through the fingerprint data acquisition device and calculating the fingerprint data duty ratio, wherein the fingerprint data comprises fingerprint number and fingerprint outline, when the fingerprint data is the fingerprint number, the fingerprint number acquired by the fingerprint data acquisition device is acquired, the acquired fingerprint number is divided by the fingerprint number of the complete fingerprint, and the fingerprint data duty ratio is calculated; when the fingerprint data is a fingerprint contour, acquiring the fingerprint contour acquired by the fingerprint data acquisition device, dividing the occupied area of the acquired fingerprint contour by the occupied area of the fingerprint contour of the complete fingerprint, and calculating to obtain the fingerprint data duty ratio;
and the heart rhythm detection module is used for selecting at least one measuring point in a data acquisition area of the fingerprint data acquisition device at intervals of a first set time when the fingerprint data duty ratio exceeds a set threshold, acquiring the change times of the fingerprint data on the measuring point in a second set time, and calculating the corresponding heart rhythm value according to the change times.
6. The heart rhythm detection device of claim 5 wherein the device further comprises:
the setting module is used for providing at least one heart rhythm detection mode for a user to select settings; wherein, the heart rhythm detection mode comprises manual detection and automatic detection.
7. A computer readable storage medium having stored therein a plurality of instructions adapted to be loaded by a processor to perform the method of heart rhythm detection of any one of claims 1 to 4.
8. A mobile terminal comprising a processor and a memory, the processor being electrically connected to the memory, the memory being configured to store instructions and data, the processor being configured to perform the steps of the method for detecting a heart rhythm of any one of claims 1 to 4.
CN202010472175.8A 2020-05-29 2020-05-29 Method and device for detecting heart rhythm, storage medium and mobile terminal Active CN111603154B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010472175.8A CN111603154B (en) 2020-05-29 2020-05-29 Method and device for detecting heart rhythm, storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010472175.8A CN111603154B (en) 2020-05-29 2020-05-29 Method and device for detecting heart rhythm, storage medium and mobile terminal

Publications (2)

Publication Number Publication Date
CN111603154A CN111603154A (en) 2020-09-01
CN111603154B true CN111603154B (en) 2023-09-15

Family

ID=72195306

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010472175.8A Active CN111603154B (en) 2020-05-29 2020-05-29 Method and device for detecting heart rhythm, storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN111603154B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112381007A (en) * 2020-11-17 2021-02-19 惠州Tcl移动通信有限公司 Fingerprint information acquisition method and device, storage medium and terminal

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103083005A (en) * 2011-11-01 2013-05-08 北京瓦力网络科技有限公司 Method for testing heart rate of user
CN105635359A (en) * 2015-12-31 2016-06-01 宇龙计算机通信科技(深圳)有限公司 Heart rate measuring method, device and terminal
CN106203290A (en) * 2016-06-28 2016-12-07 广东欧珀移动通信有限公司 A kind of fingerprint image acquisition method and terminal
CN106725410A (en) * 2016-12-12 2017-05-31 努比亚技术有限公司 A kind of heart rate detection method and terminal
CN107595271A (en) * 2017-07-27 2018-01-19 康美健康云服务有限公司 Method for measuring heart rate, electronic equipment, storage medium and system based on mobile phone
CN110236514A (en) * 2019-07-12 2019-09-17 华东师范大学 The real-time heart rate detection method that mode based on video is extracted and median filtering combines

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103083005A (en) * 2011-11-01 2013-05-08 北京瓦力网络科技有限公司 Method for testing heart rate of user
CN105635359A (en) * 2015-12-31 2016-06-01 宇龙计算机通信科技(深圳)有限公司 Heart rate measuring method, device and terminal
CN106203290A (en) * 2016-06-28 2016-12-07 广东欧珀移动通信有限公司 A kind of fingerprint image acquisition method and terminal
CN106725410A (en) * 2016-12-12 2017-05-31 努比亚技术有限公司 A kind of heart rate detection method and terminal
CN107595271A (en) * 2017-07-27 2018-01-19 康美健康云服务有限公司 Method for measuring heart rate, electronic equipment, storage medium and system based on mobile phone
CN110236514A (en) * 2019-07-12 2019-09-17 华东师范大学 The real-time heart rate detection method that mode based on video is extracted and median filtering combines

Also Published As

Publication number Publication date
CN111603154A (en) 2020-09-01

Similar Documents

Publication Publication Date Title
CN107277912B (en) Radio frequency interference processing method, device, storage medium and terminal
CN109905907B (en) Network searching method and mobile terminal
CN107563170B (en) Fingerprint unlocking method and related product
CN105830016B (en) Power management method and power management device for user equipment
CN106022062B (en) Unlocking method and mobile terminal
CN111654902B (en) Method and device for reducing GPS signal interference of mobile terminal and mobile terminal
CN108388340B (en) Electronic equipment control method and related product
CN111603154B (en) Method and device for detecting heart rhythm, storage medium and mobile terminal
CN108810261B (en) Antenna switching method in call and related product
CN110851014B (en) Touch recognition method and device, storage medium and terminal equipment
CN110277097B (en) Data processing method and related equipment
CN108269223B (en) Webpage graph drawing method and terminal
CN106547400B (en) Method, device and terminal for reporting information
CN111399944A (en) Application function starting method and device, storage medium and mobile terminal
CN110995324B (en) Bluetooth communication method, device, storage medium and terminal equipment
CN110988717B (en) Battery detection method, storage medium and terminal device
CN111048056A (en) Terminal equipment brightness adjusting method and system, storage medium and terminal equipment
CN110995932A (en) Memorandum setting method and device, storage medium and electronic equipment
CN111988059B (en) Wireless data transmission method, device, storage medium and mobile terminal
CN117387655B (en) Step counting method, step counting device, terminal and storage medium
CN109561415B (en) NFC function detection method and device, storage medium and mobile terminal
CN114442346B (en) Method and device for calculating ghost of display panel, storage medium and terminal equipment
CN111654848B (en) NFC card detection method and device, storage medium and mobile terminal
CN111521375B (en) Gamma value determination method and device
CN109617660B (en) Method and device for setting carrier aggregation frequency band, storage medium and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20230815

Address after: 226, Block B, Huafeng Headquarters Economic Building, No. 288 Xixiang Avenue, Labor Community, Xixiang Street, Bao'an District, Shenzhen City, Guangdong Province, 518100

Applicant after: Shenzhen percussion Technology Co.,Ltd.

Address before: 516006 Zhongkai hi tech Zone, Huizhou, Guangdong, 86 Chang seven Road West

Applicant before: HUIZHOU TCL MOBILE COMMUNICATION Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant