Intelligent rule engine virtual environment management method and system
By adopting distributed architecture and intelligent rule engine in the virtual environment management system, combining environment perception and rule matching technology, the problem that existing systems cannot respond to environmental changes in real time is solved, efficient and flexible virtual environment management is achieved, and users are enhanced Experience and system adaptability.
Patent Information
- Application Number
- CN202411238385.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-05
- Publication Date
- 2024-12-27
AI Technical Summary
The existing virtual environment management system has shortcomings in adaptability, intelligence and user experience, and cannot respond to environmental changes and user needs in real time, resulting in inconsistent user experience and difficult to meet diversified application needs.
Adopt the intelligent rule engine virtual environment management method based on distributed architecture, and collects data in real time through the environment perception module. The rule engine matches and executes corresponding actions to generate scene update instructions. The client updates the virtual environment in real time according to the instructions, combining Rete algorithm and conflicts. The solution optimizes decision making to realize the collaborative work between client environment perception and server-side intelligent decision making.
It realizes a smarter, flexible and immersive virtual experience, improves rendering efficiency and user experience, reduces network bandwidth requirements, supports personalized settings and responds to environmental changes in real time, and enhances the scalability and adaptability of the system.
Smart Images

Figure CN119200833A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to an intelligent rule engine virtual environment management method and system. Background Art
[0002] With the rapid development of virtual reality (VR), augmented reality (AR) and mixed reality (MR) technologies, virtual environments are increasingly being used in areas such as remote collaboration, virtual meetings and immersive training. The surge in demand for virtual conference systems has driven the rapid advancement of related technologies. However, current virtual environment systems still face many challenges in terms of adaptability, intelligence and user experience.
[0003] At present, there are many virtual environment management systems on the market. Many systems use pre-designed virtual scenes, and users can choose from limited options. This method is simple to implement, but lacks flexibility and personalization. Some advanced systems introduce basic rule engines, which can make simple scene adjustments according to preset conditions, such as switching day / night scenes according to time. However, the rule engine of this system is usually simple and cannot handle complex scene adjustment logic. It cannot dynamically adjust the virtual scene according to real-time environmental changes and user needs, resulting in an inconsistent user experience and difficulty in meeting diverse application needs. Some systems use a central server to render the scene and then transmit the rendering results to the client. This method can ensure the consistency of rendering quality, but it has high requirements on network bandwidth and may have latency problems. Some systems allow users to manually adjust various parameters of the virtual environment, such as lighting, sound effects, etc., but this requires users to have certain technical knowledge, and cannot respond to environmental changes in real time, cannot meet users' personalized needs, and reduce users' immersion and participation.
[0004] Therefore, there is an urgent need for a system and method that can intelligently manage virtual environments, efficiently utilize distributed resources, and respond to environmental changes and user needs in real time. Summary of the invention
[0005] In response to the above technical problems, the present invention provides a virtual environment management method and system of an intelligent rule engine based on a distributed architecture, aiming to provide a more intelligent, flexible and immersive virtual experience.
[0006] The first embodiment of the present invention provides a method for managing a virtual environment using an intelligent rule engine, the method comprising: loading a predefined rule set from a rule library, each rule having a unique identifier and a priority; an environment perception module collecting environmental data in real time, preprocessing, normalizing and extracting key features of the environmental data and transmitting the data to a rule engine; the rule engine matching rules using preset rules, placing rules that meet the conditions into a conflict set, executing corresponding actions on the selected rules, and generating corresponding scene update instructions; mapping environmental parameters to a virtual scene according to the update instructions, and updating the virtual environment in real time according to the mapped parameters.
[0007] Optionally, the environmental data includes light, noise and spatial layout.
[0008] Optionally, the preprocessing includes median filtering.
[0009] Optionally, the key features include light change trends, sudden noise events and main object positions.
[0010] Optionally, the method further includes: evaluating the effect of scene updating, including rendering performance and user experience, and sending the evaluation result as new environmental data to the server together with the data subsequently collected by the environmental perception module.
[0011] Optionally, the method further comprises: performing personalized settings on the client or adding, modifying or deleting rules in real time through a server-side interface.
[0012] The second embodiment of the present invention provides an intelligent rule engine virtual environment management system, the system comprising: a client, including an environment perception module, a data preprocessing unit, a normalization processor and a feature extraction unit, the environment perception module is used to collect environment data in real time, the data preprocessing unit is used to preprocess the environment data, the normalization processor is used to normalize the preprocessed data, and the feature extraction unit is used to extract key features; a server, including a rule base and a decision generator, the rule base includes a predefined rule set, each rule has a unique identifier and priority; the decision generator is used to execute corresponding actions according to the selected rules, generate corresponding scene update instructions, and transmit the instructions to the client; the client receives the instructions, and maps the environment parameters to the virtual scene according to the instructions, and updates the virtual environment in real time according to the mapped parameters.
[0013] Optionally, the server also includes a Rete algorithm matcher and a conflict resolver. The Rete algorithm matcher performs rule matching through the Rete algorithm and puts the rules that meet the conditions into a conflict set. The conflict resolver performs conflict resolution according to a priority strategy.
[0014] Optionally, the server also includes a monitoring and reporting system for evaluating the effect of scene updates, including rendering performance and user experience, and the evaluation results are sent to the server as new environmental data together with data collected by the subsequent environmental perception module.
[0015] Optionally, the environmental data includes light, noise and spatial layout.
[0016] The technical solution provided by the embodiment of the present invention combines an intelligent rule engine with a distributed architecture to achieve a collaborative working mechanism of client-side environmental perception and server-side intelligent decision-making, and can respond to environmental changes in real time. The present invention adopts a mode in which the server generates scene adjustment instructions and the client performs local rendering, which not only ensures the uniformity of decision-making, but also improves rendering efficiency, and continuously optimizes decision-making rules through continuous data collection and effect evaluation. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 It is a structural diagram of the intelligent rule engine virtual environment management system of the present invention.
[0018] Figure 2 It is a flow chart of the intelligent rule engine virtual environment management method of the present invention. DETAILED DESCRIPTION
[0019] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0020] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "connected" and "connection" should be understood in a broad sense, for example, it can be directly connected, or indirectly connected through an intermediate medium, or it can be the internal connection of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances. In addition, the technical features involved in the different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0021] Please refer to Figure 1As shown, the present invention provides an intelligent rule engine virtual environment management system, the system includes a client and a server, the client includes an environment perception module, a data preprocessing unit, a normalization processor and a feature extraction unit, the environment perception module is used to collect environmental data in real time, the data preprocessing unit is used to preprocess the environmental data, the normalization processor is used to normalize the preprocessed data, and the feature extraction unit is used to extract key features; the server includes a rule base and a decision generator, the rule base includes a predefined rule set, each rule has a unique identifier and a priority; the decision generator is used to execute corresponding actions according to the selected rules, generate corresponding scene update instructions, and transmit the instructions to the client; the client receives the instructions, and maps the environmental parameters to the virtual scene according to the instructions, and updates the virtual environment in real time according to the mapped parameters.
[0022] In one embodiment of the present invention, the server also includes a Rete algorithm matcher and a conflict resolver. The Rete algorithm matcher matches rules using the Rete algorithm and puts the rules that meet the conditions into a conflict set. The conflict resolver resolves conflicts according to a priority strategy.
[0023] In one embodiment of the present invention, the server also includes a monitoring and reporting system for evaluating the effect of scene updates, including rendering performance and user experience. The evaluation results are sent to the server as new environmental data together with the data collected by the subsequent environmental perception module.
[0024] In one embodiment of the present invention, the environmental data includes light, noise and spatial layout, and the preprocessing includes median filtering.
[0025] When the system of the present invention is started, the server first loads a predefined IF-THEN format rule set from the rule base, and each rule has a unique identifier and priority. The environmental perception module of the client is responsible for real-time collection of environmental data, including light (10Hz sampling, 0-1000lux range), noise (collected every 5 seconds, unit dB) and spatial layout (SLAM technology, centimeter-level accuracy). These raw data are processed by the median filtering of the data preprocessing unit and the normalization of the normalization processor at the client, and then the key features are extracted by the feature extraction unit, and the key features include light change trends, sudden noise events and main object positions.
[0026] The server also includes a Rete algorithm matcher and a conflict resolver. The processed environmental feature data is transmitted to the server and input into the working memory of the rule engine as "facts". The rule engine uses the Rete algorithm in the Rete algorithm matcher to match rules and puts the rules that meet the conditions into the conflict set. The conflict resolver mainly uses the priority strategy to resolve conflicts, and user-defined rules have the highest priority. The selected rule executes its action part and generates corresponding scene update instructions, such as "switch to night scene mode". The server broadcasts these scene update instructions to all relevant clients in the space through the network.
[0027] After receiving the instruction, the client first maps the scene parameters. For example, the ambient light intensity is mapped to the lighting parameters of the virtual scene. Subsequently, the client updates the virtual environment in real time according to the mapped parameters, including adjusting the lighting effects, modifying the audio settings, and rearranging the virtual objects. The client is also responsible for evaluating the effect of the scene update, including indicators such as rendering performance and user experience. The evaluation results are sent back to the server as new environmental data together with the data collected by the next round of sensors, forming a continuous optimization cycle.
[0028] The present invention also includes a multi-sensory interaction module and an emotion recognition module. The multi-sensory interaction module includes a visual sensor, an auditory sensor and an olfactory sensor, which greatly enhances the realism of the virtual experience; the emotion recognition module is used to capture the user's emotional state and adjust the atmosphere of the virtual environment accordingly.
[0029] The system also supports users to make personalized settings on the client side, such as adjusting the preferred lighting intensity or background music type, which will affect the local scene parameter mapping process. At the same time, the system allows administrators to add, modify or delete rules in real time through the server interface without restarting the system. The new rules will take effect immediately in the next matching cycle.
[0030] The present invention proposes a virtual environment management system that combines an intelligent rule engine with a distributed architecture, realizes a collaborative working mechanism of client-side environmental perception and server-side intelligent decision-making, and can respond to environmental changes in real time. The present invention adopts a mode in which the server generates scene adjustment instructions and the client performs local rendering, which not only ensures the uniformity of decision-making, but also improves rendering efficiency. In addition, the present invention also includes an adaptive optimization mechanism, which continuously optimizes decision-making rules through continuous data collection and effect evaluation.
[0031] The present invention applies the intelligent rule engine to distributed virtual environment management, achieving a close combination of environmental perception, intelligent decision-making and real-time rendering, which not only improves the adaptability of the virtual environment and user experience, but also provides a scalable technical solution for large-scale, high-concurrency virtual reality applications.
[0032] The distributed architecture design of the present invention has many advantages: first, it reduces the rendering burden of the server and improves the scalability of the system; second, it makes full use of the local processing capabilities of the client and reduces the amount of data transmitted over the network; finally, it allows more flexible client adaptation, and different devices can perform appropriate rendering optimization according to their own capabilities.
[0033] The present invention also provides a method for managing a virtual environment using an intelligent rule engine. Figure 2 As shown, the method comprises the following steps:
[0034] Step S10, loading a predefined rule set from a rule library, each rule having a unique identifier and a priority;
[0035] Step S20, the environment perception module collects environmental data in real time, performs preprocessing, normalization, and key feature extraction on the environmental data, and transmits the data to the rule engine;
[0036] Step S30, the rule engine performs rule matching through preset rules, puts the rules that meet the conditions into the conflict set, and the selected rules execute corresponding actions to generate corresponding scene update instructions;
[0037] Step S40, mapping the environmental parameters to the virtual scene according to the update instruction, and updating the virtual environment in real time according to the mapped parameters.
[0038] The client of the present invention can be an MR head display device, or other VR or AR devices, or even mobile devices and PC devices. When the system starts, the server first loads the predefined IF-THEN format rule set from the rule base, and each rule has a unique identifier and priority. The client environment perception module is responsible for real-time collection of environmental data, including light (10Hz sampling, 0-1000lux range), noise (collected every 5 seconds, unit dB) and spatial layout (SLAM technology, centimeter-level accuracy). These raw data are pre-processed, normalized and key feature extracted on the client and transmitted to the rule engine. Specifically, the environmental data is median filtered and normalized, and then the key features are extracted by the feature extraction unit, such as light change trends, sudden noise events and main object positions.
[0039] The server also includes a Rete algorithm matcher and a conflict resolver. The processed environmental feature data is transmitted to the server and input into the working memory of the rule engine as "facts". The rule engine uses the Rete algorithm in the Rete algorithm matcher to match rules and puts the rules that meet the conditions into the conflict set. The conflict resolver mainly uses the priority strategy to resolve conflicts, and user-defined rules have the highest priority. The selected rule executes its action part and generates corresponding scene update instructions, such as "switch to night scene mode". The server broadcasts these scene update instructions to all relevant clients in the space through the network.
[0040] After receiving the instruction, the client first maps the scene parameters. For example, the ambient light intensity is mapped to the lighting parameters of the virtual scene. Subsequently, the client updates the virtual environment in real time according to the mapped parameters, including adjusting the lighting effects, modifying the audio settings, and rearranging the virtual objects. The client is also responsible for evaluating the effect of the scene update, including indicators such as rendering performance and user experience. The evaluation results are sent back to the server as new environmental data together with the data collected by the next round of sensors, forming a continuous optimization cycle.
[0041] The system also allows users to personalize settings on the client side, such as adjusting the preferred lighting intensity or background music type, which will affect the local scene parameter mapping process. At the same time, the system allows administrators to add, modify or delete rules in real time through the server interface without restarting the system. The new rules will take effect immediately in the next matching cycle.
[0042] In order to optimize performance, the client of the present invention adopts LOD (Level of Detail) technology and dynamic loading strategy to ensure smooth rendering experience on devices with different performance. The core of LOD technology is to dynamically adjust the detail level of the object according to the distance between the object and the camera. For objects far away from the camera, low-detail models are used to reduce the number of vertices and texture accuracy, thereby reducing rendering overhead; while objects in close distances or core scenes use high-detail models to ensure picture quality. In practical applications, models with multiple levels of detail are usually prepared for the same object, and dynamically switched according to the distance between the object and the camera at runtime to achieve a balance between performance and visual effects. The dynamic loading strategy further optimizes resource management. By loading and unloading resources on demand, the dynamic loading strategy can effectively control memory usage and resource scheduling. For example, in a large open world or complex 3D scene, the scene is usually divided into multiple areas, and the part within the user's field of view is loaded first, and the part outside the field of view is delayed or not loaded, thereby speeding up the startup speed of the application and reducing unnecessary memory usage. In addition, lazy loading and on-demand unloading strategies can ensure that resources are quickly acquired when needed, and resources are released in time when they are no longer needed, further improving the operating efficiency of the system. In terms of data transmission and network optimization, the system uses an adaptive data compression algorithm to dynamically adjust the compression rate according to network conditions. At the same time, it adopts an incremental update strategy to only transmit the parts that have changed in the scene, reducing the amount of data transmission. The system also implements predictive caching, which pre-caches resources that may be needed based on user behavior and scene change trends.
[0043] The distributed architecture design of the present invention has many advantages: first, it reduces the rendering burden of the server and improves the scalability of the system; second, it makes full use of the local processing capabilities of the client and reduces the amount of data transmitted over the network; finally, it allows more flexible client adaptation, and different devices can perform appropriate rendering optimization according to their own capabilities.
[0044] Security and privacy protection are also important considerations of the present invention. The system uses end-to-end encryption technology to protect user data and communication content, and implements role-based access control (RBAC) to ensure that users can only access authorized resources. At the same time, the system allows users to control the collection and use of personal data to protect user privacy.
[0045] The present invention not only improves the adaptability and user experience of the virtual environment, but also provides a scalable technical solution for large-scale, high-concurrency virtual reality applications. The system can quickly respond to environmental changes, make predictive adjustments based on user behavior and system status, and fully utilize the computing resources of the client and server to provide a smooth and immersive user experience. The present invention is applicable to fields such as remote collaboration, virtual training, and immersive entertainment. For example, in a virtual meeting scenario, the system can dynamically adjust the layout, lighting, and sound effects of the virtual conference room based on the number of participants, meeting content, and environmental conditions of each user, providing each participant with the best immersive experience. In the field of virtual training, the system can adjust the difficulty and presentation of the training content in real time based on the learning progress and reactions of the trainees to improve the learning effect.
[0046] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for managing a virtual environment of an intelligent rule engine, characterized in that: The method comprises: Load a predefined set of rules from the rule base, each rule has a unique identifier and priority; The environment perception module collects environmental data in real time, pre-processes, normalizes and extracts key features of the environmental data, and transmits the data to the rule engine; The rule engine matches rules through preset rules, puts the rules that meet the conditions into the conflict set, and the selected rules execute the corresponding actions to generate corresponding scene update instructions; The environmental parameters are mapped to the virtual scene according to the update instruction, and the virtual environment is updated in real time according to the mapped parameters.
2. The intelligent rule engine virtual environment management method according to claim 1, characterized in that: The environmental data includes light, noise and spatial layout.
3. The intelligent rule engine virtual environment management method according to claim 1, characterized in that: The preprocessing includes median filtering.
4. The intelligent rule engine virtual environment management method according to claim 1, characterized in that: The key features include light change trends, sudden noise events and main object locations.
5. The intelligent rule engine virtual environment management method according to claim 1, characterized in that: The method further comprises: Evaluate the effect of scene updates, including rendering performance and user experience, and send the evaluation results as new environmental data to the server together with the data collected by the subsequent environmental perception module.
6. The intelligent rule engine virtual environment management method according to claim 1, characterized in that: The method further comprises: Personalize settings on the client side or add, modify or delete rules in real time through the server-side interface.
7. An intelligent rule engine virtual environment management system, characterized in that: The system comprises: The client includes an environment perception module, a data preprocessing unit, a normalization processor and a feature extraction unit. The environment perception module is used to collect environment data in real time. The data preprocessing unit is used to preprocess the environment data. The normalization processor is used to normalize the preprocessed data. The feature extraction unit is used to extract key features. The server includes a rule base and a decision generator, wherein the rule base includes a predefined rule set, each rule having a unique identifier and a priority; the decision generator is used to execute corresponding actions according to the selected rules, generate corresponding scene update instructions, and transmit the instructions to the client; The client receives the instruction, maps the environment parameters to the virtual scene according to the instruction, and updates the virtual environment in real time according to the mapped parameters.
8. The intelligent rule engine virtual environment management system according to claim 7, characterized in that: The server also includes a Rete algorithm matcher and a conflict resolver. The Rete algorithm matcher performs rule matching through the Rete algorithm and puts the rules that meet the conditions into a conflict set. The conflict resolver performs conflict resolution according to a priority strategy.
9. The intelligent rule engine virtual environment management system according to claim 7, characterized in that: The server also includes a monitoring and reporting system for evaluating the effect of scene updates, including rendering performance and user experience. The evaluation results are sent to the server as new environmental data together with the data collected by the subsequent environmental perception module.
10. The intelligent rule engine virtual environment management system according to claim 7, characterized in that: The environmental data includes light, noise and spatial layout.