Development method and device based on digital twin COM interface
Through digital twin technology, the COM interface is built, and the point data of rail transit and municipal transportation comprehensive monitoring systems are logically calculated and regularized, and the Html resource processing is optimized, which solves the inefficiency and high bandwidth occupancy of existing systems when processing large amounts of data. The problem of this achieves efficient and real-time data processing and optimization.
Patent Information
- Application Number
- CN202411587661.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-07
- Publication Date
- 2025-02-14
AI Technical Summary
When the existing rail transit and municipal transportation comprehensive monitoring systems process large amounts of point data, they are inefficient and difficult to meet the high requirements of real-time and accuracy. When the front-end HMI interface displays data, the resource files are too large and the bandwidth resource occupancy rate is too large. High, affecting system response speed and user experience.
Through digital twin technology, the COM interface is built, and the point data required for the front-end HMI interface is logically calculated and regularized, the point data representation is optimized, and the Html resources are processed through the COM interface program to reduce the resource file size and reduce the Bandwidth resource occupancy rate.
It improves the efficiency and accuracy of data processing, ensures real-time updates of data, meets the display needs of the front-end HMI interface, and reduces the utilization rate of bandwidth resources, and improves the system's response speed and user experience.
Smart Images

Figure CN119441653A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing and optimization, and more specifically, to a method and device for developing a digital twin COM interface. Background Art
[0002] The existing rail transit and municipal transportation integrated monitoring systems face problems such as large data volume, frequent updates, and high bandwidth resource usage when processing a large amount of point data. These systems usually need to monitor and analyze a large amount of geographic information, equipment status, operating parameters, historical maintenance records and other data in real time. However, traditional data processing methods are often inefficient and difficult to meet the high requirements of modern monitoring systems for real-time and accuracy. In addition, the front-end HMI interface needs to process a large amount of Html resources when displaying these data, which not only increases the size of the resource file, but also increases the demand for bandwidth resources, affecting the system's response speed and user experience.
[0003] In the process of implementing the embodiments of the present invention, the inventors found that there are at least the following problems or defects in the prior art: First, the point data required by the front-end HMI interface lacks effective logical operations and regular processing, resulting in insufficient optimization of data representation and difficulty in meeting the user's needs for intuitiveness and operability. Secondly, the processing method of Html resources is relatively primitive and does not make full use of modern encoding and compression technologies, resulting in excessively large resource files and high bandwidth resource occupancy. Finally, the existing data processing devices lack real-time and predictive capabilities when processing and optimizing point data, and cannot effectively reflect the latest status and future trends of point data. Summary of the invention
[0004] The present invention provides a method and device for developing a digital twin COM interface.
[0005] In a first aspect of the present invention, a method for developing a digital twin COM interface is provided, comprising:
[0006] Based on the actual project data of rail transit and municipal transportation integrated monitoring system, a COM interface is constructed through digital twin technology;
[0007] Perform logical operations and regular processing on the point data required by the front-end HMI interface to obtain optimized point data representation;
[0008] Based on the optimized point data representation, the Html resource is processed through the COM interface program to reduce the size of the resource file and reduce the occupancy rate of the bandwidth resource;
[0009] Among them, the actual engineering project data includes the geographic information of the points, equipment status, operating parameters and historical maintenance records.
[0010] Furthermore, the actual project data based on the rail transit and municipal transportation integrated monitoring system is used to construct a COM interface through the digital twin technology, and the point data required by the front-end HMI interface is logically operated and regularized to obtain an optimized point data representation, including:
[0011] Taking the point configuration of the actual engineering project as input, a digital twin model of the point data is generated by using digital twin technology;
[0012] Through the COM interface program, the digital twin model is subjected to logical operations and regularization processing to obtain an optimized point data representation.
[0013] Furthermore, the Html resource is processed through the COM interface program to reduce the size of the resource file and reduce the occupancy rate of the bandwidth resource, including:
[0014] Decompose Html resources into tags, attributes, attribute values, and text values for deduplication and uniform encoding. The encoding consists of two characters to represent tags, attributes, and attribute values.
[0015] Create a code set and store it on the front-end server for subsequent Html resource encoding and decoding processes.
[0016] Furthermore, the Html resource is decomposed into tags, attributes, attribute values and text values for deduplication processing, and uniform encoding is performed. The encoding consists of two characters, which are used to represent tags, attributes and attribute values, including:
[0017] Based on the Html resource, extract the initial encoding representation of each tag, attribute, attribute value and text value respectively;
[0018] Based on the coding rule, the initial coding representation is iteratively updated until an iteration termination condition is reached, and the last layer coding representation is used as the unified coding.
[0019] Furthermore, the code set is prepared and stored in the front-end server for subsequent Html resource encoding and decoding processes, including:
[0020] Associating the encoding set with the encoding information of the Html resource and storing it in the database of the front-end server;
[0021] When the front-end HMI interface requests data, the database is queried through the COM interface program to obtain the corresponding Html encoding information.
[0022] Furthermore, the method further comprises:
[0023] When the front-end HMI interface requests data, the front-end locally calls the back-end interface, consults the database according to the parameters passed by the front-end, and the back-end obtains the Html encoding information from the database and returns it to the front-end locally;
[0024] The front-end locally loads the encoding set through the front-end server and parses the Html page code with the Html encoding obtained from the back-end;
[0025] The front-end system renders the parsed Html page code on the HMI for display.
[0026] Furthermore, logical operations and regular processing are performed on the point data required by the front-end HMI interface to obtain optimized point data representations including:
[0027] Execute the data screening process to select data fields related to the front-end HMI interface display from the original point data;
[0028] Perform data integration steps to ensure consistency and integrity of selected data;
[0029] Apply predefined rules to format and standardize the integrated data;
[0030] Perform logical operations, including conditional judgment and data association, to generate data representation that is more intuitive to front-end users;
[0031] Implement data optimization measures, such as compression and indexing, to improve the efficiency of data access and processing;
[0032] Strengthen security during data processing, including data encryption and access control;
[0033] Verify the accuracy and reliability of optimized data to ensure that it meets the display requirements of the front-end HMI interface;
[0034] Ensure that the optimized point data representation can be updated in real time to reflect the latest status of the point data.
[0035] Furthermore, the digital twin model is constructed in the following manner:
[0036] Collect real-time and historical data of points;
[0037] Integrate multi-source data using data fusion technology;
[0038] Apply machine learning algorithms to analyze data to identify key characteristics and behavior patterns of points;
[0039] A digital twin model is constructed based on the analysis results, and the model is used to reflect the current status of the point in real time and predict the future status.
[0040] In a second aspect of the present invention, a device for developing a digital twin COM interface is provided, comprising:
[0041] The data processing unit is used to build a COM interface based on the actual project data of the rail transit and municipal transportation integrated monitoring system through digital twin technology, perform logical operations and regular processing on the point data required by the front-end HMI interface, and obtain optimized point data representation;
[0042] The resource processing unit is used to process the Html resource through the COM interface program based on the optimized point data representation, thereby reducing the size of the resource file and lowering the occupancy rate of the bandwidth resource.
[0043] Further, including:
[0044] The acquisition unit is used to obtain the point data required by the front-end HMI interface;
[0045] A processing unit is used to process Html resources through a COM interface program based on the digital twin COM interface development method described in any one of claims 1 to 8 to obtain an optimized point data representation.
[0046] According to the above-mentioned embodiments of the present invention, at least the following beneficial effects are achieved: by adopting digital twin technology and COM interface, the present invention can realize logical operation and regular processing of the point data required by the front-end HMI interface of the rail transit and municipal transportation integrated monitoring system, thereby obtaining an optimized point data representation. This method can improve the efficiency and accuracy of data processing, ensure real-time updating of data, and meet the display requirements of the front-end HMI interface. At the same time, by optimizing the processing method of Html resources, the size of resource files can be reduced, the occupancy rate of bandwidth resources can be reduced, and the response speed of the system and user experience can be improved.
[0047] In addition, by constructing a digital twin model, the present invention can reflect the current state of the point in real time and predict the future state, thereby enhancing the real-time and predictive nature of data processing. The construction of a digital twin model involves collecting real-time and historical data of the point, integrating multi-source data using data fusion technology, and applying machine learning algorithms for analysis to identify the key characteristics and behavior patterns of the point. This can not only improve the efficiency of data access and processing, but also enhance the security of the data processing process, ensuring the accuracy and reliability of the optimized data. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] The above and other objects, features and advantages of the exemplary embodiments of the present invention will become readily understood by reading the detailed description below with reference to the accompanying drawings. In the accompanying drawings, several embodiments of the present invention are shown in an exemplary and non-limiting manner, in which:
[0049] Figure 1 A flowchart of a digital twin COM interface development method provided by an embodiment of the present invention;
[0050] Figure 2 A schematic diagram of the structure of a digital twin COM interface development device provided by an embodiment of the present invention;
[0051] Figure 3 The schematic diagram schematically shows the structure of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0052] The principles and spirit of the present invention will be described below with reference to several exemplary embodiments. It should be understood that these embodiments are provided only to enable those skilled in the art to better understand and implement the present invention, and are not intended to limit the scope of the present invention in any way. On the contrary, these embodiments are provided to make the present invention more thorough and complete, and to fully convey the scope of the present invention to those skilled in the art.
[0053] Those skilled in the art know that the embodiments of the present invention can be implemented as a system, device, apparatus, method or computer program product. Therefore, the present invention can be specifically implemented in the following forms, namely: complete hardware, complete software (including firmware, resident software, microcode, etc.), or a combination of hardware and software.
[0054] It should be noted that any number of elements in the drawings is for illustration rather than limitation, and any naming is only for distinction and does not have any limiting meaning.
[0055] Reference below Figure 1 , Figure 1 The following is a flow chart of a method for developing a digital twin COM interface according to an embodiment of the present invention. Figure 1 As shown, the digital twin COM interface development method 100 includes:
[0056] Step 101, based on the actual project data of the rail transit and municipal transportation integrated monitoring system, a COM interface is constructed through digital twin technology;
[0057] Step 102, performing logical operations and regularization processing on the point data required by the front-end HMI interface to obtain an optimized point data representation;
[0058] Step 103, based on the optimized point data representation, the Html resource is processed through the COM interface program to reduce the size of the resource file and reduce the occupancy rate of the bandwidth resource;
[0059] Among them, the actual engineering project data includes the geographic information of the points, equipment status, operating parameters and historical maintenance records.
[0060] It should be noted that this embodiment involves a development method based on a digital twin COM interface, which uses digital twin technology to build a COM interface to process actual engineering project data of rail transit and municipal transportation integrated monitoring systems. In this context, digital twin refers to the creation of a virtual copy of a physical entity that can reflect the state of the entity in real time, and the COM interface refers to the Component Object Model interface, which allows different software components to interact in multiple programming languages.
[0061] Specifically, this method first needs to collect actual project data of rail transit and municipal transportation integrated monitoring systems, which include geographic information, equipment status, operating parameters and historical maintenance records of points. Then, through digital twin technology, a virtual model that can reflect these data in real time is constructed. Next, logical operations and regularization are performed on the point data required by the front-end HMI interface to obtain optimized point data representation. In this process, specific parameters can be set, such as data update frequency, data accuracy requirements, etc., to ensure the accuracy and real-time performance of the model.
[0062] Preferably, in order to further optimize the data processing process, data screening and integration steps can be adopted to select data fields related to the front-end HMI interface display from the original point data, and ensure the consistency and integrity of the selected data. In addition, predefined rules can be applied to format and standardize the integrated data, and perform logical operations, including conditional judgment and data association, to generate a more intuitive data representation for front-end users.
[0063] Furthermore, in order to improve the efficiency of data access and processing, data optimization measures such as compression and indexing can be implemented. At the same time, security during data processing, including data encryption and access control, can be strengthened to ensure data security and reliability. Finally, ensure that the optimized point data representation can be updated in real time to reflect the latest status of the point data.
[0064] In some embodiments, the actual project data based on the rail transit and municipal transportation integrated monitoring system is used to construct a COM interface through digital twin technology, and logical operations and regular processing are performed on the point data required by the front-end HMI interface to obtain an optimized point data representation, including:
[0065] Taking the point configuration of the actual engineering project as input, a digital twin model of the point data is generated by using digital twin technology;
[0066] Through the COM interface program, the digital twin model is subjected to logical operations and regularization processing to obtain an optimized point data representation.
[0067] It should be noted that this implementation is based on the actual project data of the rail transit and municipal transportation integrated monitoring system, builds a COM interface through digital twin technology, and performs logical operations and regular processing on the point data required by the front-end HMI interface to obtain optimized point data representation. Here, the digital twin model refers to a virtual model corresponding to the actual project created using digital technology, which can simulate and reflect the status and behavior of the actual project.
[0068] Specifically, the implementation method first involves using the point configuration of the actual engineering project as input and using digital twin technology to generate a digital twin model of the point data. This includes collecting real-time data and historical data of the points, integrating multi-source data using data fusion technology, and applying machine learning algorithms to analyze the data to identify the key characteristics and behavior patterns of the points. Then, through the COM interface program, the digital twin model is subjected to logical operations and regularization processing to obtain an optimized point data representation. In this process, specific parameters, such as data update frequency, data accuracy requirements, etc., can be set to ensure the accuracy and real-time performance of the model.
[0069] Preferably, in order to further improve the efficiency and accuracy of data processing, the data screening process can be refined to ensure that data fields related to the front-end HMI interface display are selected from the original point data.
[0070] Furthermore, a data integration step can be performed to ensure the consistency and integrity of the selected data. The integrated data is formatted and standardized using predefined rules, and logical operations are performed, including conditional judgment and data association, to generate a more intuitive data representation for front-end users.
[0071] Furthermore, data optimization measures such as compression and indexing are implemented to improve the efficiency of data access and processing. At the same time, security during data processing is strengthened, including data encryption and access control, to ensure data security and reliability. Ensure that the optimized point data representation can be updated in real time to reflect the latest status of the point data. As an alternative, different machine learning algorithms or data fusion techniques can be considered to adapt to different data characteristics and project requirements.
[0072] In some embodiments, the Html resource is processed through the COM interface program to reduce the size of the resource file and reduce the occupancy rate of the bandwidth resource, including:
[0073] Decompose Html resources into tags, attributes, attribute values, and text values for deduplication and uniform encoding. The encoding consists of two characters to represent tags, attributes, and attribute values.
[0074] Create a code set and store it on the front-end server for subsequent Html resource encoding and decoding processes.
[0075] It should be noted that this embodiment involves processing Html resources through a COM interface program to reduce the size of resource files and reduce the occupancy rate of bandwidth resources. In this context, Html resources refer to Hypertext Markup Language (HTML) files that constitute web page content, and deduplication processing refers to eliminating duplicate tags, attributes, attribute values, and text values to reduce file size.
[0076] Specifically, the implementation method includes decomposing the Html resources into tags, attributes, attribute values and text values for deduplication and uniform encoding. The code consists of two characters and is used to represent tags, attributes and attribute values. In this process, encoding rules can be set. For example, a specific algorithm is used to determine the encoding of each element to ensure the uniqueness and readability of the encoding. In addition, a code set can be created and stored in the front-end server for subsequent Html resource encoding and decoding processes. The code set can be a database or file that contains all possible encodings and corresponding Html elements.
[0077] Preferably, in order to further improve the processing efficiency of Html resources, an automated tool can be used to decompose Html resources and perform deduplication processing. In addition, the encoding rules can be optimized to make them more compact to further reduce the file size. For example, Huffman coding or other compression algorithms can be used to generate shorter codes.
[0078] Furthermore, when making a code set, you can consider using a database index to improve query efficiency. When the front-end HMI interface requests data, you can query the database through the COM interface program, obtain the corresponding Html encoding information, and then decode it to quickly render the Html page code. As an alternative, you can consider using different compression algorithms or database management systems to adapt to different application scenarios and performance requirements.
[0079] In some embodiments, the Html resource is decomposed into tags, attributes, attribute values and text values for deduplication processing, and uniform encoding is performed. The encoding consists of two characters, which are used to represent tags, attributes and attribute values, including:
[0080] Based on the Html resource, extract the initial encoding representation of each tag, attribute, attribute value and text value respectively;
[0081] Based on the coding rule, the initial coding representation is iteratively updated until an iteration termination condition is reached, and the last layer coding representation is used as the unified coding.
[0082] It should be noted that this implementation describes in detail how to decompose Html resources into tags, attributes, attribute values and text values for deduplication and unified encoding. Deduplication here refers to eliminating duplicate elements in Html resources, and unified encoding refers to assigning short and unique codes to these elements to reduce file size and improve transmission efficiency. Iterative update refers to gradually improving the coding representation through repeated optimization processes until the optimal solution is reached.
[0083] Specifically, the implementation method first involves extracting the initial coding representation of each tag, attribute, attribute value and text value based on the Html resource, which means that for each element in the Html document, an initial coding needs to be determined.
[0084] More specifically, the initial encoding can be a hash value based on the element name, or a short code assigned based on the frequency of the element in the document. Then, based on the encoding rules, these initial encoding representations are iteratively updated until the iteration termination condition is reached. The iteration termination condition can be reaching a predetermined encoding length, or when further encoding optimization no longer significantly reduces the file size.
[0085] Preferably, in order to further refine the operation steps, a specific algorithm can be used to perform the iterative update process. For example, a greedy algorithm can be used to select the encoding scheme that can currently bring the maximum file compression effect in each iteration. In addition, a threshold can be set, and when the reduction in the encoding length is lower than this threshold, the iterative process stops.
[0086] Furthermore, in practical applications, machine learning methods can be used to predict and optimize the encoding representation to further improve the efficiency and accuracy of the encoding. As an alternative, different data structures can be used to store the encoding set, such as a tree structure to increase the speed of encoding and decoding. In addition, different encoding strategies can be explored, such as context-based encoding, to adapt to different Html resource characteristics.
[0087] In some embodiments, the making of the code set and storing it in the front-end server for subsequent Html resource encoding and decoding processes includes:
[0088] Associating the encoding set with the encoding information of the Html resource and storing it in the database of the front-end server;
[0089] When the front-end HMI interface requests data, the database is queried through the COM interface program to obtain the corresponding Html encoding information.
[0090] It should be noted that this embodiment describes how to make a code set and store it in a front-end server for subsequent Html resource encoding and decoding processes. Here, a code set refers to a set of encoding mapping relationships of all tags, attributes, attribute values, and text values in an Html resource, and a front-end server refers to a server that hosts and provides web content to users.
[0091] Specifically, the implementation method first involves associating the code set with the coding information of the Html resource and storing it in the database of the front-end server. This means that for each Html element, a corresponding record needs to be created in the database, and the record contains the element's coding and its corresponding original information.
[0092] More specifically, the database can be a relational database, such as MySQL or PostgreSQL, or a non-relational database, such as MongoDB. The specific choice depends on the needs and scale of the project. When the front-end HMI interface requests data, the database is queried through the COM interface program to obtain the corresponding Html encoding information. This process involves database query optimization to ensure the efficiency of the query.
[0093] Preferably, in order to improve the efficiency of encoding and decoding, an index can be used in the database to speed up the query process. For example, an index can be established for the encoding field to quickly locate the corresponding Html element information. In addition, a cache mechanism can be used to cache frequently accessed encoding information in the memory to reduce the number of accesses to the database.
[0094] Furthermore, when the front-end HMI interface requests data, the COM interface program can first check whether the required encoding information is in the cache, and if not, query the database. As an alternative, you can consider using a content distribution network (CDN) to store the encoding set, which can further reduce the load on the server and improve the access speed of global users.
[0095] Furthermore, we can also explore the use of different data compression algorithms, such as GZIP or Brotli, to further reduce the size of the encoded information and improve transmission efficiency.
[0096] In some embodiments, the method further comprises:
[0097] When the front-end HMI interface requests data, the front-end locally calls the back-end interface, consults the database according to the parameters passed by the front-end, and the back-end obtains the Html encoding information from the database and returns it to the front-end locally;
[0098] The front-end locally loads the encoding set through the front-end server and parses the Html page code with the Html encoding obtained from the back-end;
[0099] The front-end system renders the parsed Html page code on the HMI for display.
[0100] It should be noted that this embodiment covers the data processing flow when the front-end HMI interface requests data. In this flow, the front-end HMI interface refers to the monitoring system interface that the user directly interacts with, and the back-end interface refers to the program interface provided by the server for data interaction. This process ensures that the front-end interface can obtain and display the latest data in a timely manner.
[0101] Specifically, the implementation method first involves the front-end local calling the back-end interface, consulting the database according to the parameters passed by the front-end, and the back-end obtaining the Html encoding information from the database and returning it to the front-end local. This means that when a user or system requests data, the front-end interface will send a request to the server, and the server will query the database according to the parameters in the request, retrieve the corresponding Html encoding data, and send this data back to the front-end. In this process, parameters such as the frequency of requests, the update interval of data, etc. can be set to optimize the real-time performance of the data and the response speed of the system.
[0102] Preferably, in order to further improve the real-time and accuracy of data, WebSocket or long polling technology can be used to achieve real-time communication between the front end and the back end. In this way, the server can immediately push the latest Html encoding information to the front end when the data is updated, instead of waiting for regular requests from the front end.
[0103] Furthermore, an efficient parsing engine can be implemented on the front-end server to quickly load and parse the Html code obtained from the back-end to reduce rendering time. As an alternative, you can consider using server-side rendering (SSR) technology, so that the rendering of the Html page code can be completed on the server side, and then the complete page is sent to the front-end, thereby reducing the computing burden of the front-end. In addition, you can also set up a load balancer to disperse requests and improve the scalability and reliability of the system.
[0104] In some embodiments, performing logical operations and regularization processing on the point data required by the front-end HMI interface to obtain optimized point data representation includes:
[0105] Execute the data screening process to select data fields related to the front-end HMI interface display from the original point data;
[0106] Perform data integration steps to ensure consistency and integrity of selected data;
[0107] Apply predefined rules to format and standardize the integrated data;
[0108] Perform logical operations, including conditional judgment and data association, to generate data representation that is more intuitive to front-end users;
[0109] Implement data optimization measures, such as compression and indexing, to improve the efficiency of data access and processing;
[0110] Strengthen security during data processing, including data encryption and access control;
[0111] Verify the accuracy and reliability of optimized data to ensure that it meets the display requirements of the front-end HMI interface;
[0112] Ensure that the optimized point data representation can be updated in real time to reflect the latest status of the point data.
[0113] It should be noted that this embodiment describes in detail the method of performing logical operations and regular processing on the point data required by the front-end HMI interface. The logical operations and regular processing here refer to processing the data through a series of predefined logical rules and operations to generate a more intuitive and useful data representation for the front-end user. The optimized point data representation means that the processed data is more streamlined and efficient, and is easy for the front-end interface to display and the user to understand.
[0114] Specifically, the implementation method first involves performing a data screening process to select data fields related to the front-end HMI interface display from the original point data. This includes the real-time status, historical trends, alarm information, etc. of the point. Next, a data integration step is performed to ensure the consistency and integrity of the selected data, such as by merging information from different data sources, or by removing duplicate data entries. Then, predefined rules are applied to format and standardize the integrated data, for example, converting temperature data to Celsius or Fahrenheit, or converting timestamps to local time format. In addition, logical operations, including conditional judgments and data associations, are performed to generate a more intuitive data representation for front-end users, such as calculating the efficiency index of the equipment based on its operating status.
[0115] Preferably, in order to further improve the efficiency and accuracy of data processing, data optimization measures such as compression and indexing can be implemented to improve the speed of data access and processing. At the same time, the security of the data processing process is strengthened, including data encryption and access control, to protect the data from unauthorized access or tampering. In addition, the accuracy and reliability of the optimized data are verified to ensure that the display requirements of the front-end HMI interface are met, which involves data verification and error handling mechanisms.
[0116] Furthermore, to ensure that the optimized point data representation can be updated in real time, an event-driven or timed refresh mechanism can be used to reflect the latest status of the point data. As an alternative, you can consider using different data storage and processing technologies, such as using a time series database to store and query point data, or using a stream processing framework to process and analyze data streams in real time.
[0117] In some embodiments, the digital twin model is constructed as follows:
[0118] Collect real-time and historical data of points;
[0119] Integrate multi-source data using data fusion technology;
[0120] Apply machine learning algorithms to analyze data to identify key characteristics and behavior patterns of points;
[0121] A digital twin model is constructed based on the analysis results, and the model is used to reflect the current status of the point in real time and predict the future status.
[0122] It should be noted that this embodiment describes the construction process of the digital twin model, which involves collecting real-time data and historical data of points. A digital twin model refers to a virtual model that accurately maps a specific entity or system and can simulate the behavior and state of the entity in the real world. In this process, real-time data refers to data obtained in real time from the monitoring system, while historical data refers to past data records stored in the database.
[0123] Specifically, the implementation method first involves collecting real-time data and historical data of the points. This can be achieved through sensors and databases connected to the monitoring system. The sensors can collect real-time status information of the equipment, such as temperature, pressure, speed, etc., while the database provides historical operation data of the equipment. Then, these multi-source data are integrated using data fusion technology.
[0124] More specifically, data fusion is a process that combines data from multiple sensors or data sources to obtain more accurate and comprehensive information. In addition, machine learning algorithms are applied to analyze the data to identify key characteristics and behavior patterns of points. Machine learning algorithms can include classification, regression, clustering, etc., and the appropriate algorithm is selected according to the specific application scenario.
[0125] Preferably, in order to improve the accuracy and predictive ability of the digital twin model, an advanced machine learning framework, such as TensorFlow or PyTorch, can be used to build and train the model. At the same time, model training parameters, such as learning rate, number of iterations, etc., can be set to optimize the performance of the model. During the model building process, cross-validation and other techniques can be used to evaluate the generalization ability of the model.
[0126] Furthermore, the model can be updated regularly to incorporate the latest data to ensure that the model can reflect the current state of the point in real time and predict the future state. As an alternative, different types of machine learning models, such as deep learning networks or reinforcement learning models, can be considered to adapt to different prediction tasks and data characteristics.
[0127] Furthermore, we can also explore the use of edge computing technology to deploy data processing and model reasoning near the data source to reduce data transmission delays and improve system response speed.
[0128] The above-mentioned embodiments of the present invention have the following beneficial effects: The present invention constructs a COM interface through digital twin technology, which can efficiently process the actual engineering project data of the rail transit and municipal transportation integrated monitoring system. It can perform logical operations and regular processing on the point data required by the front-end HMI interface, optimize the representation of the point data, and thus improve the data processing efficiency and accuracy of the monitoring system. In addition, by processing Html resources and reducing the size of resource files, the method can reduce the occupancy rate of bandwidth resources and improve the system response speed and user experience.
[0129] Furthermore, the implementation of the present invention can enhance the security of data processing and protect the security of data through data encryption and access control. At the same time, it also verifies the accuracy and reliability of the optimized data to ensure that the display requirements of the front-end HMI interface are met. This method can ensure that the optimized point data can be updated in real time, reflecting the latest status of the point data, and providing more intuitive and real-time data support for the comprehensive monitoring of rail transit and municipal transportation.
[0130] like Figure 2 As shown, in some embodiments, a device 200 based on a digital twin COM interface development method includes:
[0131] The data processing unit 201 is used to construct a COM interface based on the actual project data of the rail transit and municipal transportation integrated monitoring system through the digital twin technology, perform logical operations and regular processing on the point data required by the front-end HMI interface, and obtain an optimized point data representation;
[0132] The resource processing unit 202 is used to process the Html resource through the COM interface program based on the optimized point data representation, so as to reduce the size of the resource file and reduce the occupancy rate of the bandwidth resources.
[0133] It can be understood that the modules recorded in the digital twin COM interface development device 200 are similar to the reference Figure 1The steps in the digital twin COM interface development method described above correspond to each other. Therefore, the operations, features and beneficial effects described above for the digital twin COM interface development method are also applicable to the digital twin COM interface development device 200 and the modules contained therein, and will not be repeated here.
[0134] In some embodiments, including:
[0135] The acquisition unit is used to obtain the point data required by the front-end HMI interface;
[0136] A processing unit is used to process Html resources through a COM interface program based on the digital twin COM interface development method described in any one of claims 1 to 8 to obtain an optimized point data representation.
[0137] It should be noted that this embodiment describes a data acquisition device based on a digital twin COM interface, which includes an acquisition unit and a processing unit. Here, the acquisition unit refers to a component responsible for collecting point data from a data source, and the processing unit refers to a component responsible for processing these data according to the method described above. This device is intended to optimize data representation through digital twin technology to meet the needs of the front-end HMI interface.
[0138] Specifically, the acquisition unit in the data acquisition device collects the point data required by the front-end HMI interface. This includes data obtained from sensors, databases or API interfaces. The processing unit is responsible for performing logical operations and regularization on these data to generate optimized data representations. This involves setting specific parameters, such as data screening criteria, merging rules used when integrating data, specific formats for formatting and standardization, and conditional judgments and data association rules used in logical operations.
[0139] Preferably, in order to improve the efficiency of data acquisition and processing, the acquisition unit can be optimized, for example, by increasing the parallel data processing capability to speed up the data collection process. The processing unit can use a more efficient algorithm to increase the data processing speed, or by increasing hardware resources such as a dedicated data processor to improve performance.
[0140] Furthermore, data preprocessing steps, such as data cleaning and outlier detection, can be implemented to ensure the quality of data received by the processing unit. As an alternative, one can consider using cloud computing services to expand the capabilities of data acquisition and processing, or using edge computing technology to reduce data transmission delays and improve the response speed of the system.
[0141] Going further, we can also explore the use of machine learning technology to dynamically adjust data processing parameters to adapt to changing data characteristics and user needs.
[0142] Reference below Figure 3 , which shows a schematic diagram of a structure 300 of an electronic device suitable for implementing some embodiments of the present invention. The electronic devices in some embodiments of the present invention may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 3 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0143] like Figure 3 As shown, the electronic device 300 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 301, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 302 or a program loaded from a storage device 308 into a random access memory (RAM) 303. In the RAM 303, various programs and data required for the operation of the electronic device 300 are also stored. The processing device 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.
[0144] Typically, the following devices may be connected to the I / O interface 305: input devices 306 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 307 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 308 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 309. The communication devices 309 may allow the electronic device 300 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 3 The electronic device 300 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Figure 3 Each block shown in the figure may represent one device, or may represent multiple devices as required.
[0145] Furthermore, the storage medium of the embodiment of the present application stores program instructions that can implement all the above methods, wherein the program instructions can be stored in the above storage medium in the form of a software product, including several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) or a processor to execute all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, or terminal devices such as a computer, a server, a mobile phone, and a tablet.
[0146] The above descriptions are only some preferred embodiments of the present invention and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present invention is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above inventive concept. For example, the above features are replaced with (but not limited to) technical features with similar functions disclosed in the embodiments of the present invention to form a technical solution.
Claims
1. Based on the digital twin COM interface development method, it is characterized by: include: Based on the actual project data of rail transit and municipal transportation integrated monitoring system, a COM interface is constructed through digital twin technology; Perform logical operations and regular processing on the point data required by the front-end HMI interface to obtain optimized point data representation; Based on the optimized point data representation, the Html resource is processed through the COM interface program to reduce the size of the resource file and reduce the occupancy rate of the bandwidth resource; Among them, the actual engineering project data includes the geographic information of the points, equipment status, operating parameters and historical maintenance records.
2. The method for developing a digital twin COM interface according to claim 1, characterized in that: The actual project data based on the rail transit and municipal transportation integrated monitoring system is used to build a COM interface through digital twin technology, and the point data required by the front-end HMI interface is logically operated and regularized to obtain the optimized point data representation, including: Taking the point configuration of the actual engineering project as input, a digital twin model of the point data is generated by using digital twin technology; Through the COM interface program, the digital twin model is subjected to logical operations and regularization processing to obtain an optimized point data representation.
3. The method for developing a digital twin COM interface according to claim 2, characterized in that: The Html resource is processed by the COM interface program to reduce the size of the resource file and reduce the occupancy rate of the bandwidth resource, including: Decompose Html resources into tags, attributes, attribute values, and text values for deduplication and uniform encoding. The encoding consists of two characters to represent tags, attributes, and attribute values. Create a code set and store it on the front-end server for subsequent Html resource encoding and decoding processes.
4. The method for developing a digital twin COM interface according to claim 3 is characterized in that: The Html resource is decomposed into tags, attributes, attribute values and text values for deduplication and unified encoding. The encoding consists of two characters and is used to represent tags, attributes and attribute values, including: Based on the Html resource, extract the initial encoding representation of each tag, attribute, attribute value and text value respectively; Based on the coding rule, the initial coding representation is iteratively updated until an iteration termination condition is reached, and the last layer coding representation is used as the unified coding.
5. The method for developing a digital twin COM interface according to claim 3 is characterized in that: The coding set is prepared and stored in the front-end server for subsequent Html resource encoding and decoding processes, including: Associating the encoding set with the encoding information of the Html resource and storing it in the database of the front-end server; When the front-end HMI interface requests data, the database is queried through the COM interface program to obtain the corresponding Html encoding information.
6. The method for developing a digital twin COM interface according to any one of claims 1 to 5, characterized in that: The method further comprises: When the front-end HMI interface requests data, the front-end locally calls the back-end interface, consults the database according to the parameters passed by the front-end, and the back-end obtains the Html encoding information from the database and returns it to the front-end locally; The front-end locally loads the encoding set through the front-end server and parses the Html page code with the Html encoding obtained from the back-end; The front-end system renders the parsed Html page code on the HMI for display.
7. The method for developing a digital twin COM interface according to claim 2, characterized in that: Perform logical operations and regular processing on the point data required by the front-end HMI interface to obtain optimized point data representation including: Execute the data screening process to select data fields related to the front-end HMI interface display from the original point data; Perform data integration steps to ensure consistency and integrity of selected data; Apply predefined rules to format and standardize the integrated data; Perform logical operations, including conditional judgment and data association, to generate data representation that is more intuitive to front-end users; Implement data optimization measures, such as compression and indexing, to improve the efficiency of data access and processing; Strengthen security during data processing, including data encryption and access control; Verify the accuracy and reliability of optimized data to ensure that it meets the display requirements of the front-end HMI interface; Ensure that the optimized point data representation can be updated in real time to reflect the latest status of the point data.
8. The method for developing a digital twin COM interface according to claim 2, characterized in that: The digital twin model is constructed as follows: Collect real-time and historical data of points; Integrate multi-source data using data fusion technology; Apply machine learning algorithms to analyze data to identify key characteristics and behavior patterns of points; A digital twin model is constructed based on the analysis results, and the model is used to reflect the current status of the point in real time and predict the future status.
9. A data processing device based on a digital twin COM interface, characterized in that: include: The data processing unit is used to build a COM interface based on the actual project data of the rail transit and municipal transportation integrated monitoring system through digital twin technology, perform logical operations and regular processing on the point data required by the front-end HMI interface, and obtain optimized point data representation; The resource processing unit is used to process the Html resource through the COM interface program based on the optimized point data representation, thereby reducing the size of the resource file and lowering the occupancy rate of the bandwidth resource.
10. The data acquisition device based on the digital twin COM interface according to claim 9, characterized in that: include: The acquisition unit is used to obtain the point data required by the front-end HMI interface; A processing unit is used to process Html resources through a COM interface program based on the digital twin COM interface development method described in any one of claims 1 to 8 to obtain an optimized point data representation.
Citation Information
Cited By
Digital twin front-end and back-end data interaction method and system
CN120407664A
Digital twin front-end and back-end data interaction method and system
CN120407664B