Master control device, household appliance computing device and distributed system
By using the task scheduling module and model decomposition module in the smart home distributed system, the device hierarchy and task allocation are optimized, the problem of low device utilization is solved, and efficient task execution and device management are achieved.
Patent Information
- Application Number
- CN202410942915.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-15
- Publication Date
- 2024-10-11
AI Technical Summary
In distributed systems of smart homes, the lack of effective device management and task scheduling mechanisms causes some devices to be idle or overloaded, reducing device utilization.
The task scheduling module in the main control device is used to select the optimal home appliance computing device through the DQN deep neural network, and allocate tasks to devices at different levels. Combined with the model decomposition module, the large model is decomposed into independent sub-models, and the results aggregation module Verify and summarize calculation results to achieve efficient allocation and execution of tasks.
It improves equipment utilization, avoids equipment overload and idleness, improves the efficiency and quality of task execution, and achieves more reasonable equipment management and task scheduling.
Smart Images

Figure CN118759871A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of smart home, and more specifically, to a master control device, a home appliance computing device, and a distributed system. Background Art
[0002] At present, in the field of smart home, with the continuous development of Internet of Things and artificial intelligence technology, more and more smart devices are applied to home environment. Therefore, smart devices will face the processing of various complex tasks, such as: voice recognition, image recognition, user behavior analysis, etc.
[0003] The related technology provides a cloud-edge collaborative computing method. It uses the powerful computing power of the cloud to dynamically allocate tasks between the cloud and home computing devices according to the complexity of the tasks.
[0004] In the process of implementing the embodiments of the present disclosure, it is found that there are at least the following problems in the related art:
[0005] In the related art, due to the lack of effective device management and task scheduling mechanism, some devices may be in an idle state or an overloaded state, thereby reducing the utilization rate of the devices.
[0006] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0007] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical components or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.
[0008] The embodiments of the present disclosure provide a main control device, a household appliance computing device, and a distributed system to improve the utilization rate of the devices.
[0009] In some embodiments, a master control device is provided, which is applied to a distributed system, and the distributed system also includes home appliance computing devices of different levels that communicate with the master control device. Among them, the computing power of the home appliance computing device at a higher level is higher and the distance to the master control device is closer. The master control device includes: a task scheduling module, which is used to distribute computing tasks of different priorities to home appliance computing devices of different levels, and issue computing requests. Among them, the higher the priority of the computing task, the higher the level of the home appliance computing device corresponding to the computing task.
[0010] Optionally, the task scheduling module includes a device selection module and a device matching module. The device selection module is used to make decisions using DQN (Deep Q-Leaning Network) to select the optimal home appliance computing device from home appliance computing devices at different levels. The device matching module is used to assign the selected computing task to the optimal home appliance computing device. The selected computing task comes from the task queue. The priority of the computing task is lower than or equal to the level of the optimal home appliance computing device.
[0011] Optionally, each computing task corresponds to a specific sub-model, and the main control device further includes: a model decomposition module, which is used to decompose the large model into multiple layers of relatively independent sub-models.
[0012] Optionally, the model decomposition module includes a scoring module and a determination module. The scoring module is used to score according to the weights of preset task factors to determine the decomposable parts of the large model. The preset task factors include task complexity, and / or device computing power, and / or data transmission requirements, and / or real-time requirements, and / or parallel processing requirements, and / or network stability, and / or task urgency; the determination module decomposes the large model into multiple relatively independent sub-models.
[0013] Optionally, the main control device also includes: a result aggregation module, which is used to aggregate the calculation results of household computing devices at different levels and output a final decision.
[0014] Optionally, the result aggregation module includes a data collection module, a data processing module and a data output module. The data collection module is used to receive the calculation results of the home appliance computing devices at different levels, and perform integrity verification and accuracy verification on the calculation results to generate verification data of the home appliance computing devices at different levels. The data processing module is used to aggregate the verification data of the home appliance computing devices at different levels to generate a final decision. The data output module is used to output the final decision.
[0015] Optionally, the data processing module includes a data preprocessing module and a data aggregation module. The data preprocessing module is used to preprocess the verification data of household computing devices at different levels to generate preprocessed data. Wherein, the preprocessing includes data cleaning, and / or data format conversion, and / or data outlier processing. The data aggregation module is used to aggregate the preprocessed data to generate a final decision; wherein, the aggregation includes calculating the average value of the preprocessed data, or calculating the weighted average value of the preprocessed data, or obtaining the maximum value of the preprocessed data, or obtaining the minimum value of the preprocessed data.
[0016] In some embodiments, a home appliance computing device is provided, which is applied to a distributed system, and the distributed system also includes a main control device that communicates with the home appliance computing device, and the home appliance computing device includes: a task execution module, which is used to receive tasks and computing requests sent by the main control device, and execute the computing request to generate a computing result. Among them, the priority of the task sent by the main control device matches the device level of the device. The higher the computing power of the device and the closer it is to the main control device, the higher the device level of the device, and the higher the priority of the task sent by the main control device.
[0017] Optionally, the home appliance computing device further includes: a result uploading module for uploading the calculation results of each home appliance computing device, so that the main control device aggregates the calculation results of home appliance computing devices at different levels and outputs a final decision.
[0018] In some embodiments, a distributed system is provided, which includes a main control device and a home appliance computing device. As described above, the main control device is used to manage a task queue; wherein the task queue includes tasks of different priorities. As described above, home appliance computing devices at different levels communicate with the main control device respectively. Among them, the higher the level of the home appliance computing device, the higher the computing power and the closer it is to the main control device, and the higher the priority of the task processed by the home appliance computing device at a higher level.
[0019] The master control device, home appliance computing device, and distributed system provided by the embodiments of the present disclosure can achieve the following technical effects:
[0020] The master device distributes high-priority tasks to high-level home appliance computing devices, distributes low-priority tasks to low-level home appliance computing devices, and issues a computing request to let the home appliance computing devices perform the tasks assigned by the master device. By prioritizing tasks and classifying home appliance computing devices, the computing power of home appliance computing devices can be fully utilized to perform corresponding tasks, avoiding the overload of some home appliance computing devices and the idleness of some home appliance computing devices, thereby improving the utilization rate of the equipment.
[0021] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0023] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0024] Figure 1 It is a schematic diagram of the hardware environment of a distributed system provided in an embodiment of the present application;
[0025] Figure 2 is a schematic diagram of a main control device provided in an embodiment of the present application;
[0026] Figure 3 is a schematic diagram of a task scheduling module of a master control device provided in an embodiment of the present application;
[0027] Figure 4 is a schematic diagram of a model decomposition module of a master control device provided in an embodiment of the present application;
[0028] Figure 5 is a schematic diagram of a result aggregation module of a master control device provided in an embodiment of the present application;
[0029] Figure 6 is a schematic diagram of a household computing device provided in an embodiment of the present application;
[0030] Figure 7 It is a schematic diagram of a distributed system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0031] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0032] It should be noted that the terms "first", "second", etc. in the present application document are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchangeable in appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, the process, method, system, product or equipment comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or equipment.
[0033] According to one aspect of the embodiments of the present application, a main control device, a home appliance computing device, and a distributed system are provided. The main control device, the home appliance computing device, and the distributed system are widely used in smart home (Smart Home), smart home, smart home device ecology, smart residential (Intelligence House) ecology and other whole-house intelligent digital control application scenarios. Optionally, in this embodiment, the above-mentioned main control device and home appliance computing device can be applied to Figure 1 In the hardware environment composed of the main control device 102 and the home appliance computing device 104 shown in FIG. Figure 1 As shown, the distributed system 10 includes a main control device 102 and a home computing device 104. The home computing device 104 is connected to the main control device 102. The closer the home computing device 104 is to the main control device 102, or the higher the level of the home computing device 104, the higher the hardware configuration of the home computing device 104.
[0034] The above connection may include but is not limited to at least one of the following: wired connection, wireless connection. The above wired connection may include but is not limited to at least one of the following: network cable connection, optical fiber connection, and the above wireless connection may include but is not limited to at least one of the following: WIFI (Wireless Fidelity) connection, Bluetooth connection.
[0035] The main control device 102 may be a server, and a database may be set on the main control device or independently of the main control device to provide data storage services for the main control device 102. The home appliance computing device 104 may be, but is not limited to, a PC, a mobile phone, a tablet computer, a smart air conditioner, a smart range hood, a smart refrigerator, a smart oven, a smart stove, a smart washing machine, a smart water heater, a smart washing device, a smart dishwasher, a smart projection device, a smart TV, a smart clothes drying rack, a smart curtain, a smart audio and video, a smart socket, a smart speaker, a smart fresh air device, a smart kitchen and bathroom device, a smart bathroom device, a smart sweeping robot, a smart window cleaning robot, a smart mopping robot, a smart air purification device, a smart steamer, a smart microwave oven, a smart kitchen treasure, a smart purifier, a smart water dispenser, a smart door lock, etc.
[0036] like Figure 2 As shown, the embodiment of the present disclosure provides a main control device 102, which includes a model decomposition module 01, a task management module 02, a home appliance computing device state update module 03, a DQN decision module 04, a task scheduling module 05, and a result aggregation module 06. Among them, the model decomposition module 01 includes a scoring module and a determination module. The task scheduling module 05 includes a device selection module and a device matching module. The result aggregation module 06 includes a data collection module, a data processing module, and a data output module. The data processing module includes a data preprocessing module and a data aggregation module.
[0037] Furthermore, the task management module 02 is used to manage the task queue, including task reception and evaluation, task sorting, task allocation and queue maintenance.
[0038] Specifically, when a new task arrives, the main control device 102 will first add it to the task queue. Then, the main control device 102 will evaluate the attributes of the task, such as determining its priority. Based on the evaluation results, the main control device 102 will sort all the tasks in the queue. Generally speaking, tasks with high priority will be placed at the front of the queue. When a home appliance computing device is idle and requests a new computing task, the main control device 102 will take out the most suitable task from the front of the queue and assign it to the corresponding home appliance computing device. In this way, it can be ensured that high-priority tasks can be processed first. During the whole process, since the status of the home appliance computing device and the computing environment may change, the main control device 102 also needs to continuously update and maintain the queue. For example, if a high-priority task that has been assigned but has not yet been processed is suddenly no longer so urgent, then the main control device 102 needs to adjust the position of the task in the queue accordingly.
[0039] Furthermore, the home appliance computing device state update module 03 is used to update the state and calculation results reported by the home appliance computing device, so as to facilitate the main control device 102 to dynamically schedule tasks.
[0040] In some embodiments, a master control device is applied to a distributed system, and the master control device includes a task scheduling module. The task scheduling module is used to distribute computing tasks of different priorities to household computing devices of different levels, and issue computing requests. The higher the priority of the computing task, the higher the level of the household computing device corresponding to the computing task.
[0041] By assigning higher-priority computing tasks to higher-level home appliance computing devices and assigning lower-priority tasks to lower-level home appliance computing devices, the main control device can better utilize the characteristics and advantages of each home appliance computing device, so that home appliance computing devices at different levels can be reasonably managed and scheduled, avoiding some devices being idle and some devices being overloaded, thereby improving the utilization rate of the equipment.
[0042] Combination Figure 3 As shown, optionally, the task scheduling module 05 includes a device selection module 051 and a device matching module 052. The device selection module 051 is used to make decisions using DQN to select the optimal home appliance computing device from home appliance computing devices at different levels. The device matching module 052 is used to assign the selected computing task to the optimal home appliance computing device. The selected computing task comes from the task queue. The priority of the computing task is lower than or equal to the level of the optimal home appliance computing device.
[0043] The strategy of using DQN for decision-making dynamically selects the optimal home appliance computing device according to the status of home appliance computing devices at different levels, which enables the distributed system to adapt to the changes of home appliance computing devices, effectively handles problems such as failures of home appliance computing devices and network delays, and improves the adaptability of the distributed system. By assigning specific computing tasks to the selected optimal home appliance computing device, the home appliance computing device can be optimally matched with the specific task, fully utilizing the computing power of each home appliance computing device, improving the utilization rate of the home appliance computing device, and at the same time, enabling specific tasks to be efficiently executed, improving the efficiency and quality of task execution.
[0044] Furthermore, DQN is a deep neural network consisting of multiple layers of fully connected layers or convolutional layers, with the last layer being a linear output layer.
[0045] In actual applications, the master device obtains the status. The status includes the current computing load, network latency, available computing power, and number of computing tasks of each home appliance computing device. The master device inputs the status to DQN and selects the best home appliance computing device for each specific computing task. The master device assigns the specific computing task to the selected best home appliance computing device and issues a computing request.
[0046] Furthermore, the current computing load of the home computing device describes the ratio of the number of tasks being processed by the home computing device to the total computing capacity of the home computing device.
[0047] For example, assuming that the number of tasks being executed by the home computing device is T, and the total task capacity of the home computing device is C, the computing load of the home computing device is T / C. This indicator reflects the degree of use of the home computing device. When T / C is close to 1, it means that the home computing device has been fully utilized and cannot undertake more computing tasks.
[0048] The network latency of the home computing device describes the time it takes for data to be transmitted from the home computing device to the host device. The network latency is estimated by measuring the average round-trip time between the home computing device and the host device.
[0049] The available computing power of a home computing device describes the number of computing tasks that the home computing device can perform per unit time. This indicator is determined by factors such as the hardware configuration of the home computing device, the operating system, and other currently running applications. The available computing power of a home computing device is a dynamically changing value that can be obtained by regularly monitoring the resource usage of the home computing device through the main control device.
[0050] Furthermore, the master device selects the best home appliance computing device for each specific computing task through DQN. In practical applications, the master device can adopt an ε-greedy strategy to select the best home appliance computing device for each computing task.
[0051] Optionally, each computing task corresponds to a specific sub-model, and the main control device further includes a model decomposition module. The model decomposition module is used to decompose the large model into multiple layers of relatively independent sub-models.
[0052] By dividing the large model into multiple independent sub-models, each sub-model corresponds to a specific computing task. In this way, each home appliance computing device only needs to process a part of the large model, reducing the computing load of each home appliance computing device, thereby improving the computing efficiency of the entire distributed system.
[0053] Furthermore, for each sub-model, the main control device will mark the priority of the sub-model according to the position, function and complexity of the sub-model in the entire large model, so that different sub-models can be easily assigned to appropriate home appliance computing devices.
[0054] For example, if a sub-model represents a core task in a large model or its computational complexity is quite high, the master device will mark it with a higher priority. The first layer of sub-models usually has the highest priority, and as the number of layers increases, the priority of the sub-model will decrease.
[0055] Combination Figure 4 As shown, optionally, the model decomposition module 01 includes a scoring module 011 and a determination module 012. The scoring module 011 is used to score according to the weights of preset task factors to determine the decomposable parts of the large model. Among them, the preset task factors include task complexity, and / or, device computing power, and / or, data transmission requirements, and / or, real-time requirements, and / or, parallel processing requirements, and / or, network stability, and / or, task urgency. The determination module 012 decomposes the large model into multiple relatively independent sub-models.
[0056] In this way, by determining the decomposable parts of the large model according to the weight scoring method of the preset task factors, it is possible to comprehensively consider multiple preset task factors and finally give a more accurate judgment, reducing subjective judgment and ambiguity. At the same time, it is possible to adapt to the changes of the preset task factors and dynamically determine the decomposable parts of the large model, thereby improving the flexibility of decomposing the large model. By decomposing the large model into multiple layers of relatively independent sub-models, the home appliance computing device only needs to calculate a part of the sub-models in the large model, reducing the computing load of the home appliance computing device.
[0057] These preset task factors reflect the characteristics of computing tasks or household computing devices from different perspectives and are highly representative, so that computing tasks can be evaluated more comprehensively or accurately.
[0058] Optionally, scoring is performed according to the weights of preset task factors, including: inputting multiple task factors of the computing task into a meta-learning model to obtain a weight allocation strategy for the multiple task factors. According to the weight allocation strategy, a corresponding weight is assigned to each task factor. According to the weight of each task factor, a weighted sum is performed on the scores to obtain a total score of the task.
[0059] In the disclosed embodiment, the dynamic adjustment of weights can be achieved using a meta-learning method. When using the meta-learning method, some historical data is collected in advance, and a meta-learning model is trained to learn the optimal weight allocation strategy. Meta-learning is usually used to learn how to learn. It can extract common information from multiple related tasks to accelerate the learning process of new tasks. In specific applications, the meta-learning model is input according to the real-time status of the task and the device, and the weight allocation result of its output is obtained.
[0060] According to the weight allocation strategy obtained by meta-learning, a corresponding weight is assigned to each task factor. The weight reflects the importance of different task factors to the final task score. For each task, the score is weighted and summed according to the weight of each task factor. In this way, the impact of different task factors on the overall performance of the task can be comprehensively considered. The result of the weighted sum is the total score of the task, which can more comprehensively reflect the comprehensive performance of the task, thereby improving the accuracy and reliability of the score.
[0061] Optionally, scoring is performed according to the preset weights of the task factors, including: obtaining a redistribution strategy of the weights of multiple task factors through a reinforcement learning algorithm based on the historical weight data of multiple task factors. According to the weight distribution strategy, a corresponding weight is assigned to each task factor. According to the weight of each task factor, the scores are weighted and summed to obtain the total score of the task.
[0062] In the disclosed embodiment, a reinforcement learning strategy can be used for weight adjustment. The system provides feedback based on the results of each task scheduling (e.g., task completion time, resource consumption, etc.), and then automatically adjusts the weights through the reinforcement learning algorithm to optimize future task processing performance. Reinforcement learning learns how to make optimal decisions through interaction with the environment. The reinforcement learning algorithm learns how to adjust the weights of different task factors based on historical weight data to maximize the reward function (e.g., the accuracy of the total task score).
[0063] According to the weight allocation strategy of the reinforcement learning algorithm, a corresponding weight is assigned to each task factor. The weight reflects the importance of different task factors to the final task score. For each task, the score is weighted and summed according to the weight of each task factor. In this way, the impact of different task factors on the overall performance of the task can be comprehensively considered. The result of the weighted sum is the total score of the task, which can more comprehensively reflect the comprehensive performance of the task, thereby improving the accuracy and reliability of the score.
[0064] Optionally, the meta-learning model is obtained in the following manner: extracting feature data from historical weight data of multiple task factors, inputting the feature data into a meta-learning basic model, so that the meta-learning basic model learns a weight allocation strategy, and obtaining a meta-learning model.
[0065] A meta-learning model is a machine learning model that can learn how to learn. The basic principle is to extract general learning rules and strategies by learning on multiple tasks so that it can quickly adapt and learn when faced with new tasks. The model usually contains two key components: a meta-learner and a task learner. The task of the meta-learner is to learn general learning rules and strategies, while the task learner focuses on learning specific tasks. The main goal of the meta-learning model is to enable the model to solve some new learning tasks with only a small number of samples. For example, in tasks such as image classification and speech recognition, traditional machine learning methods require a large amount of labeled or speech data for training, while meta-learning technology can use a small amount of data for training, and then transfer the learned knowledge to new tasks, thereby greatly reducing training time and data requirements and improving the completion of tasks. Common meta-learning methods include MAML (Model-Agnostic Meta-Learning), which has the advantages of rapid adaptation to new tasks and model independence.
[0066] In the disclosed embodiment, feature data can be obtained by calculating the mean, median, standard deviation and other statistics of historical weight data to reflect the distribution of weights. The meta-learning basic model includes a model based on a neural network, a decision tree or an integration method. The meta-learning basic model is a meta-learning framework that requires multiple iterations and adjustments, including adjusting feature extraction methods, optimizing model structures and parameters, etc., to obtain better meta-learning model performance.
[0067] In practical applications, the preset task factors may include one or more of task complexity, computing power of home computing devices, data transmission requirements, real-time requirements, parallel processing requirements, network stability, and task urgency.
[0068] Furthermore, task complexity includes aspects such as the amount of computation required for the task, the size of input and output data, and the number of steps required to perform the task. The computing power of home computing devices includes hardware indicators such as the device's processor speed, memory, and storage space. Data transmission requirements include the amount of data that needs to be sent or received to perform the task. Real-time requirements include the tolerance of the task to delay. For example, real-time video streaming requires low delay, while batch data processing tasks may be more tolerant to delays. Network stability includes multiple factors such as connection continuity, data packet loss rate, jitter, and delay. The network environment can be monitored in real time, and environmental changes can be responded to in a timely manner to ensure the normal execution of tasks. Concurrency processing requirements need to be based on whether the task supports parallel execution and the degree of parallelism. The priority or urgency of the task includes the importance and completion time of the task. By setting the mechanism of task priority or urgency, the smooth completion of high-priority tasks can be guaranteed when multiple tasks are concurrent, avoiding the delay of important tasks due to resource competition.
[0069] For example, in actual applications, the master device can score the preset task factors separately. The preset task factors include the score C of task complexity, the score D of computing power of home appliance computing device, the score T of data transmission demand, the score R of real-time demand, the score P of parallel processing demand, the score N of network stability, and the score U of task priority. The master device assigns weights to each preset task factor. The weights of the preset task factors are Wc, Wd, ... t ,Wr,W p W n and W u The master device calculates the total score L. Where L = W c C+W d D+W t T+W r R+W p P+W n N+W u U. When the total score L is greater than the threshold W, the main control device determines that the part is a decomposable part of the large model, otherwise, the part is an indecomposable part of the large model. The threshold W is the average and standard deviation of the historical data scores.
[0070] Furthermore, the master device scores each preset task factor according to different scoring criteria. When the master device scores the task complexity, it assumes that "computational volume h", "data scale i" and "number of required steps j" are used as evaluation factors, and each evaluation factor is scored between 1 and 10. The score is calculated using the formula C = w1×h+w2×i+w3×j. Among them, w1, w2 and w3 are weights, and the values depend on the importance attached to these factors. If all weights are set to 1 / 3, then all evaluation factors are considered equally important.
[0071] When the master device scores the computing power D of the device, it assumes that "processor speed e", "memory size f" and "storage space m" are used as evaluation factors, and each evaluation factor is scored between 1 and 10. The score is calculated using the calculation formula D = v1×e+v2×f+v3×m. Among them, v1, v2 and v3 are weights, and the values depend on the importance attached to these evaluation factors. If all weights are set equal, then all evaluation factors are considered equally important.
[0072] When the master device scores the data transmission demand T, the score is low (1-3 points) for small data volumes, such as text messages, emails, small files, etc. Moderate data volumes, such as large documents, pictures, audio files, etc., are scored medium (4-7 points). Large amounts of data, such as high-definition video streams, large-scale data sets, etc., are scored high (8-10 points).
[0073] When the master control device scores the real-time requirement R, some batch processing tasks running in the background or tasks with less stringent time requirements, such as large-scale data analysis and report generation, are scored low (1-3 points). For tasks that need to be completed within a reasonable time but do not require an immediate response, such as web page loading and file uploading, the score is medium (4-7 points). For tasks that require an instant response, such as online games and real-time audio and video calls, the score is high (8-10 points).
[0074] When the master device scores the concurrent processing requirements P, tasks that cannot or do not need to be executed in parallel, such as sequentially executed scripts or single-threaded tasks, are scored low (1-3 points). Some tasks that can be executed in parallel may require a certain amount of resources for parallel processing, but the degree of parallelism is limited, and the score is medium (4-7 points). Highly parallel tasks, such as big data analysis and image processing, can often be effectively processed in parallel on a large number of computing resources, and the score is high (8-10 points).
[0075] When the master device scores the network stability N, if the network connection is often disconnected, the data packet loss rate is high, or the delay and jitter are serious, the score is low (1-3 points). The network connection is relatively stable, but disconnection occurs occasionally; the data packet loss rate, delay and jitter are within an acceptable range, and the score is medium (4-7 points). The network connection is very stable, with almost no disconnection; the data packet loss rate, delay and jitter are very low, and the score is high (8-10 points).
[0076] When the master device rates the priority or urgency U of the task, if the task is not very important or the completion time requirement is loose, the score is low (1-3 points). If the task is of moderate importance or has a certain completion time limit, the score is medium (4-7 points). If the task is very important or needs to be completed in a very short time, the score is high (8-10 points).
[0077] Furthermore, the determination module can obtain the parameters of the model layer to be allocated of the large model. Determine the first computing state parameters of the home appliance computing device to be selected, wherein the first computing state parameters include one or more of the computing load parameters, network delay parameters, and available computing power parameters of each home appliance computing device. Use the model layer parameters to be allocated and the first computing state parameters as the state input values of the deep learning network, and obtain multiple action output values output by the deep learning network based on the state input values. Determine the target home appliance computing device among the home appliance computing devices to be selected based on the action output values, and allocate the target model layer of the large model to the target home appliance computing device to perform hierarchical calculation of the large model.
[0078] The large model is a large deep learning model. By dividing the large deep learning model into independently computable sub-modules, the large model is layered. Each sub-model corresponds to a model layer to be allocated. The parameters of the model layer to be allocated include the number of model layers to be allocated. By calculating the sub-modules through multiple hardware computing devices of the smart home, the distributed computing of the large model can be realized.
[0079] By adopting the task scheduling method for large model hierarchical computing provided by the embodiment of the present disclosure, by obtaining the first computing state parameter of the home appliance computing device to be selected, the current state of the selected home appliance computing device can be evaluated, so as to select a suitable target home appliance computing device when making an allocation. By using the model layer parameters to be allocated and the first computing state parameter as the state input value of the deep learning network, the deep learning network can be used for calculation to obtain an allocation strategy, and the obtained allocation strategy can combine the information of the model layer parameters to be allocated and the first computing state parameter. In this way, the target home appliance computing device that can be determined according to the action output value is more matched with the model layer to be allocated, so that the allocation of computing tasks is more accurate, and the target home appliance computing device can effectively run the large deep learning model.
[0080] Among them, the computing load parameter describes the proportion of the number of tasks being processed by the device to the total computing capacity of the device. Specifically, if the number of tasks being executed by device i is T, and the total task capacity of device i is C, the computing load of device i can be defined as s1 = T / C. s1 reflects the degree of use of the device. When s1 is close to 1, it means that device i has been fully utilized and cannot undertake more computing tasks. Network latency describes the time it takes for data to be transmitted from a device to other devices. In actual operation, the network latency can be estimated by continuously sending and receiving small data packets and measuring the average round-trip time RTT between device i and device j. Available computing power describes the number of computing tasks that a device can perform per unit time. It is determined by factors such as the hardware configuration of the device (such as the performance of the CPU and GPU), the operating system, and other applications currently running. The available computing power of a device is a dynamically changing value that can be obtained by regularly monitoring the resource usage of the device.
[0081] Optionally, determining a target home appliance computing device among the selected home appliance computing devices according to the action output value includes: obtaining a target output value corresponding to the action output value. Determining a target action output value having the smallest difference with the target output value among the action output values. Using the selected home appliance computing device corresponding to the target action output value as the target home appliance computing device.
[0082] In the disclosed embodiment, the target output value can represent the best output result of the deep learning network. By comparing the action output value with the target output value, the deviation between the action output value and the best output result can be known. The smaller the difference obtained, the smaller the deviation. By determining the target action output value with the smallest difference from the target output value in the action output value, the target output value closest to the best output result can be selected. In this way, the selected home appliance computing device corresponding to the target action output value can be used as the target home appliance computing device. By performing hierarchical calculation of the large model through the target home appliance computing device, the operation of the large model can be more efficient.
[0083] Optionally, obtaining a target output value corresponding to the action output value includes calculating the target output value according to the following formula:
[0084] Q=r+γ×maxQ(s',a')
[0085] Among them, Q is the target output value, r is the reward value parameter, γ is the discount factor, s' is the new calculation state parameter, and a' is the new action.
[0086] When calculating the target output value, the action needs to be defined. In the embodiment of the present disclosure, the action can be defined as selecting a certain device to allocate the computing task of the model layer to be allocated. In addition, each action can be given a unique identifier or code. For example, an integer identifier can be assigned to each action according to the serial number sequence of the device. When an action is selected, a corresponding identifier is actually generated.
[0087] In the disclosed embodiment, the target output value is calculated by using the reward value parameter, the new calculation state parameter and the new action. After each action is executed, a new calculation state parameter and a new action are obtained. In addition, the reward value parameter is calculated according to the state of the system, and the reward value parameter can be used to represent the effect after the action is executed to evaluate whether the action meets the requirements of hierarchical computing.
[0088] Assume that the target output value is a vector Q = [q_1, q_2, ..., q_n] of length n, where n is the number of devices and q_i is the expected reward of device i being selected. The device with the largest Q value can be selected by action = np.argmax(Q).
[0089] In practical applications, the Q value can be calculated based on the calculation of the large model. The original action is defined as assigning the first model layer to the smart refrigerator. Based on the calculation status of the smart refrigerator, for example, if the current available computing power of the smart refrigerator is still redundant, a reward value parameter 1 can be obtained, indicating that the smart refrigerator can calculate the first model layer. In addition, a new action is obtained, such as assigning the second model layer to the smart refrigerator, and then obtaining the new calculation status of the smart refrigerator. In this way, the maximum Q value of all possible actions is calculated based on the reward value parameter 1, the new calculation status of the smart refrigerator, and the new action.
[0090] Optionally, after assigning the target model layer of the large model to the target home appliance computing device, the method further includes: obtaining a second computing state parameter of the selected home appliance computing device. The second computing state parameter includes one or more of a model computing time parameter, a device computing complexity balance parameter, and a device available computing power maximization parameter. The reward value parameter of the deep learning network is determined according to the second computing state parameter. The training data in the experience pool is constructed using the second computing state parameter and the reward value parameter to extract the training data in the experience pool and train the deep learning network.
[0091] In the disclosed embodiment, after the target model layer of the large model is assigned to the target home appliance computing device, the target home appliance can perform calculations according to the assigned target model layer. The calculation process causes the state of the target home appliance to change, and the current computing load, network delay, and available computing power will change according to the target model layer. Therefore, the server can obtain the second computing state parameter of the selected home appliance computing device.
[0092] During the training process of the model, the experience replay technology can be used to store the second calculation state parameters and reward value parameters in the experience pool as training data. When the experience pool accumulates enough data, a batch of data can be randomly extracted from it to train the deep learning network. In this way, after the device completes the calculation, the device status information is updated, and the mechanism of feedback learning based on the new status and calculation results can continuously learn and improve the deep learning network, making the task scheduling strategy generated by the deep learning network more optimized.
[0093] Optionally, determining the reward value parameter according to the second computing state parameter includes: when the second computing state parameter includes a model computing time parameter, a device computing complexity balance parameter, and a device available computing power maximization parameter, calculating the reward value parameter according to the following formula:
[0094] r=alpha×TCT-beta×BDL-gamma×(1 / MACP)
[0095] Among them, r is the reward value parameter, TCT is the model calculation time, BDL is the device calculation load balance, MACP is the maximization of the available computing power of the device, and alpha, beta and gamma are weight coefficients. In the embodiment of the present disclosure, TCT represents the total time required to complete all model layer calculation tasks. TCT can be minimized by optimizing device selection and model layer allocation strategies. Therefore, the goal of the alpha×(TCT / initial estimated total time) term is to encourage the agent to reduce the total calculation time. BDL represents the degree of balance of the computing load of all devices. During the calculation of large models, it is hoped that all devices will be fully utilized as much as possible, rather than only some devices taking on most of the tasks. Therefore, the beta×std(computational load of all devices) term is used to encourage the balancing of device loads. MACP represents the average available computing power of all devices. Higher MACP means faster model calculation speed and higher overall efficiency. Therefore, the gamma×(1 / mean(available computing power of all devices)) term is used to encourage the improvement of the available computing power of the device.
[0096] According to the formula, a reward value will be returned for each device selection and model layer allocation behavior. The deep learning network will adjust the output behavior strategy based on this reward value in order to obtain higher cumulative rewards in the future.
[0097] Optionally, extracting training data from the experience pool to train the deep learning network includes: using the training data in the experience pool to iteratively train the deep learning network. The iterative training includes optimizing the parameters of the deep learning network using a stochastic gradient descent algorithm to minimize the mean square error between the action training output value of the deep learning network and the learning target value.
[0098] In the disclosed embodiments, iterative training is a common training strategy in deep learning. It mainly trains the model repeatedly, and each iteration is optimized based on the results of the previous iteration to improve the performance of the model. Through iterative training, the model can gradually learn the inherent laws and patterns of the data, thereby improving its prediction performance.
[0099] Stochastic gradient descent is an optimization algorithm in deep learning. In each iteration, a small batch of samples is randomly selected to calculate the gradient of the loss function, and this gradient is used to update the parameters of the model. The stochastic gradient descent algorithm is fast in calculation. Since only one sample or its small batch is used for calculation each time, the stochastic gradient descent algorithm is very fast in calculation, especially on large-scale data sets, and is usually faster than the batch gradient descent algorithm. In addition, only one or a few samples need to be processed each time, which takes up less memory.
[0100] Through iterative optimization of the deep learning network, the deep learning network can continuously optimize the scheduling strategy based on historical experience and gradually learn a better strategy, so that the scheduling and execution of tasks will become more and more efficient.
[0101] Optionally, the iterative training further includes: selecting an action of the deep learning network using an ε-greedy strategy, wherein the ε-greedy strategy includes selecting an action with the largest action output value with a probability of 1-ε, and randomly selecting an action with a probability of ε.
[0102] In the disclosed embodiment, the ε-greedy strategy is to strike a balance between exploration and exploitation. When selecting an action, there is a certain probability ε to explore, that is, to select a random action in order to discover new states and strategies. Specifically, the ε-greedy strategy defines an exploration rate ε, which usually takes a value between 0 and 1. Each time an action is selected, a random number between 0 and 1 is generated. If the random number is less than ε, a random action is selected. If it is greater than or equal to ε, the optimal action is selected based on the learned information. In this way, the needs of exploration and exploitation can be balanced, and the learning and convergence process of the strategy can be continuously optimized.
[0103] Through the iterative optimization of the deep learning network using the ε-greedy strategy, the deep learning network can continuously optimize the scheduling strategy based on historical experience and gradually learn a better strategy, making the scheduling and execution of tasks more and more efficient.
[0104] Optionally, the main control device further includes a result aggregation module. The result aggregation module is used to aggregate the calculation results of household computing devices at different levels and output a final decision.
[0105] By aggregating the calculation results of home appliance computing devices at different levels and outputting the final decision, a more accurate and reliable decision can be drawn from the overall situation to help users make better judgments. At the same time, this centralized data processing can improve the efficiency and accuracy of data processing.
[0106] Combination Figure 5 As shown, optionally, the result aggregation module 06 includes a data collection module 061, a data processing module 062 and a data output module 063. The data collection module 061 is used to receive the calculation results of the home appliance computing devices at different levels, and to verify the integrity and accuracy of the calculation results, and to generate verification data of the home appliance computing devices at different levels. The data processing module 062 is used to aggregate the verification data of the home appliance computing devices at different levels to generate a final decision. The data output module 063 is used to output the final decision.
[0107] In this way, by verifying the calculation results received from different levels of home appliance computing devices, the integrity and accuracy of the received data can be ensured. By processing the verified data, the core information can be effectively extracted from the calculation results returned by different home appliance computing devices, thereby generating more accurate decisions and helping users make more accurate judgments.
[0108] Combination Figure 5 As shown, optionally, the data processing module 062 includes a data preprocessing module 0621 and a data aggregation module 0622. The data preprocessing module 0621 is used to preprocess the verification data of household computing devices at different levels to generate preprocessed data. Wherein, the preprocessing includes data cleaning, and / or, data format conversion, and / or, data outlier processing. The data aggregation module 0622 is used to aggregate the preprocessed data to generate a final decision. Wherein, the aggregation processing includes calculating the average value of the preprocessed data, or, calculating the weighted average value of the preprocessed data, or, obtaining the maximum value of the preprocessed data, or, obtaining the minimum value of the preprocessed data.
[0109] In this way, by preprocessing the verification data, redundant and irrelevant information can be eliminated, and the availability and accuracy of the data can be improved. By summarizing the preprocessed data, it is easy to make a global and accurate decision. In addition, it can avoid the problem of misjudgment caused by errors or mistakes of a single household computing device.
[0110] Furthermore, in the process of reaching a global and accurate decision, the master control device needs to consider various factors, such as the computing power of each home appliance computing device, the priority of the task, etc., in order to formulate the optimal aggregation strategy.
[0111] In this way, through preprocessing, the preprocessed data is more suitable for subsequent analysis, thereby improving the accuracy and reliability of data analysis.
[0112] In practical applications, preprocessing may include one or more of data cleaning, data format conversion, and data outlier processing.
[0113] Furthermore, data cleaning includes missing value processing and duplicate value processing. Filling missing values by interpolation, deletion or other techniques helps to ensure the integrity of the data set. By deleting or merging duplicate values, the efficiency of data analysis is improved. Data format conversion includes data type conversion, data standardization and normalization. Data outliers can be processed by deletion or replacement.
[0114] The summary processing is one of calculating the average value of the preprocessed data, calculating the weighted average value of the preprocessed data, obtaining the maximum value of the preprocessed data, and obtaining the minimum value of the preprocessed data. The average value or weighted average value helps to understand the degree of data concentration and dispersion. The maximum value or minimum value helps to understand the approximate range of data distribution. In this way, the average value or weighted average value or the maximum value or minimum value helps to evaluate the quality of the data and make accurate decisions.
[0115] Optionally, when scheduling the computing tasks of the large model, the state data of the large model computing system is collected. The collected state data of the large model computing system is input into a trained state evaluation model to obtain a state evaluation value of the large model computing system. When the state evaluation value triggers a feedback mechanism of the large model computing system, the state evaluation value is transmitted to the task scheduler so that the task scheduler reschedules the computing tasks of the large model.
[0116] In this way, the state data of the large model computing system can be collected, and the state data can represent the operation status of the large model computing system after the scheduling operation. The collected state data of the large model computing system is input into the trained state evaluation model, and the operation status of the system can be evaluated to obtain the state evaluation value of the large model computing system. The large model computing system is provided with a feedback mechanism. When the state evaluation value triggers the feedback mechanism of the large model computing system, the state evaluation value is transmitted to the task scheduler so that the task scheduler can reschedule the computing tasks of the large model. In this way, the task scheduler can judge whether the scheduling strategy is reasonable according to the state evaluation value, so that the scheduling strategy can be adjusted, and then the computing tasks of the large model can be rescheduled. The optimization of the scheduling strategy is realized, and the problem of poor operation of the large model computing system and low efficiency of hierarchical computing caused by unreasonable scheduling strategies is reduced.
[0117] Optionally, collecting the state data of the large model computing system includes: collecting the state data of the large model computing system through programming technology according to the collection interval. The programming technology includes one or more of system call, inter-process communication and log record. The collected state data is stored in a database.
[0118] In the disclosed embodiment, the large model computing system is set with an interval time for data collection. In the large model computing process, it is necessary to obtain information in real time, but too frequent data collection may affect system performance. Therefore, it is necessary to set a reasonable time interval according to the actual situation and monitoring requirements of the large model computing system. For example, in the process of hierarchical computing, the large model computing system collects data once after each model layer is allocated.
[0119] Furthermore, system information can be read through system calls. Process information can be obtained by using inter-process communication. Business information can be obtained by using the logging function. System information, process information, and business information can represent the current state of the large model computing system, so that the large model computing system can reschedule the computing tasks of the large model according to the current state. The scheduling strategy is optimized, reducing the problem of poor operation of the large model computing system and low efficiency of hierarchical computing due to unreasonable scheduling strategies.
[0120] After the status data is collected, it can be stored in a constructed database to back up the data and prevent data loss, thereby improving the security and availability of the status data.
[0121] Optionally, when the state evaluation value triggers a feedback mechanism of the large model computing system, transmitting the state evaluation value to the task scheduler includes: obtaining a preset threshold in the feedback mechanism of the large model computing system. When the state evaluation value is greater than or equal to the preset threshold, transmitting the state evaluation value to the task scheduler through a message queue.
[0122] In the disclosed embodiments, the message queue is a mode of inter-process communication or inter-thread communication. It can be used as a buffer to store a large number of messages. When the recipient is temporarily unable to process the message, the message can be stored in the queue and wait for the recipient to process it. The message queue is used as a feedback method. Once a new status evaluation result is generated, a message is added to the queue. The task scheduler can monitor this queue and process new messages when they are received.
[0123] Optionally, the task scheduling method for large-model hierarchical computing further includes: when the state evaluation value is less than the abnormal threshold of the large-model computing system, marking the abnormal computing task as a computing task that needs to limit resources, and modifying the authority or priority of the computing task that needs to limit resources. After modifying the authority or priority of the computing task that needs to limit resources, in the event of an abnormality in the computing task, adjusting the parameters of the computing task or restarting the service.
[0124] In the disclosed embodiment, the large model computing system is provided with an abnormal threshold. When the state evaluation value is less than the abnormal threshold of the large model computing system, it indicates that the task is abnormal and needs to be processed. The task scheduler can limit the extent to which abnormal computing tasks use resources and set a new resource usage target. Resource restrictions include methods such as CPU time slices and memory restrictions. Limiting resource usage can prevent abnormal task behavior caused by excessive resource usage. The large model computing system can affect the probability of a task being allocated resources by adjusting its priority in the scheduling queue. If a task exhibits abnormal behavior, its priority can be lowered to prevent excessive resource usage.
[0125] This ensures that when a task behaves abnormally or requires more hardware resources, it will not affect other tasks and the overall system to run stably, thus achieving the goal of optimizing hardware utilization and stability and preventing single point problems from causing a complete crash. At the same time, it also constitutes an exception handling mechanism with strong execution capability, good adaptability, and the ability to quickly and effectively respond to the running state and return it to normal.
[0126] Furthermore, after the server modifies the permissions or priorities of computing tasks that require resource restrictions, if the computing tasks still have abnormalities, the server can find the problem based on error feedback and log information, and restore to normal by updating the code or changing the implementation method. For some tasks that need to run for a long time, a certain timeout value should be given during the setting to prevent dead loops or long-term blocking.
[0127] Optionally, the task scheduling method for large model hierarchical computing further includes: feeding back task information of abnormal computing tasks to the state assessment model to update the state assessment model.
[0128] In the disclosed embodiment, the state assessment model can evaluate the operation of the system and obtain the state assessment value of the large model computing system. When a task is abnormal, the state assessment model needs to consider the abnormal computing task when evaluating the state of the system. By feeding back the task information of the abnormal computing task to the state assessment model, the state assessment model can be updated so that the state assessment value output by the state assessment model is more accurate. This achieves the optimization of the scheduling strategy and reduces the problem of poor operation of the large model computing system and low efficiency of hierarchical computing due to unreasonable scheduling strategies.
[0129] Optionally, the task scheduling method for large model hierarchical computing also includes: parallel optimization of one or more of the system's central processing unit CPU, graphics processing unit GPU and field programmable gate array FPGA based on the collected status data of the large model computing system.
[0130] In the disclosed embodiment, parallel optimization is continuously performed during the operation of the entire system. During the design phase, the system needs to consider how to maximize the parallel computing of the hardware devices. For example, when selecting a programming model and parallel algorithm suitable for the device, it is necessary to fully consider the characteristics of the device and the system requirements. During the scheduling phase, it is necessary to decide how to assign and schedule tasks to each hardware device based on the task type and the current system status to achieve the most effective parallel computing. During the execution phase, the parallel computing process is dynamically optimized based on real-time feedback information. For example, if it is detected that the load of a CPU core is too high, some tasks are transferred to other cores, or when it is detected that the GPU is idle, some tasks that can be accelerated by the GPU can be assigned to the idle GPU. During the evaluation phase, the parallel efficiency is further improved by regularly evaluating the system operation and performance data, and adjusting the system configuration, parameters or execution strategy.
[0131] like Figure 6 As shown, an embodiment of the present disclosure provides a home appliance computing device 104, which is applied to a distributed system, and the distributed system also includes a main control device that communicates with the home appliance computing device. The home appliance computing device includes a task execution module 07. The task execution module 07 is used to receive tasks and calculation requests sent by the main control device, and execute the calculation request to generate a calculation result. Among them, the priority of the task sent by the main control device matches the device level of this device. The higher the computing power of this device and the closer it is to the main control device, the higher the device level of this device, and the higher the priority of the task sent by the main control device.
[0132] By dividing the home computing devices into different levels according to hardware configuration and geographical location, the characteristics and advantages of each home computing device can be better utilized, thereby improving the utilization rate of home computing devices. The main control device dynamically allocates tasks to home computing devices of different levels, and the home computing devices execute the distributed tasks, which enables the home computing devices to execute the most matching tasks and improves the efficiency of task execution.
[0133] like Figure 6 As shown, optionally, the home appliance computing device 104 further includes a result uploading module 08. The result uploading module 08 is used to upload the calculation results of each home appliance computing device 104, so that the main control device aggregates the calculation results of the home appliance computing devices 104 at different levels and outputs the final decision.
[0134] By having different levels of home appliance computing devices upload their own calculation results, the main control device can understand the execution of tasks of different levels of home appliance computing devices and make flexible adjustments to the task allocation in a timely manner. At the same time, the main control device can also aggregate the calculation results of different levels of home appliance computing devices to make more accurate decisions, thereby improving user satisfaction.
[0135] Combination Figure 7 As shown, an embodiment of the present disclosure provides a distributed system, which includes a main control device 102 and a home appliance computing device 104. The main control device 102 is used to manage a task queue. The task queue includes tasks of different priorities. The home appliance computing devices 104 of different levels communicate with the main control device 102 respectively. The higher the level of the home appliance computing device 104, the higher the computing power and the closer it is to the main control device, and the higher the priority of the task processed by the home appliance computing device 104 of the higher level.
[0136] In practical applications, a distributed system includes a main control device 102, a first-level home appliance computing device 104, and a second-level home appliance computing device 104. The first-level home appliance computing device 104 and the second-level home appliance computing device 104 respectively report the status and resources of the main device in real time. The main control device 102 analyzes the received device status and resource information of the first-level home appliance computing device 104 and the second-level home appliance computing device 104. According to the analysis results, the main control device 102 assigns tasks to the first-level home appliance computing device 104 and the second-level home appliance computing device 104 respectively. The first-level home appliance computing device 104 and the second-level home appliance computing device 104 perform the tasks assigned by the main control device 102. The first-level home appliance computing device 104 and the second-level home appliance computing device 104 respectively upload their respective calculation results to the main control device 102. The main control device 102 aggregates the uploaded calculation results. The main control device 102 generates a final decision based on the aggregated results. The master device 102 outputs the final decision.
[0137] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A master control device, characterized in that: The master control device is applied to a distributed system, and the distributed system also includes household computing devices of different levels that communicate with the master control device; wherein the household computing devices of higher levels have higher computing power and are closer to the master control device; the master control device includes: The task scheduling module is used to distribute computing tasks of different priorities to household computing devices of different levels and issue computing requests; wherein, the higher the priority of the computing task, the higher the level of the household computing device corresponding to the computing task.
2. The main control device according to claim 1, characterized in that: The task scheduling module includes: The device selection module is used to make decisions using the deep Q network DQN to select the best home computing device from different levels of home computing devices; A device matching module is used to assign the selected computing task to the optimal home appliance computing device; wherein the selected computing task comes from a task queue; and the priority of the computing task is lower than or equal to the level of the optimal home appliance computing device.
3. The main control device according to claim 1, characterized in that: Each computing task corresponds to a specific sub-model, and the main control device also includes: The model decomposition module is used to decompose a large model into multiple layers of relatively independent sub-models.
4. The main control device according to claim 3, characterized in that: The model decomposition module includes: A scoring module is used to score according to the weights of preset task factors to determine the decomposable parts of the large model; wherein the preset task factors include task complexity, and / or, device computing power, and / or, data transmission requirements, and / or, real-time requirements, and / or, parallel processing requirements, and / or, network stability, and / or, task urgency; The judgment module decomposes the large model into multiple relatively independent sub-models.
5. The main control device according to any one of claims 1 to 4, characterized in that: Also includes: The result aggregation module is used to aggregate the calculation results of home appliance computing devices at different levels and output the final decision.
6. The main control device according to claim 5, characterized in that: The result aggregation modules include: A data collection module, used to receive calculation results of household computing devices at different levels, and perform integrity verification and accuracy verification on the calculation results to generate verification data of household computing devices at different levels; The data processing module is used to aggregate the verification data of different levels of home appliance computing devices to generate the final decision; Data output module, used to output the final decision.
7. The main control device according to claim 6, characterized in that: The data processing module includes: A data preprocessing module, used to preprocess the verification data of household computing devices at different levels to generate preprocessed data; wherein the preprocessing includes data cleaning, and / or data format conversion, and / or data outlier processing; The data aggregation module is used to aggregate the preprocessed data to generate a final decision; wherein the aggregation includes: calculating the average value of the preprocessed data, or calculating the weighted average value of the preprocessed data, or obtaining the maximum value of the preprocessed data, or obtaining the minimum value of the preprocessed data.
8. A household computing device, characterized in that: The home appliance computing device is applied to a distributed system, and the distributed system further comprises a main control device communicating with the home appliance computing device; The household computing device comprises: The task execution module is used to receive the tasks and calculation requests sent by the master control device, execute the calculation requests, and generate calculation results; Among them, the priority of the task sent by the master device matches the device level of the device; the higher the computing power of the device and the closer it is to the master device, the higher the device level of the device and the higher the priority of the task sent by the master device.
9. The household computing device according to claim 8, characterized in that: Also includes: The result uploading module is used to upload the calculation results of each home appliance computing device, so that the main control device can aggregate the calculation results of home appliance computing devices at different levels and output the final decision.
10. A distributed system, characterized in that: include: The master control device according to any one of claims 1 to 7, used for managing a task queue; wherein the task queue includes tasks of different priorities; The household computing device as claimed in claim 8 or 9, wherein household computing devices at different levels communicate with the main control device respectively; wherein: The higher the level of the home appliance computing device, the higher the computing power and the closer it is to the main control device. The higher the level of the home appliance computing device, the higher the priority of the tasks processed by it.
Citation Information
Cited By
Internet of Things equipment linkage control method and system based on cloud computing, and storage medium
CN119472327A
