Stage equipment internet-of-things method and system based on knowledge graph
By constructing a knowledge graph of stage equipment and an improved RWKV model, the problem of unification in the management of implicit expression of equipment relationships and collaborative constraints in existing technologies has been solved. This has enabled high collaborative and reliable control of stage equipment in complex performance scenarios and reduced the cost of manual choreography.
Patent Information
- Application Number
- CN202611402174.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-10
- Publication Date
- 2026-11-24
AI Technical Summary
Existing stage equipment control systems lack a unified and structured relationship expression mechanism, making it difficult to continuously model the collaborative state of equipment in complex performance scenarios. This leads to conflicts in equipment execution order and triggering of safety constraints. Furthermore, the relationship between performance intent and equipment state is difficult to dynamically map, limiting the system's intelligence level and reliability.
A stage equipment knowledge graph based on equipment state description units is constructed. The performance intention and equipment state are associated through the intention subgraph. An improved RWKV model is introduced to predict the collaborative state of equipment. The equipment control logic is optimized through a feedback update mechanism to realize the closed-loop evolution of collaborative equipment control.
It improves the coordination, controllability and consistency of stage equipment in complex performance scenarios, reduces the cost of manual choreography and maintenance, and enhances the reliability and adaptability of equipment collaborative control.
Smart Images

