CN108742581B - Heartbeat detection method, heartbeat detection device, storage medium and terminal - Google Patents

Heartbeat detection method, heartbeat detection device, storage medium and terminal Download PDF

Info

Publication number
CN108742581B
CN108742581B CN201810622710.6A CN201810622710A CN108742581B CN 108742581 B CN108742581 B CN 108742581B CN 201810622710 A CN201810622710 A CN 201810622710A CN 108742581 B CN108742581 B CN 108742581B
Authority
CN
China
Prior art keywords
pressure
information
heartbeat
pressure information
determining
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
CN201810622710.6A
Other languages
Chinese (zh)
Other versions
CN108742581A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810622710.6A priority Critical patent/CN108742581B/en
Publication of CN108742581A publication Critical patent/CN108742581A/en
Application granted granted Critical
Publication of CN108742581B publication Critical patent/CN108742581B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • 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
    • A61B5/02444Details of sensor
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/68Arrangements of detecting, measuring or recording means, e.g. sensors, in relation to patient
    • A61B5/6887Arrangements of detecting, measuring or recording means, e.g. sensors, in relation to patient mounted on external non-worn devices, e.g. non-medical devices
    • A61B5/6898Portable consumer electronic devices, e.g. music players, telephones, tablet computers

Abstract

The embodiment of the application discloses a heartbeat detection method, a heartbeat detection device, a storage medium and a terminal, wherein the method comprises the following steps: firstly, when a starting instruction is received, side pressure information is obtained according to a preset time interval; then, determining a periodic pressure wave according to the side pressure information, wherein the periodic pressure wave represents the heartbeat frequency; and finally, determining and outputting heartbeat information according to the periodic pressure waves, so that the heartbeat of the user can be detected through the pulse pressure, and the accuracy of heartbeat detection is improved.

Description

