Physiological data transmission method, intelligent closestool, electronic equipment, storage medium and program product
Smart toilets and electronic devices solve the problems of large size and unstable wireless transmission of traditional devices by converting physiological data into audio signals and transmitting them in the form of sound waves, thus achieving low-cost, stable and secure physiological data transmission.
Patent Information
- Application Number
- CN202511555378.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-29
- Publication Date
- 2026-01-06
AI Technical Summary
Traditional physiological data acquisition devices are bulky, expensive, and have poor wireless transmission stability, making them difficult to widely adopt.
The smart toilet collects physiological data and converts it into an audio signal containing a preset synchronization header. The signal is then transmitted in the form of sound waves. Electronic devices record and decode the audio signal at close range to obtain the physiological data.
It reduces costs, improves the security and efficiency of data transmission, enhances adaptability, reduces sensitivity to electromagnetic interference, and strengthens user privacy protection and data transmission stability.
Smart Images

Figure CN121283530A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of intelligent control technology, and in particular to a physiological data transmission method, an intelligent toilet, an electronic device, a computer-readable storage medium, and a computer program product. Background Technology
[0002] As people's demand for health management grows, they want to understand their own physiological data.
[0003] Traditional methods of physiological data acquisition mainly rely on medical-grade wearable devices, such as electrocardiogram monitors and ambulatory blood pressure monitors. These devices offer high measurement accuracy but are bulky and expensive, hindering widespread adoption. Furthermore, the wireless transmission of collected physiological data is susceptible to electromagnetic interference, leading to decreased transmission stability. Summary of the Invention
[0004] Therefore, it is necessary to provide a physiological data transmission method, smart toilet, electronic device, computer device, computer-readable storage medium, and computer program product that can reduce costs and ensure stable data transmission, in order to address the above-mentioned technical problems.
[0005] In a first aspect, this application provides a method for transmitting physiological data, applied to a smart toilet, the method comprising:
[0006] Obtain the user's target physiological data;
[0007] The target physiological data is converted into an audio signal containing a preset synchronization header; the preset synchronization header is used to indicate the starting position of the target physiological data in the audio signal.
[0008] Play the audio signal and transmit the audio signal in the form of sound waves.
[0009] In one embodiment, converting the target physiological data into an audio signal containing a preset synchronization header includes:
[0010] The waveform of the preset synchronization head is mapped to the corresponding synchronization head heartbeat sound signal, and the waveform corresponding to the target physiological data is converted into the corresponding data heartbeat sound signal. The target heartbeat sound signal containing the preset synchronization head is obtained based on the synchronization head heartbeat sound signal and the data heartbeat sound signal.
[0011] In one embodiment, the target data is bitstream data; the step of mapping the waveform of the preset synchronization head to the corresponding synchronization head heartbeat sound signal, and converting the waveform corresponding to the target physiological data into the corresponding data heartbeat sound signal, and obtaining the target heartbeat sound signal containing the preset synchronization head based on the synchronization head heartbeat sound signal and the data heartbeat sound signal, includes:
[0012] Convert the waveform of the preset synchronization head into a standard heartbeat sound signal;
[0013] The waveform with a bit value of 0 or 1 in the target physiological data is converted into a single heartbeat sound signal, and the waveform with the other bit value is converted into a double heartbeat sound signal; the standard heartbeat signal represents one complete heartbeat cycle, the single heartbeat sound signal represents one complete heartbeat cycle, and the double heartbeat sound signal represents two complete heartbeat cycles; the duration of the standard heartbeat sound signal is twice the duration of the single heartbeat sound signal.
[0014] The target heartbeat signal is obtained based on the standard heartbeat sound signal, the single heartbeat sound signal, and the dual heartbeat sound signal.
[0015] In one embodiment, converting the target physiological data into an audio signal includes:
[0016] Obtain the timestamp and verification code, and encapsulate the timestamp, the target physiological data, and the verification code to obtain a data packet;
[0017] The data packet is converted into an audio signal according to a preset frame structure, which includes a synchronization header, frame length, data, checksum, and end marker.
[0018] In one embodiment, acquiring the user's target physiological data includes:
[0019] The user's raw physiological data is obtained by detecting the user's target bodily fluids through a sensor array.
[0020] The raw physiological data is preprocessed to obtain the target physiological data.
[0021] In one embodiment, the preprocessing of the raw physiological data to obtain the target physiological data includes:
[0022] The raw physiological data is converted from analog to digital to obtain digital physiological data.
[0023] The physiological data of digital signals are filtered and / or standardized to obtain the target physiological data.
[0024] In one embodiment, the method further includes:
[0025] Identify and label target physiological data that exceeds the normal physiological range.
[0026] In one embodiment, the method further includes:
[0027] If no response indicating completion of reception is received from the receiving electronic device within a preset time period, the target physiological data is stored in the local memory of the smart toilet.
[0028] Secondly, this application also provides a method for transmitting physiological data, applied to an electronic device, the method comprising:
[0029] Record audio signals when the distance between the electronic device and the smart toilet is within a preset range;
[0030] If the audio signal is found to contain a preset synchronization header, the audio signal is decoded to obtain target physiological data; the target physiological data is obtained based on the physiological data of the user collected by the smart toilet; the preset synchronization header is used to indicate the starting position of the target physiological data in the audio signal.
[0031] In one embodiment, the method further includes:
[0032] If the preset conditions are met, the step of recording the audio signal is executed;
[0033] The preset conditions include at least one of the following:
[0034] The ambient noise intensity is lower than the preset intensity threshold;
[0035] The screen of the electronic device lights up;
[0036] The target application is running in the foreground and is used to display physiological data.
[0037] In one embodiment, the method of identifying that the audio signal contains a preset synchronization header includes:
[0038] The audio signal is matched using a sync head reference heartbeat sound signal;
[0039] If there is a segment of the audio signal whose correlation coefficient with the reference heartbeat sound signal of the synchronization head exceeds a correlation coefficient threshold, then the audio signal is determined to contain the synchronization head.
[0040] Thirdly, this application also provides a smart toilet, comprising:
[0041] The physiological data acquisition module is used to detect the user's body and obtain the user's raw physiological data;
[0042] The data processing module is used to process the raw physiological data to obtain the user's target physiological data, and convert the target physiological data into an audio signal containing a preset synchronization header; the preset synchronization header is used to indicate the starting position of the target physiological data in the audio signal.
[0043] An audio transmission module is used to play the audio signal and transmit the audio signal in the form of sound waves.
[0044] In one embodiment, the physiological data acquisition module includes at least one of the following sensors:
[0045] A glucose sensor is used to detect the glucose concentration in a user's target bodily fluids.
[0046] Protein sensor used to detect the protein content of target bodily fluids in a user's body;
[0047] A white blood cell sensor is used to detect the number of white blood cells in a user's target bodily fluids.
[0048] Ketone body sensor is used to detect the concentration of ketone bodies in target bodily fluids of the user.
[0049] pH sensor is used to detect the pH value of target body fluids in the user's body;
[0050] A specific gravity sensor is used to detect the specific gravity of target bodily fluids in the user's body.
[0051] Heart rate sensor, used to detect the user's heart rate;
[0052] A weight sensor is used to detect a user's weight.
[0053] In one embodiment, the data processing module is further configured to map the waveform of the preset synchronization head to the corresponding synchronization head heartbeat sound signal, and to convert the waveform corresponding to the target physiological data into the corresponding data heartbeat sound signal, and to obtain the target heartbeat sound signal containing the preset synchronization head based on the synchronization head heartbeat sound signal and the data heartbeat sound signal.
[0054] In one embodiment, the data processing module is further configured to convert the waveform of the preset synchronization head into a standard heartbeat sound signal; convert the waveform of the target physiological data with a bit value of 0 or 1 into a single heartbeat sound signal, and the waveform of the other bit into a double heartbeat sound signal; the standard heartbeat signal represents a complete heartbeat cycle, the single heartbeat sound signal represents a complete heartbeat cycle, and the double heartbeat sound signal represents two complete heartbeat cycles; the duration of the standard heartbeat sound signal is twice the duration of the single heartbeat sound signal; and the target heartbeat sound signal is obtained based on the standard heartbeat sound signal, the single heartbeat sound signal, and the double heartbeat sound signal.
[0055] In one embodiment, the data processing module is further configured to acquire a timestamp and a checksum, encapsulate the timestamp, the target physiological data, and the checksum to obtain a data packet; and convert the data packet into an audio signal according to a preset frame structure, wherein the frame structure includes a synchronization header, frame length, data, checksum, and end marker.
[0056] In one embodiment, the data processing module is further configured to perform analog-to-digital conversion on the raw physiological data to obtain digital physiological data; and to perform filtering and / or standardization on the digital physiological data to obtain target physiological data.
[0057] In one embodiment, the data processing module is further configured to identify and label target physiological data that exceeds the normal physiological range.
[0058] In one embodiment, the data processing module is further configured to store the target physiological data in the local memory of the smart toilet if no response is received from the receiving end within a preset time period.
[0059] Fourthly, this application also provides an electronic device, comprising:
[0060] An audio receiving module is used to record audio signals when the distance between the electronic device and the smart toilet is within a preset distance range;
[0061] An audio data processing module is used to decode the audio signal to obtain target physiological data when the audio signal is found to contain a preset synchronization head signal; the target physiological data is obtained based on the physiological data of the user collected by the smart toilet; the preset synchronization head is used to indicate the starting position of the target physiological data in the audio signal.
[0062] In one embodiment, the audio receiving module is further configured to record an audio signal when a preset condition is met;
[0063] The preset conditions include at least one of the following:
[0064] The ambient noise intensity is lower than the preset intensity threshold;
[0065] The receiver's screen lights up;
[0066] The target application is running in the foreground and is used to display physiological data.
[0067] In one embodiment, the audio data processing is further configured to match the audio signal with a synchronization head reference heartbeat sound signal; if there is a segment signal in the audio signal whose correlation coefficient with the synchronization head reference heartbeat sound signal exceeds a correlation coefficient threshold, then it is determined that the audio signal contains the synchronization head.
[0068] In one embodiment, the electronic device further includes:
[0069] The physiological data processing module is used to display and / or store the decoded target physiological data.
[0070] Fifthly, this application also provides a smart toilet, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the method as described in the first aspect.
[0071] In a sixth aspect, this application also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the method as described in the second aspect.
[0072] In a seventh aspect, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method of the first aspect.
[0073] Eighthly, this application also provides a computer program product, including a computer program that, when executed by a processor, implements the method as described in the first aspect.
[0074] The aforementioned physiological data transmission method, smart toilet, electronic device, computer-readable storage medium, and computer program product all involve the smart toilet acquiring the user's target physiological data, converting the target physiological data into an audio signal containing a preset synchronization header signal, playing the audio signal, and transmitting the audio signal in the form of sound waves. This allows the smart toilet to collect the user's physiological data and transmit it via sound waves, eliminating the need for users to use medical-grade equipment to collect physiological data, thus reducing costs. Furthermore, transmitting the target physiological data via audio signals in the form of sound waves utilizes the sound transmission characteristics of air and the fact that smart toilets are typically deployed in relatively enclosed and soundproof spaces, creating a relatively stable environment conducive to stable sound signal propagation and less susceptibility to interference. Data transmission occurs within a short distance, resulting in lower transmission power and signal attenuation, and stronger environmental adaptability, even in complex electromagnetic environments. The electronic device acquires physiological data by recording audio signals at close range, ensuring stable data reception. Attached Figure Description
[0075] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0076] Figure 1 This is a diagram illustrating the application environment of a physiological data transmission method in one embodiment.
[0077] Figure 2 This is a flowchart illustrating a physiological data transmission method in one embodiment;
[0078] Figure 3A This is a waveform diagram of the synchronization head in one embodiment;
[0079] Figure 3B This is a schematic diagram of waveform 0 in one embodiment;
[0080] Figure 3C This is a schematic diagram of waveform 1 in one embodiment;
[0081] Figure 3D This is a schematic diagram of an audio signal encoded in one embodiment;
[0082] Figure 4 This is a flowchart illustrating a physiological data transmission method in another embodiment;
[0083] Figure 5 This is a schematic diagram illustrating the interaction between the sending end and the receiving end in one embodiment for transmitting physiological data;
[0084] Figure 6 This is a block diagram of the internal structure of a smart toilet in one embodiment;
[0085] Figure 7 This is a schematic diagram of the hardware architecture of a smart toilet in one embodiment;
[0086] Figure 8 This is a block diagram of the internal structure of an electronic device in one embodiment;
[0087] Figure 9 This is a schematic diagram of the hardware architecture of an electronic device in one embodiment;
[0088] Figure 10 This is a schematic diagram illustrating the workflow of a smart toilet and electronic devices processing physiological data in one embodiment. Detailed Implementation
[0089] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0090] It should be noted that the terms "first," "second," etc., used in this application can be used to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish the first element from the second element. The terms "comprising" and "having," and any variations thereof, used in this application, are intended to cover non-exclusive inclusion. The term "multiple" used in this application refers to two or more. The term "and / or" used in this application refers to one of the embodiments, or any combination of multiple embodiments.
[0091] The physiological data transmission method provided in this application embodiment can be applied to, for example... Figure 1 In the application environment shown, the smart toilet 102 communicates with the electronic device 104. The electronic device 104 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices can include smart speakers, smart TVs, smart air conditioners, projectors, etc. Portable wearable devices can include smartwatches, smart bracelets, head-mounted devices, etc. Head-mounted devices can be virtual reality (VR) devices, augmented reality (AR) devices, smart glasses, etc.
[0092] In one exemplary embodiment, such as Figure 2 As shown, a physiological data transmission method is provided, which can be applied to... Figure 1 Taking a smart toilet as an example, the explanation includes steps 202 to 206. Wherein:
[0093] Step 202: Obtain the user's target physiological data.
[0094] The target physiological data can include one or more of the following: blood oxygen saturation, blood pressure, heart rate, body fat percentage, glucose concentration, protein content, white blood cell count, ketone body concentration, pH value, and specific gravity. Various sensors can be used to detect the corresponding physiological data. For example, a blood oxygen sensor detects blood oxygen, a heart rate sensor detects heart rate, a body fat percentage sensor detects body fat percentage, and a glucose sensor detects glucose concentration.
[0095] For example, a smart toilet can obtain raw physiological data by detecting the user's body through various sensors, and then process the raw physiological data through a processor to obtain target physiological data. In one possible implementation, the raw physiological data can be directly used as the target physiological data. In another possible implementation, the raw physiological data can be preprocessed by analog-to-digital conversion, filtering, etc., to obtain the target physiological data.
[0096] Step 204: Convert the target physiological data into an audio signal containing a preset synchronization header; the preset synchronization header is used to indicate the starting position of the target physiological data in the audio signal.
[0097] A preset synchronization header is a pre-agreed header signal for transmitting target physiological data. The preset synchronization header signal indicates the start position of the target physiological data in the audio signal. Located at the very beginning of the data frame, the preset synchronization header is used for frame start synchronization and is marked with a special bit sequence. For example, the processor of a smart toilet can convert the target physiological data into an audio signal containing the preset synchronization header according to the agreed frame structure.
[0098] Step 206: Play the audio signal and transmit the audio signal in the form of sound waves.
[0099] For example, a smart toilet plays an audio signal containing a preset analog signal through a speaker, thereby transmitting the audio signal in the form of sound waves.
[0100] In this embodiment, the smart toilet acquires the user's target physiological data, converts it into an audio signal containing a preset synchronization header signal, plays the audio signal, and transmits it in the form of sound waves. This allows the smart toilet to collect the user's physiological data and transmit it via sound waves, eliminating the need for users to use medical-grade equipment for data collection, thus reducing costs. Furthermore, transmitting target physiological data via sound waves utilizes the acoustic characteristics of air and the relatively stable environment created by the smart toilet's deployment in a relatively enclosed and soundproof space, which facilitates stable sound signal propagation and reduces interference. Data transmission occurs over short distances, resulting in lower transmission power and signal attenuation, and greater adaptability to the environment, even in complex electromagnetic environments. Moreover, there is no need to integrate additional communication hardware such as antennas or RF chips into the smart toilet, significantly reducing device cost and complexity. Simultaneously, the power consumption of audio transmission is far lower than that of traditional radio communication, extending the device's battery life and achieving more economical and environmentally friendly data transmission.
[0101] In an exemplary embodiment, step 204, converting the target physiological data into an audio signal containing a preset synchronization head, includes: converting the waveform of the preset synchronization head into a corresponding synchronization head heartbeat sound signal, and converting the waveform corresponding to the target physiological data into a corresponding data heartbeat sound signal, and obtaining a target heartbeat sound signal containing the preset synchronization head based on the synchronization head heartbeat sound signal and the data heartbeat sound signal.
[0102] The waveform of the synchronization head is mapped to a synchronization head heartbeat sound signal, and the waveforms of the values of each data bit in the target physiological data are mapped to data heartbeat sound signals. The synchronization head heartbeat sound signal and the data heartbeat sound signal are combined to obtain the target heartbeat sound signal. Playing the target heartbeat sound signal transmits the target physiological data in the form of sound waves. This allows users to hear a sound similar to a natural heartbeat rhythm when using the smart toilet to transmit physiological data, rather than a mechanical beep or alert tone, making the experience more intimate and improving user comfort during data collection. Furthermore, encoding the target physiological data into a simulated heartbeat sound signal effectively prevents unauthorized interception and decoding during transmission, greatly improving user privacy and security. Moreover, the heartbeat sound is a continuous time-domain signal, making it difficult for third parties to lock and analyze, further enhancing the confidentiality of data transmission.
[0103] In an exemplary embodiment, the waveform of the preset synchronization head is converted into a corresponding synchronization head heartbeat sound signal, and the waveform corresponding to the target physiological data is converted into a corresponding data heartbeat sound signal. A target heartbeat sound signal containing the preset synchronization head is obtained based on the synchronization head heartbeat sound signal and the data heartbeat sound signal. This includes: converting the waveform of the preset synchronization head into a standard heartbeat sound signal; converting the waveform of the target physiological data with a bit value of 0 or 1 into a single heartbeat sound signal, and the other waveform into a double heartbeat sound signal; the standard heartbeat signal represents one complete heartbeat cycle, the single heartbeat sound signal represents one complete heartbeat cycle, and the double heartbeat sound signal represents two complete heartbeat cycles; the duration of the standard heartbeat sound signal is twice the duration of the single heartbeat sound signal.
[0104] For example, the synchronization header, 0, and 1 waveforms can be predefined separately. The target physiological data can be represented in binary, where each data bit can be 0 or 1. The synchronization header waveform can be represented by a combination of a high-pitched tone of a first preset duration and a low-pitched tone of a second preset duration; for example, both the first and second preset durations are 2000 µs (microseconds). Figure 3A As shown. The waveform of 0 is represented by a combination of a high-pitched level tone with a third preset duration and a low-pitched level tone with a fourth preset duration. For example, if both the third and fourth preset durations are 200µs, then... Figure 3B As shown. The waveform of 1 is represented by a combination of a high-pitched level tone with a fifth preset duration and a low-pitched level tone with a sixth preset duration. The fifth preset duration is shorter than the sixth preset duration. For example, the fifth preset duration is 200us and the sixth preset duration is 400us. Figure 3C As shown. It is understandable that this can also be adopted. Figure 3B To represent the waveform of 1, Figure 3C The waveform representing 0 is used. The waveforms corresponding to the synchronization header, frame length, data bits in the data packet, and end marker are concatenated into a complete audio signal, which is then played through a speaker. The waveform is as follows: Figure 3D As shown.
[0105] The waveform of the synchronization header is mapped to a standard heartbeat sound, which is a complete heartbeat cycle. The sound pattern is one complete lub-dub, lasting 0.8 seconds. Waveforms with a bit value of 0 in the data bit encoding are mapped to a single heartbeat sound (0.4 seconds), which is one complete heartbeat cycle. Waveforms with a bit value of 1 are mapped to a double heartbeat sound (0.8 seconds), which is two consecutive and rapid heartbeats. Each heartbeat cycle is compressed to approximately 0.4 seconds, thus compressing two complete normal heartbeat cycles into 0.8 seconds. The transmission rate is 10 bits per second, and the complete data packet transmission time is approximately 13 seconds.
[0106] By converting the synchronization header and bit values into corresponding heartbeat sound signals, and transmitting physiological data through heartbeat sound signals, the system makes the data acquisition process more user-friendly and improves the user's psychological comfort. Furthermore, encoding the target physiological data into simulated heartbeat sound signals can effectively prevent the data from being illegally stolen and decoded during transmission.
[0107] In an exemplary embodiment, step 204, converting the target physiological data into an audio signal, includes: converting the target physiological data into an audio signal according to a preset frame structure, wherein the frame structure includes a synchronization header, frame length, data, checksum, and end marker.
[0108] The synchronization header is located at the very beginning of the data frame and is used for frame start synchronization. It is marked with a special bit sequence. The frame length indicates the length of the data portion, usually in bytes. The data refers to the actual information to be transmitted, i.e., the target physiological data. The checksum is located after the data and is used to verify whether the data has been corrupted during transmission. The end marker is the end marker of the frame and can use fixed bits, such as 0 or 1.
[0109] The target physiological data is encoded using a preset encoding rule to obtain the corresponding audio signal. The encoding rule can be a pre-configured synchronization header, or a correspondence between the bit values in the data and the audio signal.
[0110] By converting target physiological data into audio signals using a preset frame structure and encoding rules, wireless data transmission between smart toilets and electronic devices can be facilitated.
[0111] In an exemplary embodiment, converting target physiological data into an audio signal includes: obtaining a timestamp and a checksum; encapsulating the timestamp, target physiological data, and checksum to obtain a data packet; and converting the data packet into an audio signal according to a preset frame structure.
[0112] The timestamp can be the moment of physiological data collection or the moment it is to be packaged into a data packet. The checksum is calculated using a checksum algorithm on the target physiological data. The checksum can be a parity check or a cyclic redundancy check (CRC) checksum. The processor of the smart toilet can package the timestamp, target physiological data, and checksum according to a fixed format to obtain a data packet of the target number of bytes. For example, the target physiological data includes glucose concentration, protein content, white blood cell count, ketone body concentration, pH value, and specific gravity. Glucose concentration can be represented by 2 bytes, protein content by 2 bytes, white blood cell count by 2 bytes, ketone body concentration by 2 bytes, pH value by 1 byte, and specific gravity by 1 byte. The timestamp is represented by 4 bytes, and the checksum by 2 bytes. By packaging the timestamp, target physiological data, and checksum according to a fixed format, a 16-byte data packet is obtained, and CRC-16 checksum is used to ensure data integrity. The synchronization header, frame length, and end marker are obtained. According to the frame structure, the synchronization header, frame length, data packet, and end marker are combined into a transmission packet. Then, the transmission packet is converted into an audio signal according to the waveform corresponding to the synchronization header and the waveform corresponding to the data bit values. By adding timestamps to data packets, it becomes easy to understand the approximate time corresponding to the target physiological data. Data integrity is enhanced by adding timestamps and checksums, and the data length is extended from the original 6 parameters to a standard 16-byte data packet, resulting in clearer data descriptions and easier reception and parsing.
[0113] In an exemplary embodiment, converting target physiological data into an audio signal according to a preset frame structure includes: mapping the waveform of a preset synchronization head to a corresponding synchronization head heartbeat sound signal according to the preset frame structure; converting the waveform corresponding to the target physiological data into a corresponding data heartbeat sound signal; and obtaining a target heartbeat sound signal containing the preset synchronization head based on the synchronization head heartbeat sound signal and the data heartbeat sound signal. The resulting target heartbeat sound signal also includes frame length, checksum, and end marker to avoid data loss or transmission errors during data transmission.
[0114] In an exemplary embodiment, the data packet is a binary bit stream; converting the waveform of the preset synchronization header into a corresponding synchronization header heartbeat sound signal, and converting the waveform corresponding to the target physiological data into a corresponding data heartbeat sound signal, and obtaining the target heartbeat sound signal containing the preset synchronization header based on the synchronization header heartbeat sound signal and the data heartbeat sound signal, includes: converting the waveform of the synchronization header into a corresponding synchronization header heartbeat sound signal, the waveform corresponding to the value of the data bit in the frame length, the waveform corresponding to the value of each data bit in the data packet, and the waveform corresponding to the end marker into heartbeat sound signals corresponding to the values of the corresponding data bits, and obtaining the target heartbeat sound signal based on the synchronization header heartbeat sound signal and the heartbeat sound signals corresponding to the values of the data bits.
[0115] The bit values in the data packet are either 0 or 1. The end marker is represented by 0. The frame structure includes a synchronization header, frame length, data, checksum, and end marker. This ensures that the resulting target heartbeat signal also includes the frame length, checksum, and end marker, preventing data loss or transmission errors during transmission.
[0116] In one exemplary embodiment, acquiring a user's target physiological data includes: detecting the user's target bodily fluids through a sensor array to obtain the user's raw physiological data; and preprocessing the raw physiological data to obtain the target physiological data.
[0117] For example, a smart toilet can also detect a user's target bodily fluid to obtain the user's raw physiological data, and then preprocess the raw physiological data to obtain target physiological data. The target bodily fluid can be urine or blood, etc. The target physiological data includes one or more of the following: glucose concentration, protein content, white blood cell count, ketone body concentration, pH value, and specific gravity.
[0118] The sensor array can include glucose sensors, protein sensors, white blood cell sensors, ketone body sensors, pH sensors, specific gravity sensors, heart rate sensors, and weight sensors. The glucose sensor can be a glucose oxidase electrode for detecting glucose concentration (mg / dL), with a detection range of 0-500 mg / dL and an accuracy of ±5%. The protein sensor can be a colorimetric sensor for detecting protein content (mg / L), with a detection range of 0-300 mg / L and a resolution of 1 mg / L. The white blood cell sensor utilizes flow cytometry to detect white blood cell count (cells / μL), with a detection range of 0-50 cells / μL. The ketone body sensor is based on the ketone body dehydrogenase reaction and is used to detect ketone body concentration (mmol / L), with a detection range of 0-15 mmol / L. The pH sensor can be an ion-selective electrode for detecting pH value, with a detection range of 4.5-8.5 and an accuracy of ±0.1%. The specific gravity sensor can be a density sensor for detecting specific gravity, with a range of 1.003-1.030. The heart rate sensor is used to detect the user's heart rate; the weight sensor is used to detect the user's weight.
[0119] Preprocessing can be configured as needed, and may include analog-to-digital conversion, filtering, noise reduction, normalization, etc.
[0120] By detecting the user's bodily fluids, relatively accurate physiological data can be obtained. Preprocessing the raw physiological data can remove noise and amplify the signal, further improving the quality of the physiological data.
[0121] In an exemplary embodiment, the method further includes: when the difference between the second pressure value and the first pressure value on the smart toilet seat exceeds a pressure difference threshold, the physiological data acquisition and transmission system is automatically activated to acquire the user's target physiological data. The acquisition time of the second pressure value is later than the acquisition time of the first pressure value. The sensor array begins to continuously detect the user's physiological data for a target duration. The target duration can be set as needed, such as 30 seconds. Automatically activating the data acquisition and transmission system by detecting pressure changes on the smart toilet seat can improve system operating efficiency and save energy.
[0122] In one exemplary embodiment, preprocessing the raw physiological data to obtain target physiological data includes: performing analog-to-digital conversion on the raw physiological data to obtain digital signal physiological data; and performing filtering and / or standardization on the digital signal physiological data to obtain target physiological data.
[0123] The raw physiological data can be analog signals. An analog-to-digital converter (ADC) is used to convert the analog signals into digital physiological data. Then, a digital low-frequency filter is used to filter the digital physiological data to eliminate high-frequency noise. Alternatively, a multi-point averaging algorithm can be used to improve measurement stability. The filtered physiological data is then standardized using a preset standard curve to convert it into standard physiological unit data. By converting the raw physiological data from analog to digital signals, the signal-to-noise ratio is improved by approximately 15 dB through filtering and averaging.
[0124] In one possible implementation, the physiological data of the digital signal can be standardized using a preset standard curve to convert it into standard physiological unit data to obtain the target physiological data. In another possible implementation, the physiological data of the digital signal can be filtered to obtain the target physiological data.
[0125] In one exemplary embodiment, the method further includes: identifying target physiological data that exceeds the normal physiological range and marking it. If the acquired target physiological data exceeds the corresponding normal physiological range, it indicates that the physiological indicator is abnormal and requires user attention, thus triggering a warning through marking.
[0126] In an exemplary embodiment, the method further includes: if no response indicating completion of reception is received from the electronic device acting as the receiving end within a preset time period, then the target physiological data is stored in the local memory of the smart toilet.
[0127] The preset duration can be set as needed, such as 20 seconds, 30 seconds, etc., and is not limited to this. After receiving the audio data, the electronic device will send a response indicating that reception is complete to the smart toilet. If no response is received from the electronic device within the preset duration, the target physiological data will be stored in the smart toilet's local memory to prevent data loss.
[0128] In an exemplary embodiment, the method may further include: if no response indicating completion of reception is received from the electronic device acting as the receiving end within a preset time period, the smart toilet retransmits the target physiological data. Retransmission further ensures stable data transmission. If transmission fails again, multiple retransmissions can be performed. To avoid repeated retransmissions, a retransmission threshold can be set; when the retransmission count reaches the threshold, retransmission is stopped to save resource consumption.
[0129] In one exemplary embodiment, the method may further include uploading data stored in local storage to a server. After uploading the data stored in the smart toilet's local storage to the server, the electronic device can automatically synchronize the data from the server.
[0130] like Figure 4 As shown, a physiological data transmission method is applied to an electronic device, the method comprising steps 402 to 404. Wherein:
[0131] Step 402: When the distance between the electronic device and the smart toilet is within a preset distance range, record an audio signal and identify the recorded audio signal.
[0132] The preset distance range can be set as needed. Electronic devices can be mobile phones, tablets, computers, wearable devices, etc. The electronic device records audio signals via a microphone and then uses a processor to recognize the recorded audio signals.
[0133] Step 404: If the audio signal is found to contain a preset synchronization header, the audio signal is decoded to obtain the target physiological data.
[0134] Upon detecting that the audio signal contains a preset synchronization header, i.e., contains target physiological data, the audio signal is decoded to obtain the target physiological data. For example, when the preset synchronization header converts a heartbeat sound signal, it identifies whether the audio signal contains a heartbeat sound signal. If it does, the audio signal is decoded to obtain the target physiological data. The target physiological data is obtained based on the user's physiological data collected by the smart toilet. The user's physiological data collected by the smart toilet can be used directly as the target physiological data, or the user's physiological data collected by the smart toilet can be processed (such as noise reduction, filtering, amplification, analog-to-digital conversion, etc.) to obtain the target physiological data.
[0135] In this embodiment, when the electronic device is within a preset distance range from the smart toilet, it records audio signals through a microphone and identifies the recorded audio signals. If the audio signals contain a preset synchronization header, the audio signals are decoded to obtain target physiological data. This realizes the automatic reception and identification of audio data, and the decoding of audio data to obtain target physiological data. It also realizes the reception of target physiological data through sound wave transmission, which improves the security and reliability of data transmission.
[0136] In an exemplary embodiment, the method further includes: performing the step of recording the audio signal when a preset condition is met; the preset condition includes at least one of the following: the ambient noise intensity is lower than a preset intensity threshold; the screen of the electronic device is lit up; the target application is in the foreground running state, and the target application is an application used to display physiological data.
[0137] When the ambient noise level is below a preset threshold, recording audio signals via a microphone can reduce interference from ambient noise on audio signal transmission, improving the reliability and stability of audio signal transmission. When the screen of an electronic device is lit, indicating that the user is using the device, this avoids waking the device again, improving the utilization of the device's hardware resources. Alternatively, recording audio signals via microphone only when the target application is running in the foreground can reduce the frequency of data reception, further improving the resource utilization of the electronic device.
[0138] In an exemplary embodiment, identifying the recorded audio signal includes: matching the audio signal with a sync header reference signal; and determining that the audio signal contains a sync header signal if there is a segment of the audio signal whose correlation coefficient with the sync header reference signal exceeds a correlation coefficient threshold.
[0139] The electronic device stores a sync header reference signal. The audio signal is matched against this sync header reference signal, and the correlation coefficient between the audio signal and the sync header reference signal is calculated. If the correlation coefficient exceeds a threshold, it indicates that the audio signal contains a sync header signal. The correlation coefficient threshold can be set as needed, such as 85%, 90%, etc. A higher correlation coefficient threshold results in higher accuracy in matching the audio signal. If the preset sync header is converted to a heartbeat sound signal, then the sync header reference signal is also a sync header reference heartbeat sound signal.
[0140] like Figure 5 As shown below, with the smart toilet as the transmitter and the electronic device as the receiver, the method for transmitting physiological data is described, including:
[0141] (1) The transmitting end and the receiving end agree on a signal communication protocol, which defines three types of sound waveforms and data frame structures.
[0142] The three sound waveforms include the sync head sound waveform, the 0 sound waveform, and the 1 sound waveform.
[0143] (2) The sending end collects the user's target physiological data.
[0144] The target physiological data may include one or more of the following: blood oxygen, blood pressure, heart rate, body fat percentage, glucose concentration, protein content, white blood cell count, ketone body concentration, pH value, and specific gravity.
[0145] (3) The transmitting end encodes the target physiological data into a binary bit stream and converts the binary bit stream into the corresponding target heartbeat sound signal according to the predetermined sound waveform and frame structure.
[0146] (4) The transmitting end plays the target heartbeat sound signal through a speaker and transmits the data in the form of sound waves.
[0147] (5) The receiver records audio signals through a microphone and detects whether the audio signals contain heartbeat characteristics.
[0148] (6) The receiver decodes the recorded heartbeat signal to obtain binary data, and restores the binary data to obtain the target physiological data.
[0149] (7) The receiving end processes and displays the target physiological data.
[0150] The receiving end can compare the target physiological data with the health reference range to obtain the comparison results, and can also display the test results in real time in the form of charts and numerical values.
[0151] In this embodiment, by encoding physiological data into heartbeat sounds for transmission, there is no need to integrate additional communication hardware, such as antennas and radio frequency chips, into the smart toilet. This significantly reduces the cost and complexity of the device. Furthermore, the power consumption of audio transmission is far lower than that of radio communication, extending the device's battery life and achieving more economical and environmentally friendly data transmission. Heartbeat sounds are a familiar and comforting sound. Users hearing a familiar heartbeat rhythm while using the smart toilet will not experience resistance or discomfort, increasing their acceptance and compliance with health monitoring. This non-intrusive data collection method encourages users to use the smart toilet more frequently and continuously, improving the integrity and accuracy of health data. Sound is less susceptible to electromagnetic interference during propagation, especially in the relatively enclosed space of a smart toilet, resulting in low background noise, higher stability and reliability of the sound signal. Moreover, sound transmission does not cause electromagnetic interference to medical devices, broadening its applicability and meeting the needs of various environments such as hospitals, homes, and offices. Encoding digitized physiological data into analog heartbeat signals effectively prevents unauthorized data theft and decoding during transmission, greatly improving user privacy and security. Furthermore, audio encoding is highly flexible. By adjusting parameters such as frame structure, encoding rules, and mapping relationships, it can be compatible with the transmission of various types of physiological data, such as heart rate, blood pressure, and weight, thus meeting the different application needs of smart toilets.
[0152] The following describes the process of a smart toilet collecting user physiological data and transmitting it to a mobile phone, using a specific application scenario as an example. The specific process is as follows:
[0153] First, when the user is not sitting in the seat, the pressure sensor on the smart toilet seat detects a first pressure value. When the user sits in the seat, the pressure sensor detects a second pressure value. The smart toilet's processor calculates the difference between the second pressure value transmitted by the pressure sensor and the first pressure value. If the difference between the second pressure value and the first pressure value is greater than the pressure difference threshold, it determines that someone is in the smart toilet seat and automatically starts the physiological data collection function.
[0154] Secondly, the smart toilet's multi-sensor array detects the user's urine, obtaining analog signals of raw physiological data. The smart toilet's processor performs analog-to-digital conversion on the raw physiological data, such as sampling at a frequency of 1kHz. It then uses a digital low-pass filter to eliminate high-frequency noise and employs a multi-point averaging algorithm (e.g., averaging over a window length of 5 seconds) to improve measurement stability. Next, the digital physiological data is standardized using a preset standard curve to convert it into standard physiological units, obtaining the target physiological data. A temperature compensation algorithm can also be used to correct the influence of ambient temperature on the detection results (compensation range 15-35 degrees Celsius). Outlier detection identifies and marks data exceeding the normal physiological range within the target physiological data. The timestamp and checksum of the target physiological data are obtained, and the timestamp, target physiological data, and checksum are encapsulated into a data packet according to a fixed format. The waveform of the synchronization header is converted into a standard heartbeat sound signal. The values of the corresponding bits in the frame length, data packet, and end marker (0 or 1) are converted into single-heartbeat and dual-heartbeat sound signals, thus obtaining the target heartbeat sound signal. The target heartbeat sound signal is then played through a speaker and transmitted as sound waves.
[0155] Next, when the distance between the electronic device and the smart toilet is within a preset range (such as 0.5-1.5 meters), the target application of the electronic device enters the data receiving state (and at least one of the following conditions must also be met: environmental conditions: ambient noise intensity is below 40dB; time conditions: continuous synchronous head heartbeat sound signal is detected; user conditions: the screen of the user's electronic device is lit up and the target application is in the foreground running state). The electronic device's microphone (e.g., with a sampling rate of 44.1 kHz) records audio signals. A real-time audio stream buffer (e.g., a circular buffer with a capacity of 5 seconds of audio data) is used to preprocess the recorded audio signals, employing a bandpass filter (e.g., 20-200 Hz) to remove background noise. A heartbeat matching algorithm is used to identify the synchronization head's heartbeat signal. The short-time Fourier transform of the audio signal is calculated to extract frequency domain features. These features are then matched with the synchronization head's reference heartbeat signal. If the correlation coefficient exceeds a threshold, it is confirmed as a valid synchronization head heartbeat signal, indicating that the audio signal contains the synchronization head. The audio signal is then decoded and restored. Bits 0 and 1 are identified based on the heartbeat duration. The 16-byte data packet is parsed and extracted according to its frame structure. A CRC-16 checksum is used to verify data integrity, yielding the target physiological data. If an error occurs, a retransmission mechanism is initiated to retransmit the target physiological data. The electronic device obtains the decoded target physiological data, converts the target physiological data into standard unit values of each physiological parameter, and stores the converted target physiological data in a local database. The converted target physiological data includes time series and trend analysis. The target physiological data is analyzed based on a preset health reference range to obtain analysis results, which are displayed in the form of charts and numerical values. If the target physiological data exceeds the normal range of physiological parameters, a health reminder is pushed to the user.
[0156] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages in other steps. It is understood that the steps in different embodiments can be freely combined as needed, and all non-contradictory solutions formed by such combinations are within the scope of protection of this application.
[0157] Based on the same inventive concept, this application also provides a smart toilet or electronic device for implementing the physiological data transmission method described above. The solution provided by this device is similar to the implementation described in the above method; therefore, the specific limitations of one or more smart toilet or electronic device embodiments provided below can be found in the limitations of the method described above, and will not be repeated here.
[0158] In one exemplary embodiment, such as Figure 6 As shown, a smart toilet is provided, including: a physiological data acquisition module 610, a data processing module 620, and an audio transmission module 630. Wherein:
[0159] The physiological data acquisition module 610 is used to detect the user's human body and obtain the user's raw physiological data.
[0160] The data processing module 620 is used to process the raw physiological data to obtain the user's target physiological data, and convert the target physiological data into an audio signal containing a preset synchronization header; the preset synchronization header is used to indicate the starting position of the target physiological data in the audio signal.
[0161] The audio transmission module 630 is used to play audio signals and transmit audio signals in the form of sound waves.
[0162] In this embodiment, the smart toilet's physiological data acquisition module detects the user's body to obtain the user's raw physiological data. The data processing module processes the raw physiological data to obtain the user's target physiological data, converting the target physiological data into an audio signal containing a preset synchronization head signal. The audio transmission module plays the audio signal and transmits it in the form of sound waves. This enables the smart toilet to collect the user's physiological data and transmit it via sound waves, eliminating the need for users to use medical-grade equipment to collect physiological data, thus reducing costs. Furthermore, transmitting the target physiological data via sound waves utilizes the sound transmission characteristics of air and the relatively stable space created by smart toilets, which are typically deployed in relatively enclosed and soundproof environments. This facilitates stable sound signal propagation, making it less susceptible to interference. Data transmission occurs over short distances, resulting in lower transmission power and signal attenuation, and greater adaptability to the environment, even in complex electromagnetic environments. Moreover, there is no need to integrate additional communication hardware such as antennas or RF chips into the smart toilet, significantly reducing the cost and complexity of the device. Simultaneously, the power consumption of audio transmission is far lower than that of traditional radio communication, extending the device's battery life and achieving more economical and environmentally friendly data transmission.
[0163] In one exemplary embodiment, the physiological data acquisition module 610 includes at least one of the following sensors:
[0164] A glucose sensor is used to detect the glucose concentration in a user's target bodily fluids.
[0165] Protein sensor used to detect the protein content of target bodily fluids in a user's body;
[0166] The white blood cell sensor is used to detect the number of white blood cells in the target body fluid of the user; the ketone body sensor is used to detect the concentration of ketone bodies in the target body fluid of the user.
[0167] pH sensor is used to detect the pH value of target body fluids in the user's body;
[0168] A specific gravity sensor is used to detect the specific gravity of target bodily fluids in the user's body.
[0169] Heart rate sensor, used to detect the user's heart rate;
[0170] A weight sensor is used to detect a user's weight.
[0171] In an exemplary embodiment, the data processing module 620 is further configured to map the waveform of the preset synchronization head to the corresponding synchronization head heartbeat sound signal, and to convert the waveform corresponding to the target physiological data into the corresponding data heartbeat sound signal, and to obtain the target heartbeat sound signal containing the preset synchronization head based on the synchronization head heartbeat sound signal and the data heartbeat sound signal.
[0172] In an exemplary embodiment, the data processing module 620 is further configured to convert the waveform of the preset synchronization head into a standard heartbeat sound signal; convert the waveform of the target physiological data with a bit value of 0 or 1 into a single heartbeat sound signal, and the waveform of the other bit into a double heartbeat sound signal; the standard heartbeat signal represents a complete heartbeat cycle, the single heartbeat sound signal represents a complete heartbeat cycle, and the double heartbeat sound signal represents two complete heartbeat cycles; the duration of the standard heartbeat sound signal is twice the duration of the single heartbeat sound signal; and the target heartbeat sound signal is obtained based on the standard heartbeat sound signal, the single heartbeat sound signal, and the double heartbeat sound signal.
[0173] In an exemplary embodiment, the data processing module 620 is further configured to convert the target physiological data into an audio signal according to a preset frame structure, wherein the frame structure includes a synchronization header, frame length, data, checksum, and end marker.
[0174] In an exemplary embodiment, the data processing module 620 is further configured to acquire a timestamp and a checksum, encapsulate the target physiological data according to the timestamp and checksum to obtain a data packet, and convert the data packet into an audio signal according to a preset frame structure, wherein the frame structure includes a synchronization header, frame length, data, checksum, and end marker.
[0175] In an exemplary embodiment, the data processing module 620 is further configured to perform analog-to-digital conversion on the raw physiological data to obtain digital signal physiological data; and to perform filtering and / or standardization processing on the digital signal physiological data to obtain target physiological data.
[0176] In one exemplary embodiment, the data processing module 620 is further configured to identify and label target physiological data that exceeds the normal physiological range.
[0177] In an exemplary embodiment, the data processing module 620 is further configured to store the target physiological data in the local memory of the smart toilet if no response is received from the receiving end within a preset time period.
[0178] In one exemplary embodiment, the smart toilet also includes a pressure detection module. The pressure detection module is used to detect the pressure value on the smart toilet seat. The pressure detection module can be a pressure sensor. The data processing module 620 is also used to detect whether the difference between a second pressure value and a first pressure value on the smart toilet seat exceeds a pressure difference threshold. If the pressure change exceeds the pressure difference threshold, the physiological data acquisition module is controlled to start operating. The acquisition time of the second pressure value is later than the acquisition time of the first pressure value.
[0179] like Figure 7 As shown, the hardware architecture of the smart toilet as the transmitting end includes: a sensor array layer, a signal processing layer, a control processing layer, an audio encoding layer, an audio output layer, and a power management layer. The sensor array layer includes a glucose sensor (electrochemical method), a protein sensor (colorimetric method), a white blood cell sensor (flow cytometry), a ketone body sensor (enzyme electrode method), a pH sensor (ion selection), and a specific gravity sensor (density detection). The signal processing layer includes a multiplexed analog-to-digital converter (ADC conversion, e.g., 12-bit, 1kHz), signal conditioning circuitry (amplification + isolation), and a digital filter (e.g., low-pass 100Hz). The control processing layer includes a main controller (e.g., ARM Cortex-M4) and integrates data acquisition management, an algorithm processing engine, and a communication protocol stack. The audio encoding layer includes a heartbeat sound encoding chip (e.g., a dedicated ASIC), an audio digital-to-analog converter (DAC) (16-bit, 44kHz), and a power amplifier (Class-D). The audio output layer includes a bone conduction speaker (2W, 20-200Hz), a speaker cavity design (resonance optimization), and an acoustic guiding structure (directional propagation). The power management layer includes a lithium battery pack (3.7V, 5Ah), a DC-DC converter (multi-output), and a power management IC (intelligent sleep mode).
[0180] The physiological data acquisition module 610 includes various sensors in the sensor array layer, which collect the user's raw physiological data.
[0181] The data processing module 620 may include a multiplexer analog-to-digital converter (ADC), signal conditioning circuit, and digital filter in the signal processing layer; a main controller in the control processing layer; and a heartbeat sound encoding chip, audio digital-to-analog converter (DAC), and power amplifier in the audio encoding layer. The ADC converts the raw analog physiological data into digital physiological data. The signal conditioning circuit amplifies and isolates the digital physiological data to obtain conditioned physiological data. The digital filter filters the conditioned physiological data to obtain the target physiological data. The main controller calls the algorithm processing engine according to the communication protocol stack to process the target physiological data, generate a checksum, encapsulate the timestamp, target physiological data, and checksum into a data packet, and then assembles it into a transmission packet according to the frame structure, including the synchronization header, frame length, data packet, and end marker. The heartbeat sound encoding chip maps the waveforms corresponding to the synchronization header, frame length, data packet, and end marker in the transmission packet into a heartbeat sound signal to obtain the target heartbeat sound signal. The audio DAC converts the target heartbeat sound signal into an analog target heartbeat sound signal. The power amplifier amplifies the analog target heartbeat sound signal.
[0182] The audio transmission module 630 includes a bone conduction speaker. The bone conduction speaker is used to play a target heartbeat sound signal, and optimizes the resonance of the played target heartbeat sound through an acoustic cavity, and directs its propagation through an acoustic guiding structure.
[0183] The power management layer is used to provide power to the various devices or circuits of a smart toilet and to manage the power consumption.
[0184] like Figure 8 As shown, an electronic device includes an audio receiving module 810 and an audio processing module 820.
[0185] The audio receiving module 810 is used to record audio signals when the distance between the electronic device and the smart toilet is within a preset distance range.
[0186] The audio processing module 820 decodes the audio signal to obtain target physiological data when it detects that the audio signal contains a preset synchronization header. The target physiological data is obtained based on the physiological data of the user collected by the smart toilet. The preset synchronization header is used to indicate the starting position of the target physiological data in the audio signal. The physiological data of the user collected by the smart toilet can be used directly as the target physiological data, or the physiological data of the user collected by the smart toilet can be processed (such as noise reduction, filtering, amplification, analog-to-digital conversion, etc.) to obtain the target physiological data.
[0187] In an exemplary embodiment, the audio receiving module 810 is further configured to record an audio signal when a preset condition is met; the preset condition includes at least one of the following: the ambient noise intensity is lower than a preset intensity threshold; the screen of the receiving end is lit up; the target application is in the foreground running state, and the target application is an application used to display physiological data.
[0188] In an exemplary embodiment, the audio data processing 820 is further configured to match the audio signal with a synchronization head reference heartbeat sound signal; if there is a segment of the audio signal whose correlation coefficient with the synchronization head reference heartbeat sound signal exceeds a correlation coefficient threshold, then it is determined that the audio signal contains the synchronization head.
[0189] In one exemplary embodiment, the electronic device further includes a physiological data processing module 830 for displaying and / or storing the decoded target physiological data.
[0190] Target physiological data can be stored in a local database and may include time series and trend analyses. This data can be displayed in charts and numerical values within the target application on an electronic device.
[0191] In an exemplary embodiment, the physiological data processing module 830 is further configured to generate a report based on the target physiological data and upload the report to the server.
[0192] like Figure 9 As shown, the hardware architecture of the electronic device as the receiver includes an audio input layer, an audio processing layer, an application processing layer, a data management layer, and a user interaction layer. The audio input layer includes a MEMS microphone (omnidirectional), a preamplifier (low noise), and an analog bandpass filter (e.g., 20-200Hz); the audio processing layer includes an audio analog-to-digital converter (ADC) (24-bit, 48kHz), digital signal processing (DSP chip), and an audio codec (hardware acceleration); the application processing layer includes a main processor (SOC) integrating a heartbeat sound recognition algorithm module, a data decoding engine, and a health analysis algorithm; the data management layer includes local storage (e.g., SQLite database), a data encryption module (e.g., AES-256), and a network communication interface (4G / 5G / WiFi); the user interaction layer includes a touchscreen display (e.g., OLED / LCD), vibration feedback (haptic alerts), and status indicator lights (LED array).
[0193] The audio receiving module 810 may include a microphone, and may also include a preamplifier and an analog bandpass filter. The microphone is used to record audio signals; the preamplifier is used to amplify the recorded audio signals; the analog bandpass filter is used to filter the amplified audio signals to obtain filtered audio signals. The audio processing module 820 may include a main processor, and may also include an audio analog-to-digital converter, a digital signal processor, and an audio codec. The audio analog-to-digital converter is used to convert the filtered audio signals from analog to digital to obtain digital audio signals. The digital signal processor is used to optimize the digital audio signals. The main processor is used to call a heartbeat sound recognition algorithm to recognize the recorded audio signals. If a heartbeat sound signal is detected in the audio signal, a data decoding engine is called to decode the audio data to obtain target physiological data, and then a health analysis algorithm is called to analyze the target physiological data to obtain analysis results. The physiological data processing module 830 may include local storage and a touch screen. Local storage can be used to store target physiological data. A data encryption module can be used to encrypt the target physiological data. The touch screen can be used to display the target physiological data.
[0194] like Figure 10 As shown, the workflow of the smart toilet and electronic devices in the smart toilet system is as follows: The smart toilet collects user urine data through a multi-sensor array to obtain the user's raw physiological data. This raw physiological data undergoes digital conversion, filtering, data standardization, and anomaly detection to obtain target physiological data. The target physiological data is then encoded with heartbeat sounds to generate a target heartbeat sound audio signal. This heartbeat sound audio signal is played through a speaker and transmitted directionally. The heartbeat sound audio signal travels through the air and reaches the microphone of the electronic device (such as a mobile phone) to record the audio signal. The recorded audio signal undergoes preprocessing, including noise filtering and signal enhancement. A heartbeat sound recognition mode is used to match the processed audio signal. If the matched audio signal contains a synchronized head heartbeat sound signal, it indicates that the audio signal contains the target physiological data. The audio signal is decoded to obtain the bitstream of the target physiological data. The target physiological data undergoes data parsing and format conversion to obtain the converted target physiological data. The target physiological data is analyzed to obtain the analysis results, which are then displayed and synchronized to the cloud for synchronized medical services. The entire data transmission process uses acoustic wave propagation medium, which features short transmission distance (0.5-1.5 meters), low power consumption, and strong anti-electromagnetic interference capability.
[0195] The above modules can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each module.
[0196] In one exemplary embodiment, a smart toilet is provided, including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the steps of a method for transmitting physiological data as a transmitter using the smart toilet.
[0197] In one exemplary embodiment, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement steps of a method for transmitting physiological data as a receiving end of the electronic device.
[0198] In one exemplary embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps of the above-described physiological data transmission method.
[0199] In one exemplary embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps of the above-described physiological data transmission method.
[0200] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.
[0201] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.
[0202] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0203] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A method of physiological data transmission, characterized by, The method is applied to a smart toilet and comprises the following steps: Obtaining target physiological data of a user; Converting the target physiological data into an audio signal containing a preset synchronization head; the preset synchronization head is used to indicate the starting position of the target physiological data in the audio signal; Playing the audio signal to transmit the audio signal in the form of sound waves.
2. The method of claim 1, wherein, The step of converting the target physiological data into an audio signal containing a preset synchronization head comprises the following steps: Mapping the waveform of the preset synchronization head into a corresponding synchronization head heartbeat sound signal, converting the waveform corresponding to the target physiological data into a corresponding data heartbeat sound signal, and obtaining a target heartbeat sound signal containing a preset synchronization head according to the synchronization head heartbeat sound signal and the data heartbeat sound signal.
3. The method of claim 2, wherein, The target data is bit stream data; the step of mapping the waveform of the preset synchronization head into a corresponding synchronization head heartbeat sound signal, converting the waveform corresponding to the target physiological data into a corresponding data heartbeat sound signal, and obtaining a target heartbeat sound signal containing a preset synchronization head according to the synchronization head heartbeat sound signal and the data heartbeat sound signal comprises the following steps: Converting the waveform of the preset synchronization head into a standard heartbeat sound signal; Converting the waveform of one of 0 or 1 in the target physiological data into a single heartbeat sound signal and the waveform of the other into a double heartbeat sound signal; the standard heartbeat signal represents one complete heartbeat cycle, the single heartbeat sound signal represents one complete heartbeat cycle, and the double heartbeat sound signal represents two complete heartbeat cycles; the time length of the standard heartbeat sound signal is twice the time length of the single heartbeat sound signal; Obtaining a target heartbeat sound signal according to the standard heartbeat sound signal, the single heartbeat sound signal and the double heartbeat sound signal.
4. The method according to any one of claims 1 to 3, characterized in that, The step of converting the target physiological data into an audio signal comprises the following steps: Obtaining a timestamp and a check code, packaging the timestamp, the target physiological data and the check code to obtain a data packet; Converting the data packet into an audio signal according to a preset frame structure; the frame structure comprises a synchronization head, a frame length, data, a check code and an end marker.
5. The method according to any one of claims 1 to 3, characterized in that, The step of obtaining target physiological data of a user comprises the following steps: Detecting target body fluid of a user through a sensor array to obtain original physiological data of the user; Pretreating the original physiological data to obtain target physiological data.
6. The method of claim 5, wherein, The step of pretreating the original physiological data to obtain target physiological data comprises the following steps: Converting the original physiological data into digital signal physiological data through analog-digital conversion; Filtering and / or standardizing the digital signal physiological data to obtain target physiological data.
7. A method of physiological data transmission, characterized by, The method is applied to an electronic device and comprises the following steps: Recording an audio signal when the distance between the electronic device and a smart toilet is within a preset distance range; Decoding the audio signal to obtain target physiological data when it is identified that the audio signal contains a preset synchronization head; the target physiological data is obtained according to the physiological data of a user collected by the smart toilet; the preset synchronization head is used to indicate the starting position of the target physiological data in the audio signal.
8. The method of claim 7, wherein, The method further comprises the following steps: Performing the step of recording an audio signal when a preset condition is met; The preset condition comprises at least one of the following conditions: The environmental noise intensity is lower than a preset intensity threshold value; The screen of the electronic device is turned on; The target application is in a foreground running state, and the target application is an application for displaying physiological data.
9. The method of claim 8, wherein, The manner of identifying the audio signal containing the preset synchronization head includes: Matching the audio signal with a synchronization head reference signal; If there is a segment signal of the audio signal having a correlation coefficient with the synchronization head reference signal exceeding a correlation coefficient threshold value, it is determined that the audio signal contains the preset synchronization head.
10. A smart toilet, characterized by comprising: It includes: A physiological data acquisition module configured to detect a user's body to obtain original physiological data of the user; A data processing module configured to process the original physiological data to obtain target physiological data of the user, and convert the target physiological data into an audio signal containing a preset synchronization head, the preset synchronization head being used to indicate a starting position of the target physiological data in the audio signal; An audio sending module configured to play the audio signal to transmit the audio signal in the form of sound waves.
11. The intelligent toilet according to claim 10, characterized in that, The physiological data acquisition module includes at least one of the following sensors: A glucose sensor configured to detect a target body fluid of the user to obtain a glucose concentration; A protein sensor configured to detect a target body fluid of the user to obtain a protein content; A white blood cell sensor configured to detect a target body fluid of the user to obtain a white blood cell count; A ketone body sensor configured to detect a target body fluid of the user to obtain a ketone body concentration; A pH sensor configured to detect a target body fluid of the user to obtain a pH value; A specific gravity sensor configured to detect a target body fluid of the user to obtain a specific gravity; A heart rate sensor configured to detect a heart rate of the user; A body weight sensor configured to detect a body weight of the user.
12. The intelligent toilet according to claim 10, characterized in that, The data processing module is further configured to map a waveform of the preset synchronization head into a corresponding synchronization head heartbeat sound signal, and convert a waveform corresponding to the target physiological data into a corresponding data heartbeat sound signal, and obtain a target heartbeat sound signal containing the preset synchronization head according to the synchronization head heartbeat sound signal and the data heartbeat sound signal.
13. The intelligent toilet according to claim 10, characterized in that, The data processing module is further configured to convert the waveform of the preset synchronization head into a standard heartbeat sound signal, convert a waveform of a bit in the target physiological data having one of values 0 or 1 into a single heartbeat sound signal, and convert a waveform of the other bit into a double heartbeat sound signal; The standard heartbeat signal represents one complete heartbeat cycle, the single heartbeat sound signal represents one complete heartbeat cycle, and the double heartbeat sound signal represents two complete heartbeat cycles; The duration of the standard heartbeat sound signal is twice the duration of the single heartbeat sound signal; and the target heartbeat sound signal is obtained according to the standard heartbeat sound signal, the single heartbeat sound signal, and the double heartbeat sound signal.
14. An electronic device, comprising: It includes: An audio receiving module configured to record an audio signal when a distance between an electronic device and a smart toilet is within a preset distance range; An audio data processing module configured to decode the audio signal to obtain target physiological data when it is identified that the audio signal contains a preset synchronization head signal; The target physiological data is obtained according to physiological data of a user collected by the smart toilet; and the preset synchronization head is used to indicate a starting position of the target physiological data in the audio signal.
15. The electronic device of claim 14, wherein, The audio receiving module is further configured to record the audio signal when it is detected that a preset condition is met. The preset condition comprises at least one of the following: an environmental noise intensity is lower than a preset intensity threshold; a screen of a receiving end is lighted up; a target application is in a foreground running state, and the target application is an application for displaying physiological data.
16. The electronic device of claim 14, wherein, The audio data processing is further configured to match the audio signal with a heartbeat sound signal referenced by a sync head; and determine that the audio signal contains the sync head when there is a segment signal in the audio signal with a correlation coefficient with the heartbeat sound signal referenced by the sync head exceeding a correlation coefficient threshold.
17. An intelligent toilet comprising a memory and a processor, the memory storing a computer program, characterized in that, The processor, when executing the computer program, implements the steps of the method of any one of claims 1 to 6.
18. An electronic device, comprising a memory and a processor, the memory storing a computer program, characterized in that, The processor, when executing the computer program, implements the steps of the method of any one of claims 7 to 9.
19. A computer readable storage medium having stored thereon a computer program, characterized in that, The computer program, when executed by the processor, implements the steps of the method of any one of claims 1 to 9.
20. A computer program product comprising a computer program, characterized in that, The computer program, when executed by the processor, implements the steps of the method of any one of claims 1 to 9.