Control method and device of intelligent mattress, intelligent mattress, and storage medium
The smart mattress solves the problem of shoulder and neck fatigue caused by long-term use by detecting the length of time the user's electronic device is used and sending multimedia resources to guide relaxation exercises, achieving muscle relaxation and improving user experience.
Patent Information
- Application Number
- CN202211013229.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-23
- Publication Date
- 2025-10-10
- Estimated Expiration
- 2042-08-23
AI Technical Summary
Users who use electronic devices for a long time will suffer from fatigue and soreness in the shoulders and neck, and other parts of the body. Existing technologies have failed to effectively solve this problem.
The smart mattress detects the length of time the user uses electronic devices. When a certain length of time is reached, it sends multimedia resources to the device to guide the user to perform muscle relaxation exercises, including video, audio or picture resources, combined with body movement matching feedback and posture adjustment to optimize the relaxation effect.
Effectively prevent users from muscle soreness, improve the standardization and safety of relaxation exercises, temporarily occupy equipment to avoid continued use, and enhance user experience.
Smart Images

Figure CN115291533B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of smart home, in particular to a control method and device of a smart mattress, the smart mattress and a storage medium. BACKGROUND
[0002] With the rapid development of electronic device technology, nowadays, electronic devices such as mobile phones and tablet computers are widely used by users due to their convenience.
[0003] It is found in practice that users lie on a bed for a long time to use electronic devices, which can cause fatigue and even soreness of the user's shoulder, neck, waist and other parts. In this regard, how to avoid users using electronic devices for a long time has become a problem to be solved. SUMMARY
[0004] The embodiments of the present application disclose a control method and device of a smart mattress, the smart mattress and a storage medium, which can control an electronic device to output multimedia resources to guide a user to perform muscle relaxation exercises when it is detected that the user uses the electronic device on the smart mattress for a long time.
[0005] The first aspect of the embodiments of the present application discloses a control method of a smart mattress, and the method comprises:
[0006] In a case where it is determined that a user uses an electronic device on the smart mattress, the use duration of the electronic device is acquired;
[0007] If the use duration of the electronic device reaches a first duration, a target multimedia resource is sent to the electronic device, so that the electronic device plays the target multimedia resource, and the target multimedia resource is used to guide the user to perform muscle relaxation exercises.
[0008] As an optional implementation manner, in the first aspect of the embodiments of the present application, the target multimedia resource comprises a video resource; and after the target multimedia resource is sent to the electronic device, the method further comprises:
[0009] A first body action currently made by the user is acquired, and a second body action included in a target video picture currently played by the electronic device is acquired;
[0010] A target score is generated according to a matching degree between the first body action and the second body action, wherein the target score is in a positive correlation with the matching degree;
[0011] The target score is outputted.
[0012] As an optional implementation, in the first aspect of the embodiment of the present application, after the target score is generated according to the matching degree between the first limb action and the second limb action, the method further comprises:
[0013] If the target score is lower than a score threshold, a first control instruction is sent to the electronic device, the first control instruction being used for instructing the electronic device to repeatedly play the target video picture.
[0014] Alternatively, if the target score is lower than the score threshold, a second control instruction is sent to the electronic device, the second control instruction being used for instructing the electronic device to reduce the playing speed of playing the video resource.
[0015] As an optional implementation, in the first aspect of the embodiment of the present application, before the target multimedia resource is sent to the electronic device, the method further comprises:
[0016] Determining a target posture of the user in the process of using the electronic device;
[0017] Determining a corresponding target multimedia resource according to the target posture, wherein if the target posture is a sitting posture, the target multimedia resource is used for guiding the user to perform a waist muscle relaxation exercise; and if the target posture is a lying posture, the target multimedia resource is used for guiding the user to perform a shoulder muscle and neck muscle relaxation exercise.
[0018] As an optional implementation, in the first aspect of the embodiment of the present application, after the target multimedia resource is sent to the electronic device, the method further comprises:
[0019] In a case where it is detected that the user completes the muscle relaxation exercise, a deletion instruction is sent to the electronic device, the deletion instruction being used for instructing the electronic device to stop playing the target multimedia resource and deleting the target multimedia resource.
[0020] The second aspect of the embodiment of the present application discloses a control device of an intelligent mattress, the device comprising:
[0021] A first acquisition unit is configured to acquire a use duration of an electronic device in a case where it is determined that a user uses the electronic device on the intelligent mattress.
[0022] A first sending unit is configured to send a target multimedia resource to the electronic device to make the electronic device play the target multimedia resource when the use duration of the electronic device reaches a first duration, the target multimedia resource being used for guiding the user to perform a muscle relaxation exercise.
[0023] As an optional implementation manner, in the second aspect of the embodiment of the present application, the target multimedia resource includes a video resource, and the apparatus further includes:
[0024] a second acquiring unit, configured to acquire, after the first sending unit sends the target multimedia resource to the electronic device, a first body movement currently performed by the user and a second body movement included in a target video currently played by the electronic device;
[0025] a generating unit, configured to generate a target score according to a degree of matching between the first limb movement and the second limb movement, wherein the target score is positively correlated with the degree of matching;
[0026] An output unit is configured to output the target score.
[0027] As an optional implementation manner, in the second aspect of the embodiments of the present application, the apparatus further includes:
[0028] a second sending unit, configured to send a first control instruction to the electronic device when the target score is lower than a score threshold, wherein the first control instruction is used to instruct the electronic device to repeatedly play the target video image;
[0029] The second sending unit is further configured to send a second control instruction to the electronic device when the target score is lower than a score threshold, wherein the second control instruction is configured to instruct the electronic device to reduce a playback speed of the video resource.
[0030] A third aspect of the present application discloses a smart mattress, comprising:
[0031] a memory storing executable program code;
[0032] a processor coupled to the memory;
[0033] The processor calls the executable program code stored in the memory to execute the control method of the smart mattress disclosed in the first aspect of the embodiment of the present application.
[0034] A fourth aspect of an embodiment of the present application discloses a computer-readable storage medium storing a computer program, wherein the computer program enables a computer to execute the control method of the smart mattress disclosed in the first aspect of the embodiment of the present application.
[0035] The fifth aspect of the embodiments of the present application discloses a computer program product. When the computer program product is run on a computer, the computer is caused to execute part or all of the steps of any one of the methods of the first aspect of the embodiments of the present application.
[0036] The sixth aspect of the embodiments of the present application discloses an application publishing platform, which is used to publish a computer program product. When the computer program product runs on a computer, the computer executes part or all of the steps of any one of the methods of the first aspect of the embodiments of the present application.
[0037] Compared with the related art, the embodiments of the present application have the following beneficial effects:
[0038] In an embodiment of the present application, when a user is using an electronic device while sitting on a smart mattress, the smart mattress can obtain the usage time of the electronic device, and then when it is determined that the usage time of the electronic device reaches a first time, the smart mattress can determine that the user has used the electronic device for too long. In response, the smart mattress can send a target multimedia resource to the electronic device so that the electronic device plays the target multimedia resource; wherein, the target multimedia resource can be a multimedia resource for guiding the user to perform muscle relaxation exercises, so that the user's muscles can be relaxed after using the electronic device for a long time, thereby avoiding the user's muscles from becoming sore due to long-term use of the electronic device; in addition, by guiding the user to perform muscle relaxation exercises through professional guidance information in the target multimedia resource, the user's movements can also be made more standard, avoiding the user from being injured due to non-standard movements during muscle relaxation exercises; further, since playing the target multimedia resource can temporarily occupy the electronic device, the user can also be prevented from continuing to use the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments. 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 creative work.
[0040] Figure 1 This is a schematic diagram of an application scenario disclosed in an embodiment of the present application;
[0041] Figure 2 This is a flow chart of a control method for a smart mattress disclosed in an embodiment of the present application;
[0042] Figure 3 This is a flow chart of another method for controlling a smart mattress disclosed in an embodiment of the present application;
[0043] Figure 4 This is a flow chart of another method for controlling a smart mattress disclosed in an embodiment of the present application;
[0044] Figure 5 This is a schematic structural diagram of a control device for a smart mattress disclosed in an embodiment of the present application;
[0045] Figure 6 This is a structural diagram of a smart mattress disclosed in an embodiment of the present application. DETAILED DESCRIPTION
[0046] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0047] It should be noted that the terms "first," "second," "third," and "fourth" in the specification and claims of this application are used to distinguish different objects rather than to describe a specific order. The terms "including" and "having," as well as any variations thereof, in the embodiments of this application are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus comprising a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units that are not explicitly listed or are inherent to these processes, methods, products, or apparatuses.
[0048] The embodiments of the present application disclose a control method and device for a smart mattress, a smart mattress, and a storage medium. When detecting that a user has used an electronic device for a long time on the smart mattress, the device can control the electronic device to output multimedia resources to guide the user to perform muscle relaxation exercises.
[0049] The technical solution of this application will be described in detail below with reference to specific embodiments.
[0050] In order to more clearly explain the control method and device of the smart mattress, the smart mattress, and the storage medium disclosed in the embodiments of this application, an application scenario suitable for the method is first introduced. Figure 1 , Figure 1 1 is a schematic diagram of an application scenario disclosed in an embodiment of the present application. Optionally, the method can be applied to a smart mattress 110. Optionally, when a user is located on the smart mattress 110, if the smart mattress 110 detects that the user is using an electronic device 120, a communication connection can be established with the electronic device 120.
[0051] Optionally, the smart mattress 110 can also establish communication connections with other smart home devices (including smart speakers, smart curtains or smart lamps, etc., not limited here) or other devices. Figure 1 This should not be construed as limiting the embodiments of the present application.
[0052] Optionally, the electronic device 120 may include portable electronic devices such as mobile phones and tablet computers, wearable devices such as smart watches and smart bracelets, or desktop electronic devices such as desktop computers and televisions, which are not limited here. Figure 1 The mobile phone is used as an example for illustration, which should not be construed as limiting the embodiments of the present application.
[0053] In practice, it has been found that with the rapid development of electronic devices, users often use electronic devices for long periods of time, which causes fatigue and even soreness in the user's shoulders and neck, which is not conducive to maintaining the user's physical health. In this regard, in an embodiment of the present application, when the smart mattress 110 detects that the user is using the electronic device 120 while sitting on the smart mattress, it can obtain the usage time of the electronic device 120 through a communication connection; further, when it is determined that the usage time of the electronic device 120 reaches a first time (for example, 20 minutes or 30 minutes, etc., which is not limited here), the smart mattress 110 can send a target multimedia resource to the electronic device 120, and the electronic device 120 can play the target multimedia resource to guide the user to perform muscle relaxation exercises, thereby preventing the user's muscles from soreness due to long-term use of the electronic device and improving the user's user experience; in addition, by guiding the user to perform muscle relaxation exercises through professional guidance information in the target multimedia resource, the user's relaxation movements can be more standardized, avoiding injuries caused by non-standard movements during muscle relaxation exercises; further, since playing the target multimedia resource can temporarily occupy the electronic device, it can also prevent the user from continuing to use the electronic device.
[0054] Based on this, the control method of the smart mattress disclosed in the embodiment of the present application is introduced below.
[0055] See also Figure 2 , Figure 2 This is a flow chart of a control method for a smart mattress disclosed in an embodiment of the present application. Optionally, the method can be applied to the above-mentioned smart mattress, or other execution entities, without limitation herein. The method may include the following steps:
[0056] 202. When it is determined that the user is using the electronic device while on the smart mattress, obtain the usage time of the electronic device.
[0057] In an embodiment of the present application, the smart mattress may include a pressure sensor that can be used to detect pressure acting on the smart mattress. Optionally, the smart mattress may include a controller (e.g., a central processing unit, a single-chip microcomputer, etc.) that can be used to perform various logical operations and controls. Furthermore, when the controller detects pressure acting on the smart mattress via the pressure sensor, it can determine that the user is located on the smart mattress.
[0058] Optionally, if pressure acting on the smart mattress is detected, the smart mattress can further determine whether a target pressure value corresponding to the detected pressure is within a first numerical range. The first numerical range can roughly represent the pressure exerted on the mattress by a person lying on the mattress. For example, 500N to 600N or 550N to 600N, etc., are not limited here. Therefore, if the target pressure value is within the first numerical range, the smart mattress can determine that the user is located on the smart mattress.
[0059] By implementing the above method, the smart mattress can determine that the user is located on the smart mattress only when it determines that the pressure acting on the mattress is roughly equal to the pressure of a human body lying on the mattress, thereby avoiding misjudgment by the smart mattress and further preventing the smart mattress from frequently sending target multimedia resources to electronic devices, thereby reducing the power consumption of the smart mattress.
[0060] In other embodiments, the smart mattress may capture a first image of the smart mattress and extract first image feature information corresponding to the first image. If the first image feature information includes first image feature information that matches human body feature information, the user is determined to be located on the smart mattress. Optionally, the first image feature information may include one or more of contour feature information, texture feature information, and color feature information, which are not limited herein.
[0061] Furthermore, when the smart mattress determines that the user is on the smart mattress, it can determine whether the user is using an electronic device; if it is determined that the user is using an electronic device, the smart mattress can establish a communication connection with the electronic device (wherein the communication connection includes but is not limited to: Bluetooth communication connection, WIFI communication connection, etc., which are not limited here), and then the smart mattress can obtain the usage time of the electronic device through the communication connection.
[0062] Optionally, upon determining that the user is located on the smart mattress, the smart mattress may further capture a second image of the user and extract second image feature information from the second image. If the second image feature information includes second image feature information that matches the electronic device feature information, the user may be determined to be using an electronic device on the smart mattress. Optionally, the second image feature information may include one or more of contour feature information, texture feature information, and color feature information, which are not limited herein.
[0063] In another embodiment, when the smart mattress determines that the user is located on the smart mattress, it can search whether there is a communication access point of the electronic device (for example, a Bluetooth access point or a WIFI access point, etc.) within the first spatial range corresponding to the smart mattress; if there is a communication access point of the electronic device within the first spatial range, the smart mattress can determine that the user is using the electronic device on the smart mattress.
[0064] Optionally, the first spatial range corresponding to the smart mattress can be a spatial range with the top view of the smart mattress as the bottom and a first length (for example, 0.5 meters, 1 meter, etc., not limited here) as the height, which is not limited here.
[0065] In the embodiment of the present application, the usage time of the electronic device may be the time interval between the first time point corresponding to the last unlocking of the electronic device and the current second time point corresponding to the last unlocking of the electronic device;
[0066] Optionally, the usage time of the electronic device may be the time interval between the third time point corresponding to the last time the electronic device was turned on and the second time point corresponding to the current time point;
[0067] Optionally, the usage time of the electronic device may be the time interval between the fourth time point corresponding to the last time the electronic device detected the user's face and the current corresponding second time point.
[0068] Further optionally, after establishing a communication connection with the electronic device, the smart mattress may send a usage time acquisition request to the electronic device via the communication connection, and the electronic device may then send the usage time of the electronic device to the smart mattress in response to the usage time acquisition request. Optionally, the electronic device may periodically send the current usage time of the electronic device to the smart mattress, for example, once every 5 minutes or every 10 minutes, although this is not limited here.
[0069] 204. If the usage time of the electronic device reaches a first time, send a target multimedia resource to the electronic device so that the electronic device plays the target multimedia resource, where the target multimedia resource is used to guide the user to perform muscle relaxation exercises.
[0070] In an embodiment of the present application, after obtaining the corresponding usage duration of the electronic device, the smart mattress can compare the usage duration of the electronic device with a first duration. If the usage duration of the electronic device is equal to or greater than the first duration, the smart mattress can determine that the usage duration of the electronic device has reached the first duration. In response, the smart mattress can determine that the user has used the electronic device for too long and can then send a target multimedia resource to the electronic device. After receiving the target multimedia resource, the electronic device can play the target multimedia resource to guide the user to perform muscle relaxation exercises.
[0071] Optionally, the first duration may be set by a developer based on extensive development experience, or may be set by a user based on their own usage requirements. Typical values may include 30 minutes or 40 minutes, etc., which are not limited here.
[0072] Optionally, the target multimedia resource may include one or more of a video resource, an audio resource, or an image resource, and is not limited thereto. The target multimedia resource may include content that guides the user to perform muscle relaxation exercises, such as eye exercises, shoulder and neck muscle relaxation exercises, and the like. When the electronic device plays the target multimedia resource, the user may be guided to perform the corresponding muscle relaxation exercises, thereby achieving the effect of relaxing the relevant muscles.
[0073] As an optional implementation, when the smart mattress determines that the usage time of the electronic device has reached a first time period, it can search for whether there is a video playback device (for example, a projector or a television, not limited here) within the first range of the smart mattress; and if there is a video playback device within the first range of the smart mattress, it can send the target multimedia resource to the video playback device so that the video playback device plays the target multimedia resource; and send a lock screen instruction to the electronic device, which is used to instruct the electronic device to perform a lock screen operation. Optionally, when it detects that the user has completed a muscle relaxation exercise, the smart mattress can send an unlock instruction to the electronic device so that the electronic device can unlock the screen.
[0074] Among them, the lock screen refers to the electronic device switching to the lock screen state. The mobile phone cannot be used normally in the lock screen state. In the related art, when the electronic device is in the lock screen state, the user can usually input an unlock command to make the electronic device unlock the screen state. Optionally, in the embodiment of the present application, after the electronic device performs the lock screen operation, the electronic device can control the electronic device to unlock the screen only when it receives the unlock command sent by the smart mattress, thereby preventing the user from unlocking and using the electronic device in the lock screen state, thereby ensuring that the user can get enough rest after using the electronic device for a long time.
[0075] By implementing the above method, the smart mattress can search whether there is a professional video playback device around the smart mattress, and then play the target multimedia resources through the professional video playback device to provide the user with a better viewing experience. In addition, it can also free the user's hands from holding the electronic device, making it easier for the user to imitate and learn the guidance content in the target multimedia resource; in addition, the smart mattress can also instruct the electronic device to perform a lock screen operation during the process of playing the target multimedia resource through the video playback device to prevent the user from continuing to use the electronic device.
[0076] As another optional embodiment, the smart mattress may include a wireless charging module, wherein the wireless charging module is configured to charge the electronic device upon detecting that the electronic device is placed within a wireless charging area corresponding to the wireless charging module. Alternatively, the smart mattress may include a mattress body, and the wireless charging area may be located on the mattress body near the headboard, thereby conveniently placing the user's electronic device.
[0077] Further, the smart mattress can output guidance information after sending the screen locking instruction to the electronic device, the guidance information being used to guide the user to place the electronic device to the wireless charging area; and the smart mattress can charge the electronic device through the wireless charging module when detecting that the electronic device is placed in the wireless charging area.
[0078] Optionally, the wireless charging area can be provided with a prompt lamp, and the smart mattress can control the prompt lamp to output a preset light effect after sending the screen locking instruction to the electronic device, thereby guiding the user to place the electronic device to the wireless charging area for charging.
[0079] Optionally, the electronic device that can be wirelessly charged can include a mobile phone, a tablet computer, a smart watch, smart glasses, and the like, without limitation.
[0080] By implementing the above method, the smart mattress can guide the user to place the electronic device to the wireless charging area for charging when the user uses the electronic device for a long time and the electronic device is about to be locked, so that the electronic device can be charged while the user is performing muscle relaxation exercise, thereby improving the time utilization rate, and also ensuring that the electronic device has sufficient power for subsequent use by the user, thereby improving the user experience.
[0081] By implementing the method disclosed in each of the above embodiments, when the user is using the electronic device on the smart mattress, the smart mattress can obtain the use duration of the electronic device, and when determining that the use duration of the electronic device reaches a first duration, the smart mattress can determine that the user uses the electronic device for too long. In response, the smart mattress can send a target multimedia resource to the electronic device to make the electronic device play the target multimedia resource; wherein the target multimedia resource can be a multimedia resource used to guide the user to perform muscle relaxation exercise, so that the user's muscles can be relaxed after using the electronic device for a long time, thereby avoiding the user's muscles from aching due to long-time use of the electronic device; in addition, by guiding the user to perform muscle relaxation exercise through professional guidance information in the target multimedia resource, the user's movements can be more standardized, thereby avoiding injury of the user during muscle relaxation exercise due to non-standard movements; further, since playing the target multimedia resource can temporarily occupy the electronic device, it can also avoid the user from continuing to use the electronic device.
[0082] Please refer to Figure 3 , Figure 3 is a flowchart of another control method of a smart mattress disclosed in the embodiments of the present application. Optionally, the method can be applied to the smart mattress described above, or other execution subjects, without limitation. The method can include the following steps:
[0083] 302. When it is determined that the user is using the electronic device while on the smart mattress, obtain a usage time of the electronic device.
[0084] 304. If the usage time of the electronic device reaches a first time, send a target multimedia resource to the electronic device so that the electronic device plays the target multimedia resource, where the target multimedia resource is used to guide the user to perform muscle relaxation exercises.
[0085] In one embodiment, the target multimedia resource may be a multimedia resource stored in the local storage of the smart mattress. Thus, upon determining that the electronic device has been in use for a first duration, the smart mattress may directly retrieve the target multimedia resource from the local storage and send the target multimedia resource to the electronic device, thereby increasing the speed at which the smart mattress can feed the target multimedia resource to the electronic device.
[0086] In another embodiment, the target multimedia resource can be downloaded by the smart mattress from a cloud server, thereby improving the real-time nature of the target multimedia resource and further improving the relaxation effect of subsequently guiding the user to perform muscle relaxation exercises.
[0087] In another embodiment, the type of the target multimedia resource may match the playback function of the electronic device. The playback function of the electronic device indicates the type of multimedia resources that the electronic device can play. Optionally, if the electronic device has an audio playback function, that is, the electronic device can play audio resources, then the type of the target multimedia resource may include the audio resource type; and if the electronic device has a video playback function, that is, the electronic device can play audio resources and / or video resources, then the type of the target multimedia resource may include the audio resource type and / or the video resource type.
[0088] For example, when the electronic device is a smart bracelet, since the smart bracelet may only have an audio playback function, the smart mattress can send audio resources to the smart bracelet; if the electronic device is a mobile phone, the mobile phone has both audio and video playback functions, and the smart mattress can send audio resources and / or video resources to the mobile phone.
[0089] Optionally, before sending the target multimedia resource to the electronic device, the smart mattress may obtain the playback function of the electronic device, and then determine a multimedia resource of a corresponding type as the target multimedia resource according to the playback function.
[0090] By implementing the above method, the smart mattress can determine the corresponding type of multimedia resources as the target multimedia resources according to the playback function of the electronic device, thereby avoiding the situation where the subsequent electronic device cannot play the target multimedia resources, and improving the compatibility of the method.
[0091] As an optional implementation, the electronic device may include a communication device. Optionally, the communication device may include but is not limited to mobile phones, tablet computers, smart watches or smart bracelets and other devices with communication functions, which are not limited here.
[0092] Optionally, after sending the target multimedia resource to the electronic device, if the smart mattress receives a communication request sent by the communication device, it determines whether the communication task corresponding to the communication request is an emergency communication task, wherein the emergency communication task includes a communication task involving user safety;
[0093] Optionally, the communication task may include a phone call, a voice call, a video call, a message, a voice message, a text message, or a communication task of a communication application, etc., which is not limited here.
[0094] Optionally, if the communication address corresponding to the initiator of the communication task is an emergency communication address stored in the electronic device, and / or the information included in the communication task includes words related to user safety, the smart mattress can determine that the communication task is an emergency communication task. For example, the electronic device sets the communication address of the user's grandmother as the emergency communication address. If the communication address of the communication task corresponding to the communication request sent by the electronic device is the communication address of the user's grandmother, the smart mattress can determine that the communication task is an emergency communication task. For another example, if the communication task corresponding to the communication request sent by the electronic device includes words related to user safety such as "hospital", "hurry up" or "pain", the smart mattress can determine that the communication task is an emergency communication task.
[0095] Furthermore, if the communication task corresponding to the communication request is an urgent communication task, a fourth control instruction is sent to the communication device, and the communication device can stop playing the target multimedia resource according to the fourth control instruction, so that the user can receive the communication task.
[0096] By implementing the above method, when the smart mattress determines that the communication task received by the electronic device is an emergency communication task involving user safety, the smart mattress can instruct the electronic device to stop playing the target multimedia, so that the user can receive the emergency communication task normally to ensure the user's life safety, thereby improving the flexibility and intelligence of the method and improving the user's usage experience.
[0097] 306. Acquire a first body movement currently performed by the user, and acquire a second body movement included in a target video picture currently played by the electronic device.
[0098] In an embodiment of the present application, after the smart mattress transmits a target multimedia resource to the electronic device so that the electronic device plays the target multimedia resource, the user can then perform muscle relaxation exercises under the guidance of the electronic device. Furthermore, during the user's muscle relaxation exercises, the smart mattress can capture a third image of the user through a camera device, and can then determine the user's current first limb movement based on the third image.
[0099] Optionally, the target multimedia resource may include a video resource, and the smart mattress may obtain the target video picture currently played by the electronic device, and may determine the second limb movement included in the target video picture.
[0100] Among them, body movements refer to movements made by the user through the body, such as rubbing the eyes with both hands, rubbing the temples with both hands, putting hands on the hips or shaking the waist, etc., which are not limited here.
[0101] 308. Generate a target score based on the degree of matching between the first limb movement and the second limb movement, and output the target score, wherein the target score is positively correlated with the degree of matching.
[0102] It can be understood that the first body movement currently made by the user is usually made to imitate the target video screen currently played by the electronic device, so the degree of matching between the first body movement made by the user and the second body movement included in the target video screen can reflect whether the first body movement made by the user is standard.
[0103] Optionally, the smart mattress can generate a target score based on the degree of match between the first and second limb movements, and output the target score for the user to determine whether the limb movement they performed is standard. Optionally, the target score can be positively correlated with the degree of match between the first and second limb movements, i.e., the higher the degree of match between the first and second limb movements, the higher the target score; conversely, the lower the degree of match between the first and second limb movements, the lower the target score.
[0104] Optionally, the smart mattress can periodically obtain the first limb movements performed by the user, and generate corresponding target scores according to the degree of matching between each first limb movement and the corresponding second limb movement, and periodically output the target scores for the user's reference, so that the user can know which of his movements are standard and which are not standard.
[0105] By implementing the above method, the smart mattress can generate a target score based on the degree of matching between the first physical movement performed by the user and the second physical movement used to guide the user included in the target video screen played by the electronic device, and output the target score for the user to refer to whether the physical movement performed by the user is standard, thereby making it easier for the user to know whether the physical movement performed by the user is not standard, thereby improving the user's usage experience.
[0106] As an optional implementation, after the smart mattress generates a target score based on the degree of match between the first limb movement and the second limb movement, it can determine whether the target score is lower than a score threshold. The score threshold can be set by the developer based on a large amount of development experience, or by the user based on his or her own usage needs. When the target score is based on a percentage system, typical values may include 60 points or 50 points, etc., which are not limited here.
[0107] Furthermore, if the target score is lower than the score threshold, the smart mattress can determine that the first limb movement performed by the user is not standard, and can send a first control instruction to the electronic device. Then, when the electronic device receives the first control instruction, it can repeatedly play the target video image including the second limb movement according to the first control instruction, so as to facilitate the user to learn to imitate the second limb movement separately, thereby improving the efficiency of the user's learning and imitation.
[0108] Furthermore, upon receiving a continue playback instruction, the electronic device may stop repeatedly playing the target video frame and continue playing the video resource. Optionally, the smart mattress may send a continue playback instruction to the electronic device if a second target score is generated based on the user's current third and second limb movements, and the second target score is greater than a score threshold. Optionally, the continue playback instruction may be manually input by the user, which is not limited here.
[0109] As another optional implementation, if the smart mattress determines that the target score is lower than the score threshold, the smart mattress can send a second control instruction to the electronic device, and then when the electronic device receives the second control instruction, it can reduce the playback speed of the video resource according to the second control instruction.
[0110] Among them, the playback speed can refer to the multiple of the video played by the electronic device. Optionally, the playback speed can include 0.5 times, 1 times, 2 times, etc.; optionally, when the video playback speed of the electronic device is 1 times, the video picture presented by the electronic device can be at a normal speed, and when the playback speed is 0.5 times, the video picture presented by the electronic device will become slower; correspondingly, if the playback speed is 2 times, the video picture presented by the electronic device will become faster.
[0111] That is to say, when the target score is lower than the score threshold, that is, when it is determined that the first body movement made by the user is not standard, the electronic device can reduce the playback speed of the video resource, so that the video picture presented by the electronic device will become slower, thereby facilitating the user's imitation learning and improving the user's learning and imitation efficiency.
[0112] By implementing the above method, the smart mattress can determine that the first limb movement performed by the user is not standard when the target score is lower than the score threshold. Then, the smart mattress can control the electronic device to repeatedly play the target video screen including the second limb movement, or reduce the playback speed of the video resource played by the electronic device to facilitate the user's imitation learning, thereby improving the efficiency of the user's learning and imitation.
[0113] By implementing the methods disclosed in the above embodiments, the smart mattress can control the electronic device to output a target multimedia resource to guide the user in performing muscle relaxation exercises after the user has used the electronic device for an extended period of time, thereby relaxing the user's muscles after prolonged use of the electronic device and preventing muscle soreness from prolonged use of the electronic device. Furthermore, by guiding the user in muscle relaxation exercises through professional guidance information in the target multimedia resource, the user's movements can be made more standard, preventing injuries due to non-standard movements during muscle relaxation exercises. Furthermore, since playing the target multimedia resource can temporarily occupy the electronic device, the user can be prevented from continuing to use the electronic device. Furthermore, the smart mattress can generate a target score based on the degree of match between a first limb movement performed by the user and a second limb movement included in a target video played by the electronic device, used to guide the user, and output the target score for the user to refer to to determine whether the limb movement performed by the user is standard, thereby facilitating the user's identification of non-standard limb movements and improving the user's user experience. Furthermore, when the target score is below a score threshold, the smart mattress can determine that the first limb movement performed by the user is non-standard, and can then control the electronic device to repeatedly play the target video containing the second limb movement, or reduce the playback speed of the video resource played by the electronic device, to facilitate user imitation learning and improve the efficiency of user imitation learning.
[0114] See also Figure 4 , Figure 4 This is a flow chart of another method for controlling a smart mattress disclosed in an embodiment of the present application. Optionally, the method can be applied to the above-mentioned smart mattress, or other execution entities, without limitation herein. The method may include the following steps:
[0115] 402. When it is determined that the user is using the electronic device while on the smart mattress, obtain the usage time of the electronic device.
[0116] 404. If the usage time of the electronic device reaches a first time, determine a target posture of the user during the use of the electronic device.
[0117] In an embodiment of the present application, the electronic device can periodically capture a fourth image of the user while the user is using the electronic device on the smart mattress. Then, when the smart mattress determines that the usage time of the electronic device reaches the first time length, the target posture of the user during the use of the electronic device can be determined based on the fourth image.
[0118] Optionally, if the fourth image determines that the user has engaged in multiple gestures while using the electronic device, the smart mattress may determine the longest-lasting gesture among these gestures as the target gesture. It is understood that a user may have engaged in multiple gestures while using the electronic device on the smart mattress, and the longest-lasting gesture best represents the user's muscle fatigue during use of the electronic device. Therefore, using the longest-lasting gesture as the target gesture can improve the matching of subsequently determined target multimedia resources with the user's muscle fatigue, thereby enhancing the subsequent muscle relaxation effect.
[0119] 406. Determine a corresponding target multimedia resource according to the target posture, and send the target multimedia resource to the electronic device so that the electronic device plays the target multimedia resource. The target multimedia resource is used to guide the user to perform muscle relaxation exercises.
[0120] Optionally, the target posture may include, but is not limited to, a sitting posture, a lying posture, or a standing posture, and is not limited here. It is understood that the tension in the muscles of various parts of the user's body varies when the user is in different postures. For example, when the user is in a sitting posture, the user's waist muscles are relatively tense, while when the user is lying flat, the user's shoulder and neck muscles are relatively tense. The lying flat posture includes the supine lying posture, the side lying posture, and the prone lying posture.
[0121] Optionally, after determining the target posture that the user is currently in, the smart mattress may determine a corresponding target multimedia resource according to the target posture.
[0122] Optionally, if the target posture is a sitting posture, the user's waist muscles are relatively tense, and the target multimedia resources can be multimedia resources used to guide the user to perform waist muscle relaxation exercises; if the target posture is a lying posture, the user's shoulder and neck muscles are relatively tense, and the target multimedia resources can be multimedia resources used to guide the user to perform shoulder and neck muscle relaxation exercises.
[0123] The smart mattress can determine the target multimedia resource corresponding to the target posture of the user in the process of using the electronic device, so that the electronic device can play the target multimedia resource to guide the user to relax the muscle tension part, thereby improving the relaxation effect and improving the user experience.
[0124] As an optional implementation, the smart mattress can monitor the condition of the user completing the muscle relaxation movement after sending the target multimedia resource to the electronic device. Optionally, the smart mattress can determine the condition of the user completing the muscle relaxation movement through images or videos collected by the camera device, which is not limited herein.
[0125] Further, the smart mattress can send a third control instruction to the electronic device after detecting that the user completes the muscle relaxation movement, and the electronic device can stop playing the target multimedia resource and delete the target multimedia resource according to the third control instruction after receiving the third control instruction.
[0126] The smart mattress can instruct the electronic device to stop playing the target multimedia resource after the user completes the muscle relaxation movement, so that the user can use the electronic device normally again, and the smart mattress can also instruct the electronic device to delete the received target multimedia resource to save the storage space of the electronic device.
[0127] The smart mattress can control the electronic device to output the target multimedia resource to guide the user to perform the muscle relaxation movement after the user uses the electronic device for a long time, so that the user's muscles can be relaxed after using the electronic device for a long time, thereby avoiding the user's muscles from being sore due to long-time use of the electronic device. In addition, the user's action can be more standard by the professional guidance information in the target multimedia resource, thereby avoiding the user from being injured due to non-standard action in the muscle relaxation movement. Further, the electronic device can be temporarily occupied by playing the target multimedia resource, thereby avoiding the user from continuing to use the electronic device. In addition, the smart mattress can determine the target multimedia resource corresponding to the target posture of the user in the process of using the electronic device, so that the electronic device can play the target multimedia resource to guide the user to relax the muscle tension part, thereby improving the relaxation effect and improving the user experience. In addition, the smart mattress can instruct the electronic device to stop playing the target multimedia resource after the user completes the muscle relaxation movement, so that the user can use the electronic device normally again, and the smart mattress can also instruct the electronic device to delete the received target multimedia resource to save the storage space of the electronic device.
[0128] Please refer to Figure 5 , Figure 5Schematic diagram of the structure of a control device for a smart mattress disclosed in an embodiment of the present application. Optionally, the device can be applied to the above-mentioned smart mattress, or other execution entities, which are not limited here. The device may include a first acquisition unit 502 and a first sending unit 504, wherein:
[0129] The first acquiring unit 502 is configured to acquire a usage time of the electronic device when it is determined that the user is using the electronic device while on the smart mattress;
[0130] The first sending unit 504 is configured to send a target multimedia resource to the electronic device when the usage time of the electronic device reaches a first time, so that the electronic device plays the target multimedia resource, where the target multimedia resource is used to guide the user to perform muscle relaxation exercises.
[0131] When the above-mentioned device is implemented, when a user uses an electronic device while sitting on the smart mattress, the smart mattress can obtain the usage time of the electronic device. When it is determined that the usage time of the electronic device reaches a first time, the smart mattress can determine that the user has used the electronic device for too long. In response, the smart mattress can send a target multimedia resource to the electronic device so that the electronic device plays the target multimedia resource. The target multimedia resource can be a multimedia resource for guiding the user to perform muscle relaxation exercises, so that the user's muscles can be relaxed after using the electronic device for a long time, thereby avoiding muscle soreness caused by long-term use of the electronic device. In addition, by guiding the user to perform muscle relaxation exercises through professional guidance information in the target multimedia resource, the user's movements can be made more standard, avoiding injuries to the user due to non-standard movements during muscle relaxation exercises. Furthermore, since playing the target multimedia resource can temporarily occupy the electronic device, the user can be prevented from continuing to use the electronic device.
[0132] As an optional implementation, the target multimedia resource may include a video resource. Figure 5 The device shown may further include a second acquisition unit, a generation unit, and an output unit (not shown), wherein:
[0133] A second acquiring unit is configured to acquire a first body movement currently performed by the user and a second body movement included in a target video currently played by the electronic device after the first sending unit 504 sends the target multimedia resource to the electronic device;
[0134] a generating unit, configured to generate a target score according to a matching degree between the first limb movement and the second limb movement, wherein the target score is positively correlated with the matching degree;
[0135] Output unit, used to output the target score.
[0136] By implementing the above device, the smart mattress can generate a target score based on the degree of match between the first physical movement performed by the user and the second physical movement used to guide the user included in the target video screen played by the electronic device, and output the target score for the user to refer to whether the physical movement performed by the user is standard, thereby making it easier for the user to know whether the physical movement performed by the user is not standard, thereby improving the user's usage experience.
[0137] As an optional implementation, Figure 5 The device shown may further include a second sending unit (not shown), wherein:
[0138] A second sending unit is configured to send a first control instruction to the electronic device when the target score is lower than the score threshold, wherein the first control instruction is used to instruct the electronic device to repeatedly play the target video image;
[0139] Furthermore, the second sending unit is further configured to send a second control instruction to the electronic device when the target score is lower than the score threshold, wherein the second control instruction is configured to instruct the electronic device to reduce the playback speed of the video resource.
[0140] By implementing the above device, the smart mattress can determine that the first limb movement performed by the user is not standard when the target score is lower than the score threshold. Then, the smart mattress can control the electronic device to repeatedly play the target video screen including the second limb movement, or reduce the playback speed of the video resource played by the electronic device to facilitate the user's imitation learning, thereby improving the efficiency of the user's learning and imitation.
[0141] As an optional implementation, Figure 5 The device shown may further include a first determining unit and a second determining unit, not shown in the figure, wherein:
[0142] A first determining unit is configured to determine a target posture of a user in the process of using the electronic device before sending a target multimedia resource to the electronic device;
[0143] The second determination unit is used to determine the corresponding target multimedia resource according to the target posture, wherein, if the target posture is a sitting posture, the target multimedia resource is used to guide the user to perform waist muscle relaxation exercises; if the target posture is a lying posture, the target multimedia resource is used to guide the user to perform shoulder muscle and neck muscle relaxation exercises.
[0144] By implementing the above device, the smart mattress can determine the corresponding target multimedia resources based on the target posture of the user when using the electronic device, so that when the electronic device subsequently plays the target multimedia resources, it can guide the user to relax the parts of the muscles that are tense, thereby improving the relaxation effect and enhancing the user's usage experience.
[0145] As an optional implementation, Figure 5 The apparatus shown can also include a third sending unit not shown, wherein:
[0146] The third sending unit is configured to, after sending the target multimedia resource to the electronic device, send a third control instruction to the electronic device in a case where it is detected that the user has completed the muscle relaxation movement, the third control instruction instructing the electronic device to stop playing the target multimedia resource and delete the target multimedia resource.
[0147] The apparatus is implemented as described above, after the user has completed the muscle relaxation movement, the smart mattress can instruct the electronic device to stop playing the target multimedia resource, so that the user can use the electronic device normally again, and in addition, the smart mattress can instruct the electronic device to delete the received target multimedia resource, so as to save the storage space of the electronic device.
[0148] Please refer to Figure 6 , Figure 6 is a structural schematic diagram of a smart mattress disclosed by an embodiment of the present application.
[0149] As Figure 6 shown, the smart mattress can include:
[0150] a memory 601 storing executable program codes;
[0151] a processor 602 coupled with the memory 601;
[0152] The processor 602 invokes the executable program codes stored in the memory 601 to execute the control method of the smart mattress disclosed by each of the embodiments.
[0153] An embodiment of the present application discloses a computer readable storage medium storing a computer program, wherein the computer program causes a computer to execute the control method of the smart mattress disclosed by each of the embodiments.
[0154] An embodiment of the present application further discloses an application publishing platform, wherein the application publishing platform is configured to publish a computer program product, and when the computer program product runs on a computer, the computer is caused to execute part or all of the steps of the method in each of the method embodiments.
[0155] It should be understood that the references to "one embodiment" or "an embodiment" throughout the specification mean that the specific features, structures, or characteristics associated with the embodiment are included in at least one embodiment of the present application. Therefore, the references to "in one embodiment" or "in an embodiment" throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. Those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required for the present application.
[0156] In the various embodiments of the present application, it should be understood that the size of the serial numbers of the above-mentioned processes does not necessarily mean the order of execution. The order of execution 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.
[0157] The units described above as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e., they may be located in one place or distributed across multiple network units. Some or all of these units may be selected based on actual needs to achieve the objectives of this embodiment.
[0158] In addition, the functional units in the embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0159] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-accessible memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a memory and includes several requests for a computer device (which can be a personal computer, server or network device, etc., specifically a processor in a computer device) to execute some or all of the steps of the above-mentioned methods of various embodiments of the present application.
[0160] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program. The program can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium capable of carrying or storing data.
[0161] The above describes in detail a control method and device for a smart mattress, a smart mattress, and a storage medium disclosed in the embodiments of the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only intended to help understand the method and core concept of the present application. At the same time, for those skilled in the art, based on the concept of the present application, there may be changes in the specific implementation methods and application scope. In summary, the contents of this specification should not be understood as limiting the present application.
Claims
1. A method for controlling a smart mattress, characterized in that: The method comprises: When it is determined that the user is using an electronic device while on the smart mattress, obtaining a usage time of the electronic device; If the usage time of the electronic device reaches a first time length, then if there is a video playback device within a first range of the smart mattress, the target multimedia resource is sent to the video playback device so that the video playback device plays the target multimedia resource; and a lock screen instruction is sent to the electronic device, where the lock screen instruction is used to instruct the electronic device to perform a lock screen operation, and the target multimedia resource is used to guide the user to perform muscle relaxation exercises. The electronic device controls the electronic device to unlock the screen only when it receives the unlock instruction sent by the smart mattress.
2. The method according to claim 1, characterized in that Sending the target multimedia resource to the electronic device, where the target multimedia resource includes a video resource; and after sending the target multimedia resource to the electronic device, the method further includes: Acquire a first body movement currently performed by the user, and acquire a second body movement included in a target video picture currently played by the electronic device; generating a target score according to a degree of matching between the first limb movement and the second limb movement, wherein the target score is positively correlated with the degree of matching; The target score is output.
3. The method according to claim 2, characterized in that After generating a target score according to the degree of matching between the first limb movement and the second limb movement, the method further includes: If the target score is lower than the score threshold, sending a first control instruction to the electronic device, wherein the first control instruction is used to instruct the electronic device to repeatedly play the target video picture; Alternatively, if the target score is lower than the score threshold, a second control instruction is sent to the electronic device, where the second control instruction is used to instruct the electronic device to reduce the playing speed of the video resource.
4. The method according to claim 2, characterized in that Before sending the target multimedia resource to the electronic device, the method further includes: determining a target posture of the user during use of the electronic device; The corresponding target multimedia resource is determined according to the target posture, wherein, if the target posture is a sitting posture, the target multimedia resource is used to guide the user to perform waist muscle relaxation exercises; if the target posture is a lying posture, the target multimedia resource is used to guide the user to perform shoulder muscle and neck muscle relaxation exercises.
5. The method according to any one of claims 2 to 4, characterized in that After sending the target multimedia resource to the electronic device, the method further includes: When it is detected that the user has completed the muscle relaxation exercise, a third control instruction is sent to the electronic device, wherein the third control instruction instructs the electronic device to stop playing the target multimedia resource and delete the target multimedia resource.
6. A control device for a smart mattress, characterized in that: The device comprises: a first acquiring unit, configured to acquire a usage time of the electronic device when it is determined that the user is located on the smart mattress and using the electronic device; The first sending unit is configured to send a target multimedia resource to a video playback device when the usage time of the electronic device reaches a first time length, if there is a video playback device within a first range of the smart mattress, so that the video playback device plays the target multimedia resource; and send a lock screen instruction to the electronic device, wherein the lock screen instruction is used to instruct the electronic device to perform a lock screen operation, and the target multimedia resource is used to guide the user to perform muscle relaxation exercises, and the electronic device controls the electronic device to unlock the screen only when it receives an unlock instruction sent by the smart mattress.
7. The device according to claim 6, characterized in that The first sending unit is further configured to send the target multimedia resource to the electronic device; the target multimedia resource includes a video resource, and the apparatus further includes: a second acquiring unit, configured to acquire, after the first sending unit sends the target multimedia resource to the electronic device, a first body movement currently performed by the user and a second body movement included in a target video currently played by the electronic device; a generating unit, configured to generate a target score according to a degree of matching between the first limb movement and the second limb movement, wherein the target score is positively correlated with the degree of matching; An output unit is configured to output the target score.
8. The device according to claim 7, characterized in that The device further comprises: a second sending unit, configured to send a first control instruction to the electronic device when the target score is lower than a score threshold, wherein the first control instruction is used to instruct the electronic device to repeatedly play the target video image; The second sending unit is further configured to send a second control instruction to the electronic device when the target score is lower than a score threshold, wherein the second control instruction is configured to instruct the electronic device to reduce a playback speed of the video resource.
9. A smart mattress, characterized in that: The method comprises a memory storing executable program code and a processor coupled to the memory; wherein the processor calls the executable program code stored in the memory to execute the method according to any one of claims 1 to 5.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Intelligent monitoring and reminding robot for teenagers
CN106651283A
Working method of electronic painted screen and electronic painted screen
CN110865790A
Monitoring method and system for intelligently supervising learning of student, and storage medium
CN113920530A
Video playing method, device, equipment and storage medium
CN114071211A
Movement self-adaptive synchronization method and electronic device
WO2021244411A1