Heartbeat detection method, heartbeat detection device, storage medium and terminal
Technical Field
The embodiment of the application relates to the technical field of mobile terminals, in particular to a heartbeat detection method, a heartbeat detection device, a heartbeat detection storage medium and a heartbeat detection terminal.
Background
With the continuous development of mobile terminals, the functions of the mobile terminals are more and more abundant. At present, the mobile terminal can measure the motion information of a user through an acceleration sensor, and provides fitness advice for the user. The user can also detect the heartbeat through the infrared sensor arranged on the terminal. However, errors easily occur in detection through the infrared sensor, and the terminal cannot provide heartbeat detection for the user through other modes.
Disclosure of Invention
The embodiment of the application aims to provide a heartbeat detection method, a heartbeat detection device, a storage medium and a terminal, which can detect the heartbeat of a user through pulse pressure and improve the accuracy of heartbeat detection.
In a first aspect, an embodiment of the present application provides a heartbeat detection method, including:
when a starting instruction is received, side pressure information is obtained according to a preset time interval;
determining a periodic pressure wave from the side pressure information, the periodic pressure wave representing a heartbeat frequency;
and determining and outputting heartbeat information according to the periodic pressure wave.
In a second aspect, an embodiment of the present application provides a heartbeat detection device, including:
the acquisition module is used for acquiring side pressure information according to a preset time interval when a starting instruction is received;
the determining module is used for determining a periodic pressure wave according to the side pressure information acquired by the acquiring module, wherein the periodic pressure wave represents the heartbeat frequency;
and the output module is used for determining and outputting heartbeat information according to the periodic pressure wave determined by the determination module.
In a third aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and the program, when executed by a processor, implements the heartbeat detection method as shown in the first aspect.
In a fourth aspect, an embodiment of the present application provides a terminal, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the heartbeat detection method according to the first aspect.
According to the heartbeat detection scheme provided by the embodiment of the application, firstly, when a starting instruction is received, side pressure information is obtained according to a preset time interval; then, determining a periodic pressure wave according to the side pressure information, wherein the periodic pressure wave represents the heartbeat frequency; and finally, determining and outputting heartbeat information according to the periodic pressure waves, so that the heartbeat of the user can be detected through the pulse pressure, and the accuracy of heartbeat detection is improved.
Drawings
Fig. 1 is a schematic flowchart of a heartbeat detection method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of another heartbeat detection method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of another heartbeat detection method according to an embodiment of the present application;
fig. 4 is a schematic flowchart of another heartbeat detection method according to an embodiment of the present application;
fig. 5 is a schematic flowchart of another heartbeat detection method according to an embodiment of the present application;
fig. 6 is a schematic flowchart of another heartbeat detection method according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a heartbeat detecting device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Detailed Description
The technical scheme of the application is further explained by the specific implementation mode in combination with the attached drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some of the structures related to the present application are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
With the continuous development of mobile terminals, the functions of the mobile terminals are more and more abundant. At present, a mobile terminal can detect heartbeat through infrared sensing arranged on the terminal. However, errors easily occur in detection through the infrared sensor, and the terminal cannot provide heartbeat detection for the user through other modes.
The embodiment of the application provides a heartbeat detection method, which can acquire periodic pressure waves representing heartbeats through a pressure sensor arranged on the side of a terminal, determine heartbeat information based on the periodic pressure waves, further detect the heartbeats of a user through pulse pressure and improve the accuracy of heartbeat detection. The specific scheme is as follows:
fig. 1 is a schematic flow diagram of a heartbeat detection method according to an embodiment of the present application, where the method is used in a situation where a terminal is held by a single hand to perform heartbeat detection, and the method may be executed by a mobile terminal, where the mobile terminal may be a smart phone, a tablet computer, a wearable device, a notebook computer, and the like, and the method specifically includes the following steps:
and step 110, when a starting instruction is received, acquiring side pressure information according to a preset time interval.
The terminal is composed of two long sides and two short sides. Pressure sensors may be provided on the two long sides, respectively. The contact of the pressure sensor may be located in the middle of the long side, the length of the contact being one third of the length of the long side. The pressure sensors may also be located in the third of the two ends of the long side. Because the user is when single-handed holding, the bottom of holding the terminal usually, set up pressure sensor's contact can more convenient detection pressure in the bottom. A plurality of contacts may be provided on the long side, each of which transmits the detected variable information to the pressure sensor. The pressure sensor may employ at least one of a piezoresistive force sensor, a ceramic pressure sensor, a diffused silicon pressure sensor, or a piezoelectric pressure sensor.
The pressure sensor comprises a pressure sensitive component and a processing component, the pressure sensitive component is connected with the contact, and the processing component determines a pressure value according to a variable signal acquired by the pressure sensitive component. The side pressure information may include the pressure value, and may also include out-point information corresponding to the pressure value, that is, a position where the user applies pressure, so as to obtain different pressure values detected by the plurality of contacts on the side.
Further, the user may initiate to perform step 110 by performing a preset terminal operation. For example, the user tilts the terminal while holding it with one hand. The terminal can be detected to be in a tilting state through the gyroscope. At this point, if the user presses the pressure sensor contact on the side of the terminal with the hand holding the terminal, execution of step 110 may be triggered.
Optionally, the user starts a pulse pressure detection function of a preset application program (APP), and when the user clicks a detection button in the function, step 110 is executed.
Further, in order to determine the heartbeat information at a proper time, the pressure information is acquired by a pressure sensor arranged on the side in a preset time. The preset time may be 10s-30s, optionally 20 s.
And 120, determining a periodic pressure wave according to the side pressure information, wherein the periodic pressure wave represents the heartbeat frequency.
With the periodic movement of the heartbeat, the pressure exerted on the pressure sensor by the user can be periodically increased, and the pressure is increased to correspond to the systolic pulse pressure. The pressure increase corresponding to the pulse beat caused by the contraction of the heart is fixed or within a small deviation value. And when the heart relaxes, the detected pressure will decrease by a fixed value. The periodic pressure wave is thus determined according to the varying characteristics of the pressure increase and the pressure decrease within the preset pressure range.
Further, amplifying the side pressure information according to a preset amplification function to obtain reference pressure information; then, the periodic pressure wave is determined according to the preset filter function and the reference pressure information.
Since the pressure change caused by the heartbeat is small, the side pressure information is amplified through a preset amplification function after the side pressure information is acquired. Can realize predetermineeing the function of amplification through amplifier circuit, carry out function amplification can be rapid and stable enlargies through amplifier circuit.
The preset amplification function may be to amplify the side pressure information to N times of the original signal value, where N is greater than 1, and may be 2 times.
The amount of pressure applied by the user to the pressure sensor may or may not be the same. If the continuous pressure is the same, the periodic pressure wave can be acquired through a band-pass filter (band-pass filter) to filter the reference pressure information, and the periodic pressure wave corresponding to the heartbeat is obtained.
And step 130, determining and outputting heartbeat information according to the periodic pressure wave.
And determining the heartbeat systolic pressure according to the periodic pressure wave, and determining heartbeat information according to the frequency of the heartbeat systolic pressure.
According to the heartbeat detection method provided by the embodiment of the application, firstly, when a starting instruction is received, side pressure information is obtained according to a preset time interval; then, determining a periodic pressure wave according to the side pressure information, wherein the periodic pressure wave represents the heartbeat frequency; and finally, determining and outputting heartbeat information according to the periodic pressure waves, so that the heartbeat of the user can be detected through the pulse pressure, and the accuracy of heartbeat detection is improved.
Fig. 2 is a schematic flow chart of another heartbeat detection method provided in the embodiment of the present application, which is used to further explain the above embodiment, and includes:
and step 210, when a starting instruction is received, obtaining side pressure information according to a preset time interval.
And step 220, determining prompt information according to the side pressure information.
When measuring heart rate, the pressure exerted by the user on the pressure sensor may be too low, resulting in an inaccurate heart rate measurement. At this time, after the terminal acquires the side pressure information, it is determined whether the side pressure information is greater than a preset pressure threshold, where the preset pressure threshold may be a gravity corresponding to 1 kg.
And if the side pressure information is smaller than the preset pressure information, determining that the prompt information is 'less force again'. And if the side pressure information is greater than or equal to the preset pressure information, determining that the prompt information is 'strength is right'.
And step 230, outputting prompt information.
Step 210 displays the detected pressure value through the detection interface when receiving the starting instruction. However, when the prompt information is determined in step 220, the determined prompt information is displayed on the detection interface. When the side pressure information is smaller than the preset pressure information, the prompt information is displayed in a flashing and highlighting mode.
And step 240, determining a periodic pressure wave according to the side pressure information, wherein the periodic pressure wave represents the heartbeat frequency.
And step 250, determining and outputting heartbeat information according to the periodic pressure wave.
The heartbeat detection method provided by the embodiment of the application can determine the prompt information according to the pressure value applied by the user, and display the determined prompt information in the detection process, so that the user can apply more accurate pressure, and the accuracy of heartbeat detection is improved.
Fig. 3 is a schematic flow chart of another heartbeat detection method provided in the embodiment of the present application, which is used to further explain the above embodiment, and includes:
and 310, when a starting instruction is received, acquiring side pressure information according to a preset time interval.
And step 320, amplifying the side pressure information according to a preset amplification function to obtain reference pressure information.
And step 330, determining target pressure information according to the first preset threshold and the reference pressure information.
The first preset threshold may be two end values corresponding to band-pass filtering, and is used to filter noise corresponding to over-exertion or under-exertion from the reference pressure information.
And step 340, determining the periodic pressure wave according to the preset filter function and the target pressure information.
The preset filtering function can be a band-pass filtering function, and specifically, filtering can be performed through a band-pass filter, so that the periodic pressure wave is determined.
And step 350, determining and outputting heartbeat information according to the periodic pressure wave.
The heartbeat detection method provided by the embodiment of the application can denoise abnormal pressure values through the first preset threshold value, determines periodic pressure waves through the band-pass filter function, and improves accuracy of heartbeat detection.
Fig. 4 is a schematic flow chart of another heartbeat detection method provided in the embodiment of the present application, which is used to further explain the above embodiment, and includes:
and step 410, when a starting instruction is received, acquiring side pressure information according to a preset time interval.
And 420, amplifying the side pressure information according to a preset amplification function to obtain reference pressure information.
And step 430, calculating an average pressure value of the reference pressure information in the preset detection period.
The preset detection period may be 2-5 seconds. The pressure trend of the input of the user can be changed continuously during the detection process. For example, the user has a large force at the beginning and a gradually decreasing force thereafter. At this time, an average pressure value in each preset detection period is calculated.
Step 440, determining the periodic pressure wave according to the average pressure value, the high-pass filter function and the reference pressure information.
And performing high-pass filtering by using a high-pass filtering function according to the average pressure value in each preset detection period to obtain reference pressure information with larger pressure value. And carrying out normalization processing according to the average pressure value of each preset detection period to obtain periodic pressure waves.
And step 450, determining and outputting heartbeat information according to the periodic pressure wave.
According to the heartbeat detection method provided by the embodiment of the application, the side pressure information input by a user can be divided according to the preset detection period, and filtering is performed according to the average pressure value in each preset detection period, so that accurate heartbeat in the pressure change detection process is realized, and the accuracy of heartbeat detection is improved.
Fig. 5 is a schematic flow chart of another heartbeat detection method provided in the embodiment of the present application, which is used to further describe the above embodiment, and includes:
and step 510, when a starting instruction is received, acquiring first pressure information through a first pressure sensor arranged on a first side edge of the terminal according to a preset time interval.
Pressure sensors may be provided at both sides of the terminal, respectively. The predetermined time interval may be 0.5s to 1.5s, optionally 1 s. The first side may be the long side of the left side of the screen.
And step 520, acquiring second pressure information through a second pressure sensor arranged on a second side of the terminal according to a preset time interval.
The first side may be the long side of the right side of the screen. The second pressure sensor may be disposed adjacent to the first pressure sensor and connected to the pressure contacts on both sides of the terminal through wires, respectively.
Step 530, side pressure information is determined based on the first pressure information and the second pressure information.
Optionally, the first side pressure information is determined according to the first pressure information, and the first heartbeat information is determined according to the first side pressure information. Determining second side pressure information according to the second pressure information, and determining second heartbeat information according to the second side pressure information. And determining final heartbeat information according to the first heartbeat information and the second heartbeat information. Illustratively, if one side cannot accurately detect the heartbeat and the other side can more accurately detect the heartbeat, the effective heartbeat information is used as the output heartbeat information.
And 540, determining a periodic pressure wave according to the side pressure information, wherein the periodic pressure wave represents the heartbeat frequency.
And step 550, determining and outputting heartbeat information according to the periodic pressure wave.
The heartbeat detection method provided by the embodiment of the application can be used for respectively carrying out heartbeat detection through the two side edges, so that the reliability of heartbeat detection is improved.
Fig. 6 is a schematic flow chart of another heartbeat detection method provided in the embodiment of the present application, which is used to further describe the above embodiment, and includes:
and step 610, when a starting instruction is received, side pressure information is obtained according to a preset time interval.
And step 620, determining a periodic pressure wave according to the side pressure information, wherein the periodic pressure wave represents the heartbeat frequency.
Step 630, obtaining peak information of the periodic pressure wave.
And step 640, determining heart rate information according to the wave crest information.
Because the pressure information corresponding to the heart beat is instantly increased and is instantly decreased, the heart beat information can be determined according to the peak value of the wave peak and the frequency of the wave peak. Furthermore, the systolic pressure of each heartbeat can be determined according to the peak value of the wave peak, and whether abnormal conditions such as sinus arrhythmia exist is further determined. Heart rate information is determined based on the abnormal condition.
And step 650, outputting the heart rate information.
The heartbeat detection method provided by the embodiment of the application can determine the heart rate information according to the peak information of the periodic pressure wave, and improves the heartbeat detection accuracy.
Fig. 7 is a schematic structural diagram of a heartbeat detection device according to an embodiment of the present application. As shown in fig. 7, the apparatus includes: an acquisition module 710, a determination module 720, and an output module 730.
An obtaining module 710, configured to obtain, when a start instruction is received, side pressure information according to a preset time interval;
a determining module 720, configured to determine a periodic pressure wave according to the side pressure information acquired by the acquiring module 710, where the periodic pressure wave represents a heartbeat frequency;
an output module 730, configured to determine and output heartbeat information according to the periodic pressure wave determined by the determining module 720.
Further, the output module 730 is further configured to:
determining prompt information according to the side pressure information;
and outputting the prompt information.
Further, the determining module 720 is configured to:
amplifying the side pressure information according to a preset amplification function to obtain reference pressure information;
and determining the periodic pressure wave according to a preset filtering function and the reference pressure information.
Further, the determining module 720 is configured to determine the periodic pressure wave according to a preset filtering function and the reference pressure information, and includes:
determining target pressure information according to a first preset threshold and the reference pressure information;
and determining the periodic pressure wave according to a preset filter function and the target pressure information.
Further, the determining module 720 is configured to determine the periodic pressure wave according to a preset filtering function and the reference pressure information, and includes:
calculating an average pressure value of the reference pressure information in a preset detection period;
and determining the periodic pressure wave according to the average pressure value, the high-pass filtering function and the reference pressure information.
Further, the obtaining module 710 is configured to:
acquiring first pressure information through a first pressure sensor arranged on a first side edge of the terminal according to a preset time interval;
acquiring second pressure information through a second pressure sensor arranged on a second side edge of the terminal according to a preset time interval;
and determining side pressure information according to the first pressure information and the second pressure information.
Further, the output module 730 is configured to:
acquiring peak information of the periodic pressure wave;
and determining heart rate information according to the peak information.
In the heartbeat detection method provided in the embodiment of the application, first, when a start instruction is received, the obtaining module 710 obtains side pressure information according to a preset time interval; then, the determining module 720 determines a periodic pressure wave according to the side pressure information, wherein the periodic pressure wave represents the heartbeat frequency; finally, the output module 730 determines and outputs heartbeat information according to the periodic pressure wave, so that the heartbeat of the user can be detected through the pulse pressure, and the accuracy of heartbeat detection is improved.
The device can execute the methods provided by all the embodiments of the application, and has corresponding functional modules and beneficial effects for executing the methods. For details of the technology not described in detail in this embodiment, reference may be made to the methods provided in all the foregoing embodiments of the present application.
Fig. 8 is a schematic structural diagram of a terminal device according to an embodiment of the present application. As shown in fig. 8, the terminal may include: a housing (not shown), a memory 801, a Central Processing Unit (CPU) 802 (also called a processor, hereinafter referred to as CPU), a computer program stored in the memory 801 and operable on the processor 802, a circuit board (not shown), and a power circuit (not shown). The circuit board is arranged in a space enclosed by the shell; the CPU802 and the memory 801 are provided on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the terminal; the memory 801 is used for storing executable program codes; the CPU802 executes a program corresponding to the executable program code by reading the executable program code stored in the memory 801.
The terminal further comprises: peripheral interface 803, RF (Radio Frequency) circuitry 805, audio circuitry 806, speakers 811, power management chip 808, input/output (I/O) subsystem 809, touch screen 812, other input/control devices 810, and external port 804, which communicate over one or more communication buses or signal lines 807.
It should be understood that the illustrated terminal device 800 is merely one example of a terminal, and that the terminal device 800 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The following describes in detail a terminal device provided in this embodiment, where the terminal device is a smart phone as an example.
A memory 801, the memory 801 being accessible by the CPU802, the peripheral interface 803, and the like, the memory 801 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other volatile solid state storage devices.
A peripheral interface 803, said peripheral interface 803 allowing input and output peripherals of the device to be connected to the CPU802 and the memory 801.
I/O subsystem 809, which I/O subsystem 809 may connect input and output peripherals on the device, such as touch screen 812 and other input/control devices 810, to peripheral interface 803. The I/O subsystem 809 may include a display controller 8091 and one or more input controllers 8092 for controlling other input/control devices 810. Where one or more input controllers 8092 receive electrical signals from or transmit electrical signals to other input/control devices 810, other input/control devices 810 may include physical buttons (push buttons, rocker buttons, etc.), dials, slide switches, joysticks, click wheels. It is worth noting that the input controller 8092 may be connected to any of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
The touch screen 812 may be a resistive type, a capacitive type, an infrared type, or a surface acoustic wave type, according to the operating principle of the touch screen and the classification of media for transmitting information. The touch screen 812 may be classified by installation method: external hanging, internal or integral. Classified according to technical principles, the touch screen 812 may be: a vector pressure sensing technology touch screen, a resistive technology touch screen, a capacitive technology touch screen, an infrared technology touch screen, or a surface acoustic wave technology touch screen.
A touch screen 812, which touch screen 812 is an input interface and an output interface between the user terminal and the user, displays visual output to the user, which may include graphics, text, icons, video, and the like. Optionally, the touch screen 812 sends an electrical signal (e.g., an electrical signal of the touch surface) triggered by the user on the touch screen to the processor 802.
The display controller 8091 in the I/O subsystem 809 receives electrical signals from the touch screen 812 or sends electrical signals to the touch screen 812. The touch screen 812 detects a contact on the touch screen, and the display controller 8091 converts the detected contact into an interaction with a user interface object displayed on the touch screen 812, that is, implements a human-computer interaction, and the user interface object displayed on the touch screen 812 may be an icon for running a game, an icon networked to a corresponding network, or the like. It is worth mentioning that the device may also comprise a light mouse, which is a touch sensitive surface that does not show visual output, or an extension of the touch sensitive surface formed by the touch screen.
The RF circuit 805 is mainly used to establish communication between the smart speaker and a wireless network (i.e., a network side), and implement data reception and transmission between the smart speaker and the wireless network. Such as sending and receiving short messages, e-mails, etc.
The audio circuit 806 is mainly used to receive audio data from the peripheral interface 803, convert the audio data into an electric signal, and transmit the electric signal to the speaker 811.
Speaker 811 is used to convert the voice signals received by the smart speaker from the wireless network through RF circuit 805 into sound and play the sound to the user.
And the power management chip 808 is used for supplying power and managing power to the hardware connected with the CPU802, the I/O subsystem and the peripheral interface.
In this embodiment, the cpu802 is configured to:
when a starting instruction is received, side pressure information is obtained according to a preset time interval;
determining a periodic pressure wave from the side pressure information, the periodic pressure wave representing a heartbeat frequency;
and determining and outputting heartbeat information according to the periodic pressure wave.
Further, after obtaining the lateral pressure information according to the preset time interval, the method includes:
determining prompt information according to the side pressure information;
and outputting the prompt information.
Further, the determining a periodic pressure wave according to the side pressure information includes:
amplifying the side pressure information according to a preset amplification function to obtain reference pressure information;
and determining the periodic pressure wave according to a preset filtering function and the reference pressure information.
Further, the determining the periodic pressure wave according to the preset filter function and the reference pressure information includes:
determining target pressure information according to a first preset threshold and the reference pressure information;
and determining the periodic pressure wave according to a preset filter function and the target pressure information.
Further, the determining the periodic pressure wave according to the preset filter function and the reference pressure information includes:
calculating an average pressure value of the reference pressure information in a preset detection period;
and determining the periodic pressure wave according to the average pressure value, the high-pass filtering function and the reference pressure information.
Further, the acquiring the lateral pressure information according to the preset time interval includes:
acquiring first pressure information through a first pressure sensor arranged on a first side edge of the terminal according to a preset time interval;
acquiring second pressure information through a second pressure sensor arranged on a second side edge of the terminal according to a preset time interval;
and determining side pressure information according to the first pressure information and the second pressure information.
Further, determining heartbeat information from the periodic pressure wave includes:
acquiring peak information of the periodic pressure wave;
and determining heart rate information according to the peak information.
An embodiment of the present application further provides a storage medium containing terminal device executable instructions, where the terminal device executable instructions are executed by a terminal device processor to perform a heartbeat detection method, and the method includes:
when a starting instruction is received, side pressure information is obtained according to a preset time interval;
determining a periodic pressure wave from the side pressure information, the periodic pressure wave representing a heartbeat frequency;
and determining and outputting heartbeat information according to the periodic pressure wave.
Further, after obtaining the lateral pressure information according to the preset time interval, the method includes:
determining prompt information according to the side pressure information;
and outputting the prompt information.
Further, the determining a periodic pressure wave according to the side pressure information includes:
amplifying the side pressure information according to a preset amplification function to obtain reference pressure information;
and determining the periodic pressure wave according to a preset filtering function and the reference pressure information.
Further, the determining the periodic pressure wave according to the preset filter function and the reference pressure information includes:
determining target pressure information according to a first preset threshold and the reference pressure information;
and determining the periodic pressure wave according to a preset filter function and the target pressure information.
Further, the determining the periodic pressure wave according to the preset filter function and the reference pressure information includes:
calculating an average pressure value of the reference pressure information in a preset detection period;
and determining the periodic pressure wave according to the average pressure value, the high-pass filtering function and the reference pressure information.
Further, the acquiring the lateral pressure information according to the preset time interval includes:
acquiring first pressure information through a first pressure sensor arranged on a first side edge of the terminal according to a preset time interval;
acquiring second pressure information through a second pressure sensor arranged on a second side edge of the terminal according to a preset time interval;
and determining side pressure information according to the first pressure information and the second pressure information.
Further, determining heartbeat information from the periodic pressure wave includes:
acquiring peak information of the periodic pressure wave;
and determining heart rate information according to the peak information.
The computer storage media of the embodiments of the present application may take any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, or the like, as well as conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
Of course, the storage medium provided in the embodiments of the present application and containing the computer-executable instructions is not limited to the above-described heartbeat detection operation, and may also perform related operations in the heartbeat detection method provided in any embodiments of the present application.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present application and the technical principles employed. It will be understood by those skilled in the art that the present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the application. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims (5)

