Data processing method and device for assisting medication
Through the image data analysis and medication time management of the bipedal robot controller, the problem of low intelligence and low humanization in assisting medication in the existing technology is solved, the medication reminder is realized in the user's appropriate state, and the accuracy of medication is improved. and user experience.
Patent Information
- Application Number
- CN202410993213.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-24
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2044-07-24
AI Technical Summary
The existing technology is not very intelligent and user-friendly when assisting in taking medication, especially when it forces sick users to wake up from sleep, causing the user to have poor rest and be easily frightened, making it difficult to accurately remind the user to take medication.
The controller of the biped robot obtains the target user's basic medication information, determines the target medication time range, and determines the user's sleep status through image data and posture analysis, and implements targeted medication reminder strategies to avoid forcibly awakening the user while sleeping. Only remind the user to take medication when they are awake or at the latest time within the medication time range.
It improves the intelligence and humanization of auxiliary medication, ensures that users are reminded to take medication in the appropriate state, reduces startle and interruption when waking up, and improves the accuracy of medication and user experience.
Smart Images

Figure CN118522405B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a data processing method and device for assisting medication. Background Art
[0002] When a user is ill, he needs to take medicines on time and in the right amount, but the user is prone to forgetting to take medicines or taking the wrong medicines. In the current technical solution, the time of taking each medicine of the user is usually recorded, and when the time of taking medicine arrives, the user is reminded to take a certain amount of the corresponding medicine. However, since the user is ill, the metabolism of the body slows down, the energy is insufficient, and the user often falls asleep several times a day. If the user is forcibly awakened to take medicine, not only will the user not be able to rest well, but the user will also be easily frightened, and the degree of intelligence and humanity is low. Therefore, how to improve the intelligence and humanity of auxiliary medication has become a technical problem that needs to be further solved. Summary of the invention
[0003] The present application proposes a data processing method and device for assisted medication, so as to solve the problem of low intelligence and humanization level of assisted medication, and improve the intelligence and humanization level of assisted medication.
[0004] In a first aspect, an embodiment of the present application provides a data processing method for assisting medication administration, which is applied to a controller of a bipedal robot, and the method comprises:
[0005] Acquire basic medication information of a target user, where the basic medication information is used to characterize a standard medication condition of a target drug corresponding to the target user;
[0006] Determine a target medication time range for the target user according to the basic medication information, wherein the target medication time range is used to represent a time range for the target user to take the target drug;
[0007] When the current system time is the earliest medication time point in the target medication time range, determining a target posture, wherein the target posture is used to characterize a limb movement of the biped robot that can acquire at least two image data, and the at least two image data are used to characterize the chest rise and fall of the target user;
[0008] Determine the current state of the target user through the target posture, where the current state includes a sleeping state and a non-sleeping state;
[0009] When it is detected that the current state is the sleeping state, the first medication reminder strategy is executed. The first medication reminder strategy is used to remind the target user to take the target medicine when the current system time is the target time point. The target time point is the time point when the target user is detected to be in the non-sleeping state or the latest medication time point in the target medication time range.
[0010] In a second aspect, an embodiment of the present application provides a data processing device for assisting medication administration, which is applied to a controller of a bipedal robot, and the device comprises:
[0011] A first receiving unit is used to obtain basic medication information of a target user, where the basic medication information is used to represent a standard medication condition of a target drug corresponding to the target user;
[0012] A first processing unit is used to determine a target medication time range for the target user based on the basic medication information, the target medication time range is used to characterize the time range for the target user to take the target drug; when the current system time is the earliest medication time point in the target medication time range, determine a target posture, the target posture is used to characterize the limb movement of the biped robot that can obtain at least two image data, and the at least two image data are used to characterize the chest rise and fall of the target user; determine the current state of the target user through the target posture, the current state includes a sleeping state and a non-sleeping state; when it is detected that the current state is the sleeping state, execute a first medication reminder strategy, the first medication reminder strategy is used to remind the target user to take the target drug when the current system time is a target time point, the target time point is the time point when the target user is detected to be in the non-sleeping state or the latest medication time point in the target medication time range.
[0013] In a third aspect, an embodiment of the present application provides a controller comprising a processor, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the program comprises instructions for executing the steps in the method described in any one of the first aspects.
[0014] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program / instruction stored thereon, wherein the computer program / instruction, when executed by a processor, implements the steps of the method described in any one of the first aspects.
[0015] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements part or all of the steps of the method described in any one of the first aspects of the embodiments of the present application.
[0016] It can be seen that in the present application, the controller of the bipedal robot obtains the basic medication information of the target user, and the basic medication information is used to characterize the standard medication conditions of the target drug corresponding to the target user; the target medication time range of the target user is determined according to the basic medication information, and the target medication time range is used to characterize the time range for the target user to take the target drug; when the current system time is the earliest medication time point in the target medication time range, the target posture is determined, and the target posture is used to characterize the limb movements of the bipedal robot that can obtain at least two image data, and at least two image data are used to characterize the chest rise and fall of the target user; the current state of the target user is determined by the target posture, and the current state includes a sleeping state and a non-sleeping state; when the current state is detected to be a sleeping state, the first medication reminder strategy is executed, and the first medication reminder strategy is used to remind the target user to take the target drug when the current system time is the target time point, and the target time point is the time point when the target user is detected to be in a non-sleeping state or the latest medication time point in the target medication time range. After determining the target medication time range for the target user, when the current system time falls into the target medication time range, the bipedal robot determines the current state of the target user through the target posture, thereby executing the corresponding first medication reminder strategy when the target user is in a sleeping state. In this way, compared with the prior art that directly wakes up the sleeping user when it is time to take medicine, the present application can execute the corresponding medication reminder strategy according to the user's state when it is time to take medicine, thereby improving the intelligence and humanization of assisted medication. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 is a schematic structural diagram of a bipedal robot provided in an embodiment of the present application;
[0019] Figure 2 is a schematic structural diagram of another bipedal robot provided in an embodiment of the present application;
[0020] Figure 3 is a schematic diagram of the structure of a controller in a bipedal robot provided in an embodiment of the present application;
[0021] Figure 4 It is a flowchart of a data processing method for assisting medication provided in an embodiment of the present application;
[0022] Figure 5It is a scenario schematic diagram of a data processing method for assisting medication provided in an embodiment of the present application;
[0023] Figure 6 This is a block diagram of the functional units of a data processing device for assisting medication administration provided in an embodiment of the present application;
[0024] Figure 7 This is a block diagram of the functional units of another data processing device for assisting medication administration provided by an embodiment of the present application;
[0025] Figure 8 It is a structural block diagram of a controller provided in an embodiment of the present application. DETAILED DESCRIPTION
[0026] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0027] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0028] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0029] In the embodiments of the present application, "and / or" describes the association relationship of the associated objects, indicating that three relationships may exist. For example, A and / or B can represent the following three situations: A exists alone; A and B exist at the same time; B exists alone. Among them, A and B can be singular or plural.
[0030] In the embodiment of the present application, the symbol " / " can indicate that the objects associated with each other are in an "or" relationship. In addition, the symbol " / " can also indicate a division sign, that is, performing a division operation. For example, A / B can indicate A divided by B.
[0031] In the embodiments of the present application, "at least one item" or similar expressions refer to any combination of these items, including any combination of single items or plural items, and refer to one or more, and multiple refers to two or more. For example, at least one item of a, b, or c can represent the following seven situations: a, b, c, a and b, a and c, b and c, a, b, and c. Among them, each of a, b, and c can be an element or a set containing one or more elements.
[0032] In the embodiments of the present application, "equal to" can be used in conjunction with greater than, and is applicable to the technical solution adopted when greater than, and can also be used in conjunction with less than, and is applicable to the technical solution adopted when less than. When equal to is used in conjunction with greater than, it is not used in conjunction with less than; when equal to is used in conjunction with less than, it is not used in conjunction with greater than.
[0033] In order to better understand the solutions of the embodiments of the present application, the terminal devices, related concepts and backgrounds that may be involved in the embodiments of the present application are first introduced below.
[0034] Bipedal robots: robots that walk mainly on two legs. Their bipedal structure enables them to walk on all kinds of surfaces, especially in environments where they need to cross complex terrain or avoid obstacles. The design of this type of robot imitates the structure of human lower limbs, including hip joints, knee joints, and ankle joints, and achieves support and coordinated movement of the body through actuators.
[0035] As they age, many users are in poor health and need to take medicines on time and in the right amount, but users tend to forget to take medicines or take the wrong medicines. In the current technical solution, the time of taking each medicine of the user is usually recorded, and when the time of taking medicine arrives, the user is reminded to take a certain amount of the corresponding medicine. However, due to the slowing down of the user's body metabolism and lack of energy, they often fall asleep several times a day. If the user is forcibly awakened to take medicine, not only will the user not be able to rest well, but the user will also be easily frightened, and the degree of intelligence and humanization is low.
[0036] To solve the above problems, an embodiment of the present application provides a data processing method and device for assisted medication. After determining the target medication time range for the target user, when the current system time falls into the target medication time range, the bipedal robot determines the current state of the target user through the target posture, thereby executing the corresponding first medication reminder strategy when the target user is in a sleeping state. In this way, the corresponding medication reminder strategy can be executed according to the user's state when the medication time arrives, thereby improving the intelligence and humanization of assisted medication.
[0037] See also Figure 1 , Figure 1 Schematic diagram of the structure of a bipedal robot provided in an embodiment of the present application. Figure 1 As shown, the biped robot 100 includes a visual sensor module 110, an auditory sensor module 120 and a controller 130, wherein the visual sensor module 110 is communicatively connected to the controller 130, and the auditory sensor module 120 is communicatively connected to the controller 130. The visual sensor module 110 may be a visual sensor or a visual sensor group consisting of a plurality of visual sensors, the auditory sensor module 120 may be an auditory sensor or an auditory sensor group consisting of a plurality of auditory sensors, and the controller 130 may be a controller or a controller group consisting of a plurality of controllers.
[0038] In daily use of the biped robot 100, the controller 130 obtains basic medication information of the target user, and the basic medication information is used to characterize the standard medication conditions of the target drug corresponding to the target user; the target medication time range of the target user is determined according to the basic medication information, and the target medication time range is used to characterize the time range for the target user to take the target drug; when the current system time is the earliest medication time point in the target medication time range, the target posture is determined, and the target posture is used to characterize the limb movements of the biped robot that can obtain at least two image data, and at least two image data are used to characterize the chest rise and fall of the target user; the current state of the target user is determined by the target posture, and the current state includes a sleeping state and a non-sleeping state; when the current state is detected to be a sleeping state, the first medication reminder strategy is executed, and the first medication reminder strategy is used to remind the target user to take the target drug when the current system time is the target time point, and the target time point is the time point when the target user is detected to be in a non-sleeping state or the latest medication time point in the target medication time range.
[0039] See also Figure 2 , Figure 2 Schematic diagram of another bipedal robot provided in the embodiment of the present application. Figure 2As shown, the bipedal robot 100 includes: a robot head 210, a robot torso 220, a first robotic arm 230, a second robotic arm 240, a first robotic leg 250 and a second robotic leg 260, the robot head 210 is connected to the robot torso 220, and the first robotic arm 230, the second robotic arm 240, the first robotic leg 250, and the second robotic leg 260 are connected to the robot torso 220.
[0040] The controller 130 is deployed in the robot head 210 or the robot torso 220 , and the visual sensor module 110 and the auditory sensor module 120 are deployed in the robot head 210 .
[0041] See also Figure 3 , Figure 3 Schematic diagram of the structure of a controller in a bipedal robot provided in an embodiment of the present application. Figure 3 As shown, the controller 130 includes a processor 310 and a memory 320, wherein the processor 310 is in communication with the memory 320. The memory 320 stores one or more programs, and the one or more programs are configured to be executed by the processor 310. The function of the one or more programs is to obtain the basic medication information of the target user, which is used to characterize the standard medication conditions of the target drug corresponding to the target user; determine the target medication time range of the target user based on the basic medication information, and the target medication time range is used to characterize the time range for the target user to take the target drug; when the current system time is the earliest medication time point in the target medication time range, determine the target posture, and the target posture is used to characterize the limb movements of the bipedal robot that can obtain at least two image data, and at least two image data are used to characterize the chest rise and fall of the target user; determine the current state of the target user through the target posture, and the current state includes a sleeping state and a non-sleeping state; when the current state is detected to be a sleeping state, execute the first medication reminder strategy, and the first medication reminder strategy is used to remind the target user to take the target drug when the current system time is the target time point, and the target time point is the time point when the target user is detected to be in a non-sleeping state or the latest medication time point in the target medication time range.
[0042] The following describes a data processing method for assisting medication administration provided by an embodiment of the present application.
[0043] See also Figure 4 , Figure 4 is a flow chart of a data processing method for assisting medication provided by an embodiment of the present application, which is applied to Figure 1The controller 130 in the bipedal robot 100 shown in the figure comprises a visual sensor module 110, an auditory sensor module 120 and a controller 130, wherein the visual sensor module 110 is communicatively connected to the controller 130, and the auditory sensor module 120 is communicatively connected to the controller 130; Figure 4 As shown, the method comprises the following steps:
[0044] Step S401, obtaining basic medication information of the target user.
[0045] The basic medication information is used to represent the standard medication conditions of the target drug corresponding to the target user.
[0046] Among them, the basic medication information of the target user can be obtained, for example, by obtaining a first audio through the auditory sensor module, wherein the first audio is the voice of the target user orally stating the medication information or the voice of the management user orally stating the medication information of the target user, and the management user can be a caregiver, doctor, etc.; or the basic medication information can be received by a terminal device connected to the bipedal robot for communication.
[0047] Step S402: determining a target medication time range for the target user according to the basic medication information.
[0048] The target medication time range is used to represent the time range for the target user to take the target drug.
[0049] Among them, the basic medication information includes the last taking time and the taking time interval corresponding to the target drug. The last taking time refers to the time when the target user last took the target drug. The taking time interval refers to the interval time between two consecutive takings of the target drug by the target user. The taking time interval can be a time range, such as 6-8 hours.
[0050] Wherein, determining the target medication time range of the target user according to the basic medication information includes: determining the target medication time range according to the last medication time and the medication time interval. For example, if the target drug is amlodipine maleate tablets, the last medication time is 9:00 on June 25, 2024, and the medication time interval is 6-8 hours, then the target medication time range is 15:00-17:00 on June 25, 2024.
[0051] Step S403, when the current system time is the earliest medication time point in the target medication time range, determine the target posture.
[0052] The target posture is used to characterize the limb movements of the biped robot that can acquire at least two image data, and the at least two image data are used to characterize the chest rise and fall of the target user.
[0053] Among them, for example, the target medication time range is 15:00-17:00 on June 25, 2024, and the earliest medication time point is 15:00 on June 25, 2024.
[0054] In a possible embodiment, the bipedal robot includes a visual sensing module, and determining the target posture includes: judging whether the bipedal robot can acquire the at least two image data through the visual sensing module with an upright limb movement; if not, acquiring a first distance and a second distance, wherein the first distance is used to characterize the shortest horizontal distance between the visual sensing module and the target obstacle, and the second distance is used to characterize the distance between the target obstacle and the target user, and the bipedal robot is hindered by the target obstacle and cannot acquire the at least two image data with an upright limb movement; determining the target posture according to the first distance and the second distance; if yes, determining the upright limb movement as the target posture.
[0055] Wherein, the biped robot starts to determine the target posture when detecting that the target user is in a target area, and the target area is used to characterize the movable range of the biped robot.
[0056] The target user is in the target area, for example, the target user and the bipedal robot are in the same room, or the door of the room where the target user is located is open, which means that the bipedal robot is allowed to enter.
[0057] When the biped robot detects that the target user is not in the target area, it obtains a preset user sleep time range; and determines the current state according to the current system time and the user sleep time range.
[0058] The target user is not in the target area, for example, the target user and the bipedal robot are not in the same room, and the door of the room where the target user is located is closed, that is, the bipedal robot is not allowed to enter.
[0059] The user sleep time range may be pre-set by the target user, or may be set by the management user for the target user, or may be obtained by the bipedal robot acquiring historical sleep data of the target user and then importing the historical sleep data into a preset sleep prediction model.
[0060] Among them, the judging whether the bipedal robot can obtain the at least two image data through the visual sensor module with upright limb movements may specifically be: judging whether the image data obtained by the bipedal robot with upright limb movements through the visual sensor module contains the chest of the target user.
[0061] Wherein, determining the target posture according to the first distance and the second distance includes: determining the sum of the first distance and the second distance as the target distance between the bipedal robot and the target user; determining the forward tilt angle of the bipedal robot according to the target distance and a first length to obtain the target posture, wherein the first length is the distance between the upper body forward tilt joint in the mechanical torso of the bipedal robot and the visual sensing module.
[0062] Among them, the forward tilt angle of the biped robot is determined according to the target distance and the first length to obtain the target posture, which can be specifically based on the following formula: cosA=b / a, wherein A is the forward tilt angle, b is the target distance, and a is the first length.
[0063] See also Figure 5 , Figure 5 Schematic diagram of a scenario of a data processing method for assisting medication provided in an embodiment of the present application. Figure 5 As shown, the target user 510 lies on the bed 520 on his side, and the edge of the bed 520 closest to the bipedal robot 100, i.e., the edge of the bed, is the target obstacle 521. The shortest distance between the bipedal robot 100 and the target obstacle 521 is the first distance 501. The distance between the target user 510 and the target obstacle 521 is the second distance 502. The sum of the first distance 501 and the second distance 502 is the target distance b. The forward tilt angle is determined according to the target distance b and the first length a.
[0064] It can be seen that in this example, the controller enables the bipedal robot to acquire at least two image data for the target posture of the upright limb movement when it is able to acquire at least two image data with the upright limb movement, and acquire at least two image data with the target posture determined according to the first distance and the second distance when it is unable to acquire at least two image data with the upright limb movement, thereby improving the success rate of the bipedal robot in acquiring at least two image data, thereby improving the success rate of determining the current state of the target user, so that the corresponding first medication reminder strategy is executed when the target user is in a sleeping state. In this way, compared with the prior art that directly wakes up the sleeping user when it is time to take medicine, the present application can execute the corresponding medication reminder strategy according to the user's state when it is time to take medicine, thereby improving the intelligence and humanization of assisted medication.
[0065] Step S404: determining the current state of the target user through the target posture.
[0066] The current state includes a sleeping state and a non-sleeping state.
[0067] Wherein, the basic medication information includes the target drug name and the target single-time dosage of the target drug. After determining the current state of the target user through the target posture, wherein the current state includes a sleeping state and a non-sleeping state, the method further includes: when it is detected that the current state is the non-sleeping operation, executing a second medication reminder strategy, wherein the second medication reminder strategy includes outputting a first reminder message, wherein the first reminder message is used to remind the target user to take the target drug; obtaining a first drug name, wherein the first drug name is the drug name of the drug picked up by the target user; and determining whether the first drug name is the target drug name; if not, output a second reminder message until it is detected that the first drug name is the target drug name, and the second reminder message is used to remind the target user to pick up the drug with the target drug name; if so, obtain the first drug usage amount, and the first drug usage amount is the amount of the target drug taken by the target user; determine whether the first drug usage amount is the target single usage amount; if not, output a third reminder message until it is detected that the first drug usage amount is the target single usage amount, and the third reminder message is used to remind the target user to take the target drug according to the target single usage amount.
[0068] In a possible embodiment, determining the current state of the target user through the target posture includes: adjusting the current posture to the target posture, the current posture is used to characterize the current limb movement of the bipedal robot; acquiring the at least two image data and active audio data of the target user, the active audio data is used to characterize the breathing sound of the target user; and determining the current state based on the at least two image data and the active audio data.
[0069] Among them, adjusting the current posture to the target posture may specifically be: the bipedal robot walks to a position corresponding to the first distance by means of the first mechanical leg and the second mechanical leg, and rotates the upper body forward leaning joint according to the forward leaning angle.
[0070] Wherein, the bipedal robot obtains the at least two image data through the visual sensor module, and the bipedal robot obtains the activity audio data through the auditory sensor module.
[0071] It can be seen that in this example, the controller adjusts the bipedal robot from the current posture to the target posture, and obtains at least two data images and active audio in the target posture, thereby improving the success rate of the bipedal robot in obtaining at least two image data and the quality of the obtained active audio, so that the current state of the target user can be determined based on the at least two image data and the active audio data, and the corresponding first medication reminder strategy is executed when the target user is in a sleep state. In this way, compared with the prior art that directly wakes up the sleeping user when it is time to take medicine, the present application can execute the corresponding medication reminder strategy according to the user's state when it is time to take medicine, thereby improving the intelligence and humanization of assisted medication.
[0072] In a possible embodiment, determining the current state based on the at least two image data and the active audio data includes: determining the breathing fluctuation data of the target user based on the at least two image data; determining a first similarity based on the breathing fluctuation data and preset sleep breathing fluctuation data; determining the breathing sound data of the target user based on the active audio data; determining a second similarity based on the breathing sound data and preset sleep breathing sound data; determining a target similarity based on the first similarity and the second similarity; obtaining a preset target threshold; determining whether the target similarity is greater than the target threshold; if so, determining that the current state is the sleep state; if not, determining that the current state is the non-sleep state.
[0073] The respiratory fluctuation data is obtained by performing image recognition on the at least two images.
[0074] The sleep breathing fluctuation data may be obtained by the bipedal robot from historical sleep image data of the target user and determined according to the historical sleep image data.
[0075] The sleep breathing sound data may be obtained by the bipedal robot from historical activity audio data of the target user, and determined according to the historical activity audio data.
[0076] The breathing sound data is obtained by filtering, denoising and audio information recognition of the activity audio data.
[0077] The determining of the target similarity according to the first similarity and the second similarity includes: acquiring a preset first weight and a second weight; and determining the target similarity according to the first weight, the second weight, the first similarity and the second similarity.
[0078] The determining of the target similarity according to the first weight, the second weight, the first similarity and the second similarity may specifically be: Mm+Nn=X, where M is the first similarity, m is the first weight, N is the second similarity, n is the second weight, and X is the target similarity.
[0079] It can be seen that in this example, a first similarity is determined based on at least two image data, a second similarity is determined based on the active audio data, and then a target similarity is determined based on the first similarity and the second similarity, thereby determining whether the current state is a sleeping state or a non-sleeping state, and thereby executing a corresponding first medication reminder strategy when the target user is in a sleeping state. In this way, the corresponding medication reminder strategy can be executed according to the user's state when it is time to take the medication, thereby improving the intelligence and humanization of assisted medication.
[0080] Step S405: when it is detected that the current state is the sleeping state, executing a first medication reminder strategy.
[0081] Wherein, before executing the first medication reminder strategy, the bipedal robot returns to an upright limb movement.
[0082] Among them, the first medication reminder strategy is used to remind the target user to take the target medicine when the current system time is the target time point, and the target time point is the time point when the target user is detected to be in the non-sleeping state or the latest medication time point in the target medication time range.
[0083] Among them, for example, the target medication time range is 15:00-17:00 on June 25, 2024, and the latest medication time point is 17:00 on June 25, 2024.
[0084] In a possible embodiment, the first medication reminder strategy specifically includes the following steps: obtaining preset user setting information, the user setting information being used to indicate whether it is allowed to immediately wake up the target user to take the target medicine; if the user setting information is allowed, immediately executing the first medication reminder operation; if the user setting information is not allowed, determining the target time point; and executing the first medication reminder operation when the current system time is the target time point.
[0085] The user setting information may be pre-set by the target user, or may be set by the management user for the target user.
[0086] It can be seen that in this example, when the current state of the target user is the sleeping state, the first medication reminder strategy is executed to obtain the preset user setting information and perform different processing actions according to the user setting information. In this way, the corresponding medication reminder strategy can be executed according to the user's preferences and the user's state when it is time to take the medicine, thereby improving the intelligence and humanization of assisted medication.
[0087] In a possible embodiment, the basic medication information includes the target drug name and target single dosage of the target drug, and the first medication reminder operation specifically includes the following steps: outputting a first reminder message, the first reminder message is used to remind the target user to take the target drug; obtaining a first drug name, the first drug name is the drug name of the drug picked up by the target user; judging whether the first drug name is the target drug name; if not, outputting a second reminder message until it is detected that the first drug name is the target drug name, the second reminder message is used to remind the target user to pick up the drug with the target drug name; if so, obtaining a first drug dosage, the first drug dosage is the dosage of the target drug taken by the target user; judging whether the first drug dosage is the target single dosage; if not, outputting a third reminder message until it is detected that the first drug dosage is the target single dosage, the third reminder message is used to remind the target user to take the target drug according to the target single dosage.
[0088] Wherein, the biped robot includes a voice output module, and the voice output module is arranged on the robot head of the biped robot. The voice output module can be a speaker, or a speaker group composed of multiple speakers.
[0089] Wherein, the bipedal robot outputs the first reminder information, the second reminder information and the third reminder information through the voice output module.
[0090] Among them, the bipedal robot obtains the name of the first medicine and the amount of the first medicine to be taken through the visual sensing module.
[0091] It can be seen that in this example, when the target user is in a sleeping state and is allowed to wake up immediately to take medicine, the first reminder information is output to remind the target user to take the target medicine, the second reminder information is output to remind the target user to take the correct medicine, and the third reminder information is input to remind the user to take the correct amount of target medicine. In this way, not only can the user be assisted to take the medicine correctly, but also the corresponding medication reminder strategy can be executed according to the user's preferences and the user's status when it is time to take the medicine, thereby improving the intelligence and humanization of assisted medication.
[0092] In a possible embodiment, if the user setting information is not allowed, determining the target time point includes: obtaining preset delay setting information, the delay setting information being used to characterize the priority of the target user to keep asleep and take the target medicine in time; if the delay setting information indicates that the priority of keeping asleep is higher than the priority of taking the target medicine in time, determining the target time point as the time point when the target user is detected to be in the non-sleep state; if the delay setting information indicates that the priority of keeping asleep is lower than the priority of taking the target medicine in time, determining the target time point as the latest medication time point in the target medication time range.
[0093] For example, if the target drug is vitamin B6 tablets, there is no need to strictly control the time of taking the target drug. The management user can set the delay setting information to: first priority: keep sleeping, second priority: take the target drug in time, and the first priority is higher than the second priority.
[0094] It can be seen that in this application, the target time point is determined according to the delay setting information. This not only can assist users in taking medicine correctly, but also can execute corresponding medication reminder strategies based on user preferences and the user's status when it is time to take medicine, thereby improving the intelligence and humanity of assisted medication.
[0095] The above mainly introduces the scheme of the embodiment of the present application from the perspective of the execution process on the method side. It is understandable that, in order to realize the above functions, the controller includes a hardware structure and / or software module corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiment provided herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.
[0096] In accordance with the above-mentioned embodiments, please refer to Figure 6 , Figure 6 is a block diagram of the functional units of a data processing device for assisting medication administration provided by an embodiment of the present application, such as Figure 6As shown, the data processing device 600 for assisting medication includes: a first receiving unit 601, used to obtain basic medication information of a target user, the basic medication information is used to characterize the standard medication conditions of a target drug corresponding to the target user; a first processing unit 602, used to determine a target medication time range for the target user based on the basic medication information, the target medication time range is used to characterize the time range for the target user to take the target drug; when the current system time is the earliest medication time point in the target medication time range, determine a target posture, the target posture is used to characterize the limb movement of the bipedal robot that can obtain at least two image data, the at least two image data are used to characterize the chest rise and fall of the target user; determine the current state of the target user through the target posture, the current state includes a sleeping state and a non-sleeping state; when it is detected that the current state is the sleeping state, execute a first medication reminder strategy, the first medication reminder strategy is used to remind the target user to take the target drug when the current system time is a target time point, the target time point is the time point when the target user is detected to be in the non-sleeping state or the latest medication time point in the target medication time range.
[0097] In a possible embodiment, the bipedal robot includes a visual sensing module. In terms of determining the target posture, the first processing unit 602 is specifically used to: determine whether the bipedal robot can obtain the at least two image data through the visual sensing module with upright limb movements; if not, obtain a first distance and a second distance, the first distance is used to characterize the shortest horizontal distance between the visual sensing module and the target obstacle, and the second distance is used to characterize the distance between the target obstacle and the target user, and the bipedal robot is hindered by the target obstacle and cannot obtain the at least two image data with upright limb movements; determine the target posture according to the first distance and the second distance; if yes, determine the upright limb movement as the target posture.
[0098] In a possible embodiment, in terms of determining the current state of the target user through the target posture, the first processing unit 602 is specifically used to: adjust the current posture to the target posture, the current posture is used to characterize the current limb movement of the bipedal robot; obtain the at least two image data and active audio data of the target user, the active audio data is used to characterize the breathing sound of the target user; determine the current state based on the at least two image data and the active audio data.
[0099] In a possible embodiment, in terms of determining the current state based on the at least two image data and the active audio data, the first processing unit 602 is specifically used to: determine the breathing fluctuation data of the target user based on the at least two image data; determine a first similarity based on the breathing fluctuation data and preset sleep breathing fluctuation data; determine the breathing sound data of the target user based on the active audio data; determine a second similarity based on the breathing sound data and preset sleep breathing sound data; determine a target similarity based on the first similarity and the second similarity; obtain a preset target threshold; determine whether the target similarity is greater than the target threshold; if so, determine that the current state is the sleep state; if not, determine that the current state is the non-sleep state.
[0100] In a possible embodiment, the data processing device 600 for assisting medication is further specifically used to: obtain preset user setting information, the user setting information is used to indicate whether it is allowed to immediately wake up the target user to take the target medicine; if the user setting information is allowed, immediately execute the first medication reminder operation; if the user setting information is not allowed, determine the target time point; when the current system time is the target time point, execute the first medication reminder operation.
[0101] In a possible embodiment, the basic medication information includes the target drug name and target single dosage of the target drug, and the data processing device 600 for auxiliary medication is also specifically used to: output a first reminder message, the first reminder message is used to remind the target user to take the target drug; obtain a first drug name, the first drug name is the drug name of the drug picked up by the target user; determine whether the first drug name is the target drug name; if not, output a second reminder message until it is detected that the first drug name is the target drug name, the second reminder message is used to remind the target user to pick up the drug with the target drug name; if so, obtain the first drug dosage, the first drug dosage is the dosage of the target drug taken by the target user; determine whether the first drug dosage is the target single dosage; if not, output a third reminder message until it is detected that the first drug dosage is the target single dosage, the third reminder message is used to remind the target user to take the target drug according to the target single dosage.
[0102] In a possible embodiment, in terms of determining the target time point if the user setting information is not allowed, the first processing unit 602 is specifically used to: obtain preset delay setting information, the delay setting information being used to characterize the priority of the target user to keep asleep and take the target medicine in time; if the delay setting information is that the priority of keeping asleep is higher than the priority of taking the target medicine in time, then the target time point is determined to be the time point when the target user is detected to be in the non-sleep state; if the delay setting information is that the priority of keeping asleep is lower than the priority of taking the target medicine in time, then the target time point is determined to be the latest medication time point in the target medication time range.
[0103] It can be understood that since the method embodiment and the device embodiment are different presentation forms of the same technical concept, the content of the method embodiment part in this application should be synchronously adapted to the device embodiment part and will not be repeated here.
[0104] In the case of integrated units, such as Figure 7 As shown, Figure 7 This is a block diagram of the functional units of another data processing device for assisting medication administration provided by an embodiment of the present application. Figure 7 In the embodiment, the data processing device 600 for assisting medication administration includes: a processing module 712 and a communication module 711. The processing module 712 is used to control and manage the actions of the data processing device 600 for assisting medication administration, for example, to execute the steps of the first receiving unit 601 and the first processing unit 602, and / or other processes for executing the technology described herein. The communication module 711 is used to support the interaction between the data processing device 600 for assisting medication administration and other devices. Figure 7 As shown, the data processing device 600 for assisting medication administration may further include a storage module 713, and the storage module 713 is used to store program codes and data of the data processing device 600 for assisting medication administration.
[0105] Among them, the processing module 712 can be a processor or a controller, for example, a central processing unit (CPU), a general processor, a digital signal processor (DSP), an ASIC, an FPGA or other programmable logic device, a transistor logic device, a hardware component or any combination thereof. It can implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. The processor can also be a combination that implements a computing function, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like. The communication module 711 can be a transceiver, an RF circuit or a communication interface, and the like. The storage module 713 can be a memory.
[0106] Among them, all relevant contents of each scenario involved in the above method embodiment can be referred to the functional description of the corresponding functional module, and will not be repeated here. The above-mentioned data processing device 600 for assisting medication can execute the above-mentioned Figure 4 The data processing method for assisting medication is shown.
[0107] The above embodiments may be implemented in whole or in part by software, hardware, firmware or any other combination thereof. When implemented using software, the above embodiments may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired or wireless means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media sets. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium. The semiconductor medium may be a solid-state hard disk.
[0108] Figure 8 is a structural block diagram of a controller provided in an embodiment of the present application. Figure 8 As shown, the controller 130 may include one or more of the following components: a processor 310, and a memory 320 coupled to the processor 310, wherein the memory 320 may store one or more computer programs 321, and the one or more computer programs 321 may be configured to implement the methods described in the above embodiments when executed by one or more processors 310.
[0109] The processor 310 may include one or more processing cores. The processor 310 uses various interfaces and lines to connect the various parts of the entire controller 130, and executes various functions and processes data of the controller 130 by running or executing instructions, programs, code sets or instruction sets stored in the memory 320, and calling data stored in the memory 320. Optionally, the processor 310 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 310 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 310, but may be implemented separately through a communication chip.
[0110] The memory 320 may include a random access memory (RAM) or a read-only memory (ROM). The memory 320 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 320 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc. The data storage area may also store data created by the controller 130 during use, etc.
[0111] It is understandable that the controller 130 may include more or fewer structural elements than those in the above structural block diagram, which is not limited here. The present application embodiment provides a computer-readable storage medium on which a computer program / instruction is stored, and when the computer program / instruction is executed by a processor, the steps of the method described in any possible embodiment are implemented.
[0112] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0113] In the several embodiments provided in the present application, it should be understood that the disclosed methods, devices and systems can be implemented in other ways. For example, the device embodiments described above are merely schematic; for example, the division of the unit is only a logical function division, and there may be other division methods in actual implementation; for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0114] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0115] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may be physically included separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0116] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform some steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a volatile memory or a non-volatile memory. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM) or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM) and direct RAM bus random access memory (DR RAM), among other media that can store program code.
[0117] Although the present invention is disclosed as above, the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions without departing from the spirit and scope of the present invention, and can make various changes and modifications, including the combination of the above-mentioned different functions and implementation steps, including software and hardware implementation methods, all of which are within the scope of protection of the present invention.
Claims
1. A data processing method for assisting medication, characterized in that: A controller applied to a biped robot, the method comprising: Acquire basic medication information of a target user, where the basic medication information is used to represent a standard medication condition of a target drug corresponding to the target user; Determine a target medication time range for the target user according to the basic medication information, wherein the target medication time range is used to represent a time range for the target user to take the target drug; When the current system time is the earliest medication time point in the target medication time range, determining a target posture, wherein the target posture is used to characterize a limb movement of the biped robot that can acquire at least two image data, and the at least two image data are used to characterize the chest rise and fall of the target user; Determine the current state of the target user through the target posture, where the current state includes a sleeping state and a non-sleeping state; When it is detected that the current state is the sleeping state, a first medication reminder strategy is executed, wherein the first medication reminder strategy is used to remind the target user to take the target medicine when the current system time is a target time point, and the target time point is the time point when the target user is detected to be in the non-sleeping state or the latest medication time point in the target medication time range; When it is detected that the current state is the non-sleeping state, a second medication reminder strategy is executed, where the second medication reminder strategy is used to remind the target user to take the target medicine.
2. The method according to claim 1, characterized in that The first medication reminder strategy specifically includes the following steps: Acquire preset user setting information, where the user setting information is used to indicate whether to allow the target user to be immediately awakened to take the target drug; If the user setting information is permission, the first medication reminder operation is immediately executed; If the user setting information indicates that the device is not allowed, the target time point is determined; when the current system time is the target time point, the first medication reminder operation is performed.
3. The method according to claim 2, characterized in that The basic medication information includes the target drug name and the target single dose of the target drug. The first medication reminder operation specifically includes the following steps: Outputting first reminder information, where the first reminder information is used to remind the target user to take the target medicine; Obtaining a first drug name, where the first drug name is the drug name of the drug picked up by the target user; Determining whether the first drug name is the target drug name; If not, output a second reminder message until it is detected that the first drug name is the target drug name, and the second reminder message is used to remind the target user to pick up the drug with the target drug name; If so, obtain the first drug taking amount, which is the amount of the target drug taken by the target user; determine whether the first drug taking amount is the target single taking amount; if not, output a third reminder message until it is detected that the first drug taking amount is the target single taking amount, and the third reminder message is used to remind the target user to take the target drug according to the target single taking amount.
4. The method according to claim 2, characterized in that: If the user setting information is not allowed, determining the target time point includes: Acquire preset delay setting information, where the delay setting information is used to represent the priority of the target user to keep sleeping and take the target medicine in time; If the delay setting information indicates that the priority of maintaining sleep is higher than the priority of taking the target medicine in time, determining the target time point as the time point when the target user is detected to be in the non-sleeping state; If the delay setting information indicates that the priority of maintaining sleep is lower than the priority of taking the target medicine in time, the target time point is determined to be the latest medication time point in the target medication time range.
5. The method according to claim 1, characterized in that The determining the current state of the target user by using the target posture includes: Adjusting the current posture to the target posture, wherein the current posture is used to represent the current limb movement of the biped robot; Acquire the at least two image data and activity audio data of the target user, where the activity audio data is used to characterize the breathing sound of the target user; The current state is determined according to the at least two pieces of image data and the active audio data.
6. The method according to claim 5, characterized in that The determining the current state according to the at least two pieces of image data and the active audio data comprises: Determine the breathing fluctuation data of the target user according to the at least two image data; Determining a first similarity according to the breathing fluctuation data and preset sleep breathing fluctuation data; Determining breathing sound data of the target user according to the activity audio data; determining a second similarity based on the breathing sound data and preset sleep breathing sound data; Determine a target similarity according to the first similarity and the second similarity; Get the preset target threshold; Determine whether the target similarity is greater than the target threshold; If yes, determining that the current state is the sleeping state; If not, it is determined that the current state is the non-sleep state.
7. The method according to claim 5, characterized in that The biped robot includes a visual sensing module, and the step of determining a target posture includes: Determining whether the bipedal robot can acquire the at least two pieces of image data through the visual sensing module with upright limb movements; If not, then obtaining a first distance and a second distance, wherein the first distance is used to represent the shortest horizontal distance between the visual sensing module and the target obstacle, and the second distance is used to represent the distance between the target obstacle and the target user, and the bipedal robot is hindered by the target obstacle and cannot obtain the at least two image data with an upright limb movement; determining the target posture according to the first distance and the second distance; If so, the upright limb action is determined as the target posture.
8. A data processing device for assisting medication, characterized in that: A controller for a bipedal robot, the device comprising: A first receiving unit is used to obtain basic medication information of a target user, where the basic medication information is used to represent a standard medication condition of a target drug corresponding to the target user; a first processing unit, configured to determine a target medication time range for the target user according to the basic medication information, the target medication time range being used to characterize a time range for the target user to take the target drug; when the current system time is the earliest medication time point in the target medication time range, determine a target posture, the target posture being used to characterize a limb movement of the biped robot that can obtain at least two image data, the at least two image data being used to characterize the chest rise and fall of the target user; determine a current state of the target user through the target posture, the current state including a sleeping state and a non-sleeping state; when it is detected that the current state is the sleeping state, execute a first medication reminder strategy, the first medication reminder strategy being used to remind the target user to take the target drug when the current system time is a target time point, the target time point being the time point when the target user is detected to be in the non-sleeping state or the latest medication time point in the target medication time range; when it is detected that the current state is the non-sleeping state, execute a second medication reminder strategy, the second medication reminder strategy being used to remind the target user to take the target drug.
9. A controller, characterized in that: The method comprises a processor, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the one or more programs include instructions for executing the steps in the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: A computer program / instruction is stored thereon, and when the computer program / instruction is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
