Instruction processing method, device and system, computer equipment and storage medium
By splitting the target control instructions into single instructions and comprehensively evaluating them, the problem of low accuracy of single-dimensional risk assessment in traditional technologies is solved, and the security and reliability of smart home systems are improved.
Patent Information
- Application Number
- CN202410970835.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-11-26
AI Technical Summary
In traditional technology, only a single dimension is considered when controlling the risk assessment of commands, resulting in a low accuracy rate of risk assessment.
By splitting the target control instructions, multiple single instructions are obtained, and risk assessment and status change information are evaluated separately, and the risk assessment results of multiple dimensions are comprehensively considered to determine the risk assessment results of the target control instructions.
It improves the accuracy of risk assessment of control instructions, avoids the low accuracy problems caused by single-dimensional evaluation, and enhances the safety and reliability of control instructions.
Smart Images

Figure CN119030812A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of smart home technology, and in particular to an instruction processing method, apparatus, system, computer equipment, storage medium and computer program product. Background Art
[0002] With the development of Internet technology, relevant control of a device can be achieved by executing control instructions corresponding to the device. However, before the control instructions are executed, risk assessment is required to ensure safety.
[0003] In traditional technology, when conducting risk assessment on control instructions, the risk of a single dimension of the control instructions is mainly considered; however, when conducting risk assessment on control instructions, only considering the risk of a single dimension of the control instructions can easily lead to a low accuracy rate in the risk assessment of control instructions. Summary of the invention
[0004] Based on this, it is necessary to provide an instruction processing method, apparatus, system, computer equipment, computer-readable storage medium and computer program product that can improve the risk assessment accuracy of control instructions in response to the above-mentioned technical problems.
[0005] In a first aspect, the present application provides an instruction processing method, comprising:
[0006] Splitting the target control instruction to obtain a plurality of single instructions; the target control instruction is used to represent a control instruction obtained by combining a plurality of device control instructions, and the single instruction is used to represent a single device control instruction;
[0007] Determine a first risk assessment result corresponding to each of the single instructions, and determine a second risk assessment result corresponding to the state change information after each of the single instructions is executed; the state change information is used to characterize the predicted change information of the space state after each of the single instructions is executed; the space state is used to characterize the state of the space targeted by the target control instruction;
[0008] A target risk assessment result corresponding to the target control instruction is determined according to each of the first risk assessment results and the second risk assessment results.
[0009] In a second aspect, the present application also provides another instruction processing method, comprising:
[0010] Determine target control instructions;
[0011] Displaying a risk assessment result display page; the risk assessment result display page is used to display the target risk assessment result corresponding to the target control instruction; the target risk assessment result is obtained by splitting the target control instruction to obtain multiple single instructions, and determining the first risk assessment result corresponding to each of the single instructions, and determining the second risk assessment result corresponding to the state change information after the execution of each of the single instructions, which is determined according to each of the first risk assessment results and the second risk assessment results;
[0012] Among them, the target control instruction is used to represent the control instruction obtained by combining multiple device control instructions, and the single instruction is used to represent a single device control instruction; the state change information is used to represent the predicted change information of the spatial state after the execution of each single instruction; the spatial state is used to represent the state of the space targeted by the target control instruction.
[0013] In a third aspect, the present application further provides an instruction processing device, comprising:
[0014] An instruction splitting module is used to split the target control instruction to obtain multiple single instructions; the target control instruction is used to represent the control instruction obtained by combining multiple device control instructions, and the single instruction is used to represent a single device control instruction;
[0015] A risk assessment module, used to determine a first risk assessment result corresponding to each of the single instructions, and to determine a second risk assessment result corresponding to state change information after each of the single instructions is executed; the state change information is used to characterize the predicted change information of the space state after each of the single instructions is executed; the space state is used to characterize the state of the space targeted by the target control instruction;
[0016] A result determination module is used to determine a target risk assessment result corresponding to the target control instruction according to each of the first risk assessment results and the second risk assessment results.
[0017] In a fourth aspect, the present application further provides another instruction processing device, comprising:
[0018] An instruction determination module, used for determining a target control instruction;
[0019] A page display module, used for displaying a risk assessment result display page; the risk assessment result display page is used for displaying a target risk assessment result corresponding to the target control instruction; the target risk assessment result is obtained by splitting the target control instruction to obtain multiple single instructions, and determining a first risk assessment result corresponding to each of the single instructions, and determining a second risk assessment result corresponding to the state change information after the execution of each of the single instructions, which is determined according to each of the first risk assessment results and the second risk assessment results;
[0020] Among them, the target control instruction is used to represent the control instruction obtained by combining multiple device control instructions, and the single instruction is used to represent a single device control instruction; the state change information is used to represent the predicted change information of the spatial state after the execution of each single instruction; the spatial state is used to represent the state of the space targeted by the target control instruction.
[0021] In a fifth aspect, the present application further provides an instruction processing system, the system comprising: a first device and a second device;
[0022] The first device is used to determine a target control instruction and send the target control instruction to the second device;
[0023] The second device is used to split the target control instruction to obtain multiple single instructions; determine the first risk assessment result corresponding to each of the single instructions, and determine the second risk assessment result corresponding to the state change information after the execution of each of the single instructions; determine the target risk assessment result corresponding to the target control instruction according to each of the first risk assessment results and the second risk assessment results;
[0024] Among them, the target control instruction is used to represent the control instruction obtained by combining multiple device control instructions, and the single instruction is used to represent a single device control instruction; the state change information is used to represent the predicted change information of the spatial state after the execution of each single instruction; the spatial state is used to represent the state of the space targeted by the target control instruction.
[0025] In a sixth aspect, the present application further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0026] Splitting the target control instruction to obtain a plurality of single instructions; the target control instruction is used to represent a control instruction obtained by combining a plurality of device control instructions, and the single instruction is used to represent a single device control instruction;
[0027] Determine a first risk assessment result corresponding to each of the single instructions, and determine a second risk assessment result corresponding to the state change information after the execution of each of the single instructions; the state change information is used to characterize the predicted change information of the space state after the execution of each of the single instructions; the space state is used to characterize the state of the space targeted by the target control instruction;
[0028] A target risk assessment result corresponding to the target control instruction is determined according to each of the first risk assessment results and the second risk assessment results.
[0029] In a seventh aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:
[0030] Splitting the target control instruction to obtain a plurality of single instructions; the target control instruction is used to represent a control instruction obtained by combining a plurality of device control instructions, and the single instruction is used to represent a single device control instruction;
[0031] Determine a first risk assessment result corresponding to each of the single instructions, and determine a second risk assessment result corresponding to the state change information after the execution of each of the single instructions; the state change information is used to characterize the predicted change information of the space state after the execution of each of the single instructions; the space state is used to characterize the state of the space targeted by the target control instruction;
[0032] A target risk assessment result corresponding to the target control instruction is determined according to each of the first risk assessment results and the second risk assessment results.
[0033] In an eighth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:
[0034] Splitting the target control instruction to obtain a plurality of single instructions; the target control instruction is used to represent a control instruction obtained by combining a plurality of device control instructions, and the single instruction is used to represent a single device control instruction;
[0035] Determine a first risk assessment result corresponding to each of the single instructions, and determine a second risk assessment result corresponding to the state change information after the execution of each of the single instructions; the state change information is used to characterize the predicted change information of the space state after the execution of each of the single instructions; the space state is used to characterize the state of the space targeted by the target control instruction;
[0036] A target risk assessment result corresponding to the target control instruction is determined according to each of the first risk assessment results and the second risk assessment results.
[0037] The above instruction processing method, device, system, computer equipment, storage medium and computer program product first split the target control instruction obtained by combining multiple device control instructions to obtain multiple device control instructions as multiple single instructions, and then determine the first risk assessment result corresponding to each single instruction, and determine the second risk assessment result corresponding to the state change information after the execution of each single instruction; the state change information is used to characterize the predicted change information of the space state after the execution of each single instruction; the space state is used to characterize the state of the space targeted by the target control instruction; finally, according to each first risk assessment result and the second risk assessment result, the target risk assessment result corresponding to the target control instruction is determined. In this way, before the target control instruction is executed, the target control instruction is first split to obtain multiple single instructions, and then the first risk assessment result corresponding to each single instruction and the second risk assessment result corresponding to the state change information after the execution of each single instruction are used to determine the target risk assessment result corresponding to the target control instruction, that is, when the risk assessment of the target control instruction is performed, multiple dimensions are comprehensively considered, which is conducive to improving the accuracy of the risk assessment of the control instruction, and at the same time avoids the defect of only considering a single dimension, resulting in a low accuracy of the risk assessment of the control instruction. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0039] Figure 1 An application environment diagram of an instruction processing method in an embodiment;
[0040] Figure 2 is a flowchart of an instruction processing method in one embodiment;
[0041] Figure 3 is a flowchart of an instruction processing method in another embodiment;
[0042] Figure 4 A schematic diagram of a risk assessment result display page in an embodiment;
[0043] Figure 5 A schematic diagram of a control instruction execution confirmation page in one embodiment;
[0044] Figure 6 is a flowchart of an instruction processing method in yet another embodiment;
[0045] Figure 7is a structural block diagram of an instruction processing device in one embodiment;
[0046] Figure 8 is a structural block diagram of an instruction processing device in another embodiment;
[0047] Fig. 9 is a structural block diagram of an instruction processing system in one embodiment;
[0048] Fig.10 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0049] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0050] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0051] The instruction processing method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the sub-device 101 is connected to the second device 102 through ZIGBEE (a low-power LAN protocol based on the IEEE802.15.4 standard), Bluetooth, Matter and other protocols, and the second device 102 and the first device 103 can be connected to the router through WIFI respectively; in addition, the first device 103 can also establish a network connection with the cloud / cloud server 104 through 2G / 3G / 4G / 5G / WIFI, so as to obtain the data sent by the cloud / cloud server 104. For example, refer to Figure 1, the first device 103 first determines the target control instruction, and sends the target control instruction to the second device 102. The second device 102 splits the received target control instruction to obtain multiple single instructions, then determines the first risk assessment result corresponding to each single instruction, and determines the second risk assessment result corresponding to the state change information after the execution of each single instruction, and finally determines the target risk assessment result corresponding to the target control instruction according to each first risk assessment result and the second risk assessment result; wherein, the target control instruction is used to characterize the control instruction obtained by combining multiple device control instructions, and the single instruction is used to characterize a single device control instruction; the state change information is used to characterize the predicted change information of the space state after the execution of each single instruction; the space state is used to characterize the state of the space targeted by the target control instruction. Furthermore, the second device 102 can also send the target risk assessment result corresponding to the target control instruction to the first device 103; the first device 103 displays the target risk assessment result corresponding to the target control instruction through the risk assessment result display page.
[0052] Among them, the sub-device 101 can be, but is not limited to, various smart home devices (or Internet of Things devices) and various sensor devices. Smart home devices can be smart TVs, smart lamps, smart speakers, smart air conditioners, smart fans, smart refrigerators, smart sockets, smart switches, smart curtains, etc. Sensor devices can be light sensors, temperature and humidity sensors, sound sensors, infrared sensors, door magnetic sensors, PM2.5 sensors, gas concentration sensors, etc. The second device 102 refers to a smart home central control device, which is used to integrate and manage various sub-devices. The smart home central control device can be a smart home gateway, a smart home controller, etc. The first device 103 refers to a terminal used by a user. The terminal can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers and portable wearable devices. The portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The cloud / cloud server 104 can be implemented with an independent server or a server cluster consisting of multiple servers.
[0053] It should be noted that the present application can be applied to any scenario with smart home devices or IoT devices to determine the target risk assessment results of target control instructions for spaces (such as bedrooms, living rooms, kitchens, study rooms, etc.), providing users with accurate assessment of instruction risks and decision support to improve the safety and reliability of smart home systems.
[0054] In an exemplary embodiment, Figure 2 As shown, a command processing method is provided, which is applied to Figure 1 Taking the second device in the example as an example, the method includes the following steps S201 to S203. Among them:
[0055] Step S201, split the target control instruction to obtain multiple single instructions; the target control instruction is used to represent the control instruction obtained by combining multiple device control instructions, and the single instruction is used to represent a single device control instruction.
[0056] Among them, the target control instruction refers to a control instruction obtained by combining multiple device control instructions, which is used to batch control multiple devices in a space (such as a bedroom, living room, kitchen, study, etc.), such as "turn on the living room chandelier, adjust the living room air-conditioning temperature to 25 degrees Celsius", "turn on the bedroom lights, close the bedroom curtains, turn on the bedroom air-conditioning", "close the bedroom door lock, turn off the bedroom lights, close the bedroom curtains, turn off the bedroom air-conditioning", etc. In actual scenarios, target control instructions refer to complex control instructions, such as scene instructions (such as home scene instructions, hospitality scene instructions, etc.), scenario instructions (such as reading scenario instructions, good morning scenario instructions), etc., which are used to control multiple devices in a space at the same time. It should be noted that the target control instruction includes at least two device control instructions, that is, the target control instruction includes at least two single instructions.
[0057] Among them, a single instruction refers to a single device control instruction, specifically a single function instruction for a single device. Device control instructions refer to instructions for controlling devices (such as smart home devices, sensor devices, etc.), such as "turn on the living room chandelier", "adjust the living room air conditioning temperature to 25 degrees Celsius", "turn on the bedroom lights", "close the bedroom curtains", "turn on the bedroom air conditioning", "close the bedroom door lock", etc.
[0058] It should be noted that multiple single instructions can point to the same type of equipment, such as lighting equipment, air conditioning equipment, curtain equipment, etc. For example, the target control instruction is "turn on the bedroom bedside lamp, turn on the bedroom chandelier", in which the single instructions "turn on the bedroom bedside lamp" and "turn on the bedroom chandelier" are both directed to lighting equipment. In addition, multiple single instructions can also point to different types of equipment, such as one single instruction pointing to lighting equipment and one single instruction pointing to air conditioning equipment. For example, the target control instruction is "turn on the living room chandelier, adjust the living room air conditioning temperature to 25 degrees Celsius", in which the single instruction "turn on the living room chandelier" points to lighting equipment, and the single instruction "adjust the living room air conditioning temperature to 25 degrees Celsius" points to air conditioning equipment.
[0059] Exemplarily, the second device (such as a smart home central control device) splits the received target control instruction including multiple device control instructions to obtain multiple device control instructions as multiple single instructions. Figure 1 , the first device (such as a terminal) responds to the user's instruction selection operation, confirms the target control instruction selected by the user, and sends the target control instruction to the second device; the second device splits the received target control instruction to obtain multiple single instructions.
[0060] For example, the user selects the home scene command "turn on the living room light, turn on the living room air conditioner, and close the living room curtains" on the control command selection page of the first device, and then sends the home scene command to the second device through the first device; the second device splits the home scene command into multiple single commands, namely, turn on the living room light, turn on the living room air conditioner, and close the living room curtains.
[0061] In some embodiments, the target control instruction may be obtained by the user triggering a button or touch screen on the second device, or may be automatically triggered according to an automation scene. For example, according to the set automation scene, when the user returns home and opens the smart door lock, the home scene will be automatically triggered in response to the opening instruction of the smart door lock, thereby issuing a target control instruction corresponding to the home scene.
[0062] Step S202, determine the first risk assessment result corresponding to each single instruction, and determine the second risk assessment result corresponding to the state change information after the execution of each single instruction; the state change information is used to characterize the predicted change information of the space state after the execution of each single instruction; the space state is used to characterize the state of the space targeted by the target control instruction.
[0063] Among them, each single instruction corresponds to a first risk assessment result; the first risk assessment result may refer to a first risk level, such as high risk level, medium risk level, and low risk level; the first risk assessment result may also refer to a first risk score, such as 90 points, 80 points, and 30 points.
[0064] Among them, the first risk assessment result corresponding to each single instruction can be determined in a variety of ways, such as by querying the correspondence between the device control instruction and the risk level, to determine the risk level corresponding to each single instruction as the first risk assessment result corresponding to each single instruction; or by querying the correspondence between the correlation degree (i.e., the correlation between the single instruction and the preference behavior data) and the risk level, to determine the risk level corresponding to each single instruction as the first risk assessment result corresponding to each single instruction; or by querying the correspondence between the matching degree (i.e., the matching degree between the single instruction and the current space state information) and the risk level, to determine the risk level corresponding to each single instruction as the first risk assessment result corresponding to each single instruction, etc. For example, the risk level corresponding to the single instruction "turn on the living room light" is low, and the risk level corresponding to the single instruction "adjust the living room air conditioner temperature to 25 degrees Celsius" is medium. For example, users usually go to bed at 10 o'clock in the evening, the risk level corresponding to the single instruction "turn off the light at 10 o'clock in the evening" is low, and the risk level corresponding to the single instruction "close the curtains at 10 o'clock in the evening" is low. For example, the current temperature in the room is comfortable, the risk level corresponding to the single instruction "turn on the room air conditioner" is high, and the risk level corresponding to the single instruction "turn off the room air conditioner" is low.
[0065] Among them, assuming that each single instruction points to the same type of device, the second risk assessment result is one; assuming that each single instruction points to different types of devices, the state change information after each single instruction is executed corresponds to a second risk assessment result. The second risk assessment result can refer to a second risk level, such as high risk level, medium risk level, and low risk level; the second risk assessment result can also refer to a second risk score, such as 90 points, 80 points, and 30 points.
[0066] The space refers to the space targeted by the target control instruction, such as bedroom, living room, kitchen, study, etc. For example, if the target control instruction is "turn on the bedroom bedside lamp, turn on the bedroom chandelier", then the space targeted by the target control instruction is the bedroom; if the target control instruction is "turn on the living room chandelier, adjust the living room air conditioning temperature to 25 degrees Celsius", then the space targeted by the target control instruction is the living room.
[0067] Among them, the space state refers to the state of the space targeted by the target control instruction, such as space lighting, space temperature, space humidity, space air quality, space noise, etc.
[0068] Among them, determining the second risk assessment result corresponding to the state change information after the execution of each single instruction can be a step performed before each single instruction is executed, that is, before executing the instruction, predicting the state of the space after the execution of the instruction in advance based on the content of each single instruction. The state change information after the execution of a single instruction refers to the predicted change information of the space state after the execution of the single instruction, such as increased light intensity, increased temperature, decreased humidity, worse air quality, increased noise, etc. For example, the living room is currently dark, and the predicted change information of the space state after the execution of the single instruction "turn on the living room lights" is that the light intensity of the living room increases; the current temperature of the living room is 20 degrees Celsius, and the predicted change information of the space state after the execution of the single instruction "adjust the air conditioning temperature of the living room to 25 degrees Celsius" is that the temperature of the living room increases.
[0069] Among them, the second risk assessment result corresponding to the state change information after each single instruction is executed can be determined in a variety of ways, such as by querying the corresponding relationship between the state change information (i.e., the state change information after the single instruction is executed) and the risk level, to determine the risk level corresponding to the state change information after each single instruction is executed, as the second risk assessment result corresponding to the state change information after each single instruction is executed; or by querying the corresponding relationship between the fitness (i.e., the fitness between the state change information after the single instruction is executed and the preference behavior data) and the risk level, to determine the risk level corresponding to the state change information after each single instruction is executed, as the second risk assessment result corresponding to the state change information after each single instruction is executed, etc. For example, too high a temperature may lead to a decrease in space comfort or the risk of overheating, and as the temperature increases, the risk level of the single instruction related to temperature control is higher, then the risk level corresponding to the state change information after the single instruction "adjust the air conditioning temperature in the living room to 25 degrees Celsius" is executed (i.e., the temperature in the living room rises) is medium. For example, if the user likes a brighter environment, then the risk level corresponding to the state change information after the single instruction "turn off the bedroom light" is executed (i.e., the light intensity in the bedroom decreases) is high.
[0070] Exemplarily, the second device performs risk assessment on each single instruction to obtain the risk level corresponding to each single instruction as the first risk assessment result corresponding to each single instruction; then predicts the spatial state change information after the execution of each single instruction to obtain the predicted change information of the spatial state after the execution of each single instruction as the state change information after the execution of each single instruction; then performs risk assessment on the state change information after the execution of each single instruction to obtain the risk level corresponding to the state change information after the execution of each single instruction as the second risk assessment result corresponding to the state change information after the execution of each single instruction.
[0071] For example, for the hospitality scene command "turn on the living room chandelier, adjust the living room air conditioning temperature to 25 degrees Celsius", the first risk assessment result corresponding to the single command "turn on the living room chandelier" is: low risk level, and the first risk assessment result corresponding to the single command "adjust the living room air conditioning temperature to 25 degrees Celsius" is: medium risk level. The predicted state change information after the execution of the single command "turn on the living room chandelier" is: the light intensity in the living room increases, and the second risk assessment result corresponding to this state change information is: low risk level; the predicted state change information after the execution of the single command "adjust the living room air conditioning temperature to 25 degrees Celsius" is: the living room temperature rises, and the second risk assessment result corresponding to this state change information is: medium risk level.
[0072] Step S203: determining a target risk assessment result corresponding to the target control instruction according to each of the first risk assessment results and the second risk assessment results.
[0073] Each target control instruction corresponds to a target risk assessment result; the target risk assessment result refers to the global risk assessment result of the entire target control instruction, which is used to reflect the overall risk situation of the target control instruction. The target risk assessment result can refer to the target risk level, such as high risk level, medium risk level, and low risk level; it can also refer to the target risk score, such as 90 points, 80 points, and 30 points.
[0074] The target risk assessment result corresponding to the target control instruction is determined by comprehensively determining the first risk assessment results and the second risk assessment results, such as performing a weighted summation of the first risk assessment results and the second risk assessment results to obtain the target risk assessment result corresponding to the target control instruction. It should be noted that the first risk assessment result is one risk assessment dimension, and the second risk assessment result is another risk assessment dimension.
[0075] Exemplarily, the second device performs weighted sum processing on each first risk assessment result and the second risk assessment result to obtain a target risk assessment result corresponding to the target control instruction.
[0076] Next, a specific embodiment is used to describe in detail the splitting process of complex control instructions, the evaluation logic of single instructions, the relationship between the risk level of single instructions and the predicted space state change, and how they affect the global risk results:
[0077] Assume that a user selects a complex control command "guest reception scene command" in the smart home system. The "guest reception scene command" includes two device control commands: "turn on the living room chandelier and adjust the living room air conditioning temperature to 25 degrees Celsius". The following are the specific steps for splitting, evaluating and predicting the "guest reception scene command":
[0078] 1. Split command: The system splits the complex control command into multiple single commands. In this embodiment, the "guest reception scene command" can be divided into two single commands: "turn on the living room chandelier" and "adjust the living room air conditioning temperature to 25 degrees Celsius".
[0079] 2. Single instruction risk assessment: Risk assessment is performed on each single instruction. For example, for the single instruction "turn on the living room light", the system may set the risk level to low; for the single instruction "adjust the air conditioner temperature to 25 degrees Celsius", the system may set the risk level to medium.
[0080] 3. Prediction of space state change: Based on the operation of a single instruction, the system predicts the space state change after the instruction is executed. For example, for the instruction "turn on the living room light", the predicted space state change may be an increase in the light intensity in the living room; for the instruction "adjust the air conditioner temperature to 25 degrees Celsius", the predicted space state change may be an increase in the temperature of the living room.
[0081] 4. The relationship between the risk of a single instruction and the change in the state of the space: The risk assessment of a single instruction is directly related to the predicted change in the state of the space. For example, assuming that adjusting the air-conditioning temperature will cause the temperature of the space to rise, and too high a temperature may cause a decrease in the comfort level of the space or the risk of overheating, then the risk level of the instruction related to temperature control may increase with the possibility of an increase in temperature. Therefore, for the single instruction "adjust the air-conditioning temperature to 25 degrees Celsius", the risk level corresponding to the increase in the living room temperature is medium. Similarly, assuming that turning on the lights will increase the light intensity in the space, and too low a light intensity may cause a decrease in the comfort level of the space or the risk of being too dark, then the risk level of a single instruction related to light intensity control may decrease with the possibility of an increase in light intensity. Therefore, for the single instruction "turn on the living room lights", the risk level corresponding to the increase in the light intensity in the living room is low.
[0082] 5. Global risk calculation: By comprehensively considering the risk assessment of a single instruction and the predicted spatial state change, the system uses a global risk assessment algorithm (such as a weighted summation algorithm) to calculate the global risk level of the entire complex control instruction. This global risk level can reflect the overall risk situation of the complex control instruction and can help users make decisions.
[0083] In this specific embodiment, the complex control instruction is split into two single instructions, and a corresponding risk level is set for each single instruction. At the same time, based on the operation of the single instruction, the spatial state changes that may occur after the execution of the single instruction are predicted. The risk assessment of the single instruction and the predicted spatial state changes directly affect the final global risk result. Through global risk calculation, the system combines the risk assessment of the single instruction and the prediction of the spatial state change to provide a result that can quantify the risk of the entire instruction. This global risk result can help users understand the overall risk level of complex control instructions and provide a reference when making decisions.
[0084] In the above instruction processing method, the target control instruction obtained by combining multiple device control instructions is first split to obtain multiple device control instructions as multiple single instructions, and then the first risk assessment result corresponding to each single instruction is determined, and the second risk assessment result corresponding to the state change information after the execution of each single instruction is determined; the state change information is used to characterize the predicted change information of the space state after the execution of each single instruction; the space state is used to characterize the state of the space targeted by the target control instruction; finally, according to each first risk assessment result and the second risk assessment result, the target risk assessment result corresponding to the target control instruction is determined. In this way, before the target control instruction is executed, the target control instruction is first split to obtain multiple single instructions, and then the first risk assessment result corresponding to each single instruction and the second risk assessment result corresponding to the state change information after the execution of each single instruction are used to determine the target risk assessment result corresponding to the target control instruction, that is, when the risk assessment of the target control instruction is performed, multiple dimensions are comprehensively considered, which is conducive to improving the accuracy of the risk assessment of the control instruction, and at the same time avoids the defect of only considering a single dimension, resulting in a low accuracy of the risk assessment of the control instruction.
[0085] In an exemplary embodiment, the above step S202, determining the first risk assessment result corresponding to each single instruction, specifically includes the following contents: determining the risk level corresponding to each single instruction; and obtaining the first risk assessment result corresponding to each single instruction according to the risk level corresponding to each single instruction.
[0086] Among them, each single instruction corresponds to a risk level. The risk level corresponding to each single instruction can be determined in a variety of ways, such as by querying the correspondence between the device control instruction and the risk level, by querying the correspondence between the correlation degree (i.e., the correlation between the single instruction and the preference behavior data) and the risk level, by querying the correspondence between the matching degree (i.e., the matching degree between the single instruction and the current space state information) and the risk level, etc.
[0087] Exemplarily, the second device performs risk assessment on each single instruction to obtain a risk level corresponding to each single instruction, and uses the risk level corresponding to each single instruction as the first risk assessment result corresponding to each single instruction.
[0088] For example, if the risk level corresponding to the single instruction "turn on the living room light" is low, then the first risk assessment result corresponding to the single instruction is: low risk level. If the risk level corresponding to the single instruction "adjust the air conditioner temperature in the living room to 25 degrees Celsius" is medium, then the first risk assessment result corresponding to the single instruction is: medium risk level.
[0089] In this embodiment, the risk level corresponding to each single instruction is first determined, and then the first risk assessment result corresponding to each single instruction is obtained according to the risk level corresponding to each single instruction; in this way, by performing the first risk assessment on each single instruction after the splitting, the purpose of determining the first risk assessment result corresponding to each single instruction is achieved, which is beneficial for comprehensively considering the first risk assessment result corresponding to each single instruction when performing risk assessment on the target control instruction later, thereby improving the risk assessment accuracy of the target control instruction.
[0090] In an exemplary embodiment, determining the risk level corresponding to each single instruction specifically includes the following contents: obtaining the risk level corresponding to each single instruction according to the corresponding relationship between the device control instruction and the risk level.
[0091] The corresponding relationship between the device control instruction and the risk level is used to indicate that each device control instruction corresponds to a risk level. For example, the risk level corresponding to the device control instruction "turn on the living room light" is low, and the risk level corresponding to the device control instruction "adjust the living room air conditioner temperature to 25 degrees Celsius" is medium.
[0092] Exemplarily, the second device queries the correspondence between the device control instruction and the risk level based on the single instruction, obtains the risk level corresponding to the device control instruction that is the same as the single instruction, as the risk level corresponding to the single instruction, thereby obtaining the risk level corresponding to each single instruction.
[0093] For example, suppose the single instruction is "turn on the living room light", and in the correspondence between device control instructions and risk levels, the risk level corresponding to the device control instruction "turn on the living room light" is low, then the risk level corresponding to the single instruction "turn on the living room light" is low. Suppose the single instruction is "adjust the air conditioner temperature in the living room to 25 degrees Celsius", and in the correspondence between device control instructions and risk levels, the risk level corresponding to the device control instruction "adjust the air conditioner temperature in the living room to 25 degrees Celsius" is medium, then the risk level corresponding to the single instruction "adjust the air conditioner temperature in the living room to 25 degrees Celsius" is medium.
[0094] In this embodiment, by querying the correspondence between device control instructions and risk levels, the risk level corresponding to each single instruction can be obtained quickly and accurately, thereby improving the efficiency of determining the risk level corresponding to the single instruction, and improving the accuracy of determining the risk level corresponding to the single instruction.
[0095] In an exemplary embodiment, determining the risk level corresponding to each single instruction specifically includes the following contents: obtaining the preference behavior data of the target user; the target user is used to characterize the user associated with the space targeted by the target control instruction; determining the correlation between each single instruction and the preference behavior data; and obtaining the risk level corresponding to each single instruction based on the correspondence between the correlation and the risk level.
[0096] The target user refers to a user associated with the space targeted by the target control instruction, specifically a resident of the space. The target user may also refer to a user corresponding to the first device (ie, terminal), ie, a terminal user.
[0097] Among them, the target user's preference behavior data refers to user habit data, such as what time they get up in the morning, what time they take a lunch break at noon, what time they go out in the afternoon, what time they get home in the evening, what time they go to bed at night, what they like in a brighter light environment, and what air-conditioning temperature range they like is 20-25 degrees Celsius.
[0098] Among them, the correlation between the single instruction and the preference behavior data is used to indicate the correlation between the single instruction and the preference behavior data. For example, if the single instruction is "turn off the lights in the bedroom at 10 pm", and the target user's preference behavior data is to go to bed at 10 pm, then the correlation between the single instruction and the target user's preference behavior data is relatively large. For example, if the single instruction is "turn off the lights in the bedroom at 10 pm", and the target user's preference behavior data is to go to bed at 11 pm, then the correlation between the single instruction and the target user's preference behavior data is relatively small.
[0099] The corresponding relationship between the correlation degree and the risk level is used to indicate that each correlation degree corresponds to a risk level; for example, the greater the correlation degree, the lower the corresponding risk level; the smaller the correlation degree, the higher the corresponding risk level.
[0100] The risk level corresponding to a single instruction refers to the risk level corresponding to the correlation between the single instruction and the target user's preference behavior data.
[0101] Exemplarily, the second device first determines the user associated with the space targeted by the target control instruction as the target user, and obtains the preference behavior data of the target user; then, based on the instruction information of each single instruction and the preference behavior data of the target user, calculates the correlation between each single instruction and the preference behavior data; finally, based on the correlation between each single instruction and the preference behavior data, queries the correspondence between the correlation and the risk level, and obtains the risk level corresponding to the correlation between each single instruction and the preference behavior data as the risk level corresponding to each single instruction.
[0102] For example, assuming that the single instructions are "Turn off the lights in the bedroom at 10 p.m." and "Close the windows in the bedroom at 10:30 p.m.", and the target user's preference behavior data is to go to bed at 10 p.m. and like to close all windows when sleeping, then the correlation between the single instruction "Turn off the lights in the bedroom at 10 p.m." and the preference behavior data is relatively large, indicating that the risk level corresponding to the single instruction "Turn off the lights in the bedroom at 10 p.m." is low; the correlation between the single instruction "Close the windows in the bedroom at 10:30 p.m." and the preference behavior data is relatively small, indicating that the risk level corresponding to the single instruction "Close the windows in the bedroom at 10:30 p.m." is medium.
[0103] In this embodiment, the target user's preference behavior data is first obtained, and then the correlation between each single instruction and the preference behavior data is determined. Finally, the risk level corresponding to each single instruction is obtained based on the correspondence between the correlation and the risk level. In this way, in the process of determining the risk level corresponding to each single instruction, the target user's preference behavior data and the correlation between each single instruction and the target user's preference behavior data are comprehensively considered, which is conducive to improving the accuracy of determining the risk level corresponding to the single instruction.
[0104] In an exemplary embodiment, determining the risk level corresponding to each single instruction specifically includes the following contents: obtaining the current space state information of the space targeted by the target control instruction; determining the matching degree between each single instruction and the current space state information; and obtaining the risk level corresponding to each single instruction based on the corresponding relationship between the matching degree and the risk level.
[0105] Among them, the current space state information refers to the space state of the current space, such as the current space lighting, the current space temperature, the current space humidity, the current space air quality, the current space noise, etc.
[0106] Among them, the matching degree between the single instruction and the current space state information is used to indicate the matching situation between the single instruction and the current space state information; for example, if the single instruction is "turn on the air conditioner in the living room", and the current space state information is that the current temperature of the living room is comfortable, then the matching degree between the single instruction and the current space state information is relatively small; for example, if the single instruction is "turn on the air conditioner in the living room", and the current space state information is that the current temperature of the living room is high, then the matching degree between the single instruction and the current space state information is relatively large.
[0107] The corresponding relationship between the matching degree and the risk level is used to indicate that each matching degree corresponds to a risk level; for example, the greater the matching degree, the lower the corresponding risk level; the smaller the matching degree, the higher the corresponding risk level.
[0108] Among them, the risk level corresponding to a single instruction refers to the risk level corresponding to the degree of matching between the single instruction and the current space state information.
[0109] Exemplarily, the second device first obtains the current spatial state information of the space targeted by the target control instruction, as well as the instruction information of each single instruction, and then calculates the degree of matching between each single instruction and the current spatial state information based on the instruction information of each single instruction and the current spatial state information; finally, based on the degree of matching between each single instruction and the current spatial state information, the correspondence between the matching degree and the risk level is queried to obtain the risk level corresponding to the degree of matching between each single instruction and the current spatial state information as the risk level corresponding to each single instruction.
[0110] For example, assuming that the single instructions are "turn on the living room light" and "adjust the air-conditioning temperature in the living room to 28 degrees Celsius", the current space state information of the living room is dim light and the current temperature is 22 degrees Celsius, which is relatively comfortable. Then the single instruction "turn on the living room light" and the current space state information have a large match, indicating that the risk level corresponding to the single instruction "turn on the living room light" is low; the single instruction "adjust the air-conditioning temperature in the living room to 28 degrees Celsius" and the current space state information have a small match, indicating that the risk level corresponding to the single instruction "adjust the air-conditioning temperature in the living room to 28 degrees Celsius" is medium.
[0111] In this embodiment, the current spatial state information of the space targeted by the target control instruction is first obtained, and then the matching degree between each single instruction and the current spatial state information is determined. Finally, the risk level corresponding to each single instruction is obtained based on the corresponding relationship between the matching degree and the risk level. In this way, in the process of determining the risk level corresponding to each single instruction, the current spatial state information of the space targeted by the target control instruction and the matching degree between each single instruction and the current spatial state information are comprehensively considered, which is conducive to improving the accuracy of determining the risk level corresponding to the single instruction.
[0112] In an exemplary embodiment, before determining the second risk assessment result corresponding to the state change information after the execution of each single instruction, a step of predicting the state change information after the execution of each single instruction is also included, which specifically includes the following contents: obtaining the instruction information of each single instruction, and obtaining the current spatial state information of the space targeted by the target control instruction; predicting the state change information after the execution of each single instruction based on the instruction information of each single instruction and the current spatial state information.
[0113] Among them, the instruction information of a single instruction refers to the specific instruction content of the single instruction, such as turning on the living room lights, adjusting the living room air-conditioning temperature to 25 degrees Celsius, closing the living room windows, adjusting the bedroom light brightness to a specified brightness, etc.
[0114] Among them, the state change information after the execution of a single instruction is determined comprehensively based on the instruction information of the single instruction and the current space state information; for example, the single instruction is "turn on the living room light", and the living room is currently dark, then the state change information after the single instruction "turn on the living room light" is executed is that the light intensity in the living room has increased; the single instruction is "adjust the air-conditioning temperature in the living room to 25 degrees Celsius", and the current temperature of the living room is 20 degrees Celsius, then the state change information after the single instruction "adjust the air-conditioning temperature in the living room to 25 degrees Celsius" is executed is that the temperature of the living room has risen.
[0115] Exemplarily, the second device first obtains the instruction information of each single instruction and the current spatial state information of the space targeted by the target control instruction, and then predicts the target spatial state information after the execution of each single instruction based on the instruction information of each single instruction. Finally, based on the difference between the target spatial state information and the current spatial state information after the execution of each single instruction, the second device predicts the predicted change information of the spatial state after the execution of each single instruction as the state change information after the execution of each single instruction.
[0116] For example, assuming that the single instruction is "turn on the living room light", and the living room is currently dark, after the single instruction "turn on the living room light" is executed, it is predicted that the living room will become brighter, so the state change information after the single instruction "turn on the living room light" is executed is that the light intensity of the living room has increased. Assuming that the single instruction is "adjust the air conditioning temperature in the living room to 25 degrees Celsius", and the current temperature of the living room is 20 degrees Celsius, after the single instruction "adjust the air conditioning temperature in the living room to 25 degrees Celsius" is executed, it is predicted that the temperature of the living room will become 25 degrees Celsius, so the state change information after the single instruction "adjust the air conditioning temperature in the living room to 25 degrees Celsius" is executed is that the temperature of the living room has risen.
[0117] In this embodiment, the instruction information of each single instruction and the current spatial state information of the space targeted by the target control instruction are first obtained, and then the state change information after the execution of each single instruction is predicted based on the instruction information of each single instruction and the current spatial state information. This is beneficial for comprehensively considering the state change information after the execution of each single instruction in the subsequent process of determining the second risk assessment result, thereby improving the accuracy of determining the second risk assessment result.
[0118] In an exemplary embodiment, each single instruction corresponds to a second risk assessment result; then, the above step S202, which determines the second risk assessment result corresponding to the state change information after the execution of each single instruction, specifically includes the following contents: according to the correspondence between the state change information and the risk level, the risk level corresponding to the state change information after the execution of each single instruction is obtained; according to the risk level corresponding to the state change information after the execution of each single instruction, the second risk assessment result corresponding to the state change information after the execution of each single instruction is obtained.
[0119] The corresponding relationship between the state change information and the risk level is used to indicate that each state change information corresponds to a risk level. For example, the risk level corresponding to the increase in the light intensity in the living room is low, and the risk level corresponding to the increase in the temperature in the living room is medium.
[0120] Among them, the second risk assessment result corresponding to the state change information after the single instruction is executed refers to the risk level corresponding to the state change information after the single instruction is executed.
[0121] Among them, the risk level corresponding to the state change information after the execution of each single instruction can be determined in a variety of ways, such as by querying the correspondence between the state change information (i.e., the state change information after the execution of a single instruction) and the risk level, to determine the risk level corresponding to the state change information after the execution of each single instruction; or by querying the correspondence between the fitness (i.e., the fitness between the state change information after the execution of a single instruction and the preference behavior data) and the risk level, to determine the risk level corresponding to the state change information after the execution of each single instruction.
[0122] Exemplarily, the second device queries the correspondence between the state change information and the risk level according to the state change information after the execution of each single instruction, obtains the risk level corresponding to the state change information after the execution of each single instruction, and uses the risk level corresponding to the state change information after the execution of each single instruction as the second risk assessment result corresponding to the state change information after the execution of each single instruction. Alternatively, the second device obtains the preference behavior data of the target user, and then calculates the fitness between the state change information after the execution of each single instruction and the preference behavior data according to the state change information after the execution of each single instruction and the preference behavior data; finally, the second device queries the correspondence between the fitness and the risk level according to the fitness between the state change information after the execution of each single instruction and the preference behavior data, obtains the risk level corresponding to the fitness between the state change information after the execution of each single instruction and the preference behavior data, as the risk level corresponding to the state change information after the execution of each single instruction, and uses the risk level corresponding to the state change information after the execution of each single instruction as the second risk assessment result corresponding to the state change information after the execution of each single instruction.
[0123] For example, the state change information after the execution of the single instruction "turn on the living room chandelier" is: the light intensity in the living room increases, and the risk level corresponding to this state change information is low, indicating that the second risk assessment result corresponding to the state change information after the execution of the single instruction "turn on the living room chandelier" is: the risk level is low; the state change information after the execution of the single instruction "adjust the air conditioning temperature in the living room to 25 degrees Celsius" is: the temperature in the living room rises, and the risk level corresponding to this state change information is medium, indicating that the second risk assessment result corresponding to the state change information after the execution of the single instruction "adjust the air conditioning temperature in the living room to 25 degrees Celsius" is: the risk level is medium. Or, if the user likes a brighter bedroom environment, then the state change information after the execution of the single instruction "turn off the bedroom light" is: the light intensity in the bedroom decreases, and the adaptability between this state change information and the preference behavior data "the user likes a brighter bedroom environment" is low, indicating that the risk level corresponding to this state change information is high, and further indicating that the second risk assessment result corresponding to the state change information after the execution of the single instruction "turn off the bedroom light" is: the risk level is high.
[0124] In this embodiment, the risk levels corresponding to the state change information after the execution of each single instruction are first obtained based on the correspondence between the state change information and the risk level, and then the second risk assessment results corresponding to the state change information after the execution of each single instruction are obtained based on the risk levels corresponding to the state change information after the execution of each single instruction; in this way, by performing a second risk assessment on each single instruction after the splitting, the purpose of determining the second risk assessment result corresponding to each single instruction is achieved, which is beneficial to comprehensively consider the second risk assessment results corresponding to the state change information after the execution of each single instruction when performing a risk assessment on the target control instruction later, thereby improving the risk assessment accuracy of the target control instruction.
[0125] In an exemplary embodiment, the above step S203 determines the target risk assessment result corresponding to the target control instruction based on each first risk assessment result and each second risk assessment result, and specifically includes the following contents: obtaining the first weight corresponding to each first risk assessment result, and obtaining the second weight of each second risk assessment result; according to each first weight and each second weight, fusing each first risk assessment result and each second risk assessment result to obtain the target risk assessment result corresponding to the target control instruction.
[0126] Among them, each first risk assessment result corresponds to a first weight, which can be obtained by pre-setting or calculated by an attention mechanism model (such as a Transformer model); for example, the first weight of the first risk assessment result corresponding to the single instruction "turn on the living room light" is 0.1, and the first weight of the first risk assessment result corresponding to the single instruction "adjust the air-conditioning temperature in the living room to 25 degrees Celsius" is 0.2. For example, the first risk assessment result corresponding to the single instruction "turn on the living room light" and the first risk assessment result corresponding to the single instruction "adjust the air-conditioning temperature in the living room to 25 degrees Celsius" are input into the attention mechanism model for attention mechanism processing, and the first weight of the first risk assessment result corresponding to the single instruction "turn on the living room light" is 0.1, and the first weight of the first risk assessment result corresponding to the single instruction "adjust the air-conditioning temperature in the living room to 25 degrees Celsius" is 0.2.
[0127] Among them, each second risk assessment result corresponds to a second weight, which can be obtained by presetting or calculated by the attention mechanism model; for example, the second weight of the second risk assessment result corresponding to the state change information (i.e., the increase in the light intensity of the living room) after the single instruction "turn on the living room light" is executed is 0.2, and the second weight of the second risk assessment result corresponding to the state change information (i.e., the temperature rise in the living room) after the single instruction "adjust the air conditioning temperature in the living room to 25 degrees Celsius" is executed is 0.1. For example, the second risk assessment result corresponding to the state change information (i.e., the light intensity increase in the living room) after the single instruction "turn on the living room light" is executed, and the second risk assessment result corresponding to the state change information (i.e., the temperature rise in the living room) after the single instruction "adjust the air conditioning temperature in the living room to 25 degrees Celsius" is executed is input into the attention mechanism model for attention mechanism processing, and the second weight of the second risk assessment result corresponding to the state change information (i.e., the light intensity increase in the living room) after the single instruction "turn on the living room light" is 0.2, and the second weight of the second risk assessment result corresponding to the state change information (i.e., the temperature rise in the living room) after the single instruction "adjust the air conditioning temperature in the living room to 25 degrees Celsius" is 0.1.
[0128] The target risk assessment result corresponding to the target control instruction refers to the risk assessment result obtained after fusing each first risk assessment result and each second risk assessment result.
[0129] Exemplarily, the second device obtains the first weight corresponding to each first risk assessment result and the second weight of each second risk assessment result by querying the local database; or, the second device calculates the first weight corresponding to each first risk assessment result and the second weight of each second risk assessment result through the attention mechanism model. Then, the second device performs weighted sum processing on each first risk assessment result and each second risk assessment result according to each first weight and each second weight, and obtains the weighted sum processing result as the target risk assessment result corresponding to the target control instruction.
[0130] For example, assuming that the target control instruction is "turn on the living room light and adjust the living room air conditioning temperature to 25 degrees Celsius", the first weight of the first risk assessment result corresponding to the single instruction "turn on the living room light" is W11, the first weight of the first risk assessment result corresponding to the single instruction "adjust the living room air conditioning temperature to 25 degrees Celsius" is W12, the second weight of the second risk assessment result corresponding to the state change information after the single instruction "turn on the living room light" is executed (i.e., the living room light intensity increases) is W21, and the second weight of the second risk assessment result corresponding to the state change information after the single instruction "adjust the living room air conditioning temperature to 25 degrees Celsius" is executed (i.e., the living room temperature rises) is W22, then the target risk assessment result corresponding to the target control instruction = the first risk assessment result corresponding to the single instruction "turn on the living room light" × W11 + the first risk assessment result corresponding to the single instruction "adjust the living room air conditioning temperature to 25 degrees Celsius" × W12 + the second risk assessment result corresponding to the state change information after the single instruction "turn on the living room light" is executed × W21 + the second risk assessment result corresponding to the state change information after the single instruction "adjust the living room air conditioning temperature to 25 degrees Celsius" is executed × W22.
[0131] In this embodiment, when calculating the target risk assessment result corresponding to the target control instruction, the first risk assessment result corresponding to each single instruction and its corresponding first weight, as well as the second risk assessment result corresponding to the state change information after the execution of each single instruction and its corresponding second weight are comprehensively considered. This is conducive to risk assessment of the target control instruction from multiple dimensions, so that the final target risk assessment result is more accurate, thereby improving the risk assessment accuracy of the control instruction, and avoiding the defect of low risk assessment accuracy of the control instruction due to only considering a single dimension.
[0132] In an exemplary embodiment, Figure 3 As shown, another instruction processing method is provided, which is applied to Figure 1 Taking the first device in the example as an example, the method includes the following steps S301 to S302. Among them:
[0133] Step S301, determining a target control instruction.
[0134] Step S302, displaying a risk assessment result display page; the risk assessment result display page is used to display the target risk assessment result corresponding to the target control instruction.
[0135] Among them, the target risk assessment result is to split the target control instruction to obtain multiple single instructions, and determine the first risk assessment result corresponding to each single instruction, and determine the second risk assessment result corresponding to the state change information after the execution of each single instruction, which is determined based on the first risk assessment results and the second risk assessment results.
[0136] Among them, the target control instruction is used to represent the control instruction obtained by combining multiple device control instructions, and the single instruction is used to represent a single device control instruction; the state change information is used to represent the predicted change information of the spatial state after the execution of each single instruction; the spatial state is used to represent the state of the space targeted by the target control instruction.
[0137] The risk assessment result display page refers to a page that displays the risk assessment results corresponding to the target control instructions, and the same risk assessment result display page can display the risk assessment results corresponding to one or more target control instructions. Figure 4 , the target risk level corresponding to control instruction 1: high; the target risk level corresponding to control instruction 2: medium; the target risk level corresponding to control instruction 3: low.
[0138] Exemplarily, when performing instruction risk assessment, the first device displays a control instruction selection page; the control instruction selection page is used to display at least one control instruction to be selected, such as a scene instruction, a scenario instruction, etc.; then, the first device responds to the instruction selection operation triggered by the user in the control instruction selection page, and highlights the target control instruction in the control instruction selection page, such as highlighting the target control instruction; the target control instruction is used to characterize the control instruction to be selected that is associated with the instruction selection operation in at least one control instruction to be selected, such as the control instruction selected by the user. Then, the first device sends the target control instruction to the second device. The second device splits the received target control instruction to obtain multiple single instructions, and then determines the first risk assessment result corresponding to each single instruction, and determines the second risk assessment result corresponding to the state change information after the execution of each single instruction. Finally, according to each first risk assessment result and the second risk assessment result, the target risk assessment result corresponding to the target control instruction is determined, and the target risk assessment result corresponding to the target control instruction is sent to the first device. The first device displays the target risk assessment result corresponding to the target control instruction through the risk assessment result display page, such as reference Figure 4 , "Target risk level corresponding to control instruction 1: high" is displayed on the risk assessment result display page.
[0139] It should be noted that the specific implementation of the instruction processing method applied to the first device can refer to the specific implementation of the instruction processing method applied to the second device, which will not be repeated here.
[0140] In the above instruction processing method, the target control instruction is first determined, and then the target risk assessment result corresponding to the target control instruction is displayed through the risk assessment result display page; wherein, the target risk assessment result is to split the target control instruction to obtain multiple single instructions, and determine the first risk assessment result corresponding to each single instruction, and determine the second risk assessment result corresponding to the state change information after the execution of each single instruction, which is determined according to the first risk assessment result and the second risk assessment result. In this way, before executing the target control instruction, the target risk assessment result corresponding to the target control instruction is first displayed through the risk assessment result display page, so that the user can view the target risk assessment result corresponding to the target control instruction in a timely manner, which is conducive to the user's clear understanding of the risks that may be brought about by the execution of the target control instruction, as well as the impact on the space state, so as to facilitate the user to make more informed decisions and avoid triggering operations with higher risks, thereby improving the safety of the execution of the target control instruction.
[0141] In an exemplary embodiment, the above step S301 displays a risk assessment result display page, which specifically includes the following contents: if the target risk assessment result meets the risk assessment result condition, a control instruction execution confirmation page is displayed; the control instruction execution confirmation page is used to display a continue execution instruction option, a modify instruction option, and a cancel instruction option.
[0142] Among them, the risk assessment result conditions refer to the preset risk level, preset risk score, etc. The target risk assessment result meets the risk assessment result conditions if the target risk level is greater than the preset risk level, or the target risk score is greater than the preset risk score.
[0143] The control instruction execution confirmation page refers to a page that displays the instruction execution confirmation status, specifically, a page that displays the options of continuing to execute instructions, modifying instructions, and canceling instructions. Figure 5 In the control instruction execution confirmation page for control instruction 1, options for continuing to execute the instruction, modifying the instruction, and canceling the instruction are displayed.
[0144] The continue execution instruction option is used to indicate the continuation of the target control instruction; for example, when the user clicks the continue execution instruction option, the continuation of the target control instruction is triggered.
[0145] The Modify Instruction option is used to indicate the modification of the target control instruction; for example, when the user clicks the Modify Instruction option, the page will be jumped to for the user to modify the target control instruction. For example, the user changes the single instruction "Adjust the living room air conditioner temperature to 25 degrees Celsius" in the hospitality scene instruction "Turn on the living room lights and adjust the living room air conditioner temperature to 25 degrees Celsius" to "Adjust the living room air conditioner temperature to 20 degrees Celsius".
[0146] The cancel instruction option is used to indicate the cancellation of the execution of the target control instruction; for example, when the user clicks the cancel instruction option, the cancellation of the execution of the target control instruction is triggered.
[0147] For example, if the first device recognizes that the target risk assessment result displayed on the risk assessment result display page meets the risk assessment result condition, for example, the target risk level corresponding to control instruction 1 is greater than the preset risk level, then the control instruction execution confirmation page is used to display the continue execution instruction option, the modify instruction option, and the cancel instruction option. Figure 5 .
[0148] In this embodiment, when the target risk assessment result meets the risk assessment result conditions, the continue execution instruction option, the modify instruction option and the cancel instruction option are displayed through the control instruction execution confirmation page, thereby achieving the purpose of performing control instruction execution confirmation when the target risk assessment result meets the risk assessment result conditions, and providing a variety of operational options, which is conducive to achieving safer and more reliable control operations, and further improving the security of control instruction execution.
[0149] In an exemplary embodiment, Figure 6 As shown, another instruction processing method is provided, which is applied to Figure 1 Taking the second device in the example as an example, the method includes the following steps S601 to S606. Among them:
[0150] Step S601, split the target control instruction to obtain multiple single instructions; the target control instruction is used to represent the control instruction obtained by combining multiple device control instructions, and the single instruction is used to represent a single device control instruction.
[0151] Step S602, determining the risk level corresponding to each single instruction; and obtaining the first risk assessment result corresponding to each single instruction according to the risk level corresponding to each single instruction.
[0152] Among them, when determining the risk level corresponding to each single instruction, there can be multiple implementation methods, such as obtaining the risk level corresponding to each single instruction based on the correspondence between the device control instruction and the risk level; or, obtaining the preference behavior data of the target user; the target user is used to characterize the user associated with the space targeted by the target control instruction; determining the correlation between each single instruction and the preference behavior data; obtaining the risk level corresponding to each single instruction based on the correspondence between the correlation and the risk level; or, obtaining the current space state information of the space targeted by the target control instruction; determining the matching degree between each single instruction and the current space state information; obtaining the risk level corresponding to each single instruction based on the corresponding relationship between the matching degree and the risk level.
[0153] Step S603, obtaining instruction information of each single instruction, and obtaining current space state information of the space targeted by the target control instruction; predicting state change information after the execution of each single instruction based on the instruction information of each single instruction and the current space state information.
[0154] Step S604, based on the correspondence between state change information and risk level, obtain the risk level corresponding to the state change information after each single instruction is executed; based on the risk level corresponding to the state change information after each single instruction is executed, obtain the second risk assessment result corresponding to the state change information after each single instruction is executed.
[0155] Step S605, obtaining a first weight corresponding to each first risk assessment result, and obtaining a second weight corresponding to each second risk assessment result.
[0156] Step S606: fusing each first risk assessment result and each second risk assessment result according to each first weight and each second weight to obtain a target risk assessment result corresponding to the target control instruction.
[0157] In the above-mentioned instruction processing method, before the target control instruction is executed, the target control instruction is first split to obtain multiple single instructions, and then the first risk assessment result corresponding to each single instruction and the second risk assessment result corresponding to the state change information after the execution of each single instruction are used to determine the target risk assessment result corresponding to the target control instruction. That is, when performing risk assessment on the target control instruction, multiple dimensions are comprehensively considered, which is conducive to improving the risk assessment accuracy of the control instruction, while avoiding the defect of only considering a single dimension, resulting in a low risk assessment accuracy of the control instruction.
[0158] In an exemplary embodiment, in order to more clearly illustrate the instruction processing method provided by the embodiment of the present application, the instruction processing method is specifically described below with a specific embodiment. In one embodiment, the present application also provides a risk assessment method for the intelligent issuance of IoT space instructions. The core concept of the method is to adopt a method of finely splitting instructions, establishing a relationship model between instructions and space states, and multi-dimensionally evaluating the risk of space state changes in order to solve the risk assessment problem of control instructions in the IoT environment. Specifically, complex instructions are split into multiple single instructions, and the global risk of the entire instruction is calculated through a global risk assessment algorithm by combining the risk assessment of the single instructions after each complex instruction is split and the risk assessment of the estimated space state change after the single instruction is executed. In this way, the risk of the entire instruction is scientifically, accurately and quantitatively evaluated through the global risk assessment algorithm, and the risk assessment of multiple dimensions is comprehensively considered, that is, not only the risk level of the single instruction is considered, but also the risk of space state change after the instruction is executed, which is conducive to the accurate prediction and assessment of the risk of control instructions, which is of great significance for providing a reliable risk reference and supporting subsequent operational decisions. The specific contents are as follows:
[0159] (1) Split commands: After the control commands are split, complex control commands are split into "single commands" for a single device and a single function. Complex control commands generally include control commands for multiple devices, such as scene commands, and single commands are commands for a single device and a single function.
[0160] (2) Risk Assessment: Each single instruction is assigned a corresponding risk level based on preset standards or user customization.
[0161] (3) Space status monitoring: The second device (i.e., smart home central control device) uses sensor devices to monitor changes in space status in real time, such as light, temperature, humidity and other parameters.
[0162] (4) Risk prediction: Based on the current spatial state and the possible state changes after executing a single instruction, predict the change of the spatial state after the instruction is executed and estimate the risks associated with the change of the spatial state.
[0163] (5) Global risk calculation: By comprehensively considering the risk assessment of single instructions and the predicted spatial state change risk, a global risk assessment algorithm is used to calculate the global risk level of the control instruction.
[0164] (6) Result display: The global risk level of the complex instruction is displayed to the user through the front-end interface of the first device (i.e., the terminal) to help the user make a decision. For example, the user can view the global risk level of the complex instruction and make a decision based on the global risk level, such as continuing to execute the instruction, modifying the instruction, or canceling the instruction, so as to achieve safer and more reliable control operations.
[0165] In addition, during the execution of instructions, the system can promptly detect and repair abnormal situations to increase the stability and reliability of the system. At the same time, the system can also collect a large amount of real-time data and user feedback, combined with machine learning algorithms, to achieve intelligent learning, so that the system can adaptively adjust and optimize the risk assessment model (i.e., the global risk assessment algorithm) based on historical data and actual user feedback.
[0166] The risk assessment method for intelligently issuing IoT space instructions can achieve the following technical effects:
[0167] (1) Provide accurate risk assessment: By splitting instructions, assessing the risk of a single instruction, and predicting the risk of changes in the space state, this method can provide more accurate risk assessment results. Users can clearly understand the risks that may be brought about by the execution of control instructions and the impact on the space state, so as to make more informed decisions.
[0168] (2) Improving the security of smart home systems: Through global risk assessment, this method can help users identify and avoid potential risks. Users can adjust control instructions based on risk assessment results to avoid triggering operations with higher risks, thereby improving the security of smart home systems and avoiding possible accidents and losses.
[0169] (3) Improve user experience: Users can intuitively understand the global risk assessment results of control commands through the interface of the smart home system. This not only helps users understand the risk level of the commands, but also provides a scientific and accurate reference, enabling users to make more reasonable and safer decisions, thereby improving the user experience of the smart home system.
[0170] (4) Optimizing energy and resource utilization: Through global risk assessment, users can better control the use of devices and avoid executing high-risk instructions, thereby reducing energy waste and optimizing the utilization efficiency of energy and resources, thereby improving the sustainability of the smart home system.
[0171] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0172] Based on the same inventive concept, the embodiment of the present application also provides an instruction processing device for implementing the instruction processing method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more instruction processing device embodiments provided below can refer to the limitations on the instruction processing method above, and will not be repeated here.
[0173] In an exemplary embodiment, Figure 7 As shown, an instruction processing device 700 is provided, comprising: an instruction splitting module 710, a risk assessment module 720 and a result determination module 730, wherein:
[0174] The instruction splitting module 710 is used to split the target control instruction to obtain multiple single instructions; the target control instruction is used to represent the control instruction obtained by combining multiple device control instructions, and the single instruction is used to represent a single device control instruction.
[0175] The risk assessment module 720 is used to determine the first risk assessment result corresponding to each single instruction, and to determine the second risk assessment result corresponding to the state change information after the execution of each single instruction; the state change information is used to characterize the predicted change information of the space state after the execution of each single instruction; the space state is used to characterize the state of the space targeted by the target control instruction.
[0176] The result determination module 730 is used to determine a target risk assessment result corresponding to the target control instruction according to each first risk assessment result and the second risk assessment result.
[0177] In an exemplary embodiment, the risk assessment module 720 is further used to determine the risk level corresponding to each single instruction; and obtain the first risk assessment result corresponding to each single instruction according to the risk level corresponding to each single instruction.
[0178] In an exemplary embodiment, the risk assessment module 720 is also used to obtain the risk level corresponding to each single instruction based on the correspondence between the device control instruction and the risk level; or, obtain the preference behavior data of the target user; the target user is used to characterize the user associated with the space targeted by the target control instruction; determine the correlation between each single instruction and the preference behavior data; obtain the risk level corresponding to each single instruction based on the correspondence between the correlation and the risk level; or, obtain the current space state information of the space targeted by the target control instruction; determine the matching degree between each single instruction and the current space state information; obtain the risk level corresponding to each single instruction based on the corresponding relationship between the matching degree and the risk level.
[0179] In an exemplary embodiment, the instruction processing device 700 also includes an information prediction module, which is used to obtain instruction information of each single instruction, and obtain current space state information of the space targeted by the target control instruction; based on the instruction information of each single instruction and the current space state information, predict the state change information after the execution of each single instruction.
[0180] In an exemplary embodiment, each single instruction corresponds to a second risk assessment result; the risk assessment module 720 is also used to obtain the risk level corresponding to the state change information after the execution of each single instruction according to the correspondence between the state change information and the risk level; according to the risk level corresponding to the state change information after the execution of each single instruction, obtain the second risk assessment result corresponding to the state change information after the execution of each single instruction.
[0181] In an exemplary embodiment, the result determination module 730 is also used to obtain the first weight corresponding to each first risk assessment result, and to obtain the second weight corresponding to each second risk assessment result; according to each first weight and each second weight, each first risk assessment result and each second risk assessment result are fused to obtain a target risk assessment result corresponding to the target control instruction.
[0182] In an exemplary embodiment, Figure 8 As shown, another instruction processing device 800 is also provided, including: an instruction determination module 810 and a page display module 820, wherein:
[0183] The instruction determination module 810 is used to determine the target control instruction.
[0184] The page display module 820 is used to display the risk assessment result display page; the risk assessment result display page is used to display the target risk assessment result corresponding to the target control instruction; the target risk assessment result is to split the target control instruction to obtain multiple single instructions, and determine the first risk assessment result corresponding to each single instruction, and determine the second risk assessment result corresponding to the state change information after the execution of each single instruction, which is determined based on the first risk assessment result and the second risk assessment result.
[0185] Among them, the target control instruction is used to represent the control instruction obtained by combining multiple device control instructions, and the single instruction is used to represent a single device control instruction; the state change information is used to represent the predicted change information of the spatial state after the execution of each single instruction; the spatial state is used to represent the state of the space targeted by the target control instruction.
[0186] In an exemplary embodiment, the page display module 820 is also used to display a control instruction execution confirmation page if the target risk assessment result meets the risk assessment result condition; the control instruction execution confirmation page is used to display a continue execution instruction option, a modify instruction option, and a cancel instruction option.
[0187] Each module in the above instruction processing device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0188] In an exemplary embodiment, Fig. 9 As shown, an instruction processing system 900 is also provided, including: a first device 910 and a second device 920, wherein:
[0189] The first device 910 is used to determine a target control instruction and send the target control instruction to the second device 920 .
[0190] The second device 920 is used to split the target control instruction to obtain multiple single instructions; determine the first risk assessment result corresponding to each single instruction, and determine the second risk assessment result corresponding to the state change information after the execution of each single instruction; determine the target risk assessment result corresponding to the target control instruction based on the first risk assessment results and the second risk assessment results.
[0191] Among them, the target control instruction is used to represent the control instruction obtained by combining multiple device control instructions, and the single instruction is used to represent a single device control instruction; the state change information is used to represent the predicted change information of the spatial state after the execution of each single instruction; the spatial state is used to represent the state of the space targeted by the target control instruction.
[0192] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Fig.10As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, an instruction processing method is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0193] Those skilled in the art will understand that Fig.10 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0194] In an exemplary embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.
[0195] In an exemplary embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0196] In an exemplary embodiment, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in the above method embodiments are implemented.
[0197] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0198] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0199] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A command processing method, characterized in that: The method comprises: Splitting the target control instruction to obtain a plurality of single instructions; the target control instruction is used to represent a control instruction obtained by combining a plurality of device control instructions, and the single instruction is used to represent a single device control instruction; Determine a first risk assessment result corresponding to each of the single instructions, and determine a second risk assessment result corresponding to the state change information after each of the single instructions is executed; the state change information is used to characterize the predicted change information of the space state after each of the single instructions is executed; the space state is used to characterize the state of the space targeted by the target control instruction; A target risk assessment result corresponding to the target control instruction is determined according to each of the first risk assessment results and the second risk assessment results.
2. The method according to claim 1, characterized in that The determining of the first risk assessment result corresponding to each of the single instructions includes: Determine the risk level corresponding to each of the single instructions; According to the risk level corresponding to each of the single instructions, the first risk assessment result corresponding to each of the single instructions is obtained.
3. The method according to claim 2, characterized in that Determining the risk level corresponding to each of the single instructions includes: According to the correspondence between the device control instructions and the risk level, the risk level corresponding to each of the single instructions is obtained; or, Obtaining preference behavior data of a target user; the target user is used to represent a user associated with the space targeted by the target control instruction; Determining the degree of association between each of the single instructions and the preference behavior data; According to the corresponding relationship between the correlation degree and the risk level, the risk level corresponding to each of the single instructions is obtained; or, Acquire current space state information of the space targeted by the target control instruction; Determining the matching degree between each of the single instructions and the current space state information; According to the corresponding relationship between the matching degree and the risk level, the risk level corresponding to each of the single instructions is obtained.
4. The method according to claim 1, characterized in that: Before determining the second risk assessment result corresponding to the state change information after each of the single instructions is executed, the method further includes: Acquire instruction information of each of the single instructions, and acquire current space state information of the space targeted by the target control instruction; The state change information after the execution of each of the single instructions is predicted according to the instruction information of each of the single instructions and the current space state information.
5. The method according to claim 1, characterized in that Each of the single instructions corresponds to a second risk assessment result; The determining of the second risk assessment result corresponding to the state change information after each of the single instructions is executed includes: According to the correspondence between the state change information and the risk level, the risk level corresponding to each of the state change information after the execution of each of the single instructions is obtained; According to the risk levels respectively corresponding to the state change information after the execution of each of the single instructions, the second risk assessment results respectively corresponding to the state change information after the execution of each of the single instructions are obtained.
6. The method according to any one of claims 1 to 5, characterized in that Determining the target risk assessment result corresponding to the target control instruction according to each of the first risk assessment results and each of the second risk assessment results includes: Obtaining a first weight corresponding to each of the first risk assessment results, and obtaining a second weight corresponding to each of the second risk assessment results; According to each of the first weights and each of the second weights, each of the first risk assessment results and each of the second risk assessment results are fused to obtain the target risk assessment result corresponding to the target control instruction.
7. A command processing method, characterized in that: The method comprises: Determine target control instructions; Displaying a risk assessment result display page; the risk assessment result display page is used to display the target risk assessment result corresponding to the target control instruction; the target risk assessment result is obtained by splitting the target control instruction to obtain multiple single instructions, and determining the first risk assessment result corresponding to each of the single instructions, and determining the second risk assessment result corresponding to the state change information after the execution of each of the single instructions, which is determined according to each of the first risk assessment results and the second risk assessment results; Among them, the target control instruction is used to represent the control instruction obtained by combining multiple device control instructions, and the single instruction is used to represent a single device control instruction; the state change information is used to represent the predicted change information of the spatial state after the execution of each single instruction; the spatial state is used to represent the state of the space targeted by the target control instruction.
8. The method according to claim 7, characterized in that The risk assessment result display page includes: If the target risk assessment result meets the risk assessment result condition, a control instruction execution confirmation page is displayed; the control instruction execution confirmation page is used to display a continue execution instruction option, a modify instruction option, and a cancel instruction option.
9. An instruction processing device, characterized in that: The device comprises: An instruction splitting module is used to split the target control instruction to obtain multiple single instructions; the target control instruction is used to represent the control instruction obtained by combining multiple device control instructions, and the single instruction is used to represent a single device control instruction; A risk assessment module, used to determine a first risk assessment result corresponding to each of the single instructions, and to determine a second risk assessment result corresponding to state change information after each of the single instructions is executed; the state change information is used to characterize the predicted change information of the space state after each of the single instructions is executed; the space state is used to characterize the state of the space targeted by the target control instruction; A result determination module is used to determine a target risk assessment result corresponding to the target control instruction according to each of the first risk assessment results and the second risk assessment results.
10. An instruction processing device, characterized in that: The device comprises: An instruction determination module, used for determining a target control instruction; A page display module, used for displaying a risk assessment result display page; the risk assessment result display page is used for displaying a target risk assessment result corresponding to the target control instruction; the target risk assessment result is obtained by splitting the target control instruction to obtain multiple single instructions, and determining a first risk assessment result corresponding to each of the single instructions, and determining a second risk assessment result corresponding to the state change information after the execution of each of the single instructions, which is determined according to each of the first risk assessment results and the second risk assessment results; Among them, the target control instruction is used to represent the control instruction obtained by combining multiple device control instructions, and the single instruction is used to represent a single device control instruction; the state change information is used to represent the predicted change information of the spatial state after the execution of each single instruction; the spatial state is used to represent the state of the space targeted by the target control instruction.
11. An instruction processing system, characterized in that: The system comprises: a first device and a second device; The first device is used to determine a target control instruction and send the target control instruction to the second device; The second device is used to split the target control instruction to obtain multiple single instructions; determine the first risk assessment result corresponding to each of the single instructions, and determine the second risk assessment result corresponding to the state change information after the execution of each of the single instructions; determine the target risk assessment result corresponding to the target control instruction according to each of the first risk assessment results and the second risk assessment results; Among them, the target control instruction is used to represent the control instruction obtained by combining multiple device control instructions, and the single instruction is used to represent a single device control instruction; the state change information is used to represent the predicted change information of the spatial state after the execution of each single instruction; the spatial state is used to represent the state of the space targeted by the target control instruction.
12. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6, or 7 to 8 are implemented.
13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6, or 7 to 8 are implemented.
14. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