1. A method for detecting heartbeat, comprising:
when a starting instruction is received, acquiring first pressure information through a first pressure sensor arranged on a first side edge of the terminal according to a preset time interval; acquiring second pressure information through a second pressure sensor arranged on a second side edge of the terminal according to a preset time interval; determining side pressure information according to the first pressure information and the second pressure information; the side pressure information is acquired by a contact of a pressure sensor arranged at the side end or the bottom end of the terminal;
amplifying the side pressure information according to a preset amplification function to obtain reference pressure information; calculating an average pressure value of the reference pressure information in a preset detection period; determining a periodic pressure wave according to the average pressure value, the high-pass filtering function and the reference pressure information, wherein the periodic pressure wave represents the heartbeat frequency; wherein the periodic pressure wave is determined according to the variation characteristics of pressure increase and pressure decrease in a preset pressure range;
acquiring peak information of the periodic pressure wave; and determining heart rate information according to the peak information.
2. The heartbeat detection method as set forth in claim 1, comprising, after obtaining the side pressure information according to a preset time interval:
determining prompt information according to the side pressure information;
and outputting the prompt information.
3. A heartbeat detection device, comprising:
the acquisition module is used for acquiring first pressure information through a first pressure sensor arranged on a first side edge of the terminal according to a preset time interval when a starting instruction is received; acquiring second pressure information through a second pressure sensor arranged on a second side edge of the terminal according to a preset time interval; determining side pressure information according to the first pressure information and the second pressure information; the side pressure information is acquired by a contact of a pressure sensor arranged at the side end or the bottom end of the terminal;
the determining module is used for amplifying the side pressure information according to a preset amplifying function to obtain reference pressure information; calculating an average pressure value of the reference pressure information in a preset detection period; determining a periodic pressure wave according to the average pressure value, a high-pass filtering function and the reference pressure information, wherein the periodic pressure wave represents the heartbeat frequency, and the periodic pressure wave is determined according to the change characteristics of pressure increase and pressure decrease in a preset pressure range;
the output module is used for acquiring peak information of the periodic pressure wave; and determining heart rate information according to the peak information.
4. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the heartbeat detection method as claimed in any one of claims 1-2.
5. A terminal comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method for heartbeat detection according to any of claims 1-2 when executing the computer program.
CN201810622710.6A 2018-06-15 2018-06-15 Heartbeat detection method, heartbeat detection device, storage medium and terminal Active CN108742581B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810622710.6A CN108742581B (en) 2018-06-15 2018-06-15 Heartbeat detection method, heartbeat detection device, storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810622710.6A CN108742581B (en) 2018-06-15 2018-06-15 Heartbeat detection method, heartbeat detection device, storage medium and terminal

