Limited space intelligent inspection path calculation method based on real-time sensor data and camera position calculation risk weight
By using an intelligent inspection path calculation method based on real-time sensor data and camera position to calculate risk weights, the inspection path is dynamically adjusted, solving the problem of rigidity in traditional inspection modes and enabling timely monitoring and smooth inspection of high-risk equipment.
Patent Information
- Application Number
- CN202611353906.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-02
- Publication Date
- 2026-11-27
AI Technical Summary
The existing inspection mode is rigid and cannot be dynamically adjusted according to the real-time operating status of the equipment or sudden alarms, resulting in delays in inspecting high-risk equipment and missing the best opportunity to handle the fault.
A method for calculating intelligent inspection paths in limited spaces based on real-time sensor data and camera position to calculate risk weights is proposed. Through a scene construction mapping module and a dynamic path planning module, the method monitors the equipment status in real time, dynamically adjusts the inspection path, and generates a smooth path curve.
It enables rapid response to emergencies, ensures timely monitoring of high-risk equipment, improves the timeliness of inspections and user experience, and adapts to the inspection needs of different industrial scenarios.
Smart Images

Figure CN123180737A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of DD technology, specifically referring to a method for calculating intelligent inspection paths in limited spaces based on real-time sensor data and camera position to calculate risk weights. Background Technology
[0002] In industrial sectors such as power, chemical, intelligent manufacturing, and large-scale infrastructure, regular inspections of equipment and the environment are a core element in ensuring production safety. Traditional inspection methods mainly rely on manual labor using paper forms or simple handheld terminals to check equipment one by one according to predetermined routes and cycles. This approach is not only time-consuming but also poses a direct threat to the personal safety of inspection personnel when high-altitude, high-pressure, or toxic and hazardous environments are involved. Although some companies have introduced video surveillance or independent sensor monitoring systems, these systems often operate independently, lacking an intuitive spatial correlation between video streams, sensor data, and equipment records. Maintenance personnel need to switch between different systems to obtain complete equipment status information, resulting in severe data fragmentation and making it difficult to form a holistic management perspective.
[0003] Existing automated or semi-automated inspection solutions typically employ fixed inspection logic, mechanically executing tasks according to a preset schedule and route. This rigid mode cannot be dynamically adjusted based on the real-time operating status of the equipment or sudden alarms, resulting in high-risk equipment being delayed in inspection due to being placed at the back of the inspection sequence, thus missing the best opportunity for fault handling. To address this, a method for calculating intelligent inspection paths in limited spaces based on risk weights calculated from real-time sensor data and camera positions is proposed. Summary of the Invention
[0004] To address the shortcomings of existing technologies, this invention provides a method for calculating intelligent inspection paths in limited spaces based on real-time sensor data and camera position to calculate risk weights, thus solving the problem of rigid inspection path planning in existing technologies that leads to an inability to respond to real-time risks.
[0005] The purpose of this invention is to provide a method for calculating intelligent inspection paths in a limited space based on real-time sensor data and camera position to calculate risk weights, so as to solve the problems mentioned in the background art.
[0006] To achieve the above objectives, the present invention provides the following technical solution: a method for calculating risk weights in a limited space for intelligent inspection, based on real-time sensor data and camera position calculation, including a scene construction and mapping module and a dynamic path planning module.
[0007] The scene construction and mapping module is used to construct a 3D virtual environment and establish data mapping relationships. This module calls the WebGL rendering engine to parse and render externally input 3D model files, constructing a visualized 3D virtual scene and initializing a virtual camera. Meanwhile, the scene construction mapping module traverses the model mesh in the 3D virtual scene, and uniquely binds the physical device ID with the corresponding model mesh based on the externally input device ledger data, and establishes a device space mapping table; Based on this, the scenario construction mapping module parses the geometric center information of each bound device in the device space mapping table, outputs a series of three-dimensional coordinate points, and marks the above three-dimensional coordinate points as target inspection points.
[0008] The dynamic path planning module is used to generate risk-driven inspection paths. This module monitors real-time sensor data streams from external sources and, combined with virtual camera position coordinates, calculates the real-time risk weight for each uninspected target inspection point using a risk weight formula.
[0009] The above risk weight formula determines the real-time risk weight based on the basic importance coefficient of the target inspection point, the adjustment coefficient of the alarm level on the weight, the real-time alarm level value, the adjustment coefficient of the camera distance on the weight, and the Euclidean distance between the target inspection point and the current virtual camera position.
[0010] The dynamic path planning module continuously compares real-time risk weights. When the real-time risk weight of a non-current location exceeds the preset risk threshold set according to the on-site safety management specifications and the upper limit of the equipment's basic weight, an interrupt command is triggered. The target inspection point corresponding to the aforementioned real-time risk weight is forcibly inserted into the first position of the inspection sequence, generating a reconstructed inspection sequence. Subsequently, the dynamic path planning module reads adjacent key nodes in the reconstructed inspection sequence, uses the path interpolation formula (including cubic polynomial coefficients) to calculate and generate a continuous curve connecting each key node, and outputs a smooth path curve.
[0011] Compared with the prior art, the beneficial effects of the present invention are: 1. This invention introduces a risk weight calculation and dynamic sequence reconstruction mechanism, which changes the traditional inspection system's ability to perform tasks according to a fixed preset route. The system can dynamically calculate risk weights based on the real-time alarm level and spatial distance of the equipment. Once a high-risk anomaly is detected, the original sequence is immediately adjusted and a smooth path curve containing interpolation algorithms is generated for priority inspection. This mechanism improves the inspection system's response speed to emergencies and ensures that high-risk equipment can be monitored in a timely manner.
[0012] 2. This invention uses a cubic spline interpolation algorithm to generate smooth path curves, ensuring the continuity of the virtual camera's movement in three-dimensional space. By solving a set of equations that satisfy position continuity, first derivative (velocity) continuity, and second derivative (acceleration) continuity, the generated path curves have no sharp inflection points, making the inspection process smoother and more natural, and improving the visual effect and user experience of the inspection.
[0013] 3. The risk weight calculation formula proposed in this invention comprehensively considers the importance of the equipment foundation, the real-time alarm level, and spatial distance factors, and can dynamically quantify the urgency of each inspection point; the formula parameters can be flexibly adjusted according to on-site safety management specifications to adapt to the inspection needs of different industrial scenarios, and have strong versatility and scalability. Attached Figure Description
[0014] Figure 1 This is an architecture diagram of the intelligent inspection path calculation method in a limited space based on real-time sensor data and camera position to calculate risk weights according to the present invention. Figure 2 This is a screenshot of the main interface of the present invention, which calculates risk weights based on real-time sensor data and camera positions to determine intelligent inspection path calculation in limited space. Figure 3 This is a pop-up window display of the stationing details of the intelligent inspection path calculation method in a limited space based on real-time sensor data and camera position calculation of risk weights according to the present invention. Figure 4 This is a global path overview diagram of the intelligent inspection path calculation method in a limited space based on real-time sensor data and camera position to calculate risk weights according to the present invention. Figure 5 This is a diagram of the dynamic path planning module architecture of the intelligent inspection path calculation method in a limited space based on real-time sensor data and camera position for calculating risk weights according to the present invention. Figure 6 This is an architecture diagram of the occlusion detection and processing module of the intelligent inspection path calculation method in a limited space based on real-time sensor data and camera position to calculate risk weights, as described in this invention. Detailed Implementation
[0015] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0016] Example Please see the appendix Figure 1This invention provides a method for calculating intelligent inspection paths in limited spaces based on risk weights calculated from real-time sensor data and camera positions. The system adopts a browser / server (B / S) architecture and runs on a web browser based on WebGL technology.
[0017] The system mainly consists of a scene construction and mapping module 100 and a dynamic path planning module 200. The modules work together through a data bus or event message mechanism to realize the entire process from scene initialization, risk weight calculation, inspection sequence reconstruction to smooth path generation.
[0018] In the initial stage of system operation, the scene construction and mapping module 100 is responsible for initializing the 3D visualization environment. The scene loading unit within this module 100 calls the WebGL rendering engine to parse and render the input 3D model file, constructing a visualized 3D virtual scene and completing the initial configuration of the virtual camera.
[0019] Meanwhile, the data mapping unit uses a spatial mapping program to traverse the model mesh in the three-dimensional virtual scene; based on the equipment ledger data, the unit associates the physical equipment ID with the corresponding model mesh in the three-dimensional space to establish an equipment spatial mapping table; the coordinate parsing unit then uses a coordinate extraction program to parse the geometric center coordinates of each bound equipment from the equipment spatial mapping table, outputs a series of three-dimensional coordinate points and marks them as target inspection points.
[0020] The risk calculation unit uses the risk weight formula to calculate the risk weight for each target inspection point that has not yet been inspected.
[0021] The above risk weight formula is: ; In the formula: For a moment Time Real-time risk weight values for each target inspection point; This is the basic importance coefficient for the target inspection point; This is the adjustment factor for the weight of the alarm level; For a moment The real-time alarm level value of the target inspection point; This is the adjustment coefficient for the camera distance on the weights; For a moment The Euclidean distance between the target inspection point and the current virtual camera position.
[0022] The sequence reconstruction unit continuously monitors real-time risk weights through the path management program. When the weight value of a non-current inspection point exceeds a preset threshold, the unit triggers an interrupt command and forcibly inserts the target inspection point corresponding to the high weight into the beginning of the inspection sequence, generating a reconstructed inspection sequence.
[0023] The trajectory generation unit calls the interpolation calculation program to read adjacent key nodes in the reconstructed inspection sequence. This unit uses the path interpolation formula to calculate and generate a continuous spatial curve connecting each point, and outputs a smooth path curve.
[0024] The above path interpolation formula is: 3D path planning and smoothing calculation: The system first bases its path planning on a preset sequence of inspection points. , where each point It automatically calculates an optimal smooth flight path. The path generation uses a cubic spline interpolation algorithm to ensure the camera position... Orientation As the parameter t changes smoothly, its position curve is composed of a piecewise cubic polynomial, ensuring that the following conditions are met at the path points: ,in, For the point The tangent vectors calculated based on the positions of the preceding and following points are used to control the smoothness of the curve and the flight attitude, and automatically calculate an optimal smooth flight path that passes through all points. This calculation process takes into account factors such as the shortest total path length, the gentleness of the camera turning angle, and avoiding collisions with obstacles in the 3D scene, and generates a spatial curve that allows the camera to fly smoothly.
[0025] See attached document Figure 2 In the scene construction and mapping module 100, the system uses WebGL technology to reconstruct the three-dimensional visualization environment of the physical site on the browser side and establishes a logical relationship between business data and three-dimensional spatial data.
[0026] The scene loading unit is responsible for the initialization and rendering of the 3D virtual scene. The system creates a Canvas element in the document object model (DOM) of the web browser (such as Chrome or Firefox) as a rendering container.
[0027] A WebGL rendering engine (such as a renderer built on the Three.js or Babylon.js graphics library) is instantiated and bound to the Canvas context. The input 3D model file is in GLTF (Graphics Language Transmission Format) or GLB (Binary GLTF) format, which supports compressed storage of geometry, materials, textures, and animations.
[0028] The WebGL rendering engine calls the corresponding loader to read the binary data stream of the 3D model file, uses the Draco compression algorithm to decompress the vertex data, assembles the parsed geometry and material data into scene graph nodes, and finally draws a visualized 3D virtual scene in the Canvas.
[0029] exist Figure 2 The interface shown displays a completed 3D virtual scene in the main viewport, including high-precision models of the factory, pipelines, and equipment. The timeline task cards at the bottom of the interface and the inspection point list on the left correspond to the business data associated with this scene.
[0030] The system configures a virtual camera during the rendering loop, setting the field of view (FOV) and near / far clipping plane parameters (e.g., FOV set to 45 degrees, near clipping plane to 0.1 meters, and far clipping plane to 1000 meters) to ensure the correct display of scene perspective. For conventional graphics processing workflows such as lighting rendering, shadow calculation, and texture mapping, those skilled in the art can implement them using existing shader programming techniques, which are well-known in the field and will not be elaborated upon here.
[0031] The data mapping unit establishes data association between physical devices and virtual models through a spatial mapping program. The spatial mapping program receives device ledger data containing physical device IDs, device names, and device types. This program performs a traversal operation, recursively accessing each model mesh in the 3D virtual scene. During traversal, the program reads the model mesh's metadata (UserData) or name attributes and performs string matching against the physical device IDs in the device ledger data.
[0032] When a match is successful, the system instantiates a hash map or dictionary object in memory, which is the device space mapping table. This table uses the physical device ID as the key and the memory reference or unique identifier (UUID) of the corresponding model mesh object as the value, thereby realizing the index mapping between the model and the data.
[0033] The coordinate analysis unit uses a coordinate extraction program to parse the three-dimensional coordinate information of the target inspection point from the equipment space mapping table. For each model mesh in the mapping table, the coordinate extraction program calculates its axis-aligned bounding box (AABB).
[0034] Specifically, the program iterates through all vertex coordinates of the grid, filters out the maximum and minimum values along the X, Y, and Z axes, and constructs the smallest cuboid enclosing the grid. Then, the program uses the formula for calculating the geometric center of the bounding box (i.e., the arithmetic mean of the maximum and minimum values) to obtain the 3D coordinates. These 3D coordinates are marked as target inspection points for subsequent path planning and camera focusing anchor points. For some special equipment, the coordinate extraction program can also read the coordinates of pre-set auxiliary positioning points (dummy objects) from the model as target inspection points to meet the observation requirements of specific viewpoints.
[0035] See attached document Figure 4 and attached Figure 5 The dynamic path planning module 200 is responsible for generating and dynamically adjusting the flight trajectory of the virtual camera based on business priorities and real-time risk conditions.
[0036] During the system initialization phase, the dynamic path planning module 200 reads all target inspection points output by the scene construction and mapping module 100 and forms a default inspection sequence.
[0037] like Figure 4 As shown, the trajectory generation unit calculates and draws the initial green inspection link connecting point 1 to point 7 in the three-dimensional virtual scene based on the default sequence. The arrows indicate the inspection direction under normal conditions, and each bubble marked with a number corresponds to a target device node to be inspected.
[0038] During the inspection process, in order to respond to emergencies, the risk calculation unit runs a weight calculation program to perform real-time monitoring. This program pulls real-time sensor data streams from all equipment in the field at a fixed frequency (e.g., once per second) through an external data interface. For each target inspection point that has not yet been inspected, the weight calculation program performs real-time calculations based on the risk weight formula to quantify the urgency of inspecting that point.
[0039] The above risk weight formula is: ; In the formula: For a moment Time Real-time risk weight values for each target inspection point; This is the basic importance coefficient for the target inspection point. This coefficient is set according to the criticality of the equipment in the production process. For example, it is set to 10.0 for the core compressor unit and 5.0 for the auxiliary water pump. This is the adjustment factor for the alarm level's weight. This factor is set based on the system's sensitivity preference to abnormal states. For example, it can be set to 2.0 to amplify the impact of alarms. For a moment The real-time alarm level value of the target inspection point is derived from the standard alarm definition of the industrial control system. For example, the value is 0 for normal state, 1 for general alarm, and 5 for severe alarm. This is the adjustment coefficient for the camera distance to the weight. This coefficient is set according to the principle of spatial proximity. For example, it is set to 50.0 to appropriately increase the weight of nearby points. For a moment The Euclidean distance between the target inspection point and the current virtual camera position.
[0040] The sequence reconstruction unit continuously monitors the real-time risk weights calculated above using the path management program. The system has a preset reconstruction trigger threshold (this threshold is set according to the on-site safety management specifications and the upper limit of the equipment's basic weight; for example, setting it to 80.0 means that it will only be triggered when a critical alarm occurs on a highly important device).
[0041] When the weight value of a non-current target inspection point in the sequence exceeds a certain threshold, the path management program determines that a high-risk emergency has occurred. At this time, the program immediately triggers a path reconstruction command, resets the current path time parameters, removes the target inspection point corresponding to the high weight from its original position in the sequence, and forcibly inserts it at the beginning of the sequence to be inspected (i.e., the next target point of the current camera), generating a reconstructed inspection sequence. This mechanism ensures that the system can overcome [challenges]. Figure 4 The fixed linear sequence shown enables the adjustment of the inspection sequence based on risk priority.
[0042] To ensure visual continuity of the virtual camera's movement between different points and avoid path bends, the trajectory generation unit calls an interpolation calculation program to smooth the reconstructed inspection sequence. This program reads four adjacent control points in the sequence (including the current point, the target point, and preceding and following auxiliary points) and uses cubic spline interpolation or the Catmull-Rom spline algorithm to solve for the polynomial parameters connecting each point. The program then uses the path interpolation formula to calculate a series of continuous three-dimensional spatial coordinate vectors between two points; these coordinate points form the smooth path curve.
[0043] The above path interpolation formula is: ; In the formula: For the normalized time parameter is The three-dimensional spatial coordinate vector on the smooth path curve; Let the vector be the coefficients of the cubic terms of a cubic polynomial; This is the vector of coefficients of the quadratic term in a cubic polynomial; Let the vector be the coefficients of the linear terms of a cubic polynomial; Let be the coefficient vector of the constant term of a cubic polynomial.
[0044] The above coefficient vector It is obtained by solving a system of equations. The constraints of this system of equations include the continuity of the curve's position at each control point, the continuity of the first derivative (velocity), and the continuity of the second derivative (acceleration), thereby ensuring that the generated path curve has a smooth transition in three-dimensional space without sharp inflection points.
[0045] The intelligent inspection path calculation method for limited space based on real-time sensor data and camera position calculation risk weight provided by the embodiments of the present invention realizes three-dimensional visualization inspection of industrial sites through a lightweight browser architecture.
[0046] The system uses the scene construction mapping module 100 to establish a semantic index between physical devices and three-dimensional virtual space, providing a spatial reference for inspection tasks.
[0047] Based on this, the dynamic path planning module 200 breaks through the limitations of traditional fixed sequence inspection. It can dynamically reconstruct the inspection sequence based on the real-time risk weight calculation results and generate a smooth path curve using the cubic spline interpolation algorithm, realizing the transformation from a fixed process to a risk-driven mode.
[0048] The embodiments of the present invention construct an intelligent inspection path planning method with dynamic response capability, which improves the timeliness and decision-making efficiency of station inspection.
[0049] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their likenesses.
[0050] The present invention and its embodiments have been described above. This description is not restrictive, and the accompanying drawings are only one embodiment of the present invention; the actual structure is not limited thereto. In conclusion, if those skilled in the art are inspired by this description and design similar structures and embodiments without departing from the spirit of the invention, such designs should fall within the protection scope of the present invention.
Claims
1. A method for calculating intelligent inspection paths in finite space based on risk weights calculated from real-time sensor data and camera positions, characterized in that: include: The scene construction and mapping module is used to construct a 3D virtual scene and establish a device space mapping table, and output the target inspection point locations; The dynamic path planning module is used to calculate real-time risk weights based on the target inspection points, reconstruct the inspection sequence, and calculate and output a smooth path curve.
2. The method for calculating intelligent inspection paths in finite space based on real-time sensor data and camera position risk weights as described in claim 1, characterized in that: The scene construction mapping module includes a scene loading unit; The scene loading unit is used to call the WebGL rendering engine to parse and render the externally input 3D model file in order to perform the operation of building a 3D virtual scene and initialize the virtual camera.
3. The method for calculating intelligent inspection paths in a limited space based on real-time sensor data and camera position risk weights as described in claim 1, characterized in that: The scene construction mapping module also includes: The data mapping unit is used to traverse the model mesh in the three-dimensional virtual scene, uniquely bind the physical device ID with the corresponding model mesh according to the externally input device ledger data, and establish the device space mapping table; The coordinate parsing unit is used to parse the geometric center information of each bound device in the virtual space from the device space mapping table, output three-dimensional coordinate points, and mark the three-dimensional coordinate points as the target inspection points.
4. The method for calculating intelligent inspection path in a limited space based on real-time sensor data and camera position risk weights as described in claim 1, characterized in that: The dynamic path planning module includes a risk calculation unit; The risk calculation unit is used to monitor the real-time sensor data stream accessed from the outside in real time, and, in conjunction with the virtual camera position coordinates, calculate the real-time risk weight for each target inspection point that has not yet been inspected using the risk weight formula.
5. The method for calculating intelligent inspection paths in finite space based on real-time sensor data and camera position risk weights as described in claim 1, characterized in that: The dynamic path planning module also includes a sequence reconstruction unit; The sequence reconstruction unit is used to continuously compare the real-time risk weights; When the real-time risk weight of a non-current location exceeds a preset risk threshold, an interrupt command is triggered, and the target inspection point corresponding to the real-time risk weight is forcibly inserted into the first position of the inspection sequence to generate the reconstructed inspection sequence. The preset risk threshold is set in advance based on on-site safety management regulations and the upper limit of the basic weight of the equipment.
6. The method for calculating intelligent inspection paths in finite space based on real-time sensor data and camera position to calculate risk weights according to claim 1, characterized in that: The dynamic path planning module also includes a trajectory generation unit; The trajectory generation unit is used to read adjacent target inspection points in the reconstructed inspection sequence, use path interpolation to generate a continuous curve connecting each target inspection point, and calculate and output the smooth path curve.
