Sofa-based partitioning method, device, electronic device and storage medium

By installing pressure sensors and airbags on the sofa and performing area division and control according to the pressure value, the problem of frightening pets during sofa massage is solved, and a massage experience of sharing the sofa with pets is realized.

CN116711946BActive Publication Date: 2025-10-10DONGGUAN AIMU BEDROOM SUPPLIES
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310924939.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-25
Publication Date
2025-10-10
Estimated Expiration
2043-07-25

AI Technical Summary

Technical Problem

When conventional sofas are used to massage a human body, vibration or thrust can easily scare a pet, making it impossible for a person and a pet to use the sofa at the same time.

Method used

By setting up multiple pressure sensors on the sofa, collecting and clustering pressure values, dividing the force areas, determining the human body and animal areas, and controlling the airbags and vibrators to massage the human body areas and drive away pets respectively.

Benefits of technology

It can massage the human body without scaring the pets, allowing people and pets to use it on the sofa at the same time, improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116711946B_ABST
    Figure CN116711946B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a sofa-based partitioning method and device, electronic equipment and a storage medium. The method comprises: collecting pressure values by a plurality of pressure sensors, and determining a force area in the sofa according to the pressure values; determining a force position point corresponding to a position point of the pressure sensor in the force area as a force position point, clustering each force position point according to a pressure value corresponding to each force position point, and dividing the force area into one or more target areas according to a clustering result; determining a human area and an animal area from each target area according to a region area and a pressure statistical value corresponding to each target area; and controlling a plurality of air bags in a backrest area corresponding to the human area to perform inflation and deflation operations according to a massage instruction, so as to massage a user located in the human area. By implementing the embodiments of the present application, the sofa can be accurately partitioned, so that only the human area can be massaged, and pets will not be frightened.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of smart home technology, and in particular to a sofa-based partitioning method, device, electronic device, and storage medium. Background Art

[0002] With the continuous improvement of people's living standards and the increasing emphasis on physical health, people often want to relax with a massage after a day of work and study. Sofas are an indispensable household item, and to meet people's need for physical and mental relaxation, sofas now have massage functions. However, pets are increasingly popular because they provide emotional support, companionship, and comfort in people's daily lives. However, if a person wants to share a sofa with a pet and enjoy the sofa's massage function, the vibration or thrust generated by the sofa's massage often scares the pet, making it impossible for both person and pet to be on the sofa at the same time. Summary of the Invention

[0003] The embodiments of the present application disclose a sofa-based zoning method, device, electronic device and storage medium, which can accurately zone the sofa so that the sofa can only massage the human body area without scaring pets, allowing people and pets to be on the sofa at the same time when the sofa is massaging the human body.

[0004] The embodiment of the present application discloses a partitioning method based on a sofa, wherein the sofa includes multiple pressure sensors and multiple airbags; the method includes:

[0005] The plurality of pressure sensors are used to collect pressure values, and a force-bearing area in the sofa is determined according to the pressure values; the force-bearing area is an area where the pressure value collected by the corresponding pressure sensor is greater than a first pressure threshold;

[0006] Determining positions corresponding to pressure sensors in the force-bearing area as force-bearing positions, clustering the force-bearing positions according to pressure values ​​corresponding to the force-bearing positions, and dividing the force-bearing area into one or more target areas according to the clustering results;

[0007] Calculating pressure statistics corresponding to each target area according to the pressure values ​​corresponding to each target area, wherein the pressure statistics include a pressure variance value and a pressure average value;

[0008] determining a human body region and an animal region from each of the target regions according to the region area and pressure statistics corresponding to each of the target regions;

[0009] When a massage instruction is received, the multiple airbags in the backrest area corresponding to the human body area are controlled to perform inflation and deflation operations according to the massage instruction, so as to massage the user located in the human body area.

[0010] In one embodiment, determining the human body region and the animal region from each target region based on the region area and pressure statistics corresponding to each target region includes:

[0011] Determine, as a human body region, a target region whose area is greater than an area threshold, whose pressure variance is less than a variance threshold, and whose pressure average is greater than a mean threshold in each target region;

[0012] The target regions whose area is smaller than the area threshold, whose pressure variance is larger than the variance threshold, and whose pressure average is smaller than the mean threshold are determined as animal regions.

[0013] In one embodiment, the sofa further includes a vibrator; after determining the human body region and the animal region from each of the target regions based on the area and pressure statistics corresponding to each of the target regions, the method further includes:

[0014] Determining the number of pressure peaks collected by the pressure sensor corresponding to the animal area within a unit time period; the pressure peak refers to a pressure value greater than a second pressure threshold;

[0015] If the number of times is greater than the number threshold, it is determined that the animal area is in a state of being scratched by an animal, and the vibrator corresponding to the animal area is controlled to vibrate to drive away the animal on the animal area.

[0016] In one embodiment, the sofa further comprises a vibrator; and the method further comprises:

[0017] Obtain multiple historical animal regions where the sofa appears within a period of time;

[0018] The area with the largest number of overlaps among the multiple historical animal areas is selected as the target cleaning area;

[0019] controlling a first airbag corresponding to the target cleaning area to perform an inflation and deflation operation to adjust the inflation volume of the first airbag to a first inflation volume; the first airbag is an airbag in the target cleaning area near the backrest area of ​​the sofa, and the first inflation volume is greater than a standard inflation volume; and / or controlling a second airbag corresponding to the target cleaning area to perform an inflation and deflation operation to adjust the inflation volume of the second airbag to a second inflation volume; the second airbag is an airbag in the target cleaning area far from the backrest area of ​​the sofa, and the second inflation volume is less than the standard inflation volume;

[0020] The vibrator corresponding to the target cleaning area is controlled to vibrate to clean the target cleaning area.

[0021] In one embodiment, clustering the force-bearing points according to the pressure values ​​corresponding to the force-bearing points, and dividing the force-bearing area into one or more target areas according to the clustering results, includes:

[0022] Determine the pressure characteristics corresponding to each of the force-bearing position points according to the pressure values ​​corresponding to each of the force-bearing position points; the pressure characteristics include one or more characteristics of the maximum pressure value, the minimum pressure value, the median pressure value, the average pressure value, and the pressure variance value corresponding to the force-bearing position point;

[0023] The force-bearing position points are clustered according to the pressure characteristics corresponding to the force-bearing position points, and the force-bearing area is divided into one or more target areas according to the clustering result.

[0024] In one embodiment, after determining the human body region and the animal region from each of the target regions based on the region area and pressure statistics corresponding to each of the target regions, the method further includes:

[0025] Upon receiving the entertainment instruction, a first control instruction is sent to the laser device, so that the laser device projects a laser beam toward a first projection area in the sofa according to the first control instruction; the first projection area is an area excluding the human body area and the animal area;

[0026] controlling a sound device corresponding to the first projection area to play animal sounds to attract animals in the animal area to chase the laser beam;

[0027] During the movement of the animal, the animal area of ​​the sofa is updated according to the pressure values ​​collected by the multiple pressure sensors, and when it is determined that the distance between the center point of the updated animal area and the laser beam is less than a distance threshold, a second control instruction is sent to the laser device, so that the laser device projects the laser beam to a second projection area in the sofa according to the second control instruction; the second projection area is an area excluding the human body area and the updated animal area.

[0028] In one embodiment, the sofa further includes a heating device and a cooling device; after determining the human body region and the animal region from each of the target regions based on the area and pressure statistics corresponding to each of the target regions, the method further includes:

[0029] Obtaining the indoor ambient temperature around the sofa;

