An interactive processing method for virtual simulation training system
By analyzing the differences between key nodes and environmental data in the ship simulation view and calculating the degree of scene preloading, the interface switching smoothness of the ship control simulator is optimized, the delay problem caused by excessive information is solved, and the operator's response ability evaluation and Experience.
Patent Information
- Application Number
- CN202411096017.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-12
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2044-08-12
AI Technical Summary
In the ship maneuvering simulator, some ship simulation views contain too much information, causing delays when the management end switches operating interfaces, affecting real-time switching and interaction capabilities, and thus affecting the operator's resilience assessment.
By obtaining the ship simulation view node environment data and control panel operation times at each moment, analyze the number of key nodes and environmental data differences, calculate the scene preloading degree and attention level, determine whether it is necessary to preload the next ship simulation view, and optimize the interface Switch fluency.
It improves the smoothness of switching ship simulation views, enhances the operator's sense of experience and the accuracy of response ability assessment, avoids interface delays, and ensures the operator's adaptability training effect.
Smart Images

Figure CN118629287B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of electronic digital data processing, and in particular to an interactive processing method for a virtual simulation training system. Background Art
[0002] The ship handling simulator is a typical human-in-the-loop simulation training system. People participate in the simulation training system as a link. Through various information provided by the simulation training system, such as ship simulation views, people manipulate and control the simulation training system through judgment and decision-making, thereby achieving the purpose of personnel training. Among them, the simulation training system adopts distributed interactive simulation technology, which is a technology for multi-system collaborative work. The data of each simulation node interacts and shares with each other in the simulation training system, which improves the authenticity and interactivity of the simulation. At the same time, the ship handling simulator contains a multi-terminal interactive system, including management end, operation end and evaluation end systems, which can perform interactive teaching and evaluation based on real-time data. Among them, the management end can adjust the teaching strategy and simulation environment according to the operator's performance, the operation end provides various operation interfaces for the operator, and the evaluation end evaluates the operator's operation in real time.
[0003] The main function of the ship operation simulator is to simulate a real ship operation learning environment for the operator and improve the operator's ability to respond to ship operations in different weather environments. In order to improve the operator's ability to respond, the management end of the simulation training system adjusts the ship simulation view in the operation interface in real time to train the operator's ability to operate the ship in different weather environments in real time. However, in actual situations, some ship simulation views contain a lot of information. There will be a delay when the management end switches the ship simulation view of the operation interface, which affects the real-time switching and interaction capabilities of different ship simulation views in the operation interface, and then affects the operator's operation and experience, resulting in the inability to accurately evaluate the operator's ability to respond. Summary of the invention
[0004] In order to solve the technical problem that some ship simulation views contain too much information, there will be a delay when the management end switches the ship simulation view of the operation interface, which affects the real-time switching and interaction capabilities of different ship simulation views in the operation interface, the purpose of the present invention is to provide an interactive processing method for a virtual simulation training system, and the technical solution adopted is as follows:
[0005] An embodiment of the present invention provides an interactive processing method for a virtual simulation training system, the method comprising the following steps:
[0006] Obtain the environmental data of each node in the ship simulation view at each moment in the current time period and the number of operations on the control panel at each moment;
[0007] According to the position of each node in the ship simulation view at each moment, the key node at each moment is obtained; according to the difference between the number of key nodes at each moment in the current time period and the number of key nodes between adjacent moments, and the difference in environmental data between the ship simulation view at the current moment and the previous moment, the scene preloading degree at the current moment is obtained;
[0008] According to the difference between the number of operations on the control panel at the current moment and the number of operations between adjacent moments in the current time period, the attention level at the current moment is obtained;
[0009] According to the preloading degree and attention degree of the scene at the current moment, obtain the final preloading degree at the current moment;
[0010] According to the final preloading degree, it is determined whether the next ship simulation view of the current ship simulation view needs to be preloaded.
[0011] Furthermore, the method for obtaining the key nodes is:
[0012] The Harris corner point detection algorithm is used to analyze the position of each node in the ship simulation view at each moment, and the corner point at each moment is obtained as the key node at the corresponding moment.
[0013] Furthermore, the method for obtaining the scene preloading degree is:
[0014] According to the number of key nodes at each moment in the current time period and the difference in the number of key nodes between adjacent moments, the scene complexity at the current moment is obtained; wherein the number of key nodes is positively correlated with the scene complexity, and the difference in the number of key nodes between adjacent moments is negatively correlated with the scene complexity;
[0015] According to the difference in environmental data between the ship simulation view at the current moment and the previous moment, the data fatigue degree at the current moment is obtained;
[0016] According to the data fatigue degree and scene complexity degree at the current moment, the scene preloading degree at the current moment is obtained; wherein the data fatigue degree and the scene complexity degree are both positively correlated with the scene preloading degree.
[0017] Furthermore, the calculation formula of the scene complexity value specifically quantified by the scene complexity is: ; In the formula, is the scene complexity value at the current moment; T is the number of all moments in the current time period; is the number of key nodes at the tth moment in the current time period; is the number of key nodes at the t-1th moment in the current time period; is the first preset constant, greater than 0; is the absolute value function.
[0018] Furthermore, the method for obtaining the data fatigue degree is:
[0019] Obtain the difference between the mean value of all environmental data in the ship simulation view at the current moment and the mean value of all environmental data in the ship simulation view at the previous moment as the first eigenvalue at the current moment;
[0020] The result of accumulating the environmental data differences of all nodes at the same position between the ship simulation view at the current moment and the ship simulation view at the previous moment is taken as the second eigenvalue at the current moment;
[0021] The data fatigue degree at the current moment is obtained according to the first eigenvalue and the second eigenvalue; wherein the first eigenvalue and the second eigenvalue are both negatively correlated with the data fatigue degree.
[0022] Furthermore, the method for obtaining the degree of attention is:
[0023] Obtain the difference in the number of operations between the latter moment and the previous moment of two adjacent moments in the current time period as the first value;
[0024] The result of accumulating and normalizing all the first values is used as the urgency of the current moment;
[0025] The current attention level is obtained according to the number of control panel operation times and the urgency level at the current moment; wherein the number of control panel operation times and the urgency level at the current moment are both positively correlated with the attention level.
[0026] Furthermore, the method for obtaining the final preloading degree is:
[0027] According to the scene preloading degree and attention degree at the current moment and the preset adjustment weight, the final preloading degree at the current moment is obtained.
[0028] Furthermore, the method for obtaining the final preloading degree is:
[0029] The multiplication result of the adjustment weight and the current attention level is used as the corrected attention level at the current moment;
[0030] The result of negatively correlating the adjusted weights is multiplied by the current scene preloading degree, and the result is used as the corrected scene preloading degree at the current moment;
[0031] According to the corrected attention degree and the corrected scene preloading degree at the current moment, the final preloading degree at the current moment is obtained; wherein the corrected attention degree and the corrected scene preloading degree are both positively correlated with the final preloading degree.
[0032] Furthermore, the method for determining whether the next ship simulation view of the current ship simulation view needs to be preloaded according to the final preloading degree is:
[0033] When the final preloading degree meets the preset final preloading degree range, the next ship simulation view of the current ship simulation view needs to be preloaded.
[0034] Furthermore, the current moment is the last moment of the current time period.
[0035] The present invention has the following beneficial effects:
[0036] According to the position of each node in the ship simulation view at each moment, the key nodes at each moment are obtained, and the complexity of the information in the ship simulation view at each moment is accurately reflected, which is conducive to the subsequent analysis of the changes in the ship simulation view and the real-time analysis of whether the ship simulation view needs to be preloaded; then, according to the difference in the number of key nodes at each moment in the current time period and the number of key nodes between adjacent moments, as well as the difference in environmental data between the current moment and the previous moment, the scene preloading degree at the current moment is obtained, which accurately reflects the degree to which the ship simulation view at the current moment needs to be switched, which is conducive to the preliminary judgment of the degree to which the next ship simulation view of the current moment is preloaded; in order to more accurately analyze the degree to which the next ship simulation view of the current moment is preloaded, then according to the number of operations on the control panel at the current moment and the difference in environmental data between the adjacent moments in the current time period, the scene preloading degree at the current moment is obtained. The difference in the number of operations between the two scenes can be used to obtain the attention level at the current moment, accurately reflecting the operator's attention level to the operation interface at the current moment, and indirectly reflecting the complexity of the information in the ship simulation view at the current moment, so as to further analyze the degree of preloading of the next ship simulation view of the ship simulation view at the current moment; therefore, according to the scene preloading level and attention level at the current moment, the final preloading level at the current moment is obtained, and the degree of preloading of the next ship simulation view of the ship simulation view at the current moment is accurately determined; and then according to the final preloading level, it is accurately determined whether the next ship simulation view of the ship simulation view at the current moment needs to be preloaded, which improves the smoothness of switching ship simulation views in the operation interface, avoids delays in the operation interface, improves the operator's experience and sense of reality, and is conducive to a better and accurate evaluation of the operator's reaction ability and the operator's adaptability. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0038] Figure 1 A schematic flow chart of an interactive processing method for a virtual simulation training system provided by an embodiment of the present invention;
[0039] Figure 2 A flow chart of a method for obtaining a scene preloading degree provided by an embodiment of the present invention;
[0040] Figure 3 A flow chart of a method for obtaining data fatigue level provided by an embodiment of the present invention;
[0041] Figure 4 A flowchart of a preload optimization process provided by an embodiment of the present invention;
[0042] Figure 5 A structural diagram of an interactive processing system for a virtual simulation training system provided by an embodiment of the present invention;
[0043] Figure 6 A schematic diagram of a computer device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0044] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the interactive processing method for a virtual simulation training system proposed by the present invention, its specific implementation method, structure, features and effects, in conjunction with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0045] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0046] The following is a detailed description of a specific scheme of an interactive processing method for a virtual simulation training system provided by the present invention in conjunction with the accompanying drawings.
[0047] Embodiment 1:
[0048] The present invention proposes an interactive processing method for a virtual simulation training system, see Figure 1 , which shows a schematic flow chart of an interactive processing method for a virtual simulation training system provided by an embodiment of the present invention, the method comprising the following steps:
[0049] Step S1: Obtain the environmental data of each node in the ship simulation view at each moment in the current time period and the number of operations of the control panel at each moment.
[0050] Specifically, in order to improve the smoothness of switching ship simulation views in the operation interface of the ship maneuvering simulator, it is necessary to determine in real time whether the next ship simulation view of the ship simulation view of the operation interface at the current moment needs to be preloaded, which can effectively avoid the delay in switching the ship simulation view. In order to analyze the preloading of the ship simulation view in real time, it is necessary to obtain the ship simulation view at each moment in the current time period, and obtain various data of each node in each ship simulation view through distributed interactive simulation technology, including various data such as environmental data, command data and control data. Among them, in the ship maneuvering simulator, the environmental data can reflect various meteorological environments such as waves, storms, rainstorms and no wind, and the control data can reflect the input of the operator and feedback the control results. Among them, the distributed interactive simulation technology is a well-known technology and will not be repeated. In this embodiment, the current time period is set to 6 seconds, and the time interval between two adjacent moments is set to 2 seconds, that is, there are 3 moments in the current time period. The implementer can set the size of the time interval between the current time period and the two adjacent moments according to the actual situation, which is not limited here. It should be noted that the current moment must be the last moment of the current time period. In this embodiment, the main purpose is to train the operator's ability to respond to ship operations in different meteorological environments, and then directly analyze the environmental data to determine in real time whether the next ship simulation view of the current ship simulation view needs to be pre-loaded. Therefore, this embodiment only analyzes the environmental data of each node in the ship simulation view at each moment in the current time period, that is, only obtains the environmental data of each node in the ship simulation view at each moment in the current time period.
[0051] At the same time, the number of control panel operations at each moment up to the current time period is directly obtained through the ship maneuvering simulator, so as to prepare for the subsequent analysis of whether the next ship simulation view of the current moment needs to be preloaded.
[0052] Step S2: According to the position of each node in the ship simulation view at each moment, obtain the key node at each moment; according to the difference in the number of key nodes at each moment in the current time period and the number of key nodes between adjacent moments, and the difference in environmental data between the ship simulation view at the current moment and the previous moment, obtain the scene preloading degree at the current moment.
[0053] Specifically, if the meteorological environment in the ship simulation view at each moment in the current time period is relatively complex, the scene in the operation interface in the current time period is relatively complex, that is, the simulated ship enters a stage that requires complex control and highly accurate response, such as a storm stage. Because a complete complex control stage is continuous, the next ship simulation view of the ship simulation view at the current moment is more likely to be in a complex control stage, and the next ship simulation view of the ship simulation view at the current moment may include more information. In order to avoid the situation where the next ship simulation view of the ship simulation view at the current moment cannot be loaded immediately due to too much information when switching, the ship maneuvering simulator should pre-load the next ship simulation view of the ship simulation view at the current moment. In this embodiment, the position of each node in the ship simulation view at each moment in the current time period is analyzed by the Harris corner point detection algorithm, and the corner point at each moment is obtained as the key node of the corresponding moment. Among them, the Harris corner point detection algorithm is a well-known technology and will not be repeated. When there are more key nodes at a certain moment, it means that there is more information in the ship simulation view at that moment. When the number of key nodes at each moment in the current time period is larger and the difference in the number of key nodes between adjacent moments is smaller, it means that the stage passed in the current time period is more likely to be a complex operation stage, and the next ship simulation view of the ship simulation view at the current moment should be preloaded.
[0054] In order to improve the operator's ability to respond to ship operations under different meteorological environments, when the operation interface of the ship maneuvering simulator continues to be the same meteorological environment scene for a long time, the possibility that the ship simulation view in the operation interface needs to be switched is greater. Therefore, the environmental data difference between the current moment and the adjacent previous moment is analyzed. When the environmental data difference is smaller, it means that the current moment's ship simulation view lasts longer, and the current moment's ship simulation view should be switched more. In order to ensure the smoothness of the switching of the ship simulation view, the next ship simulation view of the current moment's ship simulation view should be preloaded. Therefore, this embodiment obtains the scene preloading degree at the current moment according to the difference between the number of key nodes at each moment in the current time period and the number of key nodes between adjacent moments, and the environmental data difference between the current moment and the adjacent previous moment's ship simulation view. The greater the scene preloading degree, the more the ship simulation view at the current moment should be switched.
[0055] Preferably, in some possible implementations of this embodiment, the method for obtaining the scene preloading degree can refer to Figure 2 , which shows a flow chart of a method for obtaining a scene preloading degree provided by an embodiment of the present invention, the method comprising:
[0056] Step S201: Obtain the scene complexity at the current moment based on the number of key nodes at each moment in the current time period and the difference in the number of key nodes between adjacent moments; wherein the number of key nodes is positively correlated with the scene complexity, and the difference in the number of key nodes between adjacent moments is negatively correlated with the scene complexity.
[0057] If the number of key nodes at each moment in the current time period is larger, and the difference in the number of key nodes between adjacent moments is smaller, it means that the current time period is in a complex operation stage, which indirectly reflects that the weather environment in the ship simulation view at the current moment is more complex. Therefore, this embodiment obtains the scene complexity at the current moment according to the size of the number of key nodes at each moment in the current time period and the difference in the number of key nodes between adjacent moments; wherein, the size of the number of key nodes is positively correlated with the scene complexity, and the difference in the number of key nodes between adjacent moments is negatively correlated with the scene complexity. The greater the scene complexity, the more information is contained in the ship simulation view at the current moment. In order to accurately represent the complexity of the ship simulation view at the current moment, this embodiment specifically quantifies the scene complexity as a scene complexity value. The larger the scene complexity value, the more complex the weather environment in the ship simulation view at the current moment. Among them, the calculation formula of the scene complexity value is: ; In the formula, is the scene complexity value at the current moment; T is the number of all moments in the current time period; is the number of key nodes at the tth moment in the current time period; is the number of key nodes at the t-1th moment in the current time period; is the first preset constant, greater than 0; is the absolute value function.
[0058] This embodiment will Set to 1 to avoid the denominator being 0. Implementers can set it according to actual conditions. The size is not limited here.
[0059] Step S202: Obtain the data fatigue level at the current moment according to the difference in environmental data between the ship simulation view at the current moment and the adjacent previous moment.
[0060] In order to analyze the stability of the meteorological environment in the ship simulation view at the current moment, this embodiment obtains the difference in environmental data between the ship simulation view at the current moment and the previous moment. When the difference in environmental data between the ship simulation view at the current moment and the previous moment is smaller, it means that the meteorological environment at the current moment is more similar to that at the previous moment, which indirectly means that the meteorological environment in the ship simulation view at the current moment is more stable, and the data fatigue degree at the current moment is higher. In order to train the operator's reaction ability to the meteorological environment, the ship simulation view at the current moment should be switched. In order to avoid switching delay, the next ship simulation view of the ship simulation view at the current moment should be preloaded.
[0061] Preferably, in some possible implementations of this embodiment, the method for obtaining the data fatigue degree can refer to Figure 3 , which shows a flow chart of a method for obtaining data fatigue level provided by an embodiment of the present invention, the method comprising:
[0062] Step S202-1: Obtain the difference between the mean value of all environmental data in the ship simulation view at the current moment and the mean value of all environmental data in the ship simulation view at the previous moment as the first eigenvalue at the current moment.
[0063] The smaller the first eigenvalue is, the more similar the meteorological environment in the ship simulation view at the current moment is to that in the ship simulation view at the previous moment.
[0064] Step S202-2: Accumulate the environmental data differences of all nodes at the same position between the ship simulation view at the current moment and the ship simulation view at the previous moment, and use the result as the second eigenvalue at the current moment.
[0065] The smaller the second eigenvalue is, the more accurately it indicates that the weather environment in the current ship simulation view is similar to that in the previous ship simulation view. In order to improve the operator's ability to respond to different weather environments, the current ship simulation view needs to be switched.
[0066] Step S202-3: Obtain the data fatigue degree at the current moment according to the first eigenvalue and the second eigenvalue; wherein the first eigenvalue and the second eigenvalue are both negatively correlated with the data fatigue degree.
[0067] It is known that the smaller the first eigenvalue and the smaller the second eigenvalue, both indicate that the weather environment in the ship simulation view at the current moment is more similar to that in the ship simulation view at the adjacent previous moment, which indirectly reflects that the longer the weather environment in the ship simulation view at the current moment lasts, the higher the data fatigue degree at the current moment. Therefore, this embodiment obtains the data fatigue degree at the current moment according to the first eigenvalue and the second eigenvalue; wherein the first eigenvalue and the second eigenvalue are both negatively correlated with the data fatigue degree. Among them, the greater the data fatigue degree, the longer the weather environment at the current moment lasts, and the more the ship simulation view at the current moment should be switched. In order to accurately indicate the degree to which the ship simulation view at the current moment needs to be switched, this embodiment specifically quantifies the data fatigue degree as a data fatigue degree value. The greater the data fatigue degree value, the more the ship simulation view at the current moment needs to be switched. Among them, the calculation formula of the data fatigue degree value is: ; In the formula, is the data fatigue level value at the current moment; is the mean value of all environmental data in the ship simulation view at the current moment; is the mean value of all environmental data in the ship simulation view at the previous moment adjacent to the current moment; is the first eigenvalue; K is the number of nodes in the same position in the ship simulation view at the current moment and the ship simulation view at the previous moment; is the environmental data of the kth position node in the ship simulation view at the current moment; is the environmental data of the kth position node in the ship simulation view at the previous moment adjacent to the current moment; is the second eigenvalue; is the absolute value function; It is the second preset constant, which is greater than 0.
[0068] This embodiment will Set to 1 to avoid the denominator being 0. Implementers can set it according to actual conditions. The size is not limited here.
[0069] Step S203: according to the data fatigue degree and scene complexity degree at the current moment, the scene preloading degree at the current moment is obtained; wherein the data fatigue degree and the scene complexity degree are both positively correlated with the scene preloading degree.
[0070] It is known that the greater the data fatigue, the more the meteorological environment in the current ship simulation view should be switched. In order to ensure the smoothness of the switching, the next ship simulation view of the current ship simulation view should be preloaded, and the greater the scene preloading degree at the current moment; the greater the scene complexity, the more complex the content of the next ship simulation view of the current ship simulation view may be. In order to avoid the delay in the switching of the ship simulation view, the next ship simulation view of the current ship simulation view should be preloaded, and the greater the scene preloading degree at the current moment; therefore, this embodiment obtains the scene preloading degree at the current moment according to the data fatigue and scene complexity at the current moment; wherein, the data fatigue and scene complexity are both positively correlated with the scene preloading degree. The greater the scene preloading degree, the greater the possibility that the next ship simulation view of the current ship simulation view is preloaded. In order to accurately represent the preloading status of the ship simulation view at the current moment, this embodiment specifically quantifies the scene preloading degree as a scene preloading degree value. The larger the scene preloading degree value, the greater the degree of preloading of the next ship simulation view of the current moment. The calculation formula of the scene preloading degree value is: ; In the formula, Preload the scene at the current moment. is the data fatigue level value at the current moment; is the scene complexity value at the current moment. In other embodiments, the scene preloading degree value can be obtained by adding the data fatigue degree value and the scene complexity value, which is not limited here.
[0071] Step S3: Obtain the attention level at the current moment according to the number of operations on the control panel at the current moment and the difference in the number of operations between adjacent moments in the current time period.
[0072] Specifically, in order to more accurately analyze whether the next ship simulation view of the ship simulation view at the current moment needs to be preloaded, this embodiment analyzes the operator's operation of the control panel. When the operator operates the control panel more times, it means that the environment of the ship in the ship simulation view in the operation interface is more complex, and the operator needs to operate with high accuracy. If the number of operations on the control panel up to the current moment is more, it means that the environment of the ship in the operation interface up to the current moment is more complex, which indirectly indicates that the operator's attention to the operation interface at the current moment may be greater. In order to further analyze the operator's attention to the ship simulation view at the current moment, this embodiment observes the change in the number of operations on the control panel in the current time period. When the number of operations increases, it means that the scene of the ship in the current time period is more and more urgent, the operator's attention is getting higher and higher, and the operation of the operation interface is more and more accurate and frequent, ensuring that the ship maintains safe navigation. Therefore, this embodiment obtains the attention level at the current moment according to the difference between the number of operations on the control panel at the current moment and the number of operations between adjacent moments in the current time period. The greater the degree of attention, the more complex the current ship simulation view is, which indirectly reflects that the information in the next ship simulation view of the current ship simulation view is more likely to be complex, and the next ship simulation view of the current ship simulation view should be preloaded. It should be noted that this embodiment takes an operator as an example for analysis, and the operators appearing in this embodiment all refer to the same operator.
[0073] Preferably, in some possible implementations of this embodiment, the method for obtaining the degree of attention is: obtaining the difference in the number of operations between the latter moment and the previous moment of two adjacent moments in the current time period as the first value; the larger the first value, the greater the number of operations on the control panel, and the more likely the ship at the current moment is to change to an emergency situation. In order to more accurately represent the change trend of the ship at the current moment, this embodiment accumulates all the first values and normalizes the result as the urgency at the current moment; the greater the urgency, the more likely the ship is to change to an emergency situation at the current moment, and the greater the operator's degree of attention at the current moment. Then, according to the number of operations and the urgency of the control panel at the current moment, the degree of attention at the current moment is obtained; wherein, the number of operations and the urgency of the control panel at the current moment are both positively correlated with the degree of attention. In order to accurately represent the operator's degree of attention at the current moment, this embodiment specifically quantifies the degree of attention as a degree of attention value. The larger the degree of attention value, the greater the possibility that the next ship simulation view of the ship simulation view at the current moment is preloaded, which ensures the smoothness of the ship simulation view switching in the operation interface. Among them, the calculation formula of the degree of attention value is: ; In the formula, is the attention level value at the current moment; is the number of operations on the control panel at the current moment; T is the number of all moments in the current time period; is the number of operations on the control panel at the tth moment in the current time period; is the number of operations on the control panel at the t-1th moment in the current time period; is the first value; is the urgency value; norm is the normalization function.
[0074] Step S4: According to the scene preloading degree and attention degree at the current moment, the final preloading degree at the current moment is obtained.
[0075] It is known that the greater the preloading degree of the scene, the more the next ship simulation view of the ship simulation view at the current moment should be preloaded; the greater the degree of attention, the greater the possibility that the information in the next ship simulation view of the ship simulation view at the current moment is complex, and the more the next ship simulation view of the ship simulation view at the current moment should be preloaded. Therefore, this embodiment obtains the final preloading degree at the current moment according to the scene preloading degree and the degree of attention at the current moment. The greater the final preloading degree, the greater the possibility that the next ship simulation view of the ship simulation view at the current moment is preloaded. In order to more accurately obtain the final preloading degree, this embodiment artificially sets a preset adjustment weight, and then obtains the final preloading degree at the current moment according to the scene preloading degree and the degree of attention at the current moment, and the preset adjustment weight. In this embodiment, the preset adjustment weight is set to 0.4, and the implementer can set the preset adjustment weight according to the actual situation, which is not limited here.
[0076] Preferably, in some possible implementations of this embodiment, the method for obtaining the final preloading degree is: taking the multiplication result of the adjustment weight and the attention degree at the current moment as the revised attention degree at the current moment, more accurately representing the actual attention degree at the current moment; taking the multiplication result of the negative correlation of the adjustment weight and the scene preloading degree at the current moment as the revised scene preloading degree at the current moment, more accurately representing the actual scene preloading degree at the current moment; and then obtaining the final preloading degree at the current moment according to the revised attention degree and the revised scene preloading degree at the current moment; wherein the revised attention degree and the revised scene preloading degree are both positively correlated with the final preloading degree. In order to clearly represent the preloading status of the next ship simulation view of the ship simulation view at the current moment, this embodiment specifically quantifies the final preloading degree as the final preloading degree value. The larger the final preloading degree value, the greater the possibility that the next ship simulation view of the ship simulation view at the current moment will be preloaded. Among them, the calculation formula of the final preloading degree value is: ; In the formula, is the final preload degree value at the current moment; The preset adjustment weights; is the attention level value at the current moment; Preload the scene at the current moment. To correct the attention level value; In other embodiments, the final preloading degree value can be obtained by adding the modified attention degree value and the modified scene preloading degree value, which is not limited here.
[0077] Step S5: Determine whether the next ship simulation view of the current ship simulation view needs to be preloaded according to the final preloading degree.
[0078] Specifically, in order to determine whether the next ship simulation view of the ship simulation view at the current moment needs to be preloaded, this embodiment normalizes the final preloading degree value at the current moment to obtain a normalized final preloading degree value. When the normalized final preloading degree value is greater than or equal to the preset final preloading degree value threshold, the next ship simulation view of the ship simulation view at the current moment needs to be preloaded. This embodiment sets the preset final preloading degree value threshold to 0.9. The implementer can set the size of the preset final preloading degree value threshold according to actual conditions, which is not limited here. It should be noted that the next ship simulation view of the ship simulation view at the current moment is set by the management end. The purpose of this embodiment is to determine whether the next ship simulation view of the ship simulation view at the current moment needs to be preloaded.
[0079] In order to better preload the ship simulation view in real time, improve the operator's experience and immersion, and better train the operator's reaction ability, this embodiment optimizes the preloading process of the ship simulation view to obtain the preloading optimization process.
[0080] Preferably, in some possible implementations of this embodiment, the preload optimization process can refer to Figure 4 , which shows a flow chart of a preloading optimization process provided by an embodiment of the present invention. The preloading optimization process is as follows:
[0081] Step S401: Setting resource priority.
[0082] First, determine the resources that need to be preloaded, such as graphic data, environment models, data nodes corresponding to dynamic objects, etc.; then assign loading priorities to different resources, and prioritize the resources that the operator is most likely to access or that have the greatest impact on the simulation.
[0083] Step S402: Preloading is implemented.
[0084] Select a time period when the system load is relatively low to preload resources; preprocess the resources to be loaded, including compression and format conversion, to speed up the loading process; at the same time, use distributed loading to assign preloading tasks to different server nodes, and use distributed computing resources for parallel processing to speed up loading.
[0085] Step S403: Data cache management.
[0086] Design a reasonable data caching mechanism to ensure that frequently used resources can be quickly re-accessed, monitor system memory usage, dynamically adjust cached data, and optimize memory utilization.
[0087] At this point, the preloading of the ship simulation view is completed in real time, ensuring the smoothness of switching the ship simulation view in the operation interface, improving the operator's ability to respond to ship operations in different weather environments, and accurately evaluating the operator's response ability.
[0088] In summary, this embodiment obtains the environmental data of the nodes in the ship simulation view and the number of operations of the control panel; obtains the scene preloading degree at the current moment according to the difference between the key nodes at each moment in the current time period and the key nodes at adjacent moments, and the difference between the environmental data at the current moment and the adjacent previous moment; obtains the attention degree at the current moment according to the difference between the number of operations at the current moment and the number of operations at adjacent moments; obtains the final preloading degree according to the scene preloading degree and the attention degree, and determines whether the next ship simulation view of the ship simulation view at the current moment needs to be preloaded. The present invention obtains the final preloading degree in real time, accurately analyzes whether the ship simulation view needs to be preloaded, improves the fluency of switching the ship simulation view, and better trains the operator's reaction ability.
[0089] Embodiment 2:
[0090] The present invention also proposes an interactive processing system for a virtual simulation training system, see Figure 5 , which shows a structural diagram of an interactive processing system for a virtual simulation training system provided by an embodiment of the present invention, the system comprising: an acquisition module 10, a scene preloading degree acquisition module 20, an attention degree acquisition module 30, a final preloading degree acquisition module 40 and a processing module 50.
[0091] The acquisition module 10 is used to obtain the environmental data of each node in the ship simulation view at each moment in the current time period and the number of operations of the control panel at each moment.
[0092] The scene preloading degree acquisition module 20 is used to obtain the key nodes at each moment according to the position of each node in the ship simulation view at each moment; and to obtain the scene preloading degree at the current moment according to the difference in the number of key nodes at each moment in the current time period and the number of key nodes between adjacent moments, as well as the difference in environmental data between the ship simulation view at the current moment and the adjacent previous moment.
[0093] The attention degree acquisition module 30 is used to acquire the attention degree at the current moment according to the number of operation of the control panel at the current moment and the difference in the number of operation between adjacent moments in the current time period.
[0094] The final preloading degree acquisition module 40 is used to acquire the final preloading degree at the current moment according to the scene preloading degree and attention degree at the current moment.
[0095] The processing module 50 is used to determine whether the next ship simulation view of the current ship simulation view needs to be preloaded according to the final preloading degree.
[0096] It should be noted that: the system provided in the above embodiment is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the computer device is divided into different functional modules to complete all or part of the functions described above. In addition, the interactive processing system for a virtual simulation training system provided in the above embodiment and the interactive processing method embodiment for a virtual simulation training system belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0097] Embodiment 3:
[0098] The present invention also proposes an interactive processing device for a virtual simulation training system, the device comprising a memory and a processor, wherein the memory stores an executable program code, and the processor is used to call and execute the executable program code to execute an interactive processing method for a virtual simulation training system provided in an embodiment of the present application. The device can be a chip, a component or a module, and the chip can include a connected processor and a memory; wherein the memory is used to store instructions, and when the processor calls and executes the instructions, the chip can execute an interactive processing method for a virtual simulation training system provided in the above embodiment.
[0099] In addition, the present application embodiment also protects a computer device, see Figure 6The computer device includes a memory 401, a processor 402, and a computer program 403 stored in the memory 401 and running on the processor 402, wherein when the processor 402 executes the computer program 403, the computer device can execute any one of the interactive processing methods for a virtual simulation training system introduced above.
[0100] Embodiment 4:
[0101] This embodiment also provides a computer-readable storage medium, which stores computer program code. When the computer program code runs on a computer, the computer executes the above-mentioned related method steps to implement an interactive processing method for a virtual simulation training system provided in the above embodiment.
[0102] Embodiment 5:
[0103] This embodiment also provides a computer program product. When the computer program product runs on a computer, it enables the computer to execute the above-mentioned related steps to implement an interactive processing method for a virtual simulation training system provided by the above embodiment.
[0104] Among them, the device, computer-readable storage medium, computer program product or chip provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.
[0105] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0106] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
Claims
1. An interactive processing method for a virtual simulation training system, characterized in that: The method comprises the following steps: Obtain the environmental data of each node in the ship simulation view at each moment in the current time period and the number of operations on the control panel at each moment; According to the position of each node in the ship simulation view at each moment, the key node at each moment is obtained; according to the difference between the number of key nodes at each moment in the current time period and the number of key nodes between adjacent moments, and the difference in environmental data between the ship simulation view at the current moment and the previous moment, the scene preloading degree at the current moment is obtained; According to the difference between the number of operations on the control panel at the current moment and the number of operations between adjacent moments in the current time period, the attention level at the current moment is obtained; According to the preloading degree and attention degree of the scene at the current moment, obtain the final preloading degree at the current moment; According to the final preloading degree, determining whether the next ship simulation view of the current ship simulation view needs to be preloaded; The method for obtaining the final preloading degree is: According to the scene preloading degree and attention degree at the current moment and the preset adjustment weight, the final preloading degree at the current moment is obtained; The multiplication result of the adjustment weight and the current attention level is used as the corrected attention level at the current moment; The result of negatively correlating the adjusted weights is multiplied by the current scene preloading degree, and the result is used as the corrected scene preloading degree at the current moment; According to the corrected attention degree and the corrected scene preloading degree at the current moment, the final preloading degree at the current moment is obtained; wherein the corrected attention degree and the corrected scene preloading degree are both positively correlated with the final preloading degree.
2. The interactive processing method for a virtual simulation training system according to claim 1, characterized in that: The method for obtaining the key nodes is: The Harris corner point detection algorithm is used to analyze the position of each node in the ship simulation view at each moment, and the corner point at each moment is obtained as the key node at the corresponding moment.
3. The interactive processing method for a virtual simulation training system according to claim 1, characterized in that: The method for obtaining the scene preloading degree is: According to the number of key nodes at each moment in the current time period and the difference in the number of key nodes between adjacent moments, the scene complexity at the current moment is obtained; wherein the number of key nodes is positively correlated with the scene complexity, and the difference in the number of key nodes between adjacent moments is negatively correlated with the scene complexity; According to the difference in environmental data between the ship simulation view at the current moment and the previous moment, the data fatigue degree at the current moment is obtained; According to the data fatigue degree and scene complexity degree at the current moment, the scene preloading degree at the current moment is obtained; wherein the data fatigue degree and the scene complexity degree are both positively correlated with the scene preloading degree.
4. The interactive processing method for a virtual simulation training system according to claim 3, characterized in that: The calculation formula of the scene complexity value specifically quantified by the scene complexity is: ; In the formula, is the scene complexity value at the current moment; T is the number of all moments in the current time period; is the number of key nodes at the tth moment in the current time period; is the number of key nodes at the t-1th moment in the current time period; is the first preset constant, greater than 0; is the absolute value function.
5. The interactive processing method for a virtual simulation training system according to claim 3, characterized in that: The method for obtaining the data fatigue degree is: Obtain the difference between the mean value of all environmental data in the ship simulation view at the current moment and the mean value of all environmental data in the ship simulation view at the previous moment as the first eigenvalue at the current moment; The result of accumulating the environmental data differences of all nodes at the same position between the ship simulation view at the current moment and the ship simulation view at the previous moment is taken as the second eigenvalue at the current moment; The data fatigue degree at the current moment is obtained according to the first eigenvalue and the second eigenvalue; wherein the first eigenvalue and the second eigenvalue are both negatively correlated with the data fatigue degree.
6. The interactive processing method for a virtual simulation training system according to claim 1, characterized in that: The method for obtaining the degree of attention is: Obtain the difference in the number of operations between the latter moment and the previous moment of two adjacent moments in the current time period as the first value; The result of accumulating and normalizing all the first values is used as the urgency of the current moment; The current attention level is obtained according to the number of control panel operation times and the urgency level at the current moment; wherein the number of control panel operation times and the urgency level at the current moment are both positively correlated with the attention level.
7. The interactive processing method for a virtual simulation training system according to claim 1, characterized in that: The method for determining whether the next ship simulation view of the current ship simulation view needs to be preloaded according to the final preloading degree is: When the final preloading degree meets the preset final preloading degree range, the next ship simulation view of the current ship simulation view needs to be preloaded.
8. The interactive processing method for a virtual simulation training system according to claim 1, characterized in that: The current moment is the last moment of the current time period.
