Equipment position determination method and device, household appliance and storage medium
By obtaining and calculating the matching degree of the environmental features of smart home appliances and automatically identifying the target space where the devices are located, the problems of cumbersome manual operations and incorrect linkage in the existing technology are solved, and automatic identification and linkage updates of smart home appliances after position changes are realized.
Patent Information
- Application Number
- CN202510657504.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-21
- Publication Date
- 2025-10-03
AI Technical Summary
Existing smart home appliances require users to manually rebind or adjust configurations after their locations change, which makes the operation cumbersome and easily causes incorrect linkage problems, affecting user experience and system intelligence.
By obtaining features such as wireless access point signals, lighting parameters, sound parameters, and temperature parameters of the current environment of the home appliance, the matching degree with pre-established standard environmental features is calculated, the target space where the device is located is automatically identified, and the weight is dynamically adjusted to improve recognition accuracy.
It realizes automatic identification and linkage strategy update of smart home appliances after location changes, reduces the burden of manual operation, reduces the risk of false linkage, and improves identification accuracy and system intelligence.
Smart Images

Figure CN120751341A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the technical field of household appliances, and in particular to a method and apparatus for determining the location of a device, a household appliance, and a storage medium. Background Art
[0002] With the rapid development of smart home technology, smart home appliances such as smart speakers, smart air conditioners, and smart lighting controllers have become widely used in homes and offices. These devices not only have the ability to operate independently but can also interact with other smart devices through IoT protocols, providing a richer automation experience.
[0003] However, in actual use, smart home appliances often need to change their location, such as being moved to another room by the user. However, after the existing devices move, users usually need to manually rebind or adjust the configuration to ensure that the devices operate normally in the new environment and correctly interact with other devices. This reliance on manual operations not only increases the user's operating burden, but also easily leads to incorrect linkage problems. For example, when a device is moved to a new room but the binding information is not updated in time, the linkage policy in the original room may still be triggered, resulting in abnormal device behavior or scene logic errors, affecting the user experience and the intelligence of the system. Therefore, there is an urgent need for a method that can accurately identify the room location of home appliances, so as to realize automatic identification and linkage policy updates of devices after room changes. Summary of the Invention
[0004] In view of this, in order to solve the above technical problems or part of the technical problems, the embodiments of the present invention provide a method and apparatus for determining the position of a device, a household appliance, and a storage medium.
[0005] In a first aspect, an embodiment of the present invention provides a method for determining a location of a device, including:
[0006] Obtain multiple current environmental features of the current environment of the home appliance;
[0007] Obtaining the standard environmental features corresponding to each space at the current moment, wherein the current environmental features correspond one-to-one to the standard environmental features;
[0008] For each space, calculating the matching degree between the multiple current environment features and the corresponding standard environment features to obtain the environment matching degree feature of each space;
[0009] The target space where the household appliance is currently located is determined according to each of the environmental matching characteristics.
[0010] In a possible implementation, the acquiring of multiple current environmental features of the current environment of the household appliance includes:
[0011] At intervals of a preset time period, the home appliance is controlled to obtain a plurality of current environmental characteristics within the current time period, wherein the current environmental characteristics include: an average value of a wireless access point signal, an average value of a light parameter, an average value of a sound parameter, and an average value of a temperature parameter;
[0012] The average value of the wireless access point signal, and / or the average value of the illumination parameter, and / or the average value of the sound parameter, and / or the average value of the temperature parameter are used as the multiple current environment features.
[0013] In one possible implementation, calculating the matching degree between the multiple current environment features and the corresponding standard environment features to obtain the environment matching degree feature of each space includes:
[0014] Calculating the matching degree between each current environment feature and the corresponding standard environment feature through a feature matching function to obtain multiple matching degrees;
[0015] Performing a weighted combination of the multiple matching degrees to obtain a similarity score between each space and the environment in which the home appliance is located;
[0016] The similarity score is used as the environment matching feature.
[0017] In one possible implementation, the method further includes:
[0018] A weight is pre-set based on the fluctuation intensity of each environmental feature over a historical period, wherein the weight is negatively correlated with the fluctuation intensity;
[0019] When the intensity of fluctuations within the historical period changes, the weights are adjusted.
[0020] In a possible implementation, determining the target space where the household appliance is currently located according to each of the environment matching features includes:
[0021] Determining a maximum environment matching feature from a plurality of said environment matching features;
[0022] When the maximum environment matching feature is greater than a set value, the space corresponding to the maximum environment matching feature is used as the target space;
[0023] When the maximum environment matching characteristic is less than or equal to a set value, the electronic device is controlled to release the currently established linkage control.
[0024] In a possible implementation, after determining the target space where the household appliance is currently located according to each of the environment matching features, the method further includes:
[0025] Determining whether the target space is consistent with a historical space corresponding to the home appliance, where the historical space represents a space in which the home appliance currently maintains linkage control;
[0026] If not, the home appliance is controlled to release the linkage control with the historical space, and the home appliance is controlled to establish linkage control with the target space.
[0027] In a possible implementation, before acquiring a plurality of current environment features of the current environment of the household appliance, the method further includes:
[0028] For each of the spaces, obtaining an average value of wireless access point signals, an average value of illumination parameters, an average value of sound parameters, and an average value of temperature parameters within multiple time periods;
[0029] taking the average values of the wireless access point signal, the average values of the illumination parameter, the average values of the sound parameter, and the average values of the temperature parameter in different time periods as the standard environmental features in the current time period;
[0030] A corresponding relationship is generated between the multiple standard environmental features corresponding to each space in different time periods for storage.
[0031] In a second aspect, an embodiment of the present invention provides a device location determination apparatus, which is applied to a home appliance, including:
[0032] A first acquisition module is used to acquire multiple current environment features in the environment in which the home appliance is currently located;
[0033] A second acquisition module is used to obtain the standard environmental features corresponding to each space at the current moment, where the current environmental features correspond to the standard environmental features in a one-to-one manner;
[0034] A calculation module, configured to calculate, for each space, a matching degree between a plurality of the current environment features and the corresponding standard environment features, to obtain an environment matching degree feature of each space;
[0035] A determination module is used to determine the target space where the household appliance is currently located according to each of the environmental matching characteristics.
[0036] In a third aspect, an embodiment of the present invention provides a household appliance, comprising: a processor and a memory, wherein the processor is used to execute a device location determination program stored in the memory to implement the device location determination method described in any one of the first aspects above.
[0037] In a fourth aspect, an embodiment of the present invention provides a storage medium storing one or more programs, which can be executed by one or more processors to implement the location determination method of the device described in any one of the first aspects above.
[0038] The device location determination solution provided by an embodiment of the present invention obtains multiple current environmental features within the environment in which the home appliance is currently located; obtains the standard environmental features corresponding to each space at the current moment, with the current environmental features corresponding to the standard environmental features one-to-one; calculates the matching degree between the multiple current environmental features and the corresponding standard environmental features for each space, obtaining an environmental matching degree feature for each space; and determines the target space currently located by the home appliance based on each environmental matching degree feature. This allows the home appliance to quickly and accurately identify a room based on the identified environmental features, effectively resolving issues in the prior art such as cumbersome manual operation, high risk of misconnection, and low home appliance recognition accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 A schematic diagram of a flow chart of a method for determining the location of a device provided in an embodiment of the present invention;
[0040] Figure 2 A schematic diagram of a flow chart of another method for determining the location of a device provided in an embodiment of the present invention;
[0041] Figure 3 A schematic flow chart of a method for determining the position of another device provided in an embodiment of the present invention;
[0042] Figure 4 A schematic structural diagram of a device for determining a position of a device provided by an embodiment of the present invention;
[0043] Figure 5 A schematic structural diagram of a household appliance provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0044] To make the objectives, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the present invention.
[0045] To facilitate understanding of the embodiments of the present invention, specific embodiments will be further explained below with reference to the accompanying drawings. The embodiments do not limit the embodiments of the present invention.
[0046] Figure 1 A flow chart of a method for determining the position of a device provided in an embodiment of the present invention is shown as follows: Figure 1 As shown, the method specifically includes:
[0047] S11. Acquire multiple current environment features of the current environment of the home appliance.
[0048] The device location determination method provided in embodiments of the present invention is applicable to home appliances that can be moved to different spaces and controlled in conjunction with other devices within those spaces. These home appliances may include, but are not limited to, smart speakers, smart air conditioners, and smart lighting controllers. Specifically, by identifying the degree of match between the current device's environmental characteristics and those of a standard environment, the home appliance can quickly and accurately identify its current room.
[0049] In this embodiment, the home appliance uses various sensors (e.g., Wi-Fi signal detection modules, light sensors, temperature sensors, acoustic sensors, etc.) to collect real-time environmental data about its current location (in a particular room) as current environmental features, reflecting the current state of the space at that point in time. Examples include: currently detectable Wi-Fi access points and their signal strengths; current indoor light intensity (in lux); current room temperature (in °C); current background noise level (in dB); etc.
[0050] S12. Obtain the standard environmental features corresponding to each space at the current moment, with the current environmental features corresponding to the standard environmental features in a one-to-one manner.
[0051] In this embodiment, the system pre-creates an environmental fingerprint (standard environmental characteristics) for each space, which is a set of typical or average environmental characteristics of the room at different time periods. During recognition, the system retrieves the standard environmental characteristics of each space at the current moment (for example, the average value for morning, afternoon, or nighttime) and compares them with the current environmental characteristics collected by the current home appliance. The current environmental characteristics correspond one-to-one with the standard environmental characteristics, such as light intensity versus light intensity, and temperature versus temperature.
[0052] S13. For each space, calculate the matching degree between multiple current environment features and corresponding standard environment features to obtain the environment matching degree feature of each space.
[0053] In this embodiment, for each space to be identified (each room in the current house is considered a space), the matching degree between the current environment characteristics and the standard environment characteristics is calculated. The matching degree can be measured using a preset function (such as a feature matching function, a normalized difference function, an exponential decay function, a distance function, etc.) to measure the similarity of each feature. Then, the matching degrees of all features are combined through a weighted average or other method to obtain a numerical value as the environment matching degree feature of the space, representing the comprehensive matching degree score within the space, which is used to determine whether each space is the environment of the current home appliance.
[0054] S14. Determine the target space where the home appliance is currently located based on each environment matching feature.
[0055] In this embodiment, the system selects the space with the highest environmental matching score from multiple spaces as the target space for the device. If the highest score is still below the confidence threshold, the system may determine the device is in an "unknown" or "changed" state, generating a prompt indicating the device's current location or state to alert the user.
[0056] The device location determination method provided by an embodiment of the present invention obtains multiple current environmental features within the environment in which the home appliance is currently located; obtains the standard environmental features corresponding to each space at the current moment, with the current environmental features corresponding to the standard environmental features one-to-one; calculates the matching degree between the multiple current environmental features and the corresponding standard environmental features for each space to obtain the environmental matching degree feature of each space; and determines the target space currently located by the home appliance based on each environmental matching degree feature. This allows the home appliance to quickly and accurately identify the room based on the identified environmental features, effectively resolving the problems of cumbersome manual operation, high risk of misconnection, and low home appliance recognition accuracy in the prior art.
[0057] Figure 2 A flow chart of another method for determining the position of a device provided in an embodiment of the present invention is shown as follows: Figure 2 As shown, the method specifically includes:
[0058] S21. For each space, obtain average wireless access point signal values, average lighting parameter values, average sound parameter values, and average temperature parameter values within multiple time periods; use the average wireless access point signal values, average lighting parameter values, average sound parameter values, and average temperature parameter values within different time periods as standard environmental features within the current time period; and generate corresponding relationships between the multiple standard environmental features corresponding to each space within different time periods for storage.
[0059] In this embodiment, for each space (e.g., "Bedroom A," "Living Room B," etc.), the system collects and calculates the average values of the following features over multiple time periods: Average wireless access point signal strength (Wi-Fi RSSI): This is achieved by repeatedly scanning detectable access points and their signal strengths within the time period to obtain the average RSSI distribution, recording the SSID (Service Set Identifier) and signal strength; Average lighting parameters: such as the light intensity (lux) obtained by the light sensor; Average sound parameters: such as the background noise decibel value obtained by the acoustic sensor; Average temperature parameters: such as the room temperature (Celsius) obtained by the temperature sensor. These feature values can represent the "environmental fingerprint" of the room during a specific time period, and each environmental fingerprint is used as a standard environmental feature of the current space during the current time period.
[0060] Furthermore, a structured correspondence is established between the standard environmental characteristics of each space across multiple time periods. This correspondence is then used to construct a fingerprint library. Subsequent identification of the room a device is located in requires only collecting the environmental characteristics of the current time period and matching them with the data from the corresponding time period in the fingerprint library. This statistical analysis of environmental changes across time periods effectively improves the spatial recognition system's adaptability to daytime fluctuations and equipment fluctuations, ensuring recognition stability and accuracy.
[0061] S22. At each preset time period, control the home appliance to obtain an average value of the wireless access point signal, an average value of the lighting parameter, an average value of the sound parameter, and an average value of the temperature parameter within the current time period; and use the average value of the wireless access point signal, the average value of the lighting parameter, the average value of the sound parameter, and the average value of the temperature parameter as multiple current environment features.
[0062] In this embodiment, household appliances are triggered to collect environmental characteristic values during different time periods, ensuring accurate recording of environmental data across multiple time periods. This can be achieved by setting a timer. After each time period, the household appliance automatically performs the environmental data collection task. The collected data corresponds to standard environmental characteristics, including the average value of wireless access point signals, average light intensity, average sound parameters, and average temperature parameters. These average values are collected within each time period as multiple current environmental characteristics for that time period.
[0063] S23. Obtain the standard environmental features corresponding to each space at the current moment, with the current environmental features corresponding to the standard environmental features in a one-to-one manner.
[0064] In this embodiment, similar to step S12, please refer to Figure 1 For the sake of brevity, the relevant content will not be elaborated here.
[0065] S24. For each space, calculate the matching degree between each current environment feature and the corresponding standard environment feature through the feature matching function to obtain multiple matching degrees; perform weighted combination on the multiple matching degrees to obtain a similarity score between each space and the environment in which the home appliance is located; and use the similarity score as the environment matching feature.
[0066] In this embodiment, the system needs to compare the currently collected environmental features with the standard environmental features stored in the fingerprint library. Specifically, for each feature, a feature matching function is used to calculate the similarity between the current environmental features and the standard environmental features. For example, the normalized difference function can be used: for numerical features, the matching degree is calculated using the normalized difference. Gaussian function: a higher score is given to matching degrees with smaller feature differences. Exponential decay function: the matching degree is decreased according to the degree of difference of the features. After obtaining the matching degree of each current environmental feature and the corresponding standard environmental feature, the comprehensive similarity score of each space comprehensive and the environment in which the household appliance is located is calculated based on the weighted combination of multiple matching degrees to obtain the environmental matching feature.
[0067] In one possible implementation, a weight is pre-assigned to each environmental characteristic based on its historical fluctuation intensity, with the weight being negatively correlated with the fluctuation intensity. When the fluctuation intensity changes within the historical period, the weight is adjusted. The fluctuation intensity can be the difference between the lowest and highest values of the environmental characteristic within the previous historical period. A larger difference indicates a greater fluctuation intensity and a smaller weight; a smaller difference indicates a smaller fluctuation intensity and a larger weight.
[0068] Specifically, if the current environmental characteristics collected by the sensor include: obtaining the WiFi characteristic value W obtained by the average value of the wireless access point signal WiFi , obtain the luminosity characteristic value W obtained by the average value of the illumination parameters light , obtain the sound characteristic value W obtained by the average value of the sound parameters sound , obtain the temperature characteristic W obtained by the average value of the temperature parameter temp .
[0069] The environmental matching characteristics are calculated using the following formula:
[0070] Among them S i is the environmental matching feature, W is the characteristic value of each environmental feature in the space, W k is the weight of the kth feature in the space, which can be initially allocated according to the stability of the feature value. K ,C i,k ) is the matching function of the kth environmental feature, where X K is the number of current environmental features collected in real time, C i,k is the standard environmental feature stored in the fingerprint database, δ(XK ,C i,k ) The value range is 0-1. In order to ensure accuracy,
[0071] A parameter α can be preset to adjust the sensitivity of the match according to actual needs. A larger α value makes the match more sensitive to signal differences, while a smaller α value reduces the sensitivity, so we can get:
[0072] is the matching function.
[0073] Among them, the weight of environmental features can be determined in the following way. The initial weight is determined according to the number of feature values detected in different rooms and the size of the impact. According to experimental data or experience, the WiFi feature is relatively obvious and stable. For example, different WiFi can be immediately identified. The signals of the same WiFi in different rooms are different, so the weight is relatively large. The changes in light, temperature and sound are not obvious, so the weight is set to WiFi>light>temperature>sound (for example, since the WiFi signal that home appliances can connect to is relatively stable, and the WiFi signal values in different rooms have a certain difference, then W can be set). WiFi =0.5, the light intensity difference is relatively small W2 =0.3, the temperature change W temp =0.1,W sound =0.1). This weight ratio can be subsequently readjusted based on the degree of change in different feature values. Data on various environmental features is collected regularly, and the change between the current moment and the previous moment is calculated. Based on the new change, the corresponding weight is adjusted. The following is an example of dynamic adjustment.
[0074] Suppose we have three environmental features: Wi-Fi signal, Bluetooth signal, and light intensity. Their initial weights are:
[0075] wWi-Fi(0)=0.4, wBluetooth(0)=0.3, wLight(0)=0.2
[0076] Set the adjustment coefficient α=0.1.
[0077] At time t=1, the changes of each feature are:
[0078] ΔxWi-Fi(1)=0.05
[0079] ΔxBluetooth(1)=0.1,
[0080] Δx rays (1) = 0.2
[0081] Then the new weights can be:
[0082] wWi-Fi(1)=0.4×(1+0.1×0.05)=0.4×1.005=0.402 wBluetooth(1)=0.3×(1+0.1×0.1)=0.3×1.01=0.303 w light (1) = 0.2 × (1 + 0.1 × 0.2) = 0.2 × 1.02 = 0.204
[0083] The normalized weights are:
[0084] wWi-Fi′(1)=0.402 / 0.9090≈0.442
[0085] wBluetooth′(1)=0.303 / 0.909≈0.333
[0086] wray′(1)=0.204 / 0.909≈0.224
[0087] As can be seen, the greater the change in light intensity, the greater the increase in its weight, while the smaller the change in Wi-Fi signal, the less the increase in its weight. This reflects the importance of light intensity in the current environment.
[0088] S25. Determine a maximum environment matching feature from multiple environment matching features; when the maximum environment matching feature is greater than a set value, use the space corresponding to the maximum environment matching feature as the target space; when the maximum environment matching feature is less than or equal to the set value, control the electronic device to release the currently established linkage control, and control the electronic device to generate prompt information for display.
[0089] In this embodiment, the device first calculates the environmental matching feature of each space, which represents the matching degree between the space where the current device is located and each room in the fingerprint library. Next, the system compares the matching features of all spaces and selects the largest matching feature, namely the "maximum environmental matching feature". For example, if there are three rooms (A, B, C), their similarity scores are: S i (A)=0.85、S i (B)=0.70、S i (C)=0.90, the system will choose S i (C) = 0.90 is taken as the maximum environmental matching feature.
[0090] Determine the target space based on the comparison between the maximum environment matching feature and the set value. If the maximum environment matching feature S i (max)> the set value, the system believes that the space where the current device is located is very consistent with a room in the fingerprint library, and the device can automatically determine the room as the target space. iIf (max) ≤ the set value, it means that the environment in which the current device is located may not have an obvious matching room. The device will maintain its original linkage control state and generate a prompt message to inform the user of possible environmental problems or unknown device location. When the maximum environmental matching characteristic is less than or equal to the set value, the system should control the device to generate a prompt message. This information may include: the device failed to identify a clear target space; the user is advised to check whether the device has been moved to a new location; the user can manually confirm whether the device should be bound to the new room. The prompt message can be displayed on the device screen or pushed to the user through a terminal such as a smartphone.
[0091] S26. Determine whether the target space is consistent with the historical space corresponding to the home appliance, where the historical space represents the space in which the home appliance currently maintains linkage control; if not, control the home appliance to release linkage control from the historical space, and control the home appliance to establish linkage control with the target space.
[0092] In this embodiment, after the device completes the identification of the target space, the system needs to determine whether the target space is consistent with the historical space with which the device is currently linked. The target space is the room where the current device is located, calculated by the environmental matching degree. The historical space is the room with which the device was previously linked. The device usually records the current linkage status and checks it when moving. If the target space is consistent with the historical space (that is, the device is still in the same room), no changes are required and the device continues to maintain the original linkage control; if they are inconsistent, it means that the device has moved to another room, and the system will trigger the adjustment of the linkage control.
[0093] When the target space is inconsistent with the historical space, the system will release the linkage control between the device and the historical space. This means that the device is no longer linked with the devices in the original room (such as lighting, temperature control, etc.). The way to release the linkage control can be: disconnect the device from the original room. Stop the execution of automation scenes or rules (such as temperature adjustment, lighting control, etc.). Establish a linkage control relationship between the device and the new target space. This includes: starting the device control strategy related to the target space (such as controlling lighting, temperature control, audio, etc.). Activate new automation scenes, such as adjusting the temperature of the room, setting the lighting mode, etc.
[0094] As an example, Figure 3The figure shows a flow chart of another device location determination method provided by an embodiment of the present invention. First, the device is added to the smart home network to ensure that it can be managed and controlled via the network. A room fingerprint database is established. By collecting the room's environmental characteristics (such as Wi-Fi signal, temperature, light, sound, etc.), an "environmental fingerprint" is created for each room. This provides reference data for subsequent room identification. Environmental characteristics are acquired in real time. During operation, the device continuously collects the environmental characteristics of the current room and uses them to match the data in the room fingerprint database. The environmental matching degree is calculated by calculating the matching degree between the currently collected environmental characteristics and the standard environmental characteristics of each room in the room fingerprint database to obtain a similarity score for each room. If the similarity with the current room is greater than or equal to 90%, indicating that the device is still in the original room, the device is determined to have not moved, and the system continues to maintain the current room information without making any changes. If the device's matching degree is low, the system determines that the device has been moved to a new room. At this point, the system further queries the matching degree of the current space with other rooms. If the current environment features match those in a room's fingerprint library, the system will assume the device has moved to that room and will update the device's current room information to ensure the correct linkage control between the device and the new room. If the device's movement fails to match any room, the system will prompt the user to move the device and disconnect the linkage control from the old room.
[0095] The device location determination method provided by the embodiments of the present invention utilizes multi-sensor data fusion combined with dynamic weight adjustment to effectively reduce the impact of single sensor errors on recognition results, thereby improving the accuracy and reliability of room recognition. By collecting environmental features and establishing a room fingerprint library for comparison, the method automatically identifies rooms without manual operation. This effectively addresses the existing issues of cumbersome manual operation, high risk of misoperation, and low recognition accuracy.
[0096] Figure 4 A schematic diagram of a device for determining a position of a device according to an embodiment of the present invention is shown in FIG. Figure 4 As shown, the device specifically includes:
[0097] A first acquisition module 41 is configured to acquire a plurality of current environment features of the current environment of the home appliance;
[0098] A second acquisition module 42 is configured to acquire the standard environmental features corresponding to each space at the current moment, wherein the current environmental features correspond to the standard environmental features in a one-to-one manner;
[0099] A calculation module 43 is configured to calculate, for each space, a matching degree between a plurality of the current environment features and the corresponding standard environment features, to obtain an environment matching degree feature of each space;
[0100] The determination module 44 is configured to determine the target space where the household appliance is currently located according to each of the environment matching characteristics.
[0101] In one possible embodiment, the first acquisition module is specifically configured to control the home appliance to acquire multiple current environmental characteristics within a current time period at intervals of a preset time period, the current environmental characteristics including: an average value of a wireless access point signal, an average value of a lighting parameter, an average value of a sound parameter, and an average value of a temperature parameter;
[0102] The average value of the wireless access point signal, and / or the average value of the illumination parameter, and / or the average value of the sound parameter, and / or the average value of the temperature parameter are used as the multiple current environment features.
[0103] In one possible implementation, the calculation module is specifically configured to calculate the matching degree between each current environment feature and the corresponding standard environment feature using a feature matching function to obtain multiple matching degrees;
[0104] Performing a weighted combination of the multiple matching degrees to obtain a similarity score between each space and the environment in which the home appliance is located;
[0105] The similarity score is used as the environment matching feature.
[0106] In one possible embodiment, the setting module 45 is configured to pre-set a weight according to the fluctuation intensity of each environmental feature within a historical period, wherein the weight is negatively correlated with the fluctuation intensity;
[0107] When the intensity of fluctuations within the historical period changes, the weights are adjusted.
[0108] In a possible implementation, the determining module is specifically configured to determine a maximum environment matching feature from the plurality of environment matching features;
[0109] When the maximum environment matching feature is greater than a set value, the space corresponding to the maximum environment matching feature is used as the target space;
[0110] When the maximum environment matching characteristic is less than or equal to a set value, the electronic device is controlled to release the currently established linkage control.
[0111] In one possible implementation, the control module 46 is configured to determine whether the target space is consistent with a historical space corresponding to the home appliance, where the historical space represents a space in which the home appliance currently maintains linkage control;
[0112] If not, the home appliance is controlled to release the linkage control with the historical space, and the home appliance is controlled to establish linkage control with the target space.
[0113] In a possible implementation, the first acquisition module is further configured to acquire, for each of the spaces, an average value of wireless access point signals, an average value of illumination parameters, an average value of sound parameters, and an average value of temperature parameters within multiple time periods;
[0114] taking the average values of the wireless access point signal, the average values of the illumination parameter, the average values of the sound parameter, and the average values of the temperature parameter in different time periods as the standard environmental features in the current time period;
[0115] A corresponding relationship is generated between the multiple standard environmental features corresponding to each space in different time periods for storage.
[0116] The device provided in this embodiment can be Figure 4 The device shown in , can perform the following Figure 1-2 All steps of the method for determining the location of the device in the Figure 1-2 For details on the technical effects of the device's location determination method, please refer to Figure 1-2 For the sake of brevity, the relevant description will not be repeated here.
[0117] Figure 5 A schematic structural diagram of a household appliance provided by an embodiment of the present invention is shown in FIG. Figure 5 The home appliance 500 shown includes: at least one processor 501, a memory 502, at least one network interface 504 and another user interface 503. The various components in the home appliance 500 are coupled together via a bus system 505. It is understood that the bus system 505 is used to achieve connection and communication between these components. In addition to including a data bus, the bus system 505 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, the bus system 505 is not described in detail. Figure 5 Various buses are labeled as bus system 505.
[0118] The user interface 503 may include a display, a keyboard, or a pointing device (eg, a mouse, a trackball, a touchpad, or a touch screen).
[0119] It is understood that the memory 502 in the embodiment of the present invention can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM bus random access memory (DRRAM). The memory 502 described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0120] In some embodiments, the memory 502 stores the following elements, executable units, or data structures, or a subset thereof, or an extended set thereof: an operating system 5021 and application programs 5022 .
[0121] The operating system 5021 includes various system programs, such as a framework layer, a core library layer, and a driver layer, for implementing various basic services and handling hardware-based tasks. Application programs 5022 include various application programs, such as a media player and a browser, for implementing various application services. Programs implementing the methods of the embodiments of the present invention may be included in application programs 5022.
[0122] In an embodiment of the present invention, by calling a program or instruction stored in the memory 502, specifically, a program or instruction stored in the application 5022, the processor 501 is configured to execute the method steps provided in each method embodiment, for example, including:
[0123] Obtain multiple current environmental features of the current environment of the home appliance;
[0124] Obtaining the standard environmental features corresponding to each space at the current moment, wherein the current environmental features correspond one-to-one to the standard environmental features;
[0125] For each space, calculating the matching degree between the multiple current environment features and the corresponding standard environment features to obtain the environment matching degree feature of each space;
[0126] The target space where the household appliance is currently located is determined according to each of the environmental matching characteristics.
[0127] In one possible implementation, at every preset time interval, the home appliance is controlled to obtain a plurality of current environmental characteristics within the current time period, the current environmental characteristics including: an average value of a wireless access point signal, an average value of a light parameter, an average value of a sound parameter, and an average value of a temperature parameter;
[0128] The average value of the wireless access point signal, and / or the average value of the illumination parameter, and / or the average value of the sound parameter, and / or the average value of the temperature parameter are used as the multiple current environment features.
[0129] In one possible implementation, a matching degree between each current environment feature and a corresponding standard environment feature is calculated using a feature matching function to obtain multiple matching degrees;
[0130] Performing a weighted combination of the multiple matching degrees to obtain a similarity score between each space and the environment in which the home appliance is located;
[0131] The similarity score is used as the environment matching feature.
[0132] In one possible implementation, a weight is pre-set based on the fluctuation intensity of each environmental feature over a historical period, and the weight is negatively correlated with the fluctuation intensity;
[0133] When the intensity of fluctuations within the historical period changes, the weights are adjusted.
[0134] In one possible implementation, determining a maximum environment matching feature from a plurality of the environment matching features;
[0135] When the maximum environment matching feature is greater than a set value, the space corresponding to the maximum environment matching feature is used as the target space;
[0136] When the maximum environment matching characteristic is less than or equal to a set value, the electronic device is controlled to release the currently established linkage control.
[0137] In one possible implementation, determining whether the target space is consistent with a historical space corresponding to the home appliance, where the historical space represents a space in which the home appliance currently maintains linkage control;
[0138] If not, the home appliance is controlled to release the linkage control with the historical space, and the home appliance is controlled to establish linkage control with the target space.
[0139] In one possible implementation, for each of the spaces, average values of wireless access point signals, average values of illumination parameters, average values of sound parameters, and average values of temperature parameters within multiple time periods are obtained;
[0140] taking the average values of the wireless access point signal, the average values of the illumination parameter, the average values of the sound parameter, and the average values of the temperature parameter in different time periods as the standard environmental features in the current time period;
[0141] A corresponding relationship is generated between the multiple standard environmental features corresponding to each space in different time periods for storage.
[0142] The methods disclosed in the above embodiments of the present invention can be applied to or implemented by processor 501. Processor 501 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by hardware integrated logic circuits in processor 501 or by software instructions. The above processor 501 may be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The methods, steps, and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in conjunction with the embodiments of the present invention can be directly implemented and executed by a hardware decoding processor, or by a combination of hardware and software units in the decoding processor. The software units can be located in storage media well-known in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. The storage medium is located in the memory 502 , and the processor 501 reads the information in the memory 502 and completes the steps of the above method in combination with its hardware.
[0143] It is understood that the embodiments described herein may be implemented using hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described herein, or a combination thereof.
[0144] For software implementation, the technology described herein can be implemented by a unit that performs the functions described herein. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.
[0145] The household appliance provided in this embodiment may be Figure 5 The home appliance shown in can perform the following Figure 1-2 All steps of the method for determining the location of the device in the Figure 1-2 For details on the technical effects of the device's location determination method, please refer to Figure 1-2 For the sake of brevity, the relevant description will not be repeated here.
[0146] An embodiment of the present invention further provides a storage medium (computer-readable storage medium). The storage medium stores one or more programs. The storage medium may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, hard disk, or solid-state drive; and the memory may also include a combination of the aforementioned types of memory.
[0147] When one or more programs in the storage medium can be executed by one or more processors, the method for determining the position of the device executed on the device side can be implemented.
[0148] The processor is configured to execute a device location determination program stored in the memory to implement the following steps of a device location determination method executed on the device side:
[0149] Obtain multiple current environmental features of the current environment of the home appliance;
[0150] Obtaining the standard environmental features corresponding to each space at the current moment, wherein the current environmental features correspond one-to-one to the standard environmental features;
[0151] For each space, calculating the matching degree between the multiple current environment features and the corresponding standard environment features to obtain the environment matching degree feature of each space;
[0152] The target space where the household appliance is currently located is determined according to each of the environmental matching characteristics.
[0153] In one possible implementation, at every preset time interval, the home appliance is controlled to obtain a plurality of current environmental characteristics within the current time period, the current environmental characteristics including: an average value of a wireless access point signal, an average value of a light parameter, an average value of a sound parameter, and an average value of a temperature parameter;
[0154] The average value of the wireless access point signal, and / or the average value of the illumination parameter, and / or the average value of the sound parameter, and / or the average value of the temperature parameter are used as the multiple current environment features.
[0155] In one possible implementation, a matching degree between each current environment feature and a corresponding standard environment feature is calculated using a feature matching function to obtain multiple matching degrees;
[0156] Performing a weighted combination of the multiple matching degrees to obtain a similarity score between each space and the environment in which the home appliance is located;
[0157] The similarity score is used as the environment matching feature.
[0158] In one possible implementation, a weight is pre-set based on the fluctuation intensity of each environmental feature over a historical period, and the weight is negatively correlated with the fluctuation intensity;
[0159] When the intensity of fluctuations within the historical period changes, the weights are adjusted.
[0160] In one possible implementation, determining a maximum environment matching feature from a plurality of the environment matching features;
[0161] When the maximum environment matching feature is greater than a set value, the space corresponding to the maximum environment matching feature is used as the target space;
[0162] When the maximum environment matching characteristic is less than or equal to a set value, the electronic device is controlled to release the currently established linkage control.
[0163] In one possible implementation, determining whether the target space is consistent with a historical space corresponding to the home appliance, where the historical space represents a space in which the home appliance currently maintains linkage control;
[0164] If not, the home appliance is controlled to release the linkage control with the historical space, and the home appliance is controlled to establish linkage control with the target space.
[0165] In one possible implementation, for each of the spaces, average values of wireless access point signals, average values of illumination parameters, average values of sound parameters, and average values of temperature parameters within multiple time periods are obtained;
[0166] taking the average values of the wireless access point signal, the average values of the illumination parameter, the average values of the sound parameter, and the average values of the temperature parameter in different time periods as the standard environmental features in the current time period;
[0167] A corresponding relationship is generated between the multiple standard environmental features corresponding to each space in different time periods for storage.
[0168] Professionals should also be further aware that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0169] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein may be implemented using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0170] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for determining the location of a device, characterized in that: include: Obtain multiple current environmental features of the current environment of the home appliance; Obtaining the standard environmental features corresponding to each space at the current moment, wherein the current environmental features correspond one-to-one to the standard environmental features; For each space, calculating the matching degree between the multiple current environment features and the corresponding standard environment features to obtain the environment matching degree feature of each space; The target space where the household appliance is currently located is determined according to each of the environmental matching characteristics.
2. The method according to claim 1, characterized in that The acquiring of multiple current environment features of the current environment of the home appliance includes: At intervals of a preset time period, the home appliance is controlled to obtain a plurality of current environmental characteristics within the current time period, wherein the current environmental characteristics include: an average value of a wireless access point signal, an average value of a light parameter, an average value of a sound parameter, and an average value of a temperature parameter; The average value of the wireless access point signal, and / or the average value of the illumination parameter, and / or the average value of the sound parameter, and / or the average value of the temperature parameter are used as the multiple current environment features.
3. The method according to claim 1, characterized in that The calculating the matching degree between the plurality of current environment features and the corresponding standard environment features to obtain the environment matching degree feature of each space includes: Calculating the matching degree between each current environment feature and the corresponding standard environment feature through a feature matching function to obtain multiple matching degrees; Performing a weighted combination of the multiple matching degrees to obtain a similarity score between each space and the environment in which the home appliance is located; The similarity score is used as the environment matching feature.
4. The method according to claim 3, characterized in that The method further comprises: A weight is pre-set based on the fluctuation intensity of each environmental feature over a historical period, wherein the weight is negatively correlated with the fluctuation intensity; When the intensity of fluctuations within the historical period changes, the weights are adjusted.
5. The method according to claim 1, wherein The determining the target space where the household appliance is currently located according to each of the environment matching characteristics includes: Determining a maximum environment matching feature from a plurality of said environment matching features; When the maximum environment matching feature is greater than a set value, the space corresponding to the maximum environment matching feature is used as the target space; When the maximum environment matching characteristic is less than or equal to a set value, the electronic device is controlled to release the currently established linkage control.
6. The method according to claim 1, characterized in that After determining the target space where the household appliance is currently located according to each of the environment matching characteristics, the method further includes: Determining whether the target space is consistent with a historical space corresponding to the home appliance, where the historical space represents a space in which the home appliance currently maintains linkage control; If not, the home appliance is controlled to release the linkage control with the historical space, and the home appliance is controlled to establish linkage control with the target space.
7. The method according to claim 1, characterized in that Before acquiring a plurality of current environment features of the current environment of the home appliance, the method further includes: For each of the spaces, obtaining an average value of wireless access point signals, an average value of illumination parameters, an average value of sound parameters, and an average value of temperature parameters within multiple time periods; taking the average values of the wireless access point signal, the average values of the illumination parameter, the average values of the sound parameter, and the average values of the temperature parameter in different time periods as the standard environmental features in the current time period; A corresponding relationship is generated between the multiple standard environmental features corresponding to each space in different time periods for storage.
8. A device for determining the position of a device, characterized in that: Applied to home appliances, including: A first acquisition module is used to acquire multiple current environment features in the environment in which the home appliance is currently located; A second acquisition module is used to obtain the standard environmental features corresponding to each space at the current moment, where the current environmental features correspond to the standard environmental features in a one-to-one manner; A calculation module, configured to calculate, for each space, a matching degree between a plurality of the current environment features and the corresponding standard environment features, to obtain an environment matching degree feature of each space; A determination module is used to determine the target space where the household appliance is currently located according to each of the environmental matching characteristics.
9. A household appliance, characterized in that: include: A processor and a memory, wherein the processor is configured to execute a device location determination program stored in the memory to implement the device location determination method according to any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the method for determining the position of the device according to any one of claims 1 to 7.