[0030] If the indoor ambient temperature is lower than a first temperature threshold, controlling the heating device corresponding to the human body region to adjust the temperature of the human body region to a first temperature, and controlling the heating device corresponding to the animal region to adjust the temperature of the animal region to a second temperature; the second temperature is lower than the first temperature;

[0031] If the indoor ambient temperature is higher than the second temperature threshold, the cooling device corresponding to the human body area is controlled to adjust the temperature corresponding to the human body area to a third temperature, and the cooling device corresponding to the animal area is controlled to adjust the temperature corresponding to the animal area to a fourth temperature; the third temperature is higher than the fourth temperature.

[0032] The embodiment of the present application discloses a partitioning device based on a sofa, wherein the sofa includes multiple pressure sensors and multiple airbags; the device includes:

[0033] a pressure acquisition module, configured to acquire pressure values ​​through the plurality of pressure sensors and determine a force-bearing area in the sofa according to the pressure values; the force-bearing area being an area where the pressure value acquired by the corresponding pressure sensor is greater than a first pressure threshold;

[0034] an area division module, configured to determine the position points corresponding to the pressure sensors in the force-bearing area as force-bearing position points, cluster the force-bearing position points according to the pressure values ​​corresponding to the force-bearing position points, and divide the force-bearing area into one or more target areas according to the clustering results;

[0035] a calculation module, configured to calculate pressure statistics corresponding to each target area according to the pressure values ​​corresponding to each target area, wherein the pressure statistics include a pressure variance value and a pressure average value;

[0036] a region determination module, configured to determine a human region and an animal region from each of the target regions based on the region area and pressure statistics corresponding to each of the target regions;

[0037] The massage module is used to control the inflation and deflation operations of multiple airbags in the backrest area corresponding to the human body area according to the massage instruction when receiving the massage instruction, so as to massage the user located in the human body area.

[0038] The present application discloses an electronic device, including:

[0039] a memory storing executable program code;

[0040] a processor coupled to the memory;

[0041] The processor calls the executable program code stored in the memory to execute the method described in any one of the above embodiments.

[0042] The computer readable storage medium disclosed in the embodiments of the present application stores a computer program, wherein the computer program, when executed by a processor, causes the processor to execute the method described in any of the above embodiments.

[0043] According to the sofa-based partitioning method, device, electronic device and storage medium disclosed in the embodiments of the present application, the force-bearing area in the sofa is determined according to the pressure values collected by the plurality of pressure sensors of the sofa, the force-bearing area is an area in which the pressure values collected by the corresponding pressure sensors are greater than the first pressure threshold; the position points corresponding to the pressure sensors in the force-bearing area are determined as force-bearing position points, and the force-bearing position points are clustered according to the pressure values corresponding to the force-bearing position points, and the force-bearing area is divided into one or more target areas according to the clustering results; the human body area and the animal area are determined from each target area according to the pressure statistical values of each target area calculated from the pressure values corresponding to each target area and the area of each target area; when the massage instruction is received, the plurality of air bags in the backrest area corresponding to the human body area are controlled to perform the inflation and deflation operation according to the control instruction, so as to massage the user located in the human body area.

[0044] In the embodiments of the present application, the sofa can determine the force-bearing area in the sofa according to the pressure values collected by the pressure sensors in the sofa, and then cluster the force-bearing position points in the force-bearing area, so as to accurately divide the force-bearing area into one or more target areas with large differences in force-bearing conditions according to the clustering results, and accurately determine the human body area and the animal area from each target area according to the area and the pressure statistical value of each target area, so that only the human body area can be massaged, and pets will not be scared, so that people and pets can be on the sofa at the same time when the sofa massages the human body. BRIEF DESCRIPTION OF DRAWINGS

[0045] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0046] Figure 1 is a flowchart of a sofa-based partitioning method disclosed in the embodiments of the present application;

[0047] Figure 2a is a distribution diagram of a plurality of pressure sensors in a sofa disclosed in the embodiments of the present application;

[0048] Figure 2bis another distribution diagram of a plurality of pressure sensors in a sofa disclosed by an embodiment of the present application;

[0049] Figure 2c is a region division diagram of a sofa disclosed by an embodiment of the present application;

[0050] Figure 3 is a flow diagram of another sofa-based region division method disclosed by an embodiment of the present application;

[0051] Figure 4a is a distribution diagram of a plurality of air bags in a sofa disclosed by an embodiment of the present application;

[0052] Figure 4b is another distribution diagram of a plurality of air bags in a sofa disclosed by an embodiment of the present application;

[0053] Figure 5 is a flow diagram of another sofa-based region division method disclosed by an embodiment of the present application;

[0054] Figure 6 is a structure diagram of a sofa-based region division device disclosed by an embodiment of the present application;

[0055] Figure 7 is a structure diagram of an electronic device disclosed by an embodiment of the present application. DETAILED DESCRIPTION

[0056] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the scope of protection of the present application.

[0057] It should be noted that the terms "include" and "have" and any variations thereof in the embodiments of the present application are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device including a series of steps or units need not be limited to those clearly listed steps or units, but can include other steps or units not clearly listed or inherent to the process, method, product or device.

[0058] The embodiments of the present application disclose a sofa-based region division method and device, an electronic device and a storage medium, which can accurately divide a sofa, so that the sofa can only massage a human body region and will not scare pets, and thus the human and the pets can be on the sofa at the same time when the sofa massages the human body.

[0059] The embodiments of the present application will be described in detail below with reference to the drawings.

[0060] See also Figure 1 , Figure 1 This is a flowchart of a sofa-based partitioning method disclosed in an embodiment of the present application. The method can be applied to a sofa; the sofa includes multiple pressure sensors and multiple airbags; Figure 1 As shown, the sofa-based partitioning method may include the following steps:

[0061] 101. Pressure values ​​are collected by multiple pressure sensors, and a force-bearing area in the sofa is determined based on the pressure values.

[0062] The sofa collects pressure values ​​through multiple pressure sensors and determines the force-bearing area in the sofa according to the pressure values; wherein the force-bearing area is the area where the pressure value collected by the corresponding pressure sensor is greater than the first pressure threshold.

[0063] A pressure sensor is a device used to measure the pressure applied to a sofa. It can be placed in the seat or backrest area of ​​a sofa to sense the pressure applied by a person, animal, or object, as well as the distribution of that pressure on the sofa. This allows the user to determine their position and movement on the sofa.

[0064] In some embodiments, in order to more accurately sense the pressure distribution on the sofa, the sofa can be provided with a dense pressure sensor array; for example, since the seat cushion area of ​​the sofa is the area where the user mainly applies pressure, a dense pressure sensor array can be provided in the seat cushion area of ​​the sofa to cover the entire seat cushion area. The multiple pressure sensors in the pressure sensor array can be arranged in a grid-like manner with equal spacing to ensure uniform perception of the surface of the seat cushion area.

[0065] The first pressure threshold depends on factors such as the hardness of the sofa and the depth of the pressure sensor within the sofa. For example, a harder sofa requires greater pressure to trigger the pressure sensor, and the deeper the pressure sensor is placed, the greater the pressure required to trigger it. Therefore, the first pressure threshold can be determined by the manufacturer after extensive testing during the sofa design and manufacturing process.

[0066] like Figure 2a As shown, Figure 2a This is a schematic diagram of the distribution of multiple pressure sensors in a sofa disclosed in an embodiment of the present application. Taking the seat cushion area 201 of the sofa as an example, the seat cushion area 201 includes multiple pressure sensors 202; the sofa can pre-store the area corresponding to each pressure sensor 202. The area of ​​the area corresponding to each pressure sensor 202 can be greater than or equal to the area of ​​the pressure sensor itself, which can be determined according to the manufacturer's design; Figure 2aAs shown, the areas corresponding to the pressure sensors 202 are distributed in a grid pattern in the seat cushion area 201 ; the sofa can form stress-bearing areas from the areas corresponding to the pressure sensors 202 that collect pressure values ​​greater than the first pressure threshold.

[0067] 102. Determine the position points corresponding to the pressure sensors in the force-bearing area as force-bearing position points, cluster the force-bearing position points according to the pressure values ​​corresponding to the force-bearing position points, and divide the force-bearing area into one or more target areas according to the clustering results.

[0068] The force-bearing position point is a position point corresponding to the pressure sensor in the force-bearing area, that is, a position point corresponding to the pressure sensor that collects a pressure value greater than the first pressure threshold.

[0069] Optionally, the method for clustering each stress point according to the pressure value corresponding to each stress point may include but is not limited to the K-means clustering algorithm, the density-based clustering algorithm with noise (DBCAN) clustering algorithm, etc., and is not specifically limited. Clustering can aggregate similar data together, thereby dividing multiple data into different classes or clusters, and the similarity of data within the same cluster is as large as possible, and the difference between data not in the same cluster is also as large as possible. The clustering result is one or more clusters obtained after clustering each stress point. For example, the first cluster includes stress point A and stress point B, and the second cluster includes stress point C and stress point D. The pressure values ​​collected by the pressure sensors corresponding to stress point A and stress point B are very similar, and the pressure values ​​collected by the pressure sensors corresponding to stress point A and stress point C are very different.

[0070] Since humans and pets differ greatly in weight, body shape, and movements, the pressure values ​​collected by the pressure sensor when subjected to pressure from humans and pets respectively differ greatly.

[0071] Therefore, the sofa can divide the force-bearing position points into multiple clusters according to the clustering results, and for each cluster, determine the area corresponding to the force-bearing position points in the cluster as the target area. Therefore, the sofa can divide the force-bearing area into one or more target areas according to the clustering results.

[0072] like Figure 2b As shown, Figure 2bSchematic diagram of the distribution of multiple pressure sensors in another sofa disclosed in an embodiment of the present application. Based on the clustering results, the sofa can be divided into one or more target areas. Two target areas are used as an example below. These target areas include a first target area 203 and a second target area 204. First target area 203 includes nine force-bearing locations corresponding to pressure sensors 202, and is comprised of the areas corresponding to these nine pressure sensors 202. Second target area 204 includes three force-bearing locations corresponding to pressure sensors 202, and is comprised of the areas corresponding to these three pressure sensors 202.

[0073] 103. Calculate the pressure statistics corresponding to each target area according to the pressure value corresponding to each target area.

[0074] Pressure statistics include pressure variance and pressure average.

[0075] Since variance is a statistic that measures the degree of dispersion in data, the pressure variance value can be used to provide information about pressure distribution. Typically, the pressure distribution of a person on a sofa is more concentrated. This is because humans are larger than animals, have a more stable center of gravity, and move more regularly. The pressure distribution of animals on a sofa is more dispersed and irregular. This is because animals (such as cats and dogs) may make contact with the sofa with their paws when walking on it. These paws are more dispersed and have a smaller contact surface, potentially exhibiting greater irregularity and dispersion. A larger pressure variance value for a target area indicates a more dispersed pressure distribution within the target area; a smaller pressure variance value for a target area indicates a more concentrated pressure distribution within the target area.

[0076] For each target area, the sofa can calculate the pressure variance value of the target area based on the pressure values ​​respectively collected by multiple pressure sensors corresponding to the target area.

[0077] Since the average pressure value can be used to measure the average pressure level of the target area, generally speaking, the weight of a person is much larger than that of a pet. Therefore, if a person is in the target area, the average pressure value corresponding to the target area is larger; if an animal is in the target area, the average pressure value corresponding to the target area is smaller.

[0078] For each target area, the sofa can calculate the average pressure value of the target area based on the pressure values ​​collected by multiple pressure sensors corresponding to the target area.

[0079] It should be noted that the pressure statistics may also include the median pressure value, the average pressure change rate, etc., which are not specifically limited.

[0080] 104. According to the area and pressure statistics corresponding to each target area, determine the human body area and the animal area from each target area.

[0081] Generally speaking, humans are larger than pets. Therefore, if the target area is where humans are, the area corresponding to the target area is larger; if the target area is where animals are, the area corresponding to the target area is smaller.

[0082] The human body area may be the area where a person is in contact with the sofa, and the animal area may be the area where an animal is in contact with the sofa.

[0083] In some embodiments, the sofa determines the human body area and animal area from each target area based on the area and pressure statistics corresponding to each target area. It can be based on the result of weighted summation of the area area, pressure variance value and pressure average value, and determines the human body area and animal area from each of the target areas based on the result of weighted summation.

[0084] In some embodiments, the sofa determines the human body area and the animal area from each target area according to the area and pressure statistics corresponding to each target area, which may include the following steps:

[0085] The target areas in each target area whose area is greater than the area threshold, whose pressure variance value is less than the variance threshold, and whose pressure average value is greater than the mean threshold are determined as human areas; the target areas in each target area whose area is less than the area threshold, whose pressure variance value is greater than the variance threshold, and whose pressure average value is less than the mean threshold are determined as animal areas.

[0086] The area threshold, variance threshold, and mean threshold can be determined by the manufacturer during the production process based on the pressure exerted on the sofa by different people, animals, and objects and through multiple pressure test results. Different values ​​can be used for sofas of different materials and structures.

[0087] In some embodiments, the pressure statistics may also include an average pressure change rate. The sofa can identify human and animal areas from each target area based on the average pressure change rate, area, pressure variance, and average pressure value corresponding to each target area. Because animals walking on the sofa have irregular footsteps and strides, which are highly variable, the average pressure change rate corresponding to the target area is higher if the animal is in the target area. For example, the average pressure change rate can be the average change per second in the average pressure value corresponding to the target area.

[0088] Introducing the average pressure change rate together with the regional area, pressure variance value and pressure average value to jointly determine the human body area and animal area can improve the accuracy of determining the human body area and animal area.

[0089] 105. When a massage instruction is received, the multiple airbags in the backrest area corresponding to the human body area are controlled to inflate and deflate according to the massage instruction, so as to massage the user located in the human body area.

[0090] The massage command received by the sofa may be sent by a mobile terminal or a remote controller that is in communication with the sofa, or may be generated by a user triggering a button on a control panel of the sofa.

[0091] The sofa and the mobile terminal can be connected to each other through wireless communication methods such as Bluetooth, mobile cellular data network, Wi-Fi (Wireless Fidelity), etc., without limitation.

[0092] The massage instruction may carry the inflation and deflation rate and inflation volume corresponding to each airbag in the backrest area corresponding to the human body area.

[0093] The sofa controls the inflation and deflation of multiple airbags in the backrest area corresponding to the body area according to massage commands, applying varying degrees of pressure and support to the body to achieve a massage effect. For example, the sofa can sequentially inflate the airbags in the backrest area from top to bottom, gradually pushing them downwards, and then deflate them one by one, simulating a massage action from top to bottom.

[0094] like Figure 2c As shown, Figure 2c This is a schematic diagram of the area divisions of a sofa disclosed in an embodiment of this application. The sofa includes a human area 205 and an animal area 206; both areas are located in the sofa's seat cushion area 201. The human area 205 corresponds to a backrest area 207. Upon receiving a massage command, the sofa controls the inflation and deflation of multiple airbags in the backrest area 207 corresponding to the human area 205.

[0095] In the embodiment of the present application, the sofa can determine the force-bearing area in the sofa based on the pressure value collected by the pressure sensor in the sofa, and then cluster the various force position points in the force-bearing area to accurately divide the force-bearing area into one or more target areas with large differences in force conditions according to the clustering results, and accurately determine the human body area and animal area from each target area according to the area and pressure statistical values ​​corresponding to each target area, so that only the human body area can be massaged without scaring the pet, so that when the sofa is massaging the human body, both the person and the pet can be on the sofa at the same time.

[0096] Please see further Figure 3 , Figure 3 This is a flow chart of another sofa-based partitioning method disclosed in an embodiment of the present application, which can be applied to a sofa; the sofa includes multiple pressure sensors and multiple air bags, and the sofa also includes a vibrator;Figure 3 As shown, the sofa-based partitioning method may include the following steps:

[0097] 301. Pressure values ​​are collected by multiple pressure sensors, and a force-bearing area in the sofa is determined according to the pressure values.

[0098] The force-bearing area is an area where the pressure value collected by the corresponding pressure sensor is greater than the first pressure threshold.

[0099] The implementation of step 301 may refer to the above embodiment and will not be described in detail.

[0100] 302. Determine the position points corresponding to the pressure sensors in the force-bearing area as force-bearing position points, cluster the force-bearing position points according to the pressure values ​​corresponding to the force-bearing position points, and divide the force-bearing area into one or more target areas according to the clustering results.

[0101] In some embodiments, the sofa clusters each stress point according to the pressure value corresponding to each stress point, and divides the stress area into one or more target areas according to the clustering result, which may include the following steps:

[0102] According to the pressure values ​​corresponding to the various stress positions, the pressure characteristics corresponding to the various stress positions are determined; the pressure characteristics include one or more characteristics of the maximum pressure value, minimum pressure value, median pressure value, average pressure value, and pressure variance value corresponding to the stress positions; according to the pressure characteristics corresponding to the various stress positions, the various stress positions are clustered, and the stress area is divided into one or more target areas according to the clustering results.

[0103] The maximum pressure value, minimum pressure value, median pressure value, average pressure value, and pressure variance value corresponding to each stress position point can be the maximum pressure value, minimum pressure value, median pressure value, average pressure value, and variance value of the pressure values ​​collected by the pressure sensor corresponding to the stress position point within the preset time length; optionally, the preset time length can be 5 minutes or 10 minutes, without specific limitation.

[0104] In some embodiments, the pressure characteristics may also include kurtosis, which is a characteristic that characterizes the height of the peak of the probability density distribution curve at the mean value, and can be used to reflect the sharpness of the peak; the pressure distribution of people on the sofa is more concentrated and stable, and the pressure distribution of animals is more dispersed and variable, resulting in large differences in the kurtosis of the pressure values ​​corresponding to the force-bearing points of people and animals on the sofa. Therefore, kurtosis can also be used as a pressure feature for dividing the force-bearing areas.

[0105] The sofa clusters each stress point according to one or more characteristics of the maximum pressure, minimum pressure, median pressure, average pressure, and pressure variance value corresponding to each stress point, which can improve the accuracy of the clustering results and accurately divide the stress area into one or more target areas based on the clustering results.

[0106] 303. Calculate the pressure statistics corresponding to each target area according to the pressure value corresponding to each target area.

[0107] Pressure statistics include pressure variance and pressure average.

[0108] 304. Determine a human body region and an animal region from each target region based on the region area and pressure statistics corresponding to each target region.

[0109] 305. When a massage instruction is received, the multiple airbags in the backrest area corresponding to the human body area are controlled to inflate and deflate according to the massage instruction, so as to massage the user located in the human body area.

[0110] The implementation of steps 303 to 305 may refer to the above embodiment and will not be described in detail.

[0111] 306. Determine the number of times the pressure sensor corresponding to the animal area collects pressure peaks within a unit time period.

[0112] The sofa determines the number of times that the pressure sensor corresponding to the animal area collects pressure peaks within a unit time period, where the pressure peak refers to a pressure value greater than a second pressure threshold.

[0113] Since the claws of animals are sharp and the contact area with the sofa is small, the pressure effect on the sofa is more obvious. Therefore, if the animal in the animal area is scratching the sofa, the pressure sensor corresponding to the animal area will collect a large pressure value. If the collected pressure value exceeds the second pressure threshold, it can be used as a pressure peak.

[0114] The second pressure threshold can be determined by the manufacturer during the production process based on the pressure exerted on the sofa by different animals and through multiple pressure test results. It can be different values ​​for sofas of different materials and structures. For example, the second pressure threshold can be 1000 Pascals (Pa), which is not limited in the embodiments of the present application.

[0115] The number of pressure peaks detected by the pressure sensor corresponding to the animal area within a unit time period can be used to reflect the frequency of the animal's scratching; the greater the number, the higher the scratching frequency. Optionally, the unit time period can be 2 seconds or 3 seconds, without specific limitation.

[0116] 307. If the number of times is greater than the threshold number of times, it is determined that the animal area is in a state of being scratched by an animal, and the vibrator corresponding to the animal area is controlled to vibrate to drive away the animal in the animal area.

[0117] If the number of times is greater than the number threshold, it is determined that the animal area is being scratched by the animal. This can rule out the situation where the animal accidentally pokes the sofa with its claws and generates a pressure peak. If the number of times is greater than the number threshold, it means that the animal is scratching the animal area on the sofa.

[0118] In order to protect the sofa from being damaged, the sofa can control the vibrator corresponding to the animal area to vibrate. Since animals are sensitive to vibration and noise, they may feel uneasy when the sofa vibrates. Therefore, the vibration of the vibrator corresponding to the animal area in the sofa can drive away the animals in the animal area.

[0119] Therefore, the embodiment of the present application can accurately divide the animal area and determine whether to drive away the animals in the animal area based on the number of pressure peaks collected by the pressure sensor corresponding to the animal area within a unit time period, which helps prevent animals from damaging the sofa and improves the protection effect of the sofa.

[0120] In some embodiments, the sofa may further perform the following steps: obtaining multiple historical animal areas that appear in a period of time on the sofa; selecting an area with the most overlaps between the multiple historical animal areas as a target cleaning area; controlling a first airbag corresponding to the target cleaning area to inflate and deflate, so as to adjust the inflation volume of the first airbag to a first inflation volume; the first airbag is an airbag in an area near the backrest of the sofa in the target cleaning area, and the first inflation volume is greater than a standard inflation volume;

[0121] And / or, controlling the second airbag corresponding to the target cleaning area to perform inflation and deflation operations to adjust the inflation volume of the second airbag to a second inflation volume; the second airbag is an airbag in the target cleaning area away from the backrest area of ​​the sofa, and the second inflation volume is less than the standard inflation volume; controlling the vibrator corresponding to the target cleaning area to vibrate to clean the target cleaning area.

[0122] Historical animal areas can be areas identified by the software within the past period. For example, the software can obtain multiple historical animal areas identified within the past month. The area with the most overlap between these historical animal areas indicates that the animals frequently use these areas, and therefore they can be used as target cleaning areas. Areas frequently used by animals often have more dust and animal hair, so these areas are identified as target cleaning areas, allowing the software to clean these target cleaning areas.

[0123] The sofa can be provided with multiple air bags, such as Figure 4a As shown, Figure 4ais a distribution diagram of multiple air bags in a sofa disclosed by an embodiment of the present application; optionally, as shown in Figure 4a The sofa includes multiple air bags, taking the first air bag 401, the second air bag 402, the third air bag 403 and the fourth air bag 404 as examples, two or more air bags can be generally arranged in the seat cushion area of the sofa along the direction from the backrest area of the sofa to the edge of the sofa, so that the target cleaning area of the sofa can be inclined downward by controlling the inflation amount of each air bag; as shown in Figure 4a The first air bag 401 and the third air bag 403 are air bags close to the backrest area of the sofa, and the second air bag 402 and the fourth air bag 404 are air bags away from the backrest area of the sofa. The number and arrangement of the air bags are not limited by the embodiments of the present application.

[0124] It should be noted that the first air bag corresponding to the target cleaning area can be an air bag close to the backrest area of the sofa with the largest overlapping area corresponding to the target cleaning area in the sofa, and the second air bag can be an air bag away from the backrest area of the sofa with the largest overlapping area corresponding to the target cleaning area in the sofa.

[0125] As shown in Figure 4b , Figure 4b is another distribution diagram of multiple air bags in a sofa disclosed by an embodiment of the present application. The target cleaning area 400 on the sofa corresponds to the first air bag 401 and the second air bag 402; the first air bag 401 and the second air bag 402 are built-in in the seat cushion area of the sofa, the first air bag 401 is an air bag close to the backrest area of the sofa, and the second air bag 402 is an air bag away from the backrest area of the sofa.

[0126] Therefore, in order to make the target cleaning area of the sofa inclined downward, the sofa can control the first air bag to perform inflation and deflation operation, and adjust the inflation amount of the first air bag to the first inflation amount greater than the standard inflation amount. In this case, the sofa can not perform inflation and deflation operation on the second air bag, so that the second air bag can be kept at the standard inflation amount, so that the part corresponding to the target cleaning area of the first air bag is higher than the part corresponding to the target cleaning area of the second air bag, so that the target cleaning area of the sofa is inclined downward; or, the sofa can perform inflation and deflation operation on the second air bag, and adjust the inflation amount of the second air bag to be less than the standard inflation amount, so that the part corresponding to the target cleaning area of the first air bag is higher than the part corresponding to the target cleaning area of the second air bag, and the angle of the target cleaning area of the sofa inclined downward is greater.

[0127] Alternatively, the sofa can control the second airbag to inflate or deflate, adjusting the second airbag's inflation volume to a second inflation volume that is less than the standard inflation volume. In this case, the sofa can keep the first airbag at the standard inflation volume without inflating or deflation, so that the first airbag can be maintained at the standard inflation volume. In this way, the portion of the first airbag corresponding to the target cleaning area is higher than the portion of the second airbag corresponding to the target cleaning area, causing the sofa's target cleaning area to tilt downward. Alternatively, the sofa can inflate or deflate the first airbag, adjusting the first airbag's inflation volume to a second inflation volume greater than the standard inflation volume. In this way, the portion of the first airbag corresponding to the target cleaning area is higher than the portion of the second airbag corresponding to the target cleaning area, and the sofa's target cleaning area tilts downward at a greater angle.

[0128] By performing the above steps, the areas most frequently used by animals in the recent period can be cleaned regularly, thereby improving the intelligent level of sofa cleaning. Furthermore, targeted cleaning can save power consumption of the sofa and improve the cleaning effect. Furthermore, by controlling the inflation and deflation operations of the airbags in the target cleaning area of ​​the sofa so that the target cleaning area is tilted downward, and by controlling the vibrator in the target cleaning area to vibrate so that dust and animal hair in the target cleaning area are shaken off, the cleaning effect of the sofa can be improved.

[0129] As an optional embodiment, vibrators are built into the seat cushion area of ​​the sofa, and the number of vibrators can correspond to the number of airbags, and they are arranged near the airbags. The sofa controls the vibrators corresponding to the target cleaning area to vibrate to clean the target cleaning area, which can include the following steps: controlling the vibrator corresponding to the first airbag to vibrate at a first vibration intensity to vibrate dust or animal hair in the target cleaning area near the backrest area to an area away from the backrest area or outside the sofa; and then controlling the vibrator corresponding to the second airbag to vibrate at a second vibration intensity to vibrate dust or animal hair in the target cleaning area away from the backrest area to outside the sofa; the first vibration intensity is greater than the second vibration intensity. Because dust or animal hair near the backrest area is less likely to be swept off the sofa than dust or animal hair far from the backrest area, performing the above steps, by increasing the vibration intensity of the vibrator corresponding to the first airbag and sequentially controlling the vibrators corresponding to the first airbag and the second airbag to vibrate, can more effectively sweep animal hair and hair in the target cleaning area away from the sofa, thereby improving the cleaning effect of the sofa.

[0130] In the embodiment of the present application, the sofa can determine the force area in the sofa based on the pressure value collected by the pressure sensor in the sofa, and then cluster the various force position points in the force area to accurately divide the force area into one or more target areas with large differences in force conditions according to the clustering results, and accurately determine the human body area and animal area from each target area according to the area and pressure statistical values ​​corresponding to each target area, so that only the human body area can be massaged without scaring the pet, so that people and pets can be on the sofa at the same time when the sofa is massaging the human body; and after accurately determining the animal area, it can be determined whether to drive away the animals in the animal area according to the number of pressure peaks collected by the pressure sensor corresponding to the animal area within a unit time period, which helps to prevent animals from damaging the sofa and improves the protection effect of the sofa.

[0131] Please see further Figure 5 , Figure 5 This is a flow chart of another sofa-based partitioning method disclosed in an embodiment of the present application. This method can be applied to a sofa comprising multiple pressure sensors and multiple airbags; Figure 5 As shown, the sofa-based partitioning method may include the following steps:

[0132] 501. Pressure values ​​are collected by multiple pressure sensors, and a force-bearing area in the sofa is determined according to the pressure values.

[0133] The force-bearing area is an area where the pressure value collected by the corresponding pressure sensor is greater than the first pressure threshold.

[0134] 502. Determine the position points corresponding to the pressure sensors in the force-bearing area as force-bearing position points, cluster the force-bearing position points according to the pressure values ​​corresponding to the force-bearing position points, and divide the force-bearing area into one or more target areas according to the clustering results.

[0135] 503. Calculate the pressure statistics corresponding to each target area according to the pressure value corresponding to each target area.

[0136] Pressure statistics include pressure variance and pressure average.

[0137] 504. Determine a human body region and an animal region from each target region based on the region area and pressure statistics corresponding to each target region.

[0138] 505. When a massage instruction is received, the multiple airbags in the backrest area corresponding to the human body area are controlled to inflate and deflate according to the massage instruction, so as to massage the user located in the human body area.

[0139] The implementation of steps 501 to 505 may refer to the above embodiment and will not be described in detail.

[0140] 506. When receiving the entertainment instruction, send a first control instruction to the laser device, so that the laser device projects a laser beam to a first projection area in the sofa according to the first control instruction.

[0141] When receiving the entertainment instruction, the sofa sends a first control instruction to the laser device, so that the laser device projects a laser beam to a first projection area in the sofa according to the first control instruction; the first projection area is an area excluding the human body area and the animal area.

[0142] The entertainment command received by the sofa may be sent by a mobile terminal or a remote controller that is in communication with the sofa, or may be generated by a user triggering a button on a control panel of the sofa.

[0143] Optionally, the laser device can be installed in the ceiling above the sofa or on the wall around the sofa, without specific limitation.

[0144] A laser device is a device that can be used to generate, manipulate and emit laser beams. The laser beam may include a group of highly focused, monochromatic, coherent lasers. The lasers may include but are not limited to red lasers with wavelengths between 630 nanometers and 670 nanometers, green lasers with wavelengths between 520 and 570 nanometers, and blue lasers with wavelengths between 445 nanometers and 480 nanometers.

[0145] Optionally, the first control instruction may include the projection direction of the laser beam, the moving direction of the laser beam, and the moving speed of the laser beam; the sofa can calculate the vector difference of the laser device pointing to the first projection area based on the position of the laser device and the position of the first projection area, and standardize the vector difference to unit length. The normalized vector difference represents the direction from the laser source to the target area, which can be used as the projection direction of the laser beam; the laser device can project the laser beam to the first projection area in the sofa according to the projection direction of the laser beam carried in the first control instruction.

[0146] Optionally, the sofa obtains the position of the laser device and the position of the first projection area by obtaining the position of the first projection area based on the distance between the first projection area and the reference point position on the sofa; the reference point position on the sofa may be the position of a sofa marker pre-stored on the sofa or the position of a sensor node; the vector difference may be calculated relative to the reference point on the sofa; the laser device may also project infrared rays for laser ranging, and by projecting infrared rays to the reference point position on the sofa, the distance between the laser source of the laser device and the target area may be determined; the sofa may determine the position of the first projection area relative to the laser device based on the distance between the laser source of the laser device and the target area and the reference point position on the sofa.

[0147] The laser device projects a laser beam onto a first projection area of ​​the sofa except for the human body area and the animal area, which can prevent the laser beam from directly irradiating the human body and the animal, and helps to improve the safety of sofa games.

[0148] 507. Control the sound device corresponding to the first projection area to play animal sounds to attract animals in the animal area to chase the laser beam.

[0149] The sound device may include but is not limited to a speaker and a sound system, etc. The sofa has multiple built-in sound devices, and the sound device corresponding to the first projection area may include one or more sound devices falling within the range of the first projection area.

[0150] The animal sounds can be pre-stored audios on the sofa, and users can send the audios of animal sounds to the sofa through the mobile terminal. The sofa increases the interactivity of entertainment with pets through sound effects and stimulates the participation of pets.

[0151] 508. During the movement of the animal, the animal area of ​​the sofa is updated according to the pressure values ​​collected by multiple pressure sensors, and when it is determined that the distance between the center point of the updated animal area and the laser beam is less than a distance threshold, a second control instruction is sent to the laser device, so that the laser device projects the laser beam to the second projection area in the sofa according to the second control instruction.

[0152] The second projection area is the area excluding the human body area and the updated animal area.

[0153] Since the animal area on the sofa will also change as the animal chases the laser beam, by determining whether the distance between the center point of the updated animal area and the laser beam is less than the distance threshold, it can be determined whether the animal is about to reach the laser beam. The projection area of ​​the laser beam on the sofa can be switched in time, which helps to avoid the laser beam directly irradiating the animal and improves the safety of the sofa game; the distance threshold can be 15 cm or 20 cm, without specific limitation.

[0154] When it is determined that the distance between the center point of the updated animal area and the laser beam is less than the distance threshold, the sofa can determine a second projection area based on the human body area and the area outside the updated animal area, and determine the projection direction of the laser beam based on the position of the second projection area and the position of the laser device, generate a second control instruction based on the projection direction of the laser beam, and send the second control instruction to the laser device so that the laser device projects the laser beam to the second projection area in the sofa according to the second control instruction.

[0155] Optionally, the sofa can also control the movement speed and trajectory of the laser beam emitted by the laser device in the sofa to provide a gaming experience suitable for pets.

[0156] Through the above steps, the sofa can repeatedly update the animal area and the projection area of ​​the laser beam in the sofa, and the animal can continuously chase the laser beam on the sofa. When implementing the laser beam chasing game, the safety of the animal is guaranteed and the gaming experience of the animal on the sofa is improved.

[0157] In some embodiments, the sofa further includes a heating device and a cooling device; after determining the human body region and the animal region from each target region based on the area and pressure statistics corresponding to each target region, the sofa further performs the following steps:

[0158] Obtain the indoor ambient temperature around the sofa; if the indoor ambient temperature is lower than a first temperature threshold, control the heating device corresponding to the human body area to adjust the temperature of the human body area to a first temperature, and control the heating device corresponding to the animal area to adjust the temperature of the animal area to a second temperature; the second temperature is lower than the first temperature; if the indoor ambient temperature is higher than the second temperature threshold, control the cooling device corresponding to the human body area to adjust the temperature corresponding to the human body area to a third temperature, and control the cooling device corresponding to the animal area to adjust the temperature corresponding to the animal area to a fourth temperature; the third temperature is higher than the fourth temperature.

[0159] The indoor ambient temperature may be obtained by the sofa through a built-in thermometer and hygrometer; or, the sofa may receive data sent by a mobile terminal.

[0160] Since animals are generally more resistant to cold than humans, if the indoor ambient temperature is lower than the first temperature threshold, it means that the room is in a cold environment. The first temperature threshold can be 8 degrees Celsius or 10 degrees Celsius, without specific limitation. The sofa can control the heating device corresponding to the human body area to adjust the temperature of the human body area to the first temperature, for example, 30 degrees Celsius, and control the heating device corresponding to the animal area to adjust the temperature of the animal area to the second temperature, for example, 25 degrees Celsius, so that the sofa can heat the human body area more significantly.

[0161] Since animals' heat tolerance is generally weaker than humans', if the indoor ambient temperature is higher than the second temperature threshold, it means that the room is in a hot environment. The second temperature threshold can be 28 degrees Celsius or 30 degrees Celsius, without specific limitation. The sofa can control the cooling device corresponding to the human body area to adjust the temperature corresponding to the human body area to the third temperature, for example, 20 degrees Celsius, and control the heating device corresponding to the animal area to adjust the temperature corresponding to the animal area to the fourth temperature, for example, 15 degrees Celsius, so that the sofa can more obviously cool the animal area.

[0162] After performing the above steps and accurately dividing the human area and the animal area, the temperature of the human area and the animal area can be adjusted separately to adapt to the changes in different indoor ambient temperatures, thereby improving the comfort of people and pets on the sofa at the same time.

[0163] In the embodiment of the present application, the sofa can determine the force area in the sofa based on the pressure value collected by the pressure sensor in the sofa, and then cluster the various force position points in the force area to accurately divide the force area into one or more target areas with relatively different force conditions according to the clustering results, and accurately determine the human body area and animal area from each target area according to the area and pressure statistical value corresponding to each target area, so that only the human body area can be massaged without scaring the pet, so that the person and the pet can be on the sofa at the same time when the sofa is massaging the human body; and after accurately determining the human body area and the animal area, the sofa plays animal sounds and controls the laser device to project laser beams in areas outside the human body area and the animal area, which not only improves the safety of humans and animals playing sofa games, but also helps to guide the animals to chase the laser beams, thereby improving the gaming experience of the animals on the sofa and improving the interactivity and entertainment of humans and animals on the sofa at the same time.

[0164] like Figure 6 As shown, Figure 6 1 is a schematic structural diagram of a sofa-based partitioning device disclosed in an embodiment of the present application. The sofa includes multiple pressure sensors and multiple airbags. The sofa-based partitioning device 600 includes: a pressure acquisition module 610, a region division module 620, a calculation module 630, a region determination module 640, and a massage module 650.

[0165] The pressure acquisition module 610 is configured to acquire pressure values ​​through a plurality of pressure sensors and determine a force-bearing area of ​​the sofa according to the pressure values; the force-bearing area is an area where the pressure value acquired by the corresponding pressure sensor is greater than a first pressure threshold;

[0166] The region division module 620 is configured to determine the locations corresponding to the pressure sensors in the force-bearing region as force-bearing locations, cluster the force-bearing locations according to the pressure values ​​corresponding to the force-bearing locations, and divide the force-bearing region into one or more target regions based on the clustering results;

[0167] A calculation module 630 is configured to calculate a pressure statistic corresponding to each target area based on the pressure value corresponding to each target area, where the pressure statistic includes a pressure variance value and a pressure average value;

[0168] A region determination module 640 is configured to determine a human region and an animal region from each target region based on the region area and pressure statistics corresponding to each target region;

[0169] The massage module 650 is used to control the multiple airbags in the backrest area corresponding to the human body area to perform inflation and deflation operations according to the massage instruction when a massage instruction is received, so as to massage the user located in the human body area.

[0170] In some embodiments, the region determination module 640 is also used to determine the target regions in each target region whose region area is greater than the area threshold, whose pressure variance value is less than the variance threshold, and whose pressure average value is greater than the mean threshold as human regions; and to determine the target regions in each target region whose region area is less than the area threshold, whose pressure variance value is greater than the variance threshold, and whose pressure average value is less than the mean threshold as animal regions.

[0171] In some embodiments, the sofa further includes a vibrator; the sofa-based partitioning device 600 further includes a vibration module;

[0172] The vibration module is used to perform the following steps after the area determination module 640 determines the human area and the animal area from each target area based on the area and pressure statistics corresponding to each target area: determining the number of pressure peaks collected by the pressure sensor corresponding to the animal area within a unit time period; the pressure peak refers to a pressure value greater than a second pressure threshold; if the number is greater than the number threshold, it is determined that the animal area is in a state of being scratched by an animal, and the vibrator corresponding to the animal area is controlled to vibrate to drive away the animals in the animal area.

[0173] In some embodiments, the sofa further includes a vibrator; the sofa-based partitioning device 600 further includes a cleaning module;

[0174] A cleaning module is used to obtain multiple historical animal areas that appear on a sofa within a periodic time period; the area with the most overlaps between the multiple historical animal areas is used as the target cleaning area; the first airbag corresponding to the target cleaning area is controlled to be inflated and deflated to adjust the inflation volume of the first airbag to a first inflation volume; the first airbag is an airbag in the target cleaning area close to the backrest area of ​​the sofa, and the first inflation volume is greater than the standard inflation volume; and / or, the second airbag corresponding to the target cleaning area is controlled to be inflated and deflated to adjust the inflation volume of the second airbag to a second inflation volume; the second airbag is an airbag in the target cleaning area far from the backrest area of ​​the sofa, and the second inflation volume is less than the standard inflation volume; and the vibrator corresponding to the target cleaning area is controlled to vibrate to clean the target cleaning area.

[0175] In one embodiment, the area division module 620 is also used to determine the pressure characteristics corresponding to each force position point based on the pressure values ​​corresponding to each force position point; the pressure characteristics include one or more characteristics of the maximum pressure value, minimum pressure value, median pressure value, average pressure value, and pressure variance value corresponding to the force position point; according to the pressure characteristics corresponding to each force position point, each force position point is clustered, and the force area is divided into one or more target areas according to the clustering results.

[0176] In one embodiment, the sofa-based partitioning device 600 further includes an entertainment module;

[0177] The entertainment module is used to perform the following steps after the area determination module 640 determines the human body area and the animal area from each target area based on the area and pressure statistics corresponding to each target area: when receiving the entertainment instruction, send a first control instruction to the laser device so that the laser device projects a laser beam to a first projection area in the sofa according to the first control instruction; the first projection area is an area other than the human body area and the animal area; control the sound device corresponding to the first projection area to play animal sounds to attract animals in the animal area to chase the laser beam; during the movement of the animal, update the animal area of ​​the sofa according to the pressure values ​​collected by multiple pressure sensors, and when it is determined that the distance between the center point of the updated animal area and the laser beam is less than a distance threshold, send a second control instruction to the laser device so that the laser device projects the laser beam to a second projection area in the sofa according to the second control instruction; the second projection area is an area other than the human body area and the updated animal area.

[0178] In one embodiment, the sofa further includes a heating device and a cooling device; the sofa-based partitioning device 600 further includes a temperature adjustment module;

[0179] The temperature adjustment module is configured to perform the following steps after the region determination module 640 determines the human region and the animal region from each target region based on the region area and pressure statistics corresponding to each target region:

[0180] Obtain the indoor ambient temperature around the sofa; if the indoor ambient temperature is lower than a first temperature threshold, control the heating device corresponding to the human body area to adjust the temperature of the human body area to a first temperature, and control the heating device corresponding to the animal area to adjust the temperature of the animal area to a second temperature; the second temperature is lower than the first temperature; if the indoor ambient temperature is higher than the second temperature threshold, control the cooling device corresponding to the human body area to adjust the temperature corresponding to the human body area to a third temperature, and control the cooling device corresponding to the animal area to adjust the temperature corresponding to the animal area to a fourth temperature; the third temperature is higher than the fourth temperature.

[0181] In the embodiment of the present application, the sofa can determine the force-bearing area in the sofa based on the pressure value collected by the pressure sensor in the sofa, and then cluster the various force position points in the force-bearing area to accurately divide the force-bearing area into one or more target areas with large differences in force conditions according to the clustering results, and accurately determine the human body area and animal area from each target area according to the area and pressure statistical values ​​corresponding to each target area, so that only the human body area can be massaged without scaring the pet, so that when the sofa is massaging the human body, both the person and the pet can be on the sofa at the same time.

[0182] like Figure 7 As shown, Figure 7 : is a schematic diagram of the structure of an electronic device disclosed in an embodiment of the present application; in one embodiment, an electronic device is provided, which may include:

[0183] A memory 710 storing executable program code;

[0184] a processor 720 coupled to the memory 710;

[0185] The processor 720 calls the executable program code stored in the memory 710 to implement the sofa-based partitioning method provided in the above embodiments.

[0186] The memory 710 may include a random access memory (RAM) or a read-only memory (ROM). The memory 710 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 710 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 electronic device during use.

[0187] The processor 720 may include one or more processing cores. The processor 720 utilizes various interfaces and circuits to connect various components within the electronic device. It executes instructions, programs, code sets, or instruction sets stored in the memory 710, as well as accesses data stored in the memory 710, to perform various functions of the electronic device and process data. Optionally, the processor 720 may be implemented using at least one of the following hardware forms: a digital signal processing (DSP), a field-programmable gate array (FPGA), or a programmable logic array (PLA). The processor 720 may integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. The CPU primarily processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem handles wireless communications. It is understood that the modem may not be integrated into the processor 720 and may be implemented separately via a communication chip.

[0188] It is understandable that the electronic device may include more or fewer structural elements than those in the above structural block diagram, for example, a power module, physical buttons, WiFi (Wireless Fidelity) module, speakers, Bluetooth modules, sensors, etc., and is not limited here.

[0189] 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 methods described in the above embodiments.

[0190] In addition, an embodiment of the present application further discloses a computer program product, which, when executed on a computer, enables the computer to execute all or part of the steps in any one of the sofa-based partitioning methods described in the above embodiments.

[0191] 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.

[0192] The above is a detailed introduction to a sofa-based partitioning method, device, electronic device and 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 used to help understand the method and core idea of ​​the present application. At the same time, for those skilled in the art, according to the ideas of the present application, there may be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A partitioning method based on a sofa, characterized in that: The sofa includes a plurality of pressure sensors and a plurality of air bags; the sofa also includes a vibrator; and the method includes: The plurality of pressure sensors are used to collect pressure values, and a force-bearing area in the sofa is determined according to the pressure values; the force-bearing area is an area where the pressure value collected by the corresponding pressure sensor is greater than a first pressure threshold; Determining positions corresponding to pressure sensors in the force-bearing area as force-bearing positions, clustering the force-bearing positions according to pressure values ​​corresponding to the force-bearing positions, and dividing the force-bearing area into one or more target areas according to the clustering results; Calculating pressure statistics corresponding to each target area according to the pressure values ​​corresponding to each target area, wherein the pressure statistics include a pressure variance value and a pressure average value; determining a human body region and an animal region from each of the target regions according to the region area and pressure statistics corresponding to each of the target regions; Upon receiving a massage instruction, the plurality of airbags in the backrest area corresponding to the human body area are controlled to inflate and deflate according to the massage instruction, so as to massage the user located in the human body area; After determining the human body region and the animal region from each of the target regions based on the region area and pressure statistics corresponding to each of the target regions, the method further includes: Determining the number of pressure peaks collected by the pressure sensor corresponding to the animal area within a unit time period; the pressure peak refers to a pressure value greater than a second pressure threshold; If the number of times is greater than the number threshold, it is determined that the animal area is in a state of being scratched by an animal, and the vibrator corresponding to the animal area is controlled to vibrate to drive away the animal on the animal area.

2. The method according to claim 1, characterized in that The determining of the human body region and the animal region from each of the target regions according to the region area and pressure statistics corresponding to each of the target regions includes: Determine, as a human body region, a target region whose area is greater than an area threshold, whose pressure variance is less than a variance threshold, and whose pressure average is greater than a mean threshold in each target region; The target regions whose area is smaller than the area threshold, whose pressure variance is larger than the variance threshold, and whose pressure average is smaller than the mean threshold are determined as animal regions.

3. The method according to any one of claims 1-2, characterized in that The sofa further includes a vibrator; and the method further includes: Obtain multiple historical animal regions where the sofa appears within a period of time; The area with the largest number of overlaps among the multiple historical animal areas is selected as the target cleaning area; controlling a first airbag corresponding to the target cleaning area to perform an inflation and deflation operation to adjust the inflation volume of the first airbag to a first inflation volume; the first airbag is an airbag in the target cleaning area near the backrest area of ​​the sofa, and the first inflation volume is greater than a standard inflation volume; and / or controlling a second airbag corresponding to the target cleaning area to perform an inflation and deflation operation to adjust the inflation volume of the second airbag to a second inflation volume; the second airbag is an airbag in the target cleaning area far from the backrest area of ​​the sofa, and the second inflation volume is less than the standard inflation volume; The vibrator corresponding to the target cleaning area is controlled to vibrate to clean the target cleaning area.

4. The method according to claim 1, wherein Clustering the force-bearing points according to the pressure values ​​corresponding to the force-bearing points, and dividing the force-bearing area into one or more target areas according to the clustering results, includes: Determine the pressure characteristics corresponding to each of the force-bearing position points according to the pressure values ​​corresponding to each of the force-bearing position points; the pressure characteristics include one or more characteristics of the maximum pressure value, the minimum pressure value, the median pressure value, the average pressure value, and the pressure variance value corresponding to the force-bearing position point; The force-bearing position points are clustered according to the pressure characteristics corresponding to the force-bearing position points, and the force-bearing area is divided into one or more target areas according to the clustering result.

5. The method according to claim 1, wherein After determining a human body region and an animal region from each of the target regions based on the region area and pressure statistics corresponding to each of the target regions, the method further includes: Upon receiving the entertainment instruction, a first control instruction is sent to the laser device, so that the laser device projects a laser beam toward a first projection area in the sofa according to the first control instruction; the first projection area is an area excluding the human body area and the animal area; controlling a sound device corresponding to the first projection area to play animal sounds to attract animals in the animal area to chase the laser beam; During the movement of the animal, the animal area of ​​the sofa is updated according to the pressure values ​​collected by the multiple pressure sensors, and when it is determined that the distance between the center point of the updated animal area and the laser beam is less than a distance threshold, a second control instruction is sent to the laser device, so that the laser device projects the laser beam to a second projection area in the sofa according to the second control instruction; the second projection area is an area excluding the human body area and the updated animal area.

6. The method according to claim 1, characterized in that The sofa further includes a heating device and a cooling device; after determining a human body region and an animal region from each of the target regions based on the region area and pressure statistics corresponding to each of the target regions, the method further includes: Obtaining the indoor ambient temperature around the sofa; If the indoor ambient temperature is lower than a first temperature threshold, controlling the heating device corresponding to the human body region to adjust the temperature of the human body region to a first temperature, and controlling the heating device corresponding to the animal region to adjust the temperature of the animal region to a second temperature; the second temperature is lower than the first temperature; If the indoor ambient temperature is higher than the second temperature threshold, the cooling device corresponding to the human body area is controlled to adjust the temperature corresponding to the human body area to a third temperature, and the cooling device corresponding to the animal area is controlled to adjust the temperature corresponding to the animal area to a fourth temperature; the third temperature is higher than the fourth temperature.

7. A partition device based on a sofa, characterized in that: The sofa includes a plurality of pressure sensors and a plurality of air bags; the sofa also includes a vibrator; the device includes: a pressure acquisition module, configured to acquire pressure values ​​through the plurality of pressure sensors and determine a force-bearing area in the sofa according to the pressure values; the force-bearing area being an area where the pressure value acquired by the corresponding pressure sensor is greater than a first pressure threshold; an area division module, configured to determine the position points corresponding to the pressure sensors in the force-bearing area as force-bearing position points, cluster the force-bearing position points according to the pressure values ​​corresponding to the force-bearing position points, and divide the force-bearing area into one or more target areas according to the clustering results; a calculation module, configured to calculate pressure statistics corresponding to each target area according to the pressure values ​​corresponding to each target area, wherein the pressure statistics include a pressure variance value and a pressure average value; a region determination module, configured to determine a human region and an animal region from each of the target regions based on the region area and pressure statistics corresponding to each of the target regions; a massage module for controlling, upon receiving a massage instruction, the inflation and deflation operations of a plurality of airbags in the backrest area corresponding to the human body area according to the massage instruction, so as to massage the user located in the human body area; The vibration module is used to determine the number of pressure peaks collected by the pressure sensor corresponding to the animal area within a unit time period after the area division module determines the human area and the animal area from each of the target areas according to the area area and pressure statistics corresponding to each of the target areas; the pressure peak refers to a pressure value greater than a second pressure threshold; if the number is greater than the number threshold, it is determined that the animal area is in a state of being scratched by an animal, and the vibrator corresponding to the animal area is controlled to vibrate to drive away the animals in the animal area.

8. An electronic device, characterized in that: include: a memory storing executable program code; a processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the processor is caused to perform the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Vibrating mat for training pets.

    BR102018069881A2

  • Method and system for recognizing and expelling animals on towers on basis of ultrasonic waves

    CN106665556A