Figure CN123159489A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of intelligent control and Internet of Things (IoT) technology for stage equipment, and in particular to a knowledge graph-based IoT method and system for stage equipment. Background Technology
[0002] With the continuous development of large-scale cultural performances, immersive stage performances, and smart theater applications, the number and coordination complexity of various stage equipment, such as stage lighting, sound, machinery, curtains, and special effects, are constantly increasing, placing higher demands on the unified access, coordinated control, and operational safety of stage equipment. Existing stage equipment control systems mostly adopt centralized or distributed control methods based on the Internet of Things (IoT), achieving equipment linkage through preset control logic or manual arrangement, thus realizing remote control and status monitoring of equipment to a certain extent.
[0003] However, in practical applications, existing technologies still have significant shortcomings. On the one hand, most existing stage equipment IoT systems manage devices in a device-centric manner. The collaborative relationships, temporal dependencies, and mutual exclusion relationships between devices are usually maintained implicitly through rule scripts or manual experience, lacking a unified and structured relationship expression mechanism. This results in high maintenance costs and susceptibility to errors in control logic when performance plans change frequently or the scale of equipment expands. On the other hand, when executing control commands, existing systems mostly rely on static rules or simple state judgments for scheduling. It is difficult to continuously model the collaborative state of devices by combining historical operating states and device relationship constraints. This easily leads to problems such as device execution order conflicts, collaborative failures, or the triggering of safety constraints in complex performance scenarios.
[0004] Furthermore, regarding the relationship between stage performance plans and equipment control, existing technologies typically rely on manual breakdown of performance content into control commands, lacking a systematic modeling of the relationship between performance intent and equipment status. This makes it difficult to dynamically map performance intent to executable equipment coordination paths. When equipment execution results are inconsistent with expectations, existing systems also lack effective feedback-driven update mechanisms, making it difficult to continuously correct equipment relationship expressions and control strategies. This limits the intelligence level and reliability of stage equipment IoT systems in complex and ever-changing performance scenarios.
[0005] Therefore, how to provide a knowledge graph-based method and system for the Internet of Things of stage equipment is a problem that urgently needs to be solved by those skilled in the art. Summary of the Invention
[0006] One objective of this invention is to propose a knowledge graph-based method and system for the Internet of Things (IoT) of stage equipment. This invention addresses the collaborative operation and intelligent control needs of various types of stage equipment within a stage system. It constructs a stage equipment knowledge graph based on equipment state description units and generates a set of performance intent nodes by combining stage performance plan information. Through an intent subgraph, it models the association between performance intent and stage equipment states and relationships. Based on this, it extracts equipment state feature sequences and equipment relationship feature sequences, introduces an improved RWKV model with a state selective update mechanism to predict the collaborative state of equipment, and generates collaborative execution paths and equipment control command sequences based on the prediction results. Finally, it updates the state update parameters of the stage equipment knowledge graph and the improved RWKV model through equipment execution feedback, achieving closed-loop evolution of stage equipment control. This invention unifies the modeling of stage equipment entities, relationships, and constraints through a knowledge graph, and performs temporal modeling and constrained updates of the collaborative state of equipment through an improved RWKV model. This enables stage equipment to possess higher collaboration, controllability, and consistency in complex performance scenarios, reduces manual choreography and maintenance costs, and improves the reliability and adaptability of collaborative stage equipment control.
[0007] A stage equipment IoT method based on knowledge graph according to an embodiment of the present invention includes the following steps: S1. Collect the operation and control information of stage equipment in the stage system, perform time alignment and status normalization processing, and generate equipment status description units; S2. Construct a stage equipment knowledge graph based on equipment status description units; S3. Obtain stage performance plan information and map the stage performance plan information into a set of performance intention nodes; S4. Associate the set of performance intent nodes with the stage equipment knowledge graph to generate an intent subgraph; S5. Based on the intent subgraph, extract the device state feature sequence and the device relationship feature sequence, and input them into the improved RWKV model. The improved RWKV model introduces a state selective update mechanism and outputs the device collaborative state prediction result. S6. Generate a device collaborative execution path based on the device collaborative state prediction result, and convert the device collaborative execution path into a sequence of device control instructions; S7. Send the equipment control command sequence to the corresponding stage equipment, collect feedback information, and update the state update parameters of the stage equipment knowledge graph and the improved RWKV model.
[0008] Optionally, S1 specifically includes: The system collects operational and control information of stage equipment within the stage system; the stage equipment includes lighting equipment, sound equipment, stage machinery, curtain equipment, special effects equipment, and environmental sensing equipment; the operational information includes equipment identification information, equipment type information, real-time operational parameters, historical action status, and control feedback information. Based on the equipment type information, type matching processing is performed on the real-time operating parameters to convert continuous parameters into standardized numerical range representations and discrete parameters into enumerated state representations. Based on historical action states, the action changes of stage equipment within a preset time window are aggregated and processed to generate corresponding action state identifiers. Based on the control feedback information, determine the execution result status of the control command and generate an execution result identifier; The standardized numerical range representation, the action status identifier, and the execution result identifier are combined to form the device operating status; Based on the equipment type information and the equipment operating status, the equipment operating status is mapped to a set of structured fields. The set of structured fields includes a device identifier field, a device type field, an operating status field, an action status field, an execution result field, and a time index field. The set of structured fields is then determined as the equipment status description unit.
[0009] Optionally, S2 specifically includes: A stage equipment instance node is generated based on the equipment identifier field in the equipment status description unit, and the equipment type field and the running status field are written into the attribute set of the stage equipment instance node to form the equipment entity layer; Based on the time index field in the device status description unit, the running status field, action status field and execution result field of the stage equipment instance node are bound to the time sequence to form a node status sequence; Based on the control command association records, action status identifiers, spatial location information and time index fields between stage equipment instance nodes, an equipment relationship layer is generated; the equipment relationship layer includes temporal dependency relationships, cooperative relationships, mutual exclusion relationships and spatial association relationships. Based on the equipment operation status field, action status field, equipment relationship layer and environmental parameter information corresponding to the environmental sensing device, the information is written into the equipment constraint layer; the equipment constraint layer includes equipment operation safety constraints, stage logic constraints and environmental condition constraints. The system combines the equipment entity layer, equipment relationship layer, and equipment constraint layer to form a stage equipment knowledge graph.
[0010] Optionally, S3 specifically includes: A set of performance intent nodes is generated based on stage performance plan information, which includes program segment identifiers, scene switching information, and performance effect tags. Determine the temporal sequence information corresponding to the performance intent based on program segment identifiers and scene switching information; Generate effect identification information corresponding to the performance intent based on the performance effect tags; Combine time sequence information with effect identification information to form a set of performance intent nodes.
[0011] Optionally, S4 specifically includes: Determine the intent time window based on the temporal sequence information in the set of performance intent nodes; Based on the intent time window, select stage equipment instance nodes from the stage equipment knowledge graph within the corresponding time range; Target stage equipment instance nodes are filtered based on the effect identifier information in the performance intent node set and the equipment type information of the stage equipment instance nodes. Construct a set of association relationships based on the relationship information of the target stage equipment instance nodes in the stage equipment knowledge graph; Constraint information in the stage equipment knowledge graph is used to filter the set of relationships and form an intent subgraph.
[0012] Optionally, the step of extracting the device state feature sequence and device relationship feature sequence based on the intent subgraph specifically includes: Based on the stage equipment instance nodes in the intent subgraph, extract the corresponding equipment status information and generate a sequence of equipment status features in chronological order. Based on the relational information in the intent subgraph, extract the corresponding device association information and generate a device relationship feature sequence in chronological order; Perform time length alignment processing on the device status feature sequence and the device relationship feature sequence.
[0013] Optionally, the improved RWKV model is specifically as follows: The improved RWKV model includes a temporal coding structure, a relational constraint structure, a state update structure, and a collaborative prediction structure; the state update structure introduces a state selective update mechanism. The temporal coding structure performs time step expansion processing on the device state feature sequence and the device relationship feature sequence according to the time index order, and generates a corresponding time step coding vector for each time step; The relation constraint structure performs numerical mapping processing on the relation type identifier and relation weight value in the device relation feature sequence, and generates a relation constraint vector sequence according to the time index order; the relation constraint vector sequence and the time step encoding vector are aligned by time step to form an aligned combined input sequence. The state update structure reads the aligned combined input sequence in the order of time steps, and reads the temporal memory state vector corresponding to the previous time step in each time step; the candidate state vector is calculated based on the aligned combined input sequence and the temporal memory state vector of the previous time step. The state update structure performs a comparison process between the candidate state vector and the relation constraint vector. When the relation identifier corresponding to the relation constraint vector meets the preset writable condition, the candidate state vector is written into the temporal memory state vector; when the relation identifier corresponding to the relation constraint vector does not meet the preset writable condition, the temporal memory state vector of the previous time step remains unchanged. The state update structure outputs the time step state vector corresponding to the temporal memory state vector at each time step, forming an updated temporal memory state vector sequence. The collaborative prediction structure performs output mapping processing on the updated temporal memory state vector sequence to generate device collaborative state prediction results.
[0014] Optionally, S6 specifically includes: Based on the equipment coordination status prediction results, extract the time index, stage equipment identifier and predicted status label; The stage equipment identifiers are sorted according to the time index to generate a sequence of time step equipment sets. Based on the equipment relationship layer in the stage equipment knowledge graph, the temporal dependency and collaboration relationship constraints are processed on the time step equipment set sequence to generate an execution sequence that satisfies the relationship constraints; Based on the equipment constraint layer in the stage equipment knowledge graph, the execution sequence is filtered for execution state constraints and environmental condition constraints to generate equipment collaborative execution paths; Based on the equipment collaborative execution path, the predicted status label is mapped to the control action code, and the control action code is combined with the equipment identifier and time index to generate the equipment control command sequence.
[0015] Optionally, S7 specifically includes: Based on the sequence of equipment control commands, the equipment control commands are sent to the corresponding stage equipment according to the equipment identifier and time index, and the equipment execution feedback information is collected. Based on the equipment execution feedback information, generate feedback status description information, write the feedback status description information into the stage equipment knowledge graph, and update the status information of the stage equipment instance nodes; Based on the consistency comparison between the feedback status description information and the equipment control command sequence, execution deviation information is generated. Based on the execution deviation information, adjustments are made to the equipment relationship layer or equipment constraint layer in the stage equipment knowledge graph, and the state update parameters in the improved RWKV model are updated.
[0016] Optionally, a knowledge graph-based IoT system for stage equipment includes the following modules: The data modeling module is used to collect the operation and control information of stage equipment in the stage system, perform time alignment and status normalization processing, generate equipment status description units, and build a stage equipment knowledge graph based on the equipment status description units; The intent generation module is used to acquire stage performance plan information and map the stage performance plan information into a set of performance intent nodes; and associate the set of performance intent nodes with the stage equipment knowledge graph to generate an intent subgraph. The feature prediction module is used to extract device state feature sequences and device relationship feature sequences based on the intent subgraph, and input them into the improved RWKV model. The improved RWKV model introduces a state selective update mechanism and outputs device collaborative state prediction results. The path control module is used to generate a device collaborative execution path based on the device collaborative state prediction result, and convert the device collaborative execution path into a sequence of device control instructions; The feedback update module is used to send the equipment control command sequence to the corresponding stage equipment, collect feedback information, and update the state update parameters of the stage equipment knowledge graph and the improved RWKV model.
[0017] The beneficial effects of this invention are: This invention constructs a stage equipment knowledge graph based on equipment state description units, unifying the modeling of the equipment entity layer, equipment relationship layer, and equipment constraint layer of stage equipment. Addressing the problems of implicit expression of equipment relationships and difficulty in unified management of collaborative constraints in existing stage equipment IoT systems, it achieves a structured expression of stage equipment operating states, collaborative relationships, temporal dependencies, and mutual exclusion relationships. At the performance control level, this invention generates a set of performance intent nodes based on stage performance plan information and associates performance intents with the stage equipment knowledge graph through an intent subgraph. This allows the performance plan to be directly mapped to the scope of equipment collaboration that satisfies equipment relationships and constraints, reducing inconsistencies between manually breaking down the performance plan and the equipment control logic. At the state prediction level, this invention extracts equipment state feature sequences and equipment relationship feature sequences based on the intent subgraph and introduces an improved RWKV model with a state selective update mechanism. This invention employs a constrained temporal modeling of equipment collaborative states to avoid invalid state updates in time steps that do not meet equipment relationships and constraints, thereby improving the consistency between predicted equipment collaborative states and actual executable states. At the execution control level, the invention generates equipment collaborative execution paths based on the predicted equipment collaborative states and converts them into a sequence of equipment control instructions. This ensures that the equipment control process simultaneously satisfies temporal dependencies, collaborative relationships, and environmental constraints, reducing the risk of equipment conflicts and execution failures. At the feedback update level, the invention collects equipment execution feedback information to adjust the equipment relationship layer and equipment constraint layer in the stage equipment knowledge graph and simultaneously updates the state update parameters of the improved RWKV model. This enables the stage equipment IoT process to form a closed-loop evolution mechanism based on execution feedback, thereby improving the stability, maintainability, and intelligence level of stage equipment collaborative control in complex performance scenarios. Attached Figure Description
[0018] The accompanying drawings are provided to further illustrate the invention and form part of the specification. They are used in conjunction with embodiments of the invention to explain the invention and do not constitute a limitation thereof. In the drawings: Figure 1 This is a flowchart of a knowledge graph-based IoT method for stage equipment proposed in this invention; Figure 2 This is a schematic diagram of the structure of the improved RWKV model proposed in this invention; Figure 3 This is a module diagram of a stage equipment IoT system based on knowledge graphs proposed in this invention. Detailed Implementation
[0019] The present invention will now be described in further detail with reference to the accompanying drawings. These drawings are simplified schematic diagrams, illustrating only the basic structure of the invention, and therefore only show the components relevant to the invention.
[0020] refer to Figure 1-2 A knowledge graph-based IoT method for stage equipment includes the following steps: S1. Collect the operation and control information of stage equipment in the stage system, perform time alignment and status normalization processing, and generate equipment status description units; S2. Construct a stage equipment knowledge graph based on equipment status description units; S3. Obtain stage performance plan information and map the stage performance plan information into a set of performance intention nodes; S4. Associate the set of performance intent nodes with the stage equipment knowledge graph to generate an intent subgraph; S5. Based on the intent subgraph, extract the device state feature sequence and the device relationship feature sequence, and input them into the improved RWKV model. The improved RWKV model introduces a state selective update mechanism and outputs the device collaborative state prediction result. S6. Generate a device collaborative execution path based on the device collaborative state prediction result, and convert the device collaborative execution path into a sequence of device control instructions; S7. Send the equipment control command sequence to the corresponding stage equipment, collect feedback information, and update the state update parameters of the stage equipment knowledge graph and the improved RWKV model.
[0021] This implementation method collects operational and control information from stage equipment in a stage system and performs time alignment and status standardization processing to form a unified equipment status description unit. This achieves a standardized expression of the operational status of stage equipment. Furthermore, a stage equipment knowledge graph is constructed based on the equipment status description unit, allowing the entity relationships, operational associations, and constraints between stage equipment to be expressed in a structured form, thereby improving the perceptibility and associativity of the overall stage equipment status. Simultaneously, by acquiring stage performance plan information and mapping it to a set of performance intent nodes, and further associating the set of performance intent nodes with the stage equipment knowledge graph to generate an intent subgraph, a correspondence is established between performance requirements and stage equipment status within the same semantic space, enhancing the matching accuracy between performance plans and equipment configurations. Based on this, The device state feature sequence and device relationship feature sequence are extracted from the schematic subgraph and input into the improved RWKV model, which introduces a state selective update mechanism. This enables the model to focus on updating key states by combining device relationships and state constraints during the time-series modeling process, thereby improving the stability and reliability of the device collaborative state prediction results. Furthermore, based on the device collaborative state prediction results, device collaborative execution paths are generated and converted into device control command sequences, giving the stage equipment control process clear temporality and collaboration. At the same time, by issuing device control command sequences and collecting feedback information, the state update parameters of the stage equipment knowledge graph and the improved RWKV model are updated, forming a closed-loop optimization mechanism based on execution feedback. This continuously improves the accuracy of stage equipment collaborative control and the overall operational effect during multiple performances.
[0022] In this embodiment, S1 specifically refers to: The system collects operational and control information of stage equipment within the stage system; the stage equipment includes lighting equipment, sound equipment, stage machinery, curtain equipment, special effects equipment, and environmental sensing equipment; the operational information includes equipment identification information, equipment type information, real-time operational parameters, historical action status, and control feedback information. Based on the equipment type information, type matching processing is performed on the real-time operating parameters to convert continuous parameters into standardized numerical range representations and discrete parameters into enumerated state representations. Based on historical action status, the device performs status aggregation processing on the action changes within a preset time window to generate corresponding action status identifiers; Based on the control feedback information, determine the execution result status of the control command and generate an execution result identifier; The standardized numerical range representation, the action status identifier, and the execution result identifier are combined to form the device operating status; Based on the equipment type information and the equipment operating status, the equipment operating status is mapped to a set of structured fields, which includes a device identifier field, a device type field, an operating status field, an action status field, an execution result field, and a time index field; the set of structured fields is determined as the equipment status description unit.
[0023] In this embodiment, S2 specifically refers to: Read the device status description unit and extract the device identifier field, device type field, running status field, action status field, execution result field, and time index field; Based on the equipment identifier field, a stage equipment instance node is generated in the equipment entity layer of the stage equipment knowledge graph, and the equipment type field and the running status field are written into the attribute set of the stage equipment instance node; Based on the time index field, the running status field, action status field, and execution result field of the stage equipment instance node are bound to a time series to form a node status sequence; Based on the control instruction association records and time index fields between stage equipment instance nodes, generate time-series dependency edges in the equipment relationship layer. The time-series dependency edges include the starting device identifier, the target device identifier, the dependency type identifier, and the dependency time identifier. Based on the parallel action status identifier and time index field between stage equipment instance nodes, generate collaborative relationship edges in the equipment relationship layer. The collaborative relationship edges include the starting equipment identifier, the target equipment identifier, the collaborative type identifier, and the collaborative time identifier. Based on the mutual exclusion action status identifier and time index field between stage equipment instance nodes, generate mutual exclusion relationship edges in the equipment relationship layer. The mutual exclusion relationship edges include the starting device identifier, the target device identifier, the mutual exclusion type identifier, and the mutual exclusion time identifier. Based on the spatial location information and spatial adjacency threshold of the stage equipment instance nodes, spatial association edges in the equipment relationship layer are generated. The spatial association edges include the starting equipment identifier, the target equipment identifier, the spatial distance value, and the association time identifier. In the equipment constraint layer of the stage equipment knowledge graph, equipment operation safety constraints, stage logic constraints, and environmental condition constraints are written. Equipment operation safety constraints include the value range restrictions of the operation status field and the mutual exclusion restrictions of the action status field. Stage logic constraints include the parallelism restrictions and the order restrictions of the collaborative relationship edges and the temporal dependency relationship edges. Environmental condition constraints include the value range restrictions of the environmental parameters corresponding to the environmental sensing equipment and the triggering condition restrictions. The system combines the equipment entity layer, equipment relationship layer, and equipment constraint layer to form a stage equipment knowledge graph.
[0024] In this embodiment, S3 specifically refers to: Obtain stage performance plan information, which includes program segment identifiers, scene transition information, and performance effect tags; The stage performance plan information is standardized to form paragraph fields, transition fields, and effect fields. Based on the program segment identifier, the segment field is sorted according to the segment sequence to generate a segment index sequence; Based on the scene switching information, perform switching time annotation processing on the switching field to generate a switching time series; Based on the performance effect tags, perform tag deduplication and tag encoding on the effect field to generate an effect encoding sequence; The paragraph index sequence, the switching time sequence, and the effect encoding sequence are combined to generate a performance intent node set; the performance intent node set includes intent identifiers, paragraph indexes, switching times, and effect codes.
[0025] In this embodiment, S4 specifically refers to: Based on the set of performance intent nodes, intent identifiers, paragraph indices, switching times, and effect codes are extracted. An intent time window is constructed based on the paragraph index and switching time. The intent time window is limited by the start time and the end time, thereby limiting the effective time range for stage equipment to participate in the current performance intent, so that the state of the stage equipment participating in the modeling is consistent with the performance intent in the time dimension. Based on the stage equipment knowledge graph, stage equipment instance nodes in the equipment entity layer, relation edges in the equipment relation layer, and constraint information in the equipment constraint layer are extracted. According to the intent time window, time slice filtering is performed on the node state sequence corresponding to the stage equipment instance node, and only the node state data whose time index falls within the intent time window is retained to form a candidate stage equipment instance node set, so that the stage equipment state and the performance intent form a corresponding relationship within the time interval. Based on the effect code in the performance intent node, a matching process is performed with the device type field and the running status field in the candidate stage equipment instance node. The matching conditions include that the device type corresponding to the effect code is consistent and the running status field is in the available state range. The target stage equipment instance node set is obtained by filtering from the candidate stage equipment instance node set. Based on the target stage equipment instance node set, the relationship edges associated with the target stage equipment instance node set are filtered in the equipment relationship layer to form a target relationship edge set. The relationship edges include temporal dependency relationship edges, cooperative relationship edges, mutually exclusive relationship edges and spatial association relationship edges, thereby completely preserving the structured relationship information between the target stage equipment. Based on the device constraint layer, constraint consistency verification is performed on the target stage device instance node set and the target relation edge set. The constraint consistency verification includes the following: the value of the running status field is within the value range limited by the device running safety constraints; the target relation edge does not violate the order and parallel constraints defined in the stage logic constraints; and the environmental parameters corresponding to the target stage device instance node meet the value range and trigger condition requirements limited by the environmental condition constraints. Only when the above conditions are met simultaneously is the target relation edge determined to be a relation edge that satisfies the constraint information, so that the constructed association relationship is consistent in terms of security, logical consistency and environmental adaptability. Based on the set of target stage equipment instance nodes, relational edges that satisfy constraint information, and intent identifiers, a combination process is performed to form an intent subgraph, so that the performance intent, stage equipment status, and relationships between equipment are mapped in a unified structured subgraph.
[0026] In this embodiment, the extraction of device state feature sequences and device relationship feature sequences based on intent subgraphs specifically includes: Read the intent subgraph to obtain the set of stage equipment instance nodes and the set of relation edges in the intent subgraph; For each stage equipment instance node in the set of stage equipment instance nodes, extract the equipment type field, running status field, action status field, execution result field, and time index field, and arrange them in the order of the time index field to form a set of equipment status time slices; Missing time slices are filled in the device state time slice set, duplicate time slices are merged, and the enumerated state representations in the time slices are numerically mapped to form a device state feature vector time slice set. The device status feature vector time slice set is concatenated according to the time index field to generate a device status feature sequence. For each relation edge in the relation edge set, extract the starting device identifier, target device identifier, relation type identifier, relation time identifier, and relation weight value, and arrange them in the order of relation time identifier to form a relation feature time slice set; The missing time slices are filled in the relation feature time slice set, the duplicate time slices are merged, and the relation type identifier is numerically mapped to form the relation feature vector time slice set. The time slice set of relation feature vectors is concatenated according to the relation time identifier to generate a device relation feature sequence; Perform length alignment processing on the device state feature sequence and the device relationship feature sequence.
[0027] In this embodiment, the improved RWKV model is specifically as follows: The improved RWKV model includes a temporal coding structure, a relational constraint structure, a state update structure, and a collaborative prediction structure; the state update structure introduces a state selective update mechanism. The temporal coding structure is based on the device state feature sequence and the device relationship feature sequence. It performs time step expansion processing on the data corresponding to each time index in the order of time index, and jointly encodes the device state feature and device relationship feature corresponding to each time index to generate a time step coding vector that corresponds one-to-one with the time index. The time step coding vector is used to characterize the comprehensive representation of the device operating state and relationship features under the corresponding time index. The relation constraint structure is based on the device relation feature sequence. It performs numerical mapping processing on relation type identifiers and relation weight values. The numerical mapping processing maintains the correspondence between relation type identifiers and cooperative relations, temporal dependency relations, and mutually exclusive relations, and maintains the consistency between relation weight values and relation weight definitions in the device relation layer. According to the time index order, the mapped relation type identifiers and relation weight values are combined to generate a relation constraint vector sequence. The relation constraint vector sequence and the time step encoding vector under the corresponding time index are aligned by time index to form an aligned combined input sequence. The state update structure processes the aligned combination input sequence according to the time index order. Under each time index, it reads the temporal memory state vector corresponding to the previous time index. Based on the aligned combination input sequence corresponding to the current time index and the temporal memory state vector of the previous time index, it performs state calculation processing to generate candidate state vectors. The candidate state vectors are used to characterize the state change results after the combined effect of device state features and device relationship constraints under the current time index. Under the current time index, the state update structure, based on the relation type identifier and relation weight value in the relation constraint vector, and combined with the collaborative relation constraints, temporal dependency constraints, and mutual exclusion constraints already defined in the equipment constraint layer of the stage equipment knowledge graph, performs a judgment process on the write behavior between the candidate state vector and the temporal memory state vector of the previous time index. When the relation corresponding to the relation type identifier is not restricted to a mutual exclusion relationship in the equipment constraint layer, and the relation weight value is within the allowed value range in the equipment constraint layer, the candidate state vector is written and the temporal memory state vector is updated. When the relation corresponding to the relation type identifier is restricted to a mutual exclusion relationship in the equipment constraint layer, or the relation weight value exceeds the allowed value range in the equipment constraint layer, the temporal memory state vector of the previous time index remains unchanged. Under each time index, the state update structure outputs the current temporal memory state vector as a time step state vector and arranges them in the order of the time index to form an updated temporal memory state vector sequence; the temporal memory state vector sequence is used to completely represent the continuous evolution process of the device state in the time dimension under the constraints of device relationship conditions; The collaborative prediction structure is based on the updated temporal memory state vector sequence. It performs output mapping processing on the time step state vector corresponding to each time index to generate the device collaborative state prediction result corresponding to the time index. The device collaborative state prediction result includes the collaborative state label of the device under the corresponding time index, which is used for the generation of subsequent device collaborative execution paths.
[0028] The improved RWKV model is based on the temporal modeling and memory update framework of the RWKV model, and is specifically improved to address the complex device relationships, diverse constraints, and limited state changes in stage equipment collaborative control scenarios. During time-step updates, the RWKV model primarily relies on the input sequence and historical memory states for continuous state writing, making it difficult to distinguish the necessity of state updates caused by device collaboration relationships, temporal dependencies, or mutual exclusion relationships in different time steps. This can easily lead to invalid or conflicting updates to the memory state when device constraints are not met. To adapt to the explicitly defined device relationships and constraint information in the stage equipment knowledge graph, the improved RWKV model introduces a selective state update mechanism into the state update structure. This mechanism restricts state writing behavior to both the relationship constraint vector and the device constraint layer, ensuring that state updates are performed only in time steps where collaboration relationships, temporal dependencies, and constraints are satisfied. This improvement enables the model's temporal memory state to more accurately reflect the actual evolution process of the equipment under constraints, avoids interference from irrelevant or conflicting states on long-term memory, and ensures that the predicted collaborative state of the equipment is consistent with the actual executable state of the stage equipment. This enhances the model's stability, interpretability, and reliability of collaborative prediction in IoT scenarios for stage equipment.
[0029] In this embodiment, S6 specifically refers to: Based on the equipment collaborative status prediction results, extract the time index, stage equipment identifier and predicted status label, and sort the stage equipment identifier according to the time index to form a time step equipment set sequence that corresponds one-to-one with the time index; Within each time step, the temporal dependency edges recorded in the device relationship layer of the stage equipment knowledge graph are used to perform sequential constraint sorting on the sequence of devices in the time step. The execution order of the devices is determined based on the dependency time identifier and dependency type identifier, forming the temporal execution sequence corresponding to the time step. Within each time step, based on the collaborative relationship edges recorded in the device relationship layer, parallel grouping processing is performed on the time-series execution sequence, and devices with consistent collaborative time identifiers and matching collaborative type identifiers are assigned to the same execution group to form the parallel execution group corresponding to the time step; Within each time step, based on the mutually exclusive relationship edges recorded in the device relationship layer, a mutual exclusion filtering process is performed on the parallel execution group. Based on the mutual exclusion type identifier and the mutual exclusion time identifier, the device combination with mutual exclusion relationship is identified, and the device combination containing mutual exclusion relationship is deleted from the parallel execution group, forming a constraint passing group that has passed the mutual exclusion filtering. Based on the stage equipment knowledge graph, the equipment constraint layer performs constraint verification processing on the equipment entries in the group. The constraint verification processing includes performing value range verification on the running status field, mutual exclusion verification on the action status field, parameter consistency verification on the environmental condition constraint, deleting equipment entries that do not meet the constraint verification conditions, retaining equipment entries that meet the constraint verification conditions, and forming the set of executable equipment corresponding to the time step. Based on the set of executable devices, the time sequence of execution, the parallel execution group and the time index, a device collaborative execution path is generated according to the time index order. The device collaborative execution path records the device identifier, execution order identifier, parallel group identifier and target status label corresponding to each time index. Based on the device collaborative execution path, the target status label is mapped to the device control action code, and the control action code is combined with the device identifier, execution order identifier, parallel group identifier and time index to form a device control instruction sequence that corresponds one-to-one with the time index, so that the device control instructions are consistent with the device collaborative execution path.
[0030] In this embodiment, S7 specifically refers to: Based on the sequence of device control instructions, extract the device identifier, control action code, time index, execution order identifier, and parallel group identifier, and keep the correspondence between the fields consistent with the device collaborative execution path; Based on device identification and time index, the sequence of device control commands is sent to the corresponding stage equipment through the Internet of Things communication interface, and the timestamp of command sending is recorded during the command sending process; Based on the operational feedback of stage equipment after performing control actions, equipment execution feedback information is collected. The equipment execution feedback information includes equipment identifier, feedback timestamp, feedback operation status, feedback action status, and feedback execution result. Based on the device identifier, the fields of feedback operation status, feedback action status and feedback execution result are aligned, and based on the feedback timestamp and time index, time alignment is performed to form a feedback status description unit. Based on the feedback state description unit, the feedback running state, feedback action state and feedback execution result are written into the equipment entity layer of the stage equipment knowledge graph, and the node state sequence of the stage equipment instance node is updated accordingly. Based on the consistency comparison processing between the feedback state description unit and the device control command sequence, the correspondence between the control action code and the feedback action state, and between the target state label and the feedback running state is compared to generate an execution deviation identifier; Based on the execution deviation identifier, the relationship weight values corresponding to the relevant equipment in the equipment relationship layer of the stage equipment knowledge graph are adjusted, and the constraint triggering conditions related to the execution conditions in the equipment constraint layer of the stage equipment knowledge graph are adjusted. Based on the device state feature sequence and device relationship feature sequence corresponding to the feedback state description unit, the feature sequence is input into the improved RWKV model, and based on the execution deviation identifier, the preset writable condition execution parameters in the state update structure are adjusted and the state update parameters are updated.
[0031] refer to Figure 3 In this embodiment, a stage equipment IoT system based on knowledge graphs includes the following modules: The data modeling module is used to collect the operation and control information of stage equipment in the stage system, perform time alignment and status normalization processing, generate equipment status description units, and build a stage equipment knowledge graph based on the equipment status description units; The intent generation module is used to acquire stage performance plan information and map the stage performance plan information into a set of performance intent nodes; and associate the set of performance intent nodes with the stage equipment knowledge graph to generate an intent subgraph. The feature prediction module is used to extract device state feature sequences and device relationship feature sequences based on the intent subgraph, and input them into the improved RWKV model. The improved RWKV model introduces a state selective update mechanism and outputs device collaborative state prediction results. The path control module is used to generate a device collaborative execution path based on the device collaborative state prediction result, and convert the device collaborative execution path into a sequence of device control instructions; The feedback update module is used to send the equipment control command sequence to the corresponding stage equipment, collect feedback information, and update the state update parameters of the stage equipment knowledge graph and the improved RWKV model.
[0032] Example 1: To verify the feasibility of this invention in practice, it was applied to a multi-program rotating performance scenario in a large-scale comprehensive theater. This theater is equipped with lighting equipment, sound equipment, stage machinery, curtain equipment, special effects equipment, and environmental sensing equipment. The stage structure is complex, and the performance types include plays, concerts, dance, and multimedia immersive performances. Program segment transitions are frequent, and the requirements for equipment coordination are high. Traditional methods based on manual choreography and fixed control logic are prone to problems such as asynchronous equipment responses, conflicting execution sequences, and long debugging times in actual operation.
[0033] In this scenario, the operational and control information of various stage equipment in the stage system is first collected, including equipment identification information, equipment type information, real-time operating parameters, historical action status, and control feedback information. The collected data is then processed for execution time alignment and status standardization to form a unified equipment status description unit. Based on the equipment status description unit, a stage equipment knowledge graph is constructed, which uniformly models equipment entities, equipment relationships, and equipment constraints, allowing the temporal dependencies, collaborative relationships, and mutual exclusion relationships between lighting, sound, stage machinery, and other equipment to be explicitly expressed in the graph.
[0034] In the performance application, the theater's performance plan information for the past three months is used as input. The program segment identifiers, scene transition information, and performance effect tags for each performance are parsed to generate a set of performance intent nodes. This set of intent nodes is then linked to the stage equipment knowledge graph to form an intent subgraph. Based on the intent subgraph, device state feature sequences and device relationship feature sequences are extracted and input into an improved RWKV model with a selective state update mechanism to predict the collaborative state of the devices. Based on the prediction results, a collaborative execution path is generated and converted into a sequence of device control commands, which is then sent to the corresponding stage equipment. Simultaneously, device execution feedback information is collected, and the state update parameters of the stage equipment knowledge graph and the improved RWKV model are updated, thus forming a closed-loop control process based on execution feedback. This implementation method features continuous learning, state feedback, and model update mechanisms. Therefore, the first month reflects the initial deployment effect; the second month reflects the system's adaptability after feedback updates; and the third month reflects the stable performance after model optimization and convergence.
[0035] During three consecutive months of actual operation, the performance of the method of this invention and the traditional stage equipment control method were compared on several key indicators. The statistical results are shown in Table 1.
[0036] Table 1. Comparison of Stage Equipment Collaborative Control Effects over Three Months
[0037] As shown in Table 1, when using traditional control methods, stage equipment response latency is high, equipment coordination conflicts and performance interruptions are frequent, and equipment debugging before a single performance takes a long time. After introducing the knowledge graph-based stage equipment IoT method described in this invention, the equipment response latency is significantly reduced in the first month, and the number of coordination conflicts and performance interruptions decreases, indicating that through the association between the stage equipment knowledge graph and the intent subgraph, equipment coordination control begins to have clear constraints. As the running time increases, in the second and third months, the number of equipment coordination conflicts continues to decrease, the equipment response latency is further shortened, and the equipment debugging time for a single performance stabilizes at a low level. This reflects that through the continuous updating of the state update parameters of the stage equipment knowledge graph and the improved RWKV model through equipment execution feedback, the system's characterization of the stage equipment's operating characteristics and coordination relationships is closer to the actual state, thereby improving the overall coordination control effect.
[0038] Meanwhile, to further verify the role of the state selective update mechanism in the improved RWKV model in cooperative state prediction, the performance of the traditional RWKV model and the improved RWKV model in terms of the accuracy and stability of equipment cooperative state prediction was compared. The statistical results are shown in Table 2.
[0039] Table 2 Comparison of Equipment Collaborative Status Prediction Performance Data
[0040] As shown in Table 2, the RWKV model, without incorporating device relationships and constraints, is prone to predicting unexecutable states at certain time steps, leading to discrepancies between the predicted results and the actual execution states. The improved RWKV model in this invention, through a selective state update mechanism, incorporates information from the device relationship layer and device constraint layer into the state update process, significantly reducing the number of unexecutable state predictions. With extended runtime, the prediction accuracy and consistency rate continuously improve, while the fluctuation range of state predictions gradually decreases. This indicates that, driven by multiple execution feedbacks, the model has a more stable grasp of the temporal evolution of device collaborative states, resulting in more reliable predictions.
[0041] In complex stage performance scenarios, this embodiment effectively solves the problems of difficulty in uniformly expressing equipment relationships, frequent conflicts in collaborative execution, and difficulty in continuously optimizing control strategies in traditional stage equipment control. By using a stage equipment knowledge graph and an improved RWKV model that introduces a state selective update mechanism, it realizes structured modeling, constrained prediction, and closed-loop update of collaborative control of stage equipment, demonstrating good stability and practical value in practical applications.
[0042] The above description is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any equivalent substitutions or modifications made by those skilled in the art within the scope of the technology disclosed in the present invention, based on the technical solution and inventive concept of the present invention, should be covered within the scope of protection of the present invention.
Claims
1. A stage equipment Internet of Things method based on a knowledge graph, characterized in that, Includes the following steps: S1. Collect the operation and control information of stage equipment in the stage system, perform time alignment and status normalization processing, and generate equipment status description units; S2. Construct a stage equipment knowledge graph based on equipment status description units; S3. Obtain stage performance plan information and map the stage performance plan information into a set of performance intention nodes; S4. Associate the set of performance intent nodes with the stage equipment knowledge graph to generate an intent subgraph; S5. Based on the intent subgraph, extract the device state feature sequence and the device relationship feature sequence, and input them into the improved RWKV model. The improved RWKV model introduces a state selective update mechanism and outputs the device collaborative state prediction result. S6. Generate a device collaborative execution path based on the device collaborative state prediction result, and convert the device collaborative execution path into a sequence of device control instructions; S7. Send the equipment control command sequence to the corresponding stage equipment, collect feedback information, and update the state update parameters of the stage equipment knowledge graph and the improved RWKV model. 2.The stage equipment Internet of Things method based on a knowledge graph according to claim 1, wherein, Specifically, S1 is: The system collects operational and control information of stage equipment within the stage system; the stage equipment includes lighting equipment, sound equipment, stage machinery, curtain equipment, special effects equipment, and environmental sensing equipment; the operational information includes equipment identification information, equipment type information, real-time operational parameters, historical action status, and control feedback information. Based on the equipment type information, type matching processing is performed on the real-time operating parameters to convert continuous parameters into standardized numerical range representations and discrete parameters into enumerated state representations. Based on historical action states, the action changes of stage equipment within a preset time window are aggregated and processed to generate corresponding action state identifiers. Based on the control feedback information, determine the execution result status of the control command and generate an execution result identifier; The standardized numerical range representation, the action status identifier, and the execution result identifier are combined to form the device operating status; Based on the equipment type information and the equipment operating status, the equipment operating status is mapped to a set of structured fields. The set of structured fields includes a device identifier field, a device type field, an operating status field, an action status field, an execution result field, and a time index field. The set of structured fields is then determined as the equipment status description unit. 3.The stage equipment Internet of Things method based on a knowledge graph according to claim 1, wherein, Specifically, S2 is: A stage equipment instance node is generated based on the equipment identifier field in the equipment status description unit, and the equipment type field and the running status field are written into the attribute set of the stage equipment instance node to form the equipment entity layer; Based on the time index field in the device status description unit, the running status field, action status field and execution result field of the stage equipment instance node are bound to the time sequence to form a node status sequence; Based on the control command association records, action status identifiers, spatial location information and time index fields between stage equipment instance nodes, an equipment relationship layer is generated; the equipment relationship layer includes temporal dependency relationships, cooperative relationships, mutual exclusion relationships and spatial association relationships. Based on the equipment operation status field, action status field, equipment relationship layer and environmental parameter information corresponding to the environmental sensing device, the information is written into the equipment constraint layer; the equipment constraint layer includes equipment operation safety constraints, stage logic constraints and environmental condition constraints. The system combines the equipment entity layer, equipment relationship layer, and equipment constraint layer to form a stage equipment knowledge graph.
4. The stage equipment Internet of Things method based on a knowledge graph according to claim 1, characterized in that, Specifically, S3 is: A set of performance intent nodes is generated based on stage performance plan information, which includes program segment identifiers, scene switching information, and performance effect tags. Determine the temporal sequence information corresponding to the performance intent based on program segment identifiers and scene switching information; Generate effect identification information corresponding to the performance intent based on the performance effect tags; Combine time sequence information with effect identification information to form a set of performance intent nodes.
5. The stage equipment Internet of Things method based on a knowledge graph according to claim 1, characterized in that, Specifically, S4 is: Determine the intent time window based on the temporal sequence information in the set of performance intent nodes; Based on the intent time window, select stage equipment instance nodes from the stage equipment knowledge graph within the corresponding time range; Target stage equipment instance nodes are filtered based on the effect identifier information in the performance intent node set and the equipment type information of the stage equipment instance nodes. Construct a set of association relationships based on the relationship information of the target stage equipment instance nodes in the stage equipment knowledge graph; Constraint information in the stage equipment knowledge graph is used to filter the set of relationships and form an intent subgraph. 6.The stage equipment Internet of Things method based on a knowledge graph according to claim 1, wherein, The extraction of device state feature sequences and device relationship feature sequences based on intent subgraphs specifically includes: Based on the stage equipment instance nodes in the intent subgraph, extract the corresponding equipment status information and generate a sequence of equipment status features in chronological order. Based on the relational information in the intent subgraph, extract the corresponding device association information and generate a device relationship feature sequence in chronological order; Perform time length alignment processing on the device status feature sequence and the device relationship feature sequence.
7. The stage equipment Internet of Things method based on a knowledge graph according to claim 1, characterized in that, The improved RWKV model is as follows: The improved RWKV model includes a temporal coding structure, a relational constraint structure, a state update structure, and a collaborative prediction structure; the state update structure introduces a state selective update mechanism. The temporal coding structure performs time step expansion processing on the device state feature sequence and the device relationship feature sequence according to the time index order, and generates a corresponding time step coding vector for each time step; The relation constraint structure performs numerical mapping processing on the relation type identifier and relation weight value in the device relation feature sequence, and generates a relation constraint vector sequence according to the time index order; the relation constraint vector sequence and the time step encoding vector are aligned by time step to form an aligned combined input sequence. The state update structure reads the aligned combined input sequence in the order of time steps, and reads the temporal memory state vector corresponding to the previous time step in each time step; the candidate state vector is calculated based on the aligned combined input sequence and the temporal memory state vector of the previous time step. The state update structure performs a comparison process between the candidate state vector and the relation constraint vector. When the relation identifier corresponding to the relation constraint vector meets the preset writable condition, the candidate state vector is written into the temporal memory state vector; when the relation identifier corresponding to the relation constraint vector does not meet the preset writable condition, the temporal memory state vector of the previous time step remains unchanged. The state update structure outputs the time step state vector corresponding to the temporal memory state vector at each time step, forming an updated temporal memory state vector sequence. The collaborative prediction structure performs output mapping processing on the updated temporal memory state vector sequence to generate device collaborative state prediction results. 8.The stage equipment Internet-of-Things method based on a knowledge graph according to claim 1, wherein, Specifically, S6 is: Based on the equipment coordination status prediction results, extract the time index, stage equipment identifier and predicted status label; The stage equipment identifiers are sorted according to the time index to generate a sequence of time step equipment sets. Based on the equipment relationship layer in the stage equipment knowledge graph, the temporal dependency and collaboration relationship constraints are processed on the time step equipment set sequence to generate an execution sequence that satisfies the relationship constraints; Based on the equipment constraint layer in the stage equipment knowledge graph, the execution sequence is filtered for execution state constraints and environmental condition constraints to generate equipment collaborative execution paths; Based on the equipment collaborative execution path, the predicted status label is mapped to the control action code, and the control action code is combined with the equipment identifier and time index to generate the equipment control command sequence. 9.The stage equipment Internet-of-Things method based on a knowledge graph according to claim 1, wherein, Specifically, S7 is: Based on the sequence of equipment control commands, the equipment control commands are sent to the corresponding stage equipment according to the equipment identifier and time index, and the equipment execution feedback information is collected. Based on the equipment execution feedback information, generate feedback status description information, write the feedback status description information into the stage equipment knowledge graph, and update the status information of the stage equipment instance nodes; Based on the consistency comparison between the feedback status description information and the equipment control command sequence, execution deviation information is generated. Based on the execution deviation information, adjustments are made to the equipment relationship layer or equipment constraint layer in the stage equipment knowledge graph, and the state update parameters in the improved RWKV model are updated.
10. A stage equipment Internet of Things system based on a knowledge graph, which executes the stage equipment Internet of Things method based on a knowledge graph in any one of claims 1 to 9. Includes the following modules: The data modeling module is used to collect the operation and control information of stage equipment in the stage system, perform time alignment and status normalization processing, generate equipment status description units, and build a stage equipment knowledge graph based on the equipment status description units; The intent generation module is used to acquire stage performance plan information and map the stage performance plan information into a set of performance intent nodes; and associate the set of performance intent nodes with the stage equipment knowledge graph to generate an intent subgraph. The feature prediction module is used to extract device state feature sequences and device relationship feature sequences based on the intent subgraph, and input them into the improved RWKV model. The improved RWKV model introduces a state selective update mechanism and outputs device collaborative state prediction results. The path control module is used to generate a device collaborative execution path based on the device collaborative state prediction result, and convert the device collaborative execution path into a sequence of device control instructions; The feedback update module is used to send the equipment control command sequence to the corresponding stage equipment, collect feedback information, and update the state update parameters of the stage equipment knowledge graph and the improved RWKV model.