Publications (2)

Publication Number Publication Date
CN108742581A CN108742581A (en) 2018-11-06
CN108742581B true CN108742581B (en) 2021-08-20

Family

ID=63978287

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810622710.6A Active CN108742581B (en) 2018-06-15 2018-06-15 Heartbeat detection method, heartbeat detection device, storage medium and terminal

Country Status (1)

Country Link
CN (1) CN108742581B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4038976A (en) * 1975-03-14 1977-08-02 Hardy Frank M Pulse indicator
JPS63302824A (en) * 1987-06-03 1988-12-09 Sanyo Electric Co Ltd Electronic hemomanometer
CN1318346A (en) * 2000-04-14 2001-10-24 曾罗麟 Pulse beat analyzing and recording method
CN201123024Y (en) * 2007-12-03 2008-09-24 比亚迪股份有限公司 Mobile phone with heart rate detection function
CN201356133Y (en) * 2009-02-23 2009-12-09 张占腾 Finger ring capable of measuring heart-beat
CN102355513A (en) * 2011-07-28 2012-02-15 北京百纳威尔科技有限公司 Blood pressure/heart rate measuring method by mobile terminal and mobile terminal
CN202526161U (en) * 2012-05-18 2012-11-14 宋轶华 Heart rhythm counting device
CN102813512A (en) * 2011-06-10 2012-12-12 鸿富锦精密工业(深圳)有限公司 Electronic device with pulse detection function and pulse detection method of electronic device
CN105615861A (en) * 2015-12-21 2016-06-01 联想(北京)有限公司 Method for measuring pulse and electronic device
CN105640531A (en) * 2015-12-29 2016-06-08 惠州Tcl移动通信有限公司 Pulse measuring method and system based on pressure touch screen and mobile terminal
CN105686818A (en) * 2016-03-30 2016-06-22 华为技术有限公司 Measuring device and method
CN105725998A (en) * 2015-11-05 2016-07-06 香港应用科技研究院有限公司 System for measuring blood pressure by using psychological state verification

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4038976A (en) * 1975-03-14 1977-08-02 Hardy Frank M Pulse indicator
JPS63302824A (en) * 1987-06-03 1988-12-09 Sanyo Electric Co Ltd Electronic hemomanometer
CN1318346A (en) * 2000-04-14 2001-10-24 曾罗麟 Pulse beat analyzing and recording method
CN201123024Y (en) * 2007-12-03 2008-09-24 比亚迪股份有限公司 Mobile phone with heart rate detection function
CN201356133Y (en) * 2009-02-23 2009-12-09 张占腾 Finger ring capable of measuring heart-beat
CN102813512A (en) * 2011-06-10 2012-12-12 鸿富锦精密工业(深圳)有限公司 Electronic device with pulse detection function and pulse detection method of electronic device
CN102355513A (en) * 2011-07-28 2012-02-15 北京百纳威尔科技有限公司 Blood pressure/heart rate measuring method by mobile terminal and mobile terminal
CN202526161U (en) * 2012-05-18 2012-11-14 宋轶华 Heart rhythm counting device
CN105725998A (en) * 2015-11-05 2016-07-06 香港应用科技研究院有限公司 System for measuring blood pressure by using psychological state verification
CN105615861A (en) * 2015-12-21 2016-06-01 联想(北京)有限公司 Method for measuring pulse and electronic device
CN105640531A (en) * 2015-12-29 2016-06-08 惠州Tcl移动通信有限公司 Pulse measuring method and system based on pressure touch screen and mobile terminal
CN105686818A (en) * 2016-03-30 2016-06-22 华为技术有限公司 Measuring device and method

Also Published As

Publication number Publication date
CN108742581A (en) 2018-11-06

Similar Documents

Publication Publication Date Title
KR102553493B1 (en) Touch sensing device and pen and method for measuring position
US8300020B2 (en) Hybrid inertial and touch sensing input device
WO2017080110A1 (en) Touch signal-based mobile terminal operation method, system and mobile terminal
WO2018107897A1 (en) Touch screen control method and device, mobile terminal, and storage medium
KR102401774B1 (en) Electronic device and method for measuring stress thereof
US10325617B2 (en) Electronic device and method for classifying voice and noise
KR20160125142A (en) Method and apparatus for sensing fingerprints
US11896400B2 (en) Electronic device for updating calibration data on basis of blood pressure information, and control method
WO2014184868A1 (en) Electronic device and biosignal measurement method
KR20180015987A (en) Touch sensing device for determining infomration associated with pen and method for controlling thereof and pen
WO2019105376A1 (en) Gesture recognition method, terminal and storage medium
CN113613553B (en) Electronic device for measuring blood pressure and method for measuring blood pressure
US11141098B2 (en) Electronic device for measuring hydrature using display and method for operating the same
CN108742581B (en) Heartbeat detection method, heartbeat detection device, storage medium and terminal
US20180095569A1 (en) Touch device and electronic equipment
CN111629659B (en) Device and method for determining calibration timing of blood pressure measurement of electronic device
KR102570783B1 (en) Electronic device and method for providing of personalized biometric information based on biometric signal thereof
CN108683812B (en) Volume adjusting method and device and mobile terminal
KR20210048930A (en) An electronic device for user verification using electrocardiogram data and method thereof
EP3513715B1 (en) Apparatus and method for determining calibration timing for blood pressure measurement in electronic device
CN109661644A (en) A kind of pressure touch method and terminal
CN117387655B (en) Step counting method, step counting device, terminal and storage medium
EP3579531A1 (en) Mobile terminal sensor control method, device, storage medium and mobile terminal
CN114264365B (en) Wind noise detection method, device, terminal equipment and storage medium
CN105988801B (en) Method and device for displaying annotation information

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant