Home appliance adaptive networking method, device, electronic device and storage medium
By obtaining historical operating information of smart home devices and using prediction models to determine networking strategies, the problem of low reliability of smart home device networking is solved and the device's networking reliability and user experience are improved.
Patent Information
- Application Number
- CN202310916980.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-24
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2043-07-24
AI Technical Summary
Existing smart home device networking has low reliability, resulting in data packet loss and untimely response.
By obtaining the historical operation information of each home device in different networking environments, the preset prediction model is used to determine the predicted operation information and confidence of the device, thereby formulating a highly reliable networking strategy and controlling the device for networking.
Improves the reliability of smart home device networking and improves user experience.
Smart Images

Figure CN116708207B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of Internet of Things, and in particular to a method, device, electronic device and storage medium for adaptive networking of household appliances. Background Art
[0002] As the smart home market continues to expand, more and more people are beginning to use smart home devices to improve their quality of life. However, the current smart home device networking solutions have many shortcomings. For example, due to insufficient network stability, smart home devices have problems such as data packet loss and untimely response. Therefore, the existing smart home device networking has the problem of low reliability. Summary of the invention
[0003] The embodiment of the present invention provides a method for adaptive networking of home appliances, aiming to solve the problem of low reliability of existing smart home appliance networking. The confidence of each home appliance in each networking environment can be obtained through the historical operation information of each home appliance in different networking environments, and a networking strategy with high reliability can be determined through the confidence of each home appliance in each networking environment. Each home appliance is networked according to the networking strategy, which can improve the reliability of the networking of home appliances, thereby improving the user experience of home appliances.
[0004] In a first aspect, an embodiment of the present invention provides a method for adaptively networking home devices, the method comprising:
[0005] Obtain historical operation information of each home device in multiple networking environments;
[0006] Determine, according to the historical operation information, predicted operation information and confidence of each of the household appliances, wherein the predicted operation information and the confidence are obtained according to a preset prediction model, and the preset prediction model is used to predict the predicted operation information of each household appliance in a future period, and the confidence indicates the reliability of the predicted operation information, and the higher the confidence, the higher the reliability of the corresponding predicted operation information;
[0007] Determining a networking strategy for each of the home devices in each of the networking environments based on the predicted operation information and the confidence level;
[0008] The home appliances are controlled to form a network in each of the networking environments according to the networking strategy.
[0009] Optionally, determining the predicted operation information and confidence level of each of the household appliances according to the historical operation information includes:
[0010] Determining the operation sequence of each of the household appliances according to the historical operation information;
[0011] The operation sequence is input into the preset prediction model for prediction processing to obtain the predicted operation information of each household appliance in the future period and the corresponding confidence level.
[0012] Optionally, determining the operation sequence of each of the household appliances according to the historical operation information includes:
[0013] Performing first slicing processing on the historical operation information according to the category of the networking environment to obtain first slicing data of each of the household devices;
[0014] Performing second slicing processing on each of the first slicing data at a preset time interval to obtain second slicing data of each of the household devices, wherein the preset time interval is determined according to the category of the first slicing data;
[0015] An operation sequence of each of the home appliances is determined based on the second slice data.
[0016] Optionally, performing second slicing processing on each of the first slice data at a preset time interval to obtain second slice data of each of the household devices includes:
[0017] Obtaining network environment parameters corresponding to different types of networking environments;
[0018] Determine, based on the network environment parameters, a preset time interval corresponding to each category of the first slice data;
[0019] Each of the first slice data is subjected to second slice processing at a corresponding preset time interval to obtain second slice data of each of the household devices.
[0020] Optionally, determining the operation sequence of each of the household appliances based on the second slice data includes:
[0021] Determine target second slice data, wherein the time length of the target second slice data is less than the corresponding preset time interval;
[0022] Acquire the adjacent second slice data of the target second slice data;
[0023] Performing correction processing on the target second slice data based on the adjacent second slice data to obtain corrected target second slice data;
[0024] Based on the corrected target second slice data and the second slice data whose time length is equal to the corresponding preset time interval, the operation sequence of each of the household appliances is determined.
[0025] Optionally, before inputting the operation sequence into the preset prediction model for prediction processing to obtain the predicted operation information of each household appliance in the future time period and the corresponding confidence level, the method further includes:
[0026] Obtain a sample sequence and a time series model to be trained, wherein the sample sequence is obtained according to historical operation information of the sample home appliance, and the time series model to be trained has the operation information of the predicted sample home appliance as an output target, and each output target corresponds to a confidence level;
[0027] Dividing the sample sequence according to a preset division strategy to obtain a first sample sequence with an earlier time and a second sample sequence with a later time;
[0028] The first sample sequence is determined as an input sample, and a corresponding sample label is determined for the second sample sequence. The model to be trained is subjected to supervised training, and the preset prediction model is obtained after the training is completed.
[0029] Optionally, determining a networking strategy of each of the home devices in each of the networking environments based on the predicted operation information and the confidence level includes:
[0030] Determine the active time period of each of the household devices;
[0031] Based on the confidence level, determining a target networking environment of each of the household devices in a corresponding active period;
[0032] The target networking environment of each of the household devices in the corresponding active time period determines the networking strategy of each of the household devices in each of the networking environments.
[0033] In a second aspect, an embodiment of the present invention further provides a home appliance adaptive networking device, the home appliance adaptive networking device comprising:
[0034] An acquisition module, used to acquire multiple vehicle-mounted videos of a target highway section;
[0035] A division module, used to divide the multiple vehicle videos according to different lanes to obtain a vehicle video set corresponding to each lane, each of the vehicle video sets including at least two vehicle videos;
[0036] A first processing module is used to process the vehicle-mounted video in the vehicle-mounted video set of the lane with the goal of improving image quality to obtain an image sequence corresponding to the lane;
[0037] The second processing module is used to perform damage detection on the target expressway section based on the image sequences of each of the lanes to obtain a damage detection result of the target expressway section.
[0038] In a third aspect, an embodiment of the present invention provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method for adaptive networking of home devices provided in an embodiment of the present invention when executing the computer program.
[0039] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for adaptive networking of home appliances provided in an embodiment of the invention are implemented.
[0040] In an embodiment of the present invention, historical operation information of each household appliance in multiple networking environments is obtained; based on the historical operation information, the predicted operation information and confidence of each household appliance are determined, the predicted operation information and confidence are obtained according to a preset prediction model, the preset prediction model is used to predict the predicted operation information of each household appliance in a future period, the confidence indicates the reliability of the predicted operation information, the higher the confidence, the stronger the reliability of the corresponding predicted operation information; based on the predicted operation information and the confidence, the networking strategy of each household appliance in each networking environment is determined; and each household appliance is controlled to be networked in each networking environment according to the networking strategy. The confidence of each household appliance in each networking environment is obtained through the historical operation information of each household appliance in different networking environments, and a networking strategy with strong reliability can be determined through the confidence of each household appliance in each networking environment. The networking of each household appliance according to the networking strategy can improve the reliability of the networking of the household appliance, thereby improving the user experience of the household appliance. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0042] Figure 1 is a flow chart of a method for adaptive networking of household devices provided by an embodiment of the present invention;
[0043] Figure 2 It is a structural schematic diagram of a household appliance adaptive networking device provided in an embodiment of the present invention;
[0044] Figure 3 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0045] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions 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 creative work are within the scope of protection of the present invention.
[0046] like Figure 1 As shown, Figure 1 1 is a method flow chart of a method for adaptive networking of home appliances provided by an embodiment of the present invention. The method for adaptive networking of home appliances comprises the following steps:
[0047] 101. Obtain historical operation information of each home appliance in multiple networking environments.
[0048] In an embodiment of the present invention, the above-mentioned adaptive networking method for home appliances can be deployed in a smart home system. The above-mentioned smart home system includes a networking control device, multiple networking environments and multiple home appliances. The categories of the above-mentioned networking environments can be network environments such as Wi-Fi, Bluetooth, and Zigbee. The above-mentioned home appliances are smart home appliances that support multiple networking environments. Specifically, the above-mentioned home appliances are smart home appliances that support communication protocols such as Wi-Fi, Bluetooth, and Zigbee. The above-mentioned home appliances can be smart home appliances such as smart TVs, smart speakers, smart bathroom cabinets, smart toilets, smart air conditioners, smart washing machines, and smart refrigerators. The above-mentioned networking control device can be a server, or an edge device, such as a gateway device, or a terminal device, such as any home appliance. The above-mentioned adaptive networking method for home appliances is specifically deployed in the networking control device.
[0049] The above-mentioned networking control device can control multiple home appliances to be networked in networking environments such as Wi-Fi, Bluetooth, Zigbee, etc. Specifically, it can control multiple home appliances to be networked in the same networking environment, and can also control multiple home appliances to be networked in different networking environments.
[0050] The networking control device includes a processor and a memory, which are used to execute the steps of the home appliance adaptive networking method, and the memory is used to store the instruction program of the home appliance adaptive networking method. The memory is also used to store the historical operation information of each home appliance in multiple networking environments.
[0051] When problems such as data packet loss and untimely response are detected in home devices, historical operation information of each home device in multiple networking environments can be obtained. The termination time of the above historical operation information is the time when problems such as data packet loss and untimely response are detected in the home devices.
[0052] It is also possible to obtain historical operation information of each home appliance in multiple networking environments when the set time is reached, and the end time of the above historical operation information is the set time reached.
[0053] The time length of the above historical operation information may be a fixed length, specifically a fixed time length before the end time, such as 15 days, 30 days, 90 days, etc. before the end time. Further, the start time of the historical operation information may be determined by the end time and the time length. For example, when the time length is 15 days, the start time is the 15th day before the end time, when the time length is 30 days, the start time is the 30th day before the end time, and when the time length is 90 days, the start time is the 90th day before the end time. The historical operation information of each household appliance in multiple networking environments may be read from the memory of the networking control device.
[0054] The above historical operation information can be obtained by sorting out the log data of the home appliances. When the home appliances are running, corresponding log data will be generated. The home appliances will upload the log data to the networking control device for processing to form the historical operation information of the home appliances for storage.
[0055] The above historical operation information includes the operation data of the corresponding home device, such as data collection, data reception, data transmission, status response, operation time, and type of networking environment. Further, the above historical operation information can be obtained by An=(a1, a2, ..., a n-1 , a n ), where a1 represents the operation information corresponding to the first period, the first period is the period of the start time, and a n Indicates the operation information corresponding to the nth time period, where the nth time period is the time period where the end time is located.
[0056] 102. Determine the confidence level of each home appliance in each networking environment based on historical operation information.
[0057] In an embodiment of the present invention, the confidence level is obtained based on a preset prediction model, which is used to predict the predicted operation information of each household appliance in a future period. The confidence level indicates the reliability of the predicted operation information. The higher the confidence level, the greater the reliability of the corresponding predicted operation information.
[0058] The above-mentioned preset prediction model can be a trained prediction model, and the above-mentioned can be a time series prediction model, such as a time series prediction model based on a recurrent neural network RNN, a long short-term memory network LSMT, etc. The above-mentioned prediction model is used to predict the predicted operation information of each household appliance in the future period. The above-mentioned predicted operation information can be obtained by Am=(a n+1 , an+2 , …, a m-1 , a m ) is represented by, where a n+1 The predicted operation information corresponding to the n+1th time period, m is greater than n. The predicted operation information includes operation data such as the operation status, data collection, data reception, data transmission, status response, operation time, and type of networking environment of the corresponding home appliance.
[0059] Specifically, the above historical operation information An=(a1, a2, ..., a n-1 , a n ) is input into the preset prediction model for processing, and the preset prediction model outputs the prediction operation information Am=(a n+1 , a n+2 , …, a m-1 , a m ) and confidence level Bm=(b n+1 , b n+2 , …, b m-1 , b m ).
[0060] Among them, Bm is the confidence of Am, specifically, b n+1 is a n+1 The corresponding confidence level, b n+2 is a n+2 The corresponding confidence level, b m-1 is a m-1 The corresponding confidence level, b m is a m The corresponding confidence level.
[0061] 103. Based on the predicted operation information and confidence level, determine the networking strategy of each home appliance in each networking environment.
[0062] In an embodiment of the present invention, the above-mentioned predicted operation information includes operation data such as the operation status, data collection, data reception, data transmission, state response, operation time, and type of networking environment of the corresponding home appliance. The networking strategy of each home appliance in each networking environment can be determined according to the type of networking environment in the predicted operation information and the confidence level corresponding to the predicted operation information. The above-mentioned networking strategy includes the target networking environment of each home appliance in the future period.
[0063] Specifically, the target networking environment of each home appliance in the corresponding future time period can be determined according to the category of the networking environment in the predicted operation information of each home appliance, and when the future time period is reached, each home appliance is controlled to be networked in the target networking environment. Further, after the candidate networking environment of each home appliance in the future time period is determined in the predicted operation information of each home appliance, the confidence of the candidate networking environment can be determined according to the predicted operation information. The confidence of the candidate networking environment can be the confidence of the corresponding predicted operation information. Based on the confidence of the candidate networking environment, it is determined whether the candidate networking environment is the target networking environment. More specifically, when the confidence of the candidate networking environment is greater than or equal to the preset confidence, the candidate networking environment can be determined as the target networking environment. When the confidence of the candidate networking environment is less than the preset confidence, the networking environment corresponding to the time period where the termination time in the historical operation information is located is determined as the target networking environment.
[0064] For example, for a home appliance, the target networking environment of the home appliance in the future period can be determined according to the category of the networking environment in the predicted operation information of the home appliance, and when the future period is reached, the home appliance is controlled to perform networking in the target networking environment. Furthermore, after the candidate networking environment of the home appliance in the future period is determined in the predicted operation information of the home appliance, the confidence of the candidate networking environment can be determined according to the predicted operation information. The confidence of the candidate networking environment can be the confidence of the corresponding predicted operation information. Based on the confidence of the candidate networking environment, it is determined whether the candidate networking environment is the target networking environment.
[0065] The above networking strategy can be achieved by Cm(i)=(c (n+1),i , c (n+2),i , …, c (m-1),i , c m,i ), where i represents the i-th home appliance, c (n+1),i represents the target networking environment corresponding to the i-th home device in the n+1-th time period, c m,i It represents the target networking environment corresponding to the i-th home appliance in the m-th time period. Each home appliance corresponds to a target networking environment in each future time period, and m is greater than n.
[0066] In the embodiment of the present invention, each household appliance can be predicted according to a preset prediction model to obtain predicted operation information of each household appliance. Through the confidence level corresponding to each predicted operation information, a networking strategy with higher stability in the future period can be obtained.
[0067] 104. Control each home appliance to network in each networking environment according to the networking strategy.
[0068] In an embodiment of the present invention, after determining the networking strategy of each home appliance in each networking environment, the networking control device can control each home appliance to be networked in the corresponding target networking environment when a future time period is reached.
[0069] Specifically, in the above networking strategy Cm(i)=(c (n+1),i , c (n+2),i , …, c (m-1),i , c m,i ), for i home appliances in the n+1th time period to the mth time period, there is a corresponding target networking environment, and the target networking environment is screened by confidence. Therefore, the target networking environment can provide a stable networking environment for the corresponding home appliances, thereby improving the reliability of the home appliance networking.
[0070] In an embodiment of the present invention, historical operation information of each household appliance in multiple networking environments is obtained; based on the historical operation information, the predicted operation information and confidence of each household appliance are determined, the predicted operation information and confidence are obtained according to a preset prediction model, the preset prediction model is used to predict the predicted operation information of each household appliance in a future period, the confidence indicates the reliability of the predicted operation information, the higher the confidence, the stronger the reliability of the corresponding predicted operation information; based on the predicted operation information and the confidence, the networking strategy of each household appliance in each networking environment is determined; and each household appliance is controlled to be networked in each networking environment according to the networking strategy. The confidence of each household appliance in each networking environment is obtained through the historical operation information of each household appliance in different networking environments, and a networking strategy with strong reliability can be determined through the confidence of each household appliance in each networking environment. The networking of each household appliance according to the networking strategy can improve the reliability of the networking of the household appliance, thereby improving the user experience of the household appliance.
[0071] It is understandable that in the specific implementation of this application, historical operation information, network environment parameters and other related data are involved. When the embodiments in this application are applied to specific products or technologies, it is necessary to obtain the permission or consent of relevant departments and users, and the collection, use and processing of relevant data need to comply with the relevant laws, regulations and standards of relevant countries and regions.
[0072] Optionally, in the step of determining the predicted operation information and confidence of each household appliance based on historical operation information, the operation sequence of each household appliance can be determined based on the historical operation information; the operation sequence is input into a preset prediction model for prediction processing to obtain the confidence of each household appliance in different networking environments.
[0073] In an embodiment of the present invention, the above-mentioned historical operation information can be obtained by sorting out the log data of the home appliance. When the home appliance is running, corresponding log data will be generated. The home appliance uploads the log data to the networking control device for processing to form the historical operation information of the home appliance for storage.
[0074] The above historical operation information includes the operation data of the corresponding home device, such as data collection, data reception, data transmission, status response, operation time, and type of networking environment. Further, the above historical operation information can be obtained by An=(a1, a2, ..., a n-1 , a n ), where a1 represents the operation information corresponding to the first period, the first period is the period of the start time, and a n Indicates the operation information corresponding to the nth time period, where the nth time period is the time period where the end time is located. Specifically, the above a1 indicates the operation data corresponding to the first time period, such as the operation status, data collection, data reception, data transmission, status response, operation time, and the type of networking environment. n Indicates the operating data corresponding to the nth time period, such as the operating status, data collection, data reception, data transmission, status response, operating time, and type of networking environment.
[0075] After obtaining the above historical operation information, the operation data such as data collection, data reception, data transmission, status response, operation time, and type of networking environment in the historical operation information can be dimensionlessly processed to obtain the operation status of each home appliance in different time periods. Furthermore, the dimensionless processing can be processing methods such as standardization, averaging, and standard deviation. The above operation sequence includes the operation status of different time periods.
[0076] After obtaining the above historical operation information, the operation data such as data collection, data reception, data transmission, status response, operation time, and the type of networking environment in the historical operation information can also be subjected to principal component analysis to obtain the operation status of each home appliance at different time periods. The historical operation information is subjected to data dimension reduction through principal component analysis to obtain an operation sequence with a lower data dimension, and the above operation sequence includes the operation status at different time periods.
[0077] The above operation sequence can be obtained by Dn=(d1, d2, ..., d n-1 , d n ), where d1 represents the running state corresponding to the first period, the first period is the period of the start time, and d n Indicates the running status corresponding to the nth time period, where the nth time period is the time period where the end time is located.
[0078] After obtaining the operation sequence of each household appliance, the operation sequence is input into the preset prediction model for processing, and the preset prediction model outputs the prediction operation information Am=(a n+1 , a n+2 , …, a m-1 , a m ) and confidence level Bm=(b n+1 , b n+2 , …, b m-1 , b m ).
[0079] Among them, Bm is the confidence of Am, specifically, b n+1 is a n+1 The corresponding confidence level, b n+2 is a n+2 The corresponding confidence level, b m-1 is a m-1 The corresponding confidence level, b m is a m The corresponding confidence level.
[0080] Optionally, in the step of determining the operation sequence of each household appliance in different networking environments based on historical operation information, the historical operation information can be subjected to a first slicing process according to the category of the networking environment to obtain first slicing data for each household appliance; each first slicing data can be subjected to a second slicing process at a preset time interval to obtain second slicing data for each household appliance, and the preset time interval is determined according to the category of the first slicing data; and the operation sequence of each household appliance in different networking environments is determined based on the second slicing data.
[0081] In an embodiment of the present invention, the historical operation information is operation information sorted by time period. Taking into account that different networking environments have different impacts on the operating status of home appliances, the historical operation information can be first sliced according to the category of the networking environment to obtain first slice data for each home appliance.
[0082] For a home appliance, each first slice data corresponds to a networking environment, and two adjacent first slice data correspond to different networking environments. For example, the first slice data A and the second slice data B are adjacent first slice data, and the networking environment of the first slice data A is the networking environment corresponding to the Wi-Fi network, and the networking environment of the first slice data B is the networking environment corresponding to the non-Wi-Fi network, which can be a networking environment corresponding to a non-Wi-Fi network such as a Bluetooth network or a Zigbee network.
[0083] After obtaining the first slice data of each household device, second slice processing can be performed on the first slice data at a preset time interval based on the first slice data of each household device to obtain the second slice data of each household device.
[0084] The preset time interval can be determined according to the networking environment category corresponding to the first slice data. The more stable the networking environment is, the longer the corresponding preset time interval is. In this way, the time weight of the high-stability networking environment in the operation sequence can be reduced to avoid overfitting of the predicted operation information. The time periods corresponding to the various operation states in the above operation sequence are variable in length, not equal in length.
[0085] The above operation sequence can be obtained by Dt=(d1, d2, ..., d t-1 , d t ), where d1 represents the running state corresponding to the first period, the first period is the period of the start time, and d t It indicates the running status corresponding to the tth period, where the tth period is the period where the termination time is located, and t can be the same as or different from n.
[0086] After obtaining the operation sequence of each household appliance, the operation sequence is input into the preset prediction model for processing, and the preset prediction model outputs the prediction operation information Ak=(a t+1 , a t+2 , …, a k-1 , a k ) and confidence Bk=(b t+1 , b t+2 , …, b k-1 , b k ).
[0087] Among them, Ak is the confidence of Bk, specifically, b t+1 is a t+1 The corresponding confidence level, b t+2 is a t+2 The corresponding confidence level, b k-1 is a k-1 The corresponding confidence level, b k is a k The corresponding confidence level.
[0088] Optionally, in the step of performing second slicing processing on each first slice data at a preset time interval to obtain second slice data for each household device, network environment parameters corresponding to different categories of networking environments can be obtained; based on the network environment parameters, the preset time interval corresponding to each category of first slice data is determined; and each first slice data is performed second slicing processing at the corresponding preset time interval to obtain second slice data for each household device.
[0089] In an embodiment of the present invention, the network environment parameters may include bandwidth, delay, packet loss rate and other parameters, and the preset time intervals corresponding to Wi-Fi, Bluetooth and Zigbee may be determined according to the network environment parameters corresponding to Wi-Fi, Bluetooth and Zigbee. The network environment parameters are the network environment parameters within the start time and end time of the historical operation information.
[0090] In the above network environment parameters, the larger the bandwidth, the more stable the networking environment, and the preset time interval can be set shorter; the lower the delay, the more stable the networking environment, and the preset time interval can be set shorter; the lower the packet loss rate, the more stable the networking environment, and the preset time interval can be set shorter. Specifically, a mapping table can be used to maintain the relationship between the network environment parameters and the preset time intervals. After determining the network environment parameters corresponding to each networking environment in the corresponding period of historical operation information, the preset time intervals corresponding to each networking environment are determined according to the mapping table.
[0091] Each first slice data corresponds to a networking environment, and each networking environment corresponds to a preset time interval. Therefore, the preset time interval of the first slice data can be determined according to the networking environment corresponding to the first slice data, and each first slice data can be subjected to second slicing processing at the corresponding preset time interval to obtain the second slice data of each home appliance.
[0092] Optionally, in the step of determining the operating sequence of each household appliance in different networking environments based on the second slice data, the target second slice data can be determined, and the time length of the target second slice data is less than the corresponding preset time interval; the adjacent second slice data of the target second slice data is obtained; the target second slice data is corrected based on the adjacent second slice data to obtain the corrected target second slice data; based on the corrected target second slice data and the second slice data whose time length is equal to the corresponding preset time interval, the operating sequence of each household appliance in different networking environments is determined.
[0093] In an embodiment of the present invention, after obtaining the second slice data, it can be determined whether the time length of each second slice data is less than the corresponding preset time interval. If the time length of the second slice data is less than the corresponding preset time interval, the second slice data is determined to be the target second slice data. The operating state corresponding to the target second slice data is incomplete. The target second slice data is used as a separate operating state in the operating sequence. There are large differences in the operating states corresponding to the categories of the same networking environment, which will affect the timing capture of the prediction model and may also cause under-fitting of the prediction model during the training process.
[0094] After determining the target second slice data, the adjacent second slice data of the target second slice data is obtained. The adjacent second slice data may be the preceding adjacent second slice data or the succeeding adjacent second slice data. The preceding adjacent second slice data may be understood as the adjacent second slice data before the target second slice data in time, and the succeeding adjacent second slice data may be understood as the adjacent second slice data after the second slice data in time.
[0095] The target second slice data may be corrected by the preceding adjacent second slice data, or may be corrected by the succeeding adjacent second slice data, or may be corrected by both the preceding adjacent second slice data and the succeeding adjacent second slice data.
[0096] Generally speaking, the target second slice data usually appears at the head or tail of the first slice data. Therefore, if the target second slice data is the head of the first slice data, the target second slice data can be corrected by the second adjacent slice data, and at this time, the second adjacent slice data and the target second slice data have the same type of networking type; if the target second slice data is the tail of the first slice data, the target second slice data can be corrected by the first adjacent slice data, and at this time, the first adjacent second slice data and the target second slice data have the same type of networking type. In some possible embodiments, if the target second slice data is the first slice data, it means that the time period of the first slice data is also less than the corresponding preset time interval. At this time, the target second slice data can be corrected by the first adjacent second slice data and the second adjacent slice data, and at this time, the first adjacent second slice data and the target second slice data have different types of networking types, and the second adjacent second slice data and the target second slice data also have different types of networking types.
[0097] The correction processing mentioned above may be data smoothing processing, data interpolation processing, etc.
[0098] Optionally, before inputting the operation sequence into a preset prediction model for prediction processing to obtain the confidence of each household appliance in different networking environments, a sample sequence and a time series model to be trained can also be obtained. The sample sequence is obtained based on the historical operation information of the sample household appliance. The time series model to be trained has the predicted operation response of the sample household appliance as the output target, and each output target corresponds to a confidence level. The sample sequence is divided according to a preset division strategy to obtain a first sample sequence in the front and a second sample sequence in the back. The first sample sequence is determined as the input sample, and the corresponding sample label is determined for the second sample sequence. The model to be trained is supervised and trained, and the preset prediction model is obtained after the training is completed.
[0099] In the embodiments of the present invention, the sample home appliances are smart home appliances that support communication protocols such as Wi-Fi, Bluetooth, and Zigbee. The sample home appliances may be smart home appliances such as smart TVs, smart speakers, smart bathroom cabinets, smart toilets, smart air conditioners, smart washing machines, and smart refrigerators. The historical operation information of the sample home appliances may be obtained, and the historical operation information of the sample home appliances may be processed by the method for processing the historical operation information in the above embodiment to obtain a sample sequence.
[0100] The above sample sequence can be obtained by Eh=(e1, e2, ..., e h-1 , e h ), where e1 represents the running status corresponding to the first period, the first period is the period of the start time, and e t Indicates the running status corresponding to the hth time period, where the hth time period is the time period where the end time is located.
[0101] The above sample sequence is divided into the first sample sequence Ef = (e1, e2, ..., e f-1 , e f ) and the second sample sequence Eg=(e f+1 , e f+2 ,…,e g-1 , e g ), g is greater than f, and Eh is the concatenation of Ef and Eg. In a possible embodiment, gf=mt, indicating that the number of time periods of the second sample sequence is the same as the number of time periods of the predicted operation information.
[0102] The above-mentioned time series model to be trained can be a time series prediction model based on a recurrent neural network RNN, a long short-term memory network LSMT, etc.
[0103] During the training process, the first sample sequence is used as the input of the time series model to be trained, and the second sample sequence is used as the label corresponding to the first sample sequence. f-1 , e f ) is input to the time series model to be trained, and the prediction result Ag of the first sample sequence is outputted as (a f+1 , a f+2 , …, a g-1 , a g ), calculate the prediction result of the first sample sequence Ag = (a f+1 , a f+2 , …, a g-1 , a g ) and the second sample sequence Eg=(e f+1 , e f+2 ,…,e g-1 , eg ), taking minimizing the loss function Loss as the optimization goal, adjusting the parameters of the time series model to be trained through back propagation of the error, iterating the above parameter adjustment process until the number of iterations reaches the preset number, stopping the training, and obtaining the trained time series model, which is used as the preset prediction model.
[0104] Optionally, in the step of determining the networking strategy of each household appliance in each networking environment based on the predicted operation information and the confidence level, the active time period of each household appliance can be determined; based on the confidence level, the target networking environment of each household appliance in the corresponding active time period can be determined; and the networking strategy of each household appliance in each networking environment can be determined based on the target networking environment of each household appliance in the corresponding active time period.
[0105] In an embodiment of the present invention, the active time period of each home appliance can be determined based on the operating data such as data collection, data reception, data transmission, and status response in the historical operating information. The higher the frequency of generation of the operating data such as data collection, data reception, data transmission, and status response of a home appliance in a certain time period, the higher the frequency of generation of the operating data such as data collection, data reception, data transmission, and status response of the home appliance in a certain time period, the more likely this time period is to be determined as the active time period of the home appliance.
[0106] The above networking strategy includes the networking environment of each home device during the active period and the target networking environment during the inactive period. Both the active period and the inactive period are future periods.
[0107] After obtaining the predicted operation information and confidence corresponding to the future time period, the future time period can be divided into active time period and inactive time period according to the active time period of each home appliance, and then the predicted operation information and confidence corresponding to the active time period and the predicted operation information and confidence corresponding to the inactive time period can be obtained.
[0108] Determine whether the confidence of a home appliance in an active period is greater than or equal to a first preset confidence. When the confidence of the home appliance in the active period is greater than or equal to the first preset confidence, determine the corresponding networking environment as the target networking environment of the home appliance in the active period. Determine whether the confidence of a home appliance in an inactive period is greater than or equal to a second preset confidence. When the confidence of the home appliance in a future period is greater than or equal to the second preset confidence, determine the corresponding networking environment as the target networking environment of the home appliance in the inactive period. The first preset confidence is less than the second preset confidence.
[0109] like Figure 2 As shown, an embodiment of the present invention provides a home appliance adaptive networking device, the home appliance adaptive networking device comprising:
[0110] The first acquisition module 201 is used to acquire historical operation information of each home appliance in multiple networking environments;
[0111] A first determination module 202 is used to determine the predicted operation information and confidence of each of the household appliances according to the historical operation information, wherein the predicted operation information and the confidence are obtained according to a preset prediction model, and the preset prediction model is used to predict the predicted operation information of each household appliance in a future period, and the confidence indicates the reliability of the predicted operation information, and the higher the confidence, the higher the reliability of the corresponding predicted operation information;
[0112] A second determination module 203, configured to determine a networking strategy for each of the household devices in each of the networking environments based on the predicted operation information and the confidence level;
[0113] The networking module 204 is used to control each of the household devices to be networked in each of the networking environments according to the networking strategy.
[0114] Optionally, the first determining module 202 includes:
[0115] A first determination submodule, configured to determine an operation sequence of each of the household appliances according to the historical operation information;
[0116] The processing submodule inputs the operation sequence into the preset prediction model for prediction processing to obtain the predicted operation information of each household appliance in the future period and the corresponding confidence level.
[0117] Optionally, the first determining submodule includes:
[0118] A first processing unit, configured to perform first slicing processing on the historical operation information according to the category of the networking environment, to obtain first slicing data of each of the household devices;
[0119] A second processing unit is used to perform second slicing processing on each of the first slicing data at a preset time interval to obtain second slicing data of each of the household devices, wherein the preset time interval is determined according to the category of the first slicing data;
[0120] A determination unit is used to determine an operation sequence of each of the household appliances based on the second slice data.
[0121] Optionally, the second processing unit includes:
[0122] A first acquisition subunit is used to acquire network environment parameters corresponding to different types of networking environments;
[0123] A first determining subunit, configured to determine, based on the network environment parameter, a preset time interval corresponding to each category of the first slice data;
[0124] The first processing subunit is used to perform second slicing processing on each of the first slice data at a corresponding preset time interval to obtain second slice data for each of the home appliances.
[0125] Optionally, the first determining unit includes:
[0126] A second determining subunit is used to determine target second slice data, wherein the time length of the target second slice data is less than the corresponding preset time interval;
[0127] A second acquisition subunit, configured to acquire adjacent second slice data of the target second slice data;
[0128] A second processing subunit is used to perform correction processing on the target second slice data based on the adjacent second slice data to obtain corrected target second slice data;
[0129] The third determining subunit is used to determine the operation sequence of each of the household appliances based on the corrected target second slice data and the second slice data whose time length is equal to the corresponding preset time interval.
[0130] Optionally, the device further comprises:
[0131] A second acquisition module is used to acquire a sample sequence and a time series model to be trained, wherein the sample sequence is obtained according to historical operation information of the sample household equipment, and the time series model to be trained has the operation information of the predicted sample household equipment as an output target, and each output target corresponds to a confidence level;
[0132] A division module, used to divide the sample sequence according to a preset division strategy to obtain a first sample sequence with an earlier time and a second sample sequence with a later time;
[0133] The training module is used to determine the first sample sequence as an input sample, determine the corresponding sample label for the second sample sequence, perform supervised training on the model to be trained, and obtain the preset prediction model after the training is completed.
[0134] Optionally, the second determining module 203 includes:
[0135] A second determination submodule is used to determine the active time period of each of the household appliances;
[0136] A third determination submodule is used to determine the target networking environment of each of the household devices in the corresponding active period based on the confidence level;
[0137] The fourth determination submodule is used to determine the target networking environment of each of the home appliances in the corresponding active time period, and determine the networking strategy of each of the home appliances in each of the networking environments.
[0138] It should be noted that the home appliance adaptive networking device provided in the embodiment of the present invention can be applied to devices such as shooting equipment, smart phones, computers, servers, etc. that can perform adaptive networking of home appliances.
[0139] The home appliance adaptive networking device provided in the embodiment of the present invention can implement each process implemented by the home appliance adaptive networking method in the above method embodiment, and can achieve the same beneficial effects. To avoid repetition, it will not be described here.
[0140] See also Figure 3 , Figure 3 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention, such as Figure 3 As shown, it includes: a memory 302, a processor 301, and a computer program of a method for adaptively networking home devices stored in the memory 302 and executable on the processor 301, wherein:
[0141] The processor 301 is used to call the computer program stored in the memory 302 and execute the following steps:
[0142] Obtain historical operation information of each home device in multiple networking environments;
[0143] Determine, according to the historical operation information, predicted operation information and confidence of each of the household appliances, wherein the predicted operation information and the confidence are obtained according to a preset prediction model, and the preset prediction model is used to predict the predicted operation information of each household appliance in a future period, and the confidence indicates the reliability of the predicted operation information, and the higher the confidence, the higher the reliability of the corresponding predicted operation information;
[0144] Determining a networking strategy for each of the home devices in each of the networking environments based on the predicted operation information and the confidence level;
[0145] According to the networking strategy, each of the household devices is controlled to be networked in each of the networking environments.
[0146] Optionally, the determining, according to the historical operation information, the predicted operation information and the confidence level of each of the household appliances performed by the processor 301 includes:
[0147] Determining the operation sequence of each of the household appliances according to the historical operation information;
[0148] The operation sequence is input into the preset prediction model for prediction processing to obtain the predicted operation information of each household appliance in the future period and the corresponding confidence level.
[0149] Optionally, the determining, by the processor 301, the operation sequence of each of the household appliances according to the historical operation information includes:
[0150] Performing first slicing processing on the historical operation information according to the category of the networking environment to obtain first slicing data of each of the household devices;
[0151] Performing second slicing processing on each of the first slicing data at a preset time interval to obtain second slicing data of each of the household devices, wherein the preset time interval is determined according to the category of the first slicing data;
[0152] An operation sequence of each of the home appliances is determined based on the second slice data.
[0153] Optionally, the processor 301 performs second slicing processing on each of the first slice data at a preset time interval to obtain second slice data of each of the home appliances, including:
[0154] Obtaining network environment parameters corresponding to different types of networking environments;
[0155] Determine, based on the network environment parameters, a preset time interval corresponding to each category of the first slice data;
[0156] Each of the first slice data is subjected to second slice processing at a corresponding preset time interval to obtain second slice data of each of the household devices.
[0157] Optionally, the determining, by the processor 301, of an operation sequence of each of the household appliances based on the second slice data includes:
[0158] Determine target second slice data, wherein the time length of the target second slice data is less than the corresponding preset time interval;
[0159] Acquire the adjacent second slice data of the target second slice data;
[0160] Performing correction processing on the target second slice data based on the adjacent second slice data to obtain corrected target second slice data;
[0161] Based on the corrected target second slice data and the second slice data whose time length is equal to the corresponding preset time interval, the operation sequence of each of the household appliances is determined.
[0162] Optionally, before inputting the operation sequence into the preset prediction model for prediction processing to obtain the predicted operation information of each household appliance in the future time period and the corresponding confidence level, the method executed by the processor 301 further includes:
[0163] Obtain a sample sequence and a time series model to be trained, wherein the sample sequence is obtained according to historical operation information of the sample home appliance, and the time series model to be trained has the operation information of the predicted sample home appliance as an output target, and each output target corresponds to a confidence level;
[0164] Dividing the sample sequence according to a preset division strategy to obtain a first sample sequence with an earlier time and a second sample sequence with a later time;
[0165] The first sample sequence is determined as an input sample, and a corresponding sample label is determined for the second sample sequence. The model to be trained is subjected to supervised training, and the preset prediction model is obtained after the training is completed.
[0166] Optionally, the determining, based on the predicted operation information and the confidence level, of a networking strategy for each of the home devices in each of the networking environments, performed by the processor 301 includes:
[0167] Determine the active time period of each of the household devices;
[0168] Based on the confidence level, determining a target networking environment of each of the household devices in a corresponding active period;
[0169] The target networking environment of each of the household devices in the corresponding active time period determines the networking strategy of each of the household devices in each of the networking environments.
[0170] It should be noted that the electronic device provided in the embodiment of the present invention can be applied to devices such as smart phones, computers, servers, etc. that can perform the method for adaptive networking of home devices.
[0171] The electronic device provided in the embodiment of the present invention can implement each process implemented by the method for adaptively networking household devices in the above method embodiment, and can achieve the same beneficial effects. To avoid repetition, it will not be described here.
[0172] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the computer program implements the various processes of the home appliance adaptive networking method or the application-side home appliance adaptive networking method provided in the embodiment of the present invention, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0173] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0174] The above disclosure is only the preferred embodiment of the present invention, which certainly cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.
Claims
1. A method for adaptively networking home appliances, characterized in that: include: Obtain historical operation information of each home device in multiple networking environments; Determine, according to the historical operation information, predicted operation information and confidence of each of the household appliances, wherein the predicted operation information and the confidence are obtained according to a preset prediction model, and the preset prediction model is used to predict the predicted operation information of each household appliance in a future period, and the confidence indicates the reliability of the predicted operation information, and the higher the confidence, the higher the reliability of the corresponding predicted operation information; Determining a networking strategy for each of the home devices in each of the networking environments based on the predicted operation information and the confidence level; Controlling each of the household devices to network in each of the networking environments according to the networking strategy; Determining the predicted operation information and confidence level of each of the household appliances according to the historical operation information includes: Determining the operation sequence of each of the household appliances according to the historical operation information; Inputting the operation sequence into the preset prediction model for prediction processing to obtain the predicted operation information of each household appliance in the future period and the corresponding confidence level; Determining the operation sequence of each of the household appliances according to the historical operation information includes: Performing first slicing processing on the historical operation information according to the category of the networking environment to obtain first slicing data of each of the household devices; Performing second slicing processing on each of the first slicing data at a preset time interval to obtain second slicing data of each of the household devices, wherein the preset time interval is determined according to the category of the first slicing data; Determine an operation sequence of each of the household appliances based on the second slice data; The performing second slicing processing on each of the first slice data at a preset time interval to obtain second slice data of each of the household devices includes: Obtaining network environment parameters corresponding to different types of networking environments; Determine, based on the network environment parameters, a preset time interval corresponding to each category of the first slice data; Performing second slicing processing on each of the first slicing data at a corresponding preset time interval to obtain second slicing data of each of the household devices; The determining the operation sequence of each of the household appliances based on the second slice data includes: Determine target second slice data, wherein the time length of the target second slice data is less than the corresponding preset time interval; Acquire the adjacent second slice data of the target second slice data; Performing correction processing on the target second slice data based on the adjacent second slice data to obtain corrected target second slice data; Based on the corrected target second slice data and the second slice data whose time length is equal to the corresponding preset time interval, the operation sequence of each of the household appliances is determined.
2. The method according to claim 1, characterized in that Before inputting the operation sequence into the preset prediction model for prediction processing to obtain the predicted operation information of each household appliance in the future period and the corresponding confidence level, the method further includes: Obtain a sample sequence and a time series model to be trained, wherein the sample sequence is obtained according to historical operation information of the sample home appliance, and the time series model to be trained has the operation information of the predicted sample home appliance as an output target, and each output target corresponds to a confidence level; Dividing the sample sequence according to a preset division strategy to obtain a first sample sequence with an earlier time and a second sample sequence with a later time; The first sample sequence is determined as an input sample, and a corresponding sample label is determined for the second sample sequence. The model to be trained is subjected to supervised training, and the preset prediction model is obtained after the training is completed.
3. The method according to claim 2, characterized in that The determining, based on the predicted operation information and the confidence level, a networking strategy for each of the household devices in each of the networking environments includes: Determine the active time period of each of the household devices; Based on the confidence level, determining a target networking environment of each of the household devices in a corresponding active period; The target networking environment of each of the household devices in the corresponding active time period determines the networking strategy of each of the household devices in each of the networking environments.
4. A home appliance adaptive networking device, characterized in that: The home appliance adaptive networking device comprises: An acquisition module is used to obtain historical operation information of each home appliance in multiple networking environments; The first determination module is used to determine the predicted operation information and confidence of each of the household appliances according to the historical operation information, the predicted operation information and the confidence are obtained according to a preset prediction model, the preset prediction model is used to predict the predicted operation information of each household appliance in a future time period, the confidence indicates the reliability of the predicted operation information, the higher the confidence, the stronger the reliability of the corresponding predicted operation information; the determination of the predicted operation information and the confidence of each of the household appliances according to the historical operation information includes: determining the operation sequence of each of the household appliances according to the historical operation information; inputting the operation sequence into the preset prediction model for prediction processing to obtain the predicted operation information of each of the household appliances in a future time period and the corresponding confidence; the determination of the operation sequence of each of the household appliances according to the historical operation information includes: performing a first slicing process on the historical operation information according to the category of the networking environment to obtain first slicing data of each of the household appliances; performing a second slicing process on each of the first slicing data at a preset time interval to obtain second slicing data of each of the household appliances, the preset The time interval is determined according to the category of the first slice data; the operation sequence of each of the household appliances is determined based on the second slice data; the second slicing processing of each of the first slice data at a preset time interval to obtain the second slice data of each of the household appliances includes: obtaining network environment parameters corresponding to the networking environments of different categories; determining the preset time interval corresponding to the first slice data of each category based on the network environment parameters; performing the second slicing processing of each of the first slice data at the corresponding preset time interval to obtain the second slice data of each of the household appliances; the operation sequence of each of the household appliances determined based on the second slice data includes: determining target second slice data, the time length of the target second slice data being less than the corresponding preset time interval; obtaining adjacent second slice data of the target second slice data; correcting the target second slice data based on the adjacent second slice data to obtain the corrected target second slice data; determining the operation sequence of each of the household appliances based on the corrected target second slice data and the second slice data having a time length equal to the corresponding preset time interval; A second determination module, configured to determine a networking strategy of each of the household devices in each of the networking environments based on the predicted operation information and the confidence level; The networking module is used to control each of the household devices to be networked in each of the networking environments according to the networking strategy.
5. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps in the method for adaptive networking of home devices as described in any one of claims 1 to 3 when executing the computer program.
6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the steps in the method for adaptive networking of home devices as described in any one of claims 1 to 3 are implemented.
Citation Information
Patent Citations
Resource slice allocation method and device, and computer equipment
CN112737823A
Demand prediction method, device and equipment for home wide networking product and medium
CN115619109A
