An algorithm model visualized training and application method
By connecting to heterogeneous data sources and transforming them into unified operation instructions and standard format datasets, instantiating functional nodes to construct control flow graphs and data flow mapping topologies, generating human-computer interaction interfaces, driving iterative training of background algorithm containers, and encapsulating them as application execution nodes, the problem of difficulty in standardizing and unifying multi-source heterogeneous data and native algorithms is solved, achieving fast and seamless switching and efficient real-time data processing and display.
Patent Information
- Application Number
- CN202611446976.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2026-07-10
- Filing Date
- 2026-09-17
- Publication Date
- 2026-11-27
AI Technical Summary
In the development of existing algorithm models, it is difficult to standardize and unify multi-source heterogeneous data and native algorithms. Model training is highly dependent on the development of underlying code, which makes it difficult to decouple and reconstruct business processes. Offline training and online application are disconnected, and the stability of real-time data inference and display is insufficient.
By connecting to heterogeneous data sources, multi-source data is acquired and transformed into unified operation instructions and standard format datasets. Functional nodes are instantiated to construct control flow graphs and data flow mapping topologies, generating human-computer interaction interfaces, driving iterative training of background algorithm containers, packaging to generate standard model entities, encapsulating them as application execution nodes, connecting to real-time data streams for forward inference calculations, and displaying the results.
It achieves standardization and unification of multi-source heterogeneous data and native algorithms, reduces the technical difficulty of model training, supports rapid and seamless switching from offline training to online application, eliminates numerical jumps caused by high-frequency data fluctuations, and improves real-time data processing efficiency and display stability.
Smart Images

Figure CN123179130A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology, specifically to a method for visual training and application of algorithm models. Background Technology
[0002] In the process of industrial transformation, algorithm models are widely used in R&D design, production scheduling, virtual testing and predictive operation and maintenance. Whether it is a large-scale model used in the industry or a proprietary model developed by an enterprise, they all need to be fully trained in a big data environment for specific business to extract the inherent patterns of data in that field and solve problems in actual business scenarios.
[0003] Enterprises accumulate a large amount of unprocessed raw business data in their daily operations. However, this multi-source heterogeneous data cannot be directly connected to the underlying computing model. Existing processing methods require professional software developers to write customized data cleaning scripts and algorithm adaptation programs for a single business scenario. Unstructured business data from different sources and native algorithm code with language differences make it difficult to achieve standardized computing standards, resulting in fragmented underlying algorithm resources and low degree of standardization and reuse.
[0004] Existing algorithm models rely on underlying code development for the entire process from data processing and iterative training to validation and evaluation. This model has a high technical threshold, making it impossible for engineers lacking programming experience to independently orchestrate the logic for model training using their professional business data. This leads to a disconnect between the algorithm development process and actual business needs. When faced with the need for later model optimization or adjustments to business flow, algorithm engineers still need to intervene to sort out and modify the original underlying code. The overall process makes it difficult to quickly decouple and refactor the business operation links, resulting in limited response efficiency and high maintenance costs in the later stages.
[0005] Conventional model development models often result in a disconnect between offline training and online application deployment. When training an algorithm model for real-world business scenarios, the lack of standardized encapsulation and interface mechanisms hinders a seamless transition to online forward inference. Furthermore, when integrating real-time data streams in practical applications, the system lacks an effective data flow scheduling mechanism. Directly outputting high-frequency, fluctuating real-time feature data to the front end can cause numerical jumps in the human-computer interface, leading to insufficient stability and failing to meet the demands of smooth observation of inference results in industrial settings. Summary of the Invention
[0006] To address the shortcomings of existing technologies, this invention provides a method for visual training and application of algorithm models. It solves the problems of difficulty in standardizing and unifying multi-source heterogeneous data and native algorithms during the development of existing algorithm models, the high dependence of model training on underlying code development leading to difficulty in decoupling and reconstructing business processes, and the disconnect between offline training and online application, as well as the lack of stability in real-time data inference and display.
[0007] To achieve the above objectives, the present invention provides the following technical solution: This invention provides a method for visual training and application of algorithm models, comprising the following steps: It connects to heterogeneous data sources to obtain multi-source data and receives imported underlying algorithm script files, and transforms the multi-source data and the underlying algorithm script files into a unified operation instruction and standard format dataset; Instantiate functional nodes in the operation interface, construct a control flow graph and data flow mapping topology based on the connection relationship between the functional nodes, combine controls to generate a human-computer interaction interface, and complete the arrangement of algorithm model training logic. Based on the unified operation instructions, the standard format dataset, and the algorithm model training logic, the background algorithm container is driven to perform iterative training, packaged to generate standard model entities, submitted to the shared resource library, and assigned a global version record number. Based on the global version record number, the standard model entity is retrieved from the shared resource library and encapsulated as an application execution node. The control flow graph and data flow graph are re-established in combination with the communication interface component and the logic judgment component to complete the decoupling and orchestration of the application software business process. The real-time data stream is accessed through the communication interface component and input to the application execution node to perform forward inference calculation. The result data is transmitted to the human-computer interaction interface for display, and the logic that completes the decoupled orchestration is encapsulated to generate algorithm application software with a Uniform Resource Locator.
[0008] Furthermore, the process of interfacing with heterogeneous data sources to acquire multi-source data and receiving imported underlying algorithm script files, and converting the multi-source data and the underlying algorithm script files into a unified operation instruction and standard format dataset, includes: Extract feature parameters from the communication data packets or offline files contained in the multi-source data to generate an initial data matrix; Anomaly detection is performed on the initial data matrix, erroneous data is removed, and null nodes are filled by mapping. Based on the set sampling points and sampling intervals, linear interpolation is performed on the filled data, and dimensionality reduction and truncation are performed according to the set of feature column names to output the standard format dataset.
[0009] Furthermore, the process of connecting to heterogeneous data sources to acquire multi-source data and receiving imported underlying algorithm script files, and converting the multi-source data and the underlying algorithm script files into a unified operation instruction and standard format dataset, also includes: Static syntax parsing is performed on the underlying algorithm script file to extract the input parameter specifications and output indicator interfaces and register them in the global variable table; A standardized calling container is constructed based on the input parameter specifications to isolate and encapsulate the execution environment of heterogeneous algorithms and generate the unified operation instructions; Read the engineering unit physical variables from the external file, call the baseline parameter matrix to perform linear mapping calculation, convert the engineering unit physical variables into standard SI unit physical variables and import them into the global variable table.
[0010] Furthermore, the step of instantiating functional nodes in the operation interface and constructing a control flow graph and data flow mapping topology based on the connection relationships between the functional nodes includes: Directed connections are constructed between the functional nodes that include data reading, algorithm execution, and logical branch determination, the control flow graph is generated, and loop detection calculations are performed synchronously to block reverse connection requests. Based on the directed connection, a parameter mapping matrix in Boolean mask matrix format is generated. Feature extraction and dimension translation calculation are performed. The specified dimension variable in the output feature of the preceding node is extracted and injected into the successor node to generate the data flow mapping topology.
[0011] Furthermore, the combined controls generate a human-computer interaction interface and complete the arrangement of the algorithm model training logic, including: Obtain the coordinates and nesting relationships of the chart display controls to construct the document object model tree; establish a bidirectional data flow binding relationship between the read / write properties of the front-end basic controls and the memory parameters of the underlying computing nodes; When the underlying model outputs a normalized prediction vector, it calls the global maximum and global minimum values to perform inverse normalization calculations to obtain the actual physical prediction value, which is then pushed to the human-computer interaction interface for display.
[0012] Furthermore, based on the unified operation instructions, the standard format dataset, and the algorithm model training logic, the background algorithm container is driven to perform iterative training, including: The standard format dataset is divided into a training sample set and a validation sample set according to a set ratio. The unified operation instructions inject the memory read / write addresses and running hyperparameters of the training sample set into the background algorithm container. The initial algorithm model in the background algorithm container is driven by the training logic of the algorithm model to perform forward propagation calculation according to the set batch size. The forward propagation output result is compared with the error loss value calculated by the real label, and the network weight parameters are updated based on the backpropagation chain derivative rule. When the error loss value is lower than the set convergence threshold, the converged algorithm model is controlled to run in the dual-channel verification topology, and the training sample set and the verification sample set are injected through independent channels to perform independent forward inference to generate a quantization evaluation matrix.
[0013] Furthermore, the process of packaging and generating a standard model entity, submitting it to the shared resource repository, and assigning a global version record number includes: The complete algorithm engineering nodes are divided into a data source acquisition unit, a data conversion unit, an algorithm setting unit, and an evaluation unit. The network weight parameters in the algorithm setting unit and the underlying execution driver are compiled into an algorithm compressed package; Extract the interface information of the data source acquisition unit, the data conversion unit, and the evaluation unit to generate a formatted description file; The algorithm compressed package and the formatted description file are combined to generate the standard model entity, which is then submitted to the shared resource library. The global version record number is generated by combining the timestamp and the name hash value.
[0014] Further, retrieving the standard model entity from the shared resource library based on the global version record number and encapsulating it into an application execution node includes: Deserialize the formatted description file inside the standard model entity to extract the total number of parameters and the basic byte size; Based on the expected concurrent batch size, the total number of parameters, the basic byte size, and the set memory redundancy coefficient, the basic memory requirement is calculated and contiguous memory space is requested from the underlying operating system. The decrypted algorithm compressed package is loaded into the contiguous memory space, and the input feature dimensions and output indicator port specifications defined in the formatted description file are extracted to generate the application execution node.
[0015] Furthermore, the re-establishment of the control flow graph and data flow graph by combining the communication interface component and the logic judgment component includes: Instantiate the communication interface component and the logic judgment component in the interactive canvas, and establish directed connections between the communication interface component, the logic judgment component and the application execution node according to the execution priority of business rules to regenerate the control flow graph; The real-time feature vector is extracted through the logical judgment component, the Euclidean norm of the real-time feature vector is calculated and compared with the set data fluctuation threshold; When the Euclidean norm is less than or equal to the data fluctuation threshold, the real-time feature vector is allowed to be injected into the application execution node to generate the data flow graph with cross-node variable transmission.
[0016] Further, the step of accessing the real-time data stream through the communication interface component and inputting it to the application execution node for forward inference calculation, and then transmitting the result data to the human-computer interaction interface for display, includes: A circular queue is allocated in memory to store the received one-dimensional real-time feature vectors; When either the number of backlogged samples is greater than or equal to a preset trigger threshold, or the time that the first sample in the queue has been in the queue is greater than or equal to the maximum waiting delay threshold, a data aggregation operation is triggered to generate a two-dimensional inference batch matrix. The inference batch matrix is input into the application execution node to generate a prediction result matrix; The predicted value output by the current microprocessor cycle is calculated by performing an exponential moving average with the smoothed display value of the previous cycle using the built-in smoothing coefficient, and the current smoothed display value is generated and transmitted to the human-computer interaction interface for refresh display.
[0017] This invention provides a method for visualizing the training and application of algorithm models, which has the following beneficial effects: 1. This invention connects to heterogeneous data sources to acquire multi-source data and receives underlying algorithm script files. It uses anomaly detection and linear interpolation to output a standard format dataset. Simultaneously, it generates unified operation instructions through static syntax parsing and execution environment isolation. Using parameter extraction and format translation mechanisms, it integrates unstructured business data from different sources and native algorithm code with language differences into a standard calculation unit with consistent input and output. This makes the underlying model calculation no longer limited by specific data formats or software operating environments, eliminating the repetitive work of writing data cleaning scripts and algorithm adaptation programs for a single business scenario.
[0018] 2. This invention instantiates functional nodes containing data reading, algorithm execution, and logical branch determination in the operation interface. It constructs a control flow graph and data flow mapping topology based on directed connections, and simultaneously establishes bidirectional flow binding between front-end interface controls and underlying computing node memory parameters. By using the drag-and-drop and connection recombination of functional nodes in the visual interface, the model training and verification steps that originally relied on writing underlying code are decoupled into intuitive parameter configuration and process orchestration actions. Engineers lacking professional programming experience can directly complete the construction and iterative modification of the training topology based on the actual business flow, reducing the technical difficulty and later maintenance cost of putting industrial algorithms into actual production applications.
[0019] 3. This invention packages the converged training algorithm, along with network weight parameters and interface information, into a standard model entity and assigns a global version record number. After retrieving it from the shared resource library, it is directly encapsulated as an application execution node and connected to the real-time communication interface. A two-dimensional matrix aggregation inference is triggered by a dual-condition judgment mechanism combining a circular queue with the number of backlogged samples and the dwell time. In the result output stage, an exponential moving average calculation is performed, realizing a fast and seamless switch of the algorithm model from the offline verification stage to the online business inference stage. While ensuring the high-concurrency real-time data throughput processing efficiency in the background, it eliminates the numerical jump phenomenon caused by high-frequency data fluctuations in the front-end human-computer interaction interface. Attached Figure Description
[0020] Figure 1 This is a diagram illustrating the operational architecture of an algorithm model visualization training and application system according to the present invention. Figure 2 This is a flowchart illustrating the overall process of a visual training and application method for an algorithm model according to the present invention. Figure 3 This is a flowchart illustrating resource adaptation and multi-source data access in this invention. Figure 4 This is a flowchart illustrating the process visualization and two-way binding of the present invention. Figure 5 This is a flowchart of the model training, evaluation, and asset release process of this invention; Figure 6 This is a flowchart illustrating the decoupling and reconfiguration of application software logic in this invention; Figure 7 This is a flowchart illustrating the unified release of real-time data stream inference and application in this invention. Figure 8 This is a schematic diagram of the data access and algorithm configuration interface for the compressor training agent model of the present invention; Figure 9 This is a schematic diagram of the evaluation and archiving interface for the compressor training proxy model algorithm of this invention; Figure 10 This is a schematic diagram of the agent model scheduling and application interface for the compressor of the present invention; Figure 11 This is a schematic diagram of the interface for displaying the prediction results of the compressor using the surrogate model of the present invention. Detailed Implementation
[0021] The technical solutions in 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.
[0022] See attached document Figure 1 This invention provides a visualization training and application system for algorithm models. The system's underlying operating environment adopts a microservice architecture deployed in a server cluster, and both core processing functions and front-end display functions are containerized. The system's operating architecture includes a resource adaptation module, a process orchestration module, a model training module, and an application deployment module.
[0023] The resource adaptation module is used to parse the response parameter stream of the external system through the descriptive state transition interface, extract offline file features to generate an initial data matrix, and call the preprocessing operator to perform null value mapping and linear interpolation calculation to output a standard format dataset; at the same time, it configures the algorithm integration adaptation interface to parse the input and output interface specifications of third-party native script files and compiles the calling logic of heterogeneous resources into the system's native operation instructions.
[0024] The process orchestration module is used to instantiate various configuration nodes in the graph computing engine, construct a directed acyclic control flow graph that defines the node triggering sequence based on the node connections in the operation interface, and construct a data flow mapping topology for cross-node variable transmission according to the configuration rules; at the same time, it provides an interface component registration interface to establish a two-way data binding relationship between the attributes of the front-end human-computer interaction control and the memory parameters of the underlying computing nodes.
[0025] The model training module is used to divide the standard format dataset into training and validation sample sets according to a set ratio threshold. It drives the background algorithm container to perform iterative calculations to optimize model parameters based on a set of hyperparameters, and controls the converged algorithm model to perform independent forward inference in the dual-channel validation topology. It calculates the quantitative evaluation matrix by combining the built-in accuracy operator or the embedded custom evaluation script. After the algorithm model meets the convergence condition, it extracts the complete algorithm engineering nodes and packages them to generate a standard model entity containing an algorithm compressed package and a formatted description file. It then submits the model to the shared resource library and assigns a global version record number.
[0026] The application deployment module is used to extract the control flow graph, data flow graph, and bound human-computer interaction interface after the secondary orchestration, and encapsulate them as an independently running algorithm application software. At the same time, the module allocates a Uniform Resource Locator (URL) for the generated algorithm application software to be exposed to the outside world through the routing registry center.
[0027] See attached document Figure 2 Based on the above system architecture, this invention provides a method for visual training and application of algorithm models, including the following steps: S100, the resource adaptation module connects to heterogeneous data sources and underlying algorithm script files. By configuring the descriptive state transition interface, algorithm integration adaptation interface and file processing integration interface, it transforms the execution steps and data formats of multi-source data and algorithm resources into unified system operation instructions and standard format datasets. S200, the process orchestration module provides configuration nodes in the operation interface that include data reading, algorithm execution and logical branch determination. By establishing the connection between each configuration node, the calculation execution sequence and data transmission mapping relationship are defined, and basic controls and chart controls are combined to generate a human-computer interaction interface, and complete the visual orchestration of algorithm model training logic and front-end interface. S300, the model training module divides the standard format dataset into training sample set and validation sample set according to the set ratio threshold. Based on the orchestrated process logic, the background algorithm container iteratively trains and independently validates the initial algorithm model. When the evaluation index meets the set conditions, the model training module packages the complete algorithm engineering node to generate a standard model entity and submits it to the shared resource library to allocate a global version record number. S400, the process orchestration module retrieves standard model entities from the shared resource library, parses the input feature dimensions and output indicator port specifications of the target model and encapsulates them into application execution nodes, and re-establishes the control flow graph and data flow graph by combining the communication interface component and the logic judgment component, so as to realize the logical decoupling and orchestration of the application software business process and the underlying model training process. In S500, the process orchestration module accesses the real-time data stream of the external business system through the communication interface component, inputs the real-time data stream into the loaded application execution node to perform forward inference calculation, the model training module transmits the data obtained from the inference calculation to the chart control of the human-computer interaction interface for rendering and display, and the application publishing module encapsulates the orchestrated algorithm application software and generates a Uniform Resource Locator.
[0028] To enable those skilled in the art to better understand the present invention, the following will elaborate on the technical details and specific implementation logic of the above-mentioned system operation and method execution process.
[0029] See attached document Figure 3 Regarding the specific implementation process of the multi-source data access and streaming preprocessing mechanism in step S100, combined with the resource adaptation module in the system's operating architecture, it can include the following sub-steps: S101, the resource adaptation module obtains the online response parameter stream or reads the offline data file in the specified directory, and extracts the feature parameters in the communication data packet or offline file to generate the initial data matrix.
[0030] The resource adaptation module provides a descriptive state transition interface to connect with external data management systems. After communication is established, it parses the Uniform Resource Locator and payload parameters in the Hypertext Transfer Protocol request, deserializes the received response messages in Extensible Markup Language format or JavaScript Object Notation format, and then extracts the original numerical values and timestamp information contained in the message body.
[0031] For offline application scenarios, the system pre-configures local file storage paths. Upon detecting that an offline data file has been completely written to the specified storage path, the underlying file read driver is triggered, automatically parsing the row and column data format in comma-separated value files or spreadsheet files. The raw time-series feature data acquired through both online and offline channels is aggregated into a memory buffer and aligned and merged along the time dimension into a two-dimensional initial data matrix.
[0032] S102, the resource adaptation module performs anomaly state judgment on the initial data matrix, centrally extracts erroneous data, and performs a mapping and filling mechanism on null value nodes to ensure sequence continuity.
[0033] The resource adaptation module traverses each data node in the initial data matrix and compares and verifies the node values based on pre-entered physical extreme value boundary rules, which are determined by the hardware parameters of the target device. When a node value exceeds the extreme value boundary, the node is marked as erroneous data and removed from the initial data matrix. At the same time, the relevant erroneous data and its corresponding timestamp are written to a separate exception log file.
[0034] For null nodes in the initial data matrix caused by communication packet loss or sensor failure, a preprocessing operator is invoked to fill in the missing items using temporal forward filling or local neighborhood mean calculation. The basic algorithms for data matrix traversal and node localization can be implemented by those skilled in the art using conventional depth-first or breadth-first search strategies; their basic data structure operations are well-known in the field and will not be elaborated upon here.
[0035] S103, the resource adaptation module performs linear interpolation calculations on the processed data based on the set sampling points and sampling intervals, and outputs a standard format dataset according to the feature column selection instructions.
[0036] The data streams reported by industrial sensors exhibit non-uniform time intervals, requiring alignment and reconstruction of the data sequence using a fixed sampling interval. Let the fixed sampling interval be... Let the starting timestamp of the reconstructed sequence be... Then the first Target alignment timestamps The calculation method is as follows In the data sequence after anomaly cleanup and gap filling, locate the target and align the timestamp. Two consecutive, valid data points. The timestamp variable in a time series is defined as... The physical characteristic variables collected at the corresponding time are Let the effective predecessor data point addressed be... The subsequent valid data points are The microprocessor executes the following linear interpolation formula to calculate the reconstructed feature variables corresponding to the target timestamp. : ; in, This represents the reconstructed feature variable corresponding to the target timestamp; The physical characteristic variables representing the valid data points of the predecessor; Physical characteristic variables representing subsequent valid data points; Indicates the target alignment timestamp; Indicates the timestamp of the valid data point of the predecessor; The timestamp represents the subsequent valid data point.
[0037] The above sampling interval The value of depends on the minimum response period of the external physical system and is limited to a constant value between 10ms and 1s in the system initialization configuration file. The data sequence after interpolation and reconstruction has a uniform time resolution. The feature column name set configured by the user in the front-end interface is further parsed, and dimensionality reduction and truncation operations are performed on the interpolated data sequence according to the name set. The retained effective feature column data is encapsulated into a multi-dimensional tensor structure to generate a standard format dataset that can be directly called by downstream machine learning algorithms, and it is persistently stored in the system's data pool.
[0038] The specific implementation process of integrating and parsing heterogeneous algorithm scripts and external files in step S100, combined with the resource adaptation module in the system's operating architecture, can include the following sub-steps: S104, the resource adaptation module calls the algorithm integration and adaptation interface to perform static syntax parsing on the imported native algorithm script file in order to extract the input parameter specifications and output indicator interfaces in the script code.
[0039] For native algorithm scripts, encapsulated executable programs, or self-developed calculation formulas written in different programming languages, the resource adaptation module performs code or interface analysis without altering the underlying business logic. By constructing an abstract syntax tree of the script code, it traverses and searches for predefined function signatures and specific annotation tags to accurately locate the core entry function defined in the native algorithm script. After identifying the core entry function, the resource adaptation module further parses the parameter list and return value definition in the function signature, extracting hyperparameters required for the algorithm model to run, data source reading paths, and the model weights and quantization evaluation results output after execution.
[0040] The extracted parameters are uniformly registered in the system's global variable table, thereby establishing a mapping relationship between the underlying execution driver and the top-level configuration component. For the underlying implementation logic of abstract syntax tree construction and static syntax analysis, those skilled in the art can use conventional open-source parsers or lexical analysis tools. The syntax tree traversal mechanism and node extraction operation are well-known technologies in this field and will not be elaborated upon here.
[0041] S105, the resource adaptation module constructs a standardized calling container based on the extracted parameter specifications, which isolates and encapsulates the execution environment of heterogeneous algorithms from the system's native operation instructions.
[0042] Heterogeneous algorithm scripts rely on different runtime environments and specific versions of third-party computing libraries. The resource adaptation module automatically generates the corresponding container build script based on the parsed script language type and dependency declaration list. This container build script encapsulates the pulling of the base operating system image, the path configuration of the runtime environment, and the storage and mounting instructions for the underlying algorithm script files. After the containerized environment is instantiated and ready, the resource adaptation module generates unified operation instructions bound to the algorithm script.
[0043] The unified operation instructions are responsible for dynamically injecting the memory read / write addresses of the standard format dataset and the runtime hyperparameters from the global variable table into the native algorithm script within the container when the graph computing engine issues scheduling tasks. Through this isolation and encapsulation process, the calling logic of heterogeneous algorithm resources is completely transformed into standard triggering events recognizable within the system, avoiding process conflicts between different language execution environments and ensuring the independence of memory stack space.
[0044] S106, the resource adaptation module calls the file processing integration interface to parse the offline feature parameters in external text files and spreadsheets, and converts them into structured configuration information that can be transferred within the system.
[0045] In engineering applications, some prior physical constraint parameters or device hardware attributes are distributed and stored offline as documents. The resource adaptation module loads the parsing driver component corresponding to the file extension and reads the unstructured and semi-structured text content of the target file line by line or cell by cell. The read text content is then mapped into a structured feature dictionary in key-value pair format after regular expression matching and data type translation.
[0046] When reading external files, if physical characteristic parameters with different engineering units are encountered, the resource adaptation module will perform unit alignment and standardization conversion operations. Let the read physical variable in engineering units be... The standard SI unit physical variable for target conversion is The resource adaptation module calls the built-in dimension conversion reference parameter matrix and performs the following linear mapping calculation through the microprocessor: ; in, Represents physical variables in standard international units; This represents the physical variables of engineering units read from an external file; The scaling factor indicating the unit conversion; The bias constant that represents the dimensional transformation.
[0047] The above scaling factor With bias constant The value depends on the engineering unit type of the target physical quantity, and its specific value is pre-configured in the unit dictionary loaded during system initialization. For example, when the temperature unit is converted from Fahrenheit to standard Celsius, the system retrieves the set scaling factor. Values bias constant Values The offline feature parameters, after standardization, conversion, and parsing, are synchronously imported into the global variable table, serving together with the standard format dataset obtained from the preceding processing as the basic input source for constructing the visualization of the algorithm model.
[0048] See attached document Figure 4 Regarding the specific implementation process of constructing the control flow and data flow graph in step S200, combined with the process orchestration module in the system's operational architecture, it can include the following sub-steps: S201, the process orchestration module provides an editing interface for the graph computing engine, responds to node addition commands in the operation interface, and instantiates configuration nodes in the component library into the view canvas.
[0049] The process orchestration module assigns a globally unique identifier to each instantiated configuration node in system memory and allocates independent storage space to record node attributes and runtime states. Instantiated configuration node categories include data reading nodes, algorithm execution nodes, and logical branch decision nodes.
[0050] The aforementioned nodes carry out different business actions in the system. The data reading node is bound to the storage path of the standard format dataset generated in the preprocessing stage; the algorithm execution node is associated with the underlying execution driver and algorithm hyperparameter dictionary pre-encapsulated by the resource adaptation module; and the logic branch decision node has built-in numerical comparison operators and Boolean logic operators to control the direction of subsequent execution branches.
[0051] S202, the process orchestration module captures port connection actions in the operation interface, constructs directed connections between each instantiated configuration node, and generates a directed acyclic control flow graph that defines the trigger timing of the nodes.
[0052] The directed connections between configuration nodes define the scheduling order of system computing resources, forming serial dependencies and parallel execution logic among nodes. During the directed connection generation phase, the microprocessor synchronously performs loop detection calculations in real time on the graph structure, forcibly blocking connection requests pointing in the opposite direction to the predecessor node, thus preventing closed loops in the overall execution topology and avoiding deadlocks in the background computation.
[0053] For the loop closure detection calculation and node scheduling execution logic based on topology sorting of directed acyclic graphs, those skilled in the art can use conventional Kahn's algorithm or depth-first traversal search mechanism to implement it. The underlying graph theory principles and code structure are well-known technologies in this field and will not be elaborated here.
[0054] S203, the process orchestration module constructs a data flow mapping topology for cross-node variable transmission based on the defined control flow graph and port binding configuration rules.
[0055] In the actual computational graph flow, the output data of the preceding node must be accurately input into the corresponding port of the succeeding node. To eliminate physical differences in parameter naming and data dimensions between heterogeneous nodes, the workflow orchestration module introduces a parameter mapping matrix in the data transmission link to automatically translate the data flow from the output features of the previous node to the input port of the next node. Let the output feature vector generated by the preceding configuration node be... The input feature vector required for the subsequent configuration node to run is The process orchestration module generates a corresponding parameter mapping matrix based on the input / output port connections established in the interface. The following feature extraction and dimensionality translation calculations are performed by the microprocessor: ; in, This represents the input feature vector received by the subsequent configuration node and used for internal calculations; This represents a parameter mapping matrix generated based on port connection relationships; Indicates the first The output feature vector generated after the calculation of each preceding configuration node is completed; Represents the sequence index of the preceding node; Represents the sequence index of the successor node.
[0056] The above parameter mapping matrix This is a Boolean mask matrix composed of values 0 and 1. The specific row and column dimensions of this matrix are determined by the number of parameters exposed by the ports of the preceding and following nodes, and the specific values of the elements within the matrix are dynamically assigned and generated by the connection binding relationships recorded in the front-end operation interface. By performing this matrix mapping calculation, the process orchestration module can accurately extract the specified dimension variables from the output features of the preceding node and inject them sequentially into the memory registers of the subsequent node, completing the seamless flow of runtime data between nodes.
[0057] Regarding the specific implementation process of the interface assembly and two-way binding of the human-computer interaction controls in step S200, combined with the process orchestration module in the system's operating architecture, it can include the following sub-steps: S204, the process orchestration module responds to the user's visual drag-and-drop operations through the embedded interface designer, and retrieves and instantiates the corresponding view component entities from the system's component registry.
[0058] The view components are specifically divided into container controls for managing the page's two-dimensional layout grid, basic controls for inputting hyperparameters and issuing control commands, and chart display controls for showcasing model training convergence curves and evaluation matrix metrics. The workflow orchestration module captures the absolute coordinates and hierarchical nesting relationships of these instantiated controls on the canvas, compiling them into a standardized Document Object Model (DOM) tree. The generated DOM tree defines the static visual layout framework of the front-end human-computer interaction interface, providing the underlying carrier for subsequent dynamic data injection.
[0059] In addition, the process orchestration module supports extracting and serializing the currently instantiated document object model tree and its bound style attributes, and persistently storing it as a standard interface template in the component registry center for subsequent reuse in the same algorithm project or across projects, thereby enabling the rapid construction of the front-end visual and interaction framework.
[0060] S205, the process orchestration module calls the interface component registration interface, and on the basis of establishing a static visual layout framework, establishes a bidirectional data flow binding relationship between the read and write attributes of the front-end human-computer interaction controls and the memory parameters of the underlying computing nodes.
[0061] In the two-way data flow binding mechanism, when a user modifies a value in a basic input control on the front end, the system captures the changed data through a front-end event listener. The captured incremental state is serialized and packaged, then updated to the memory register address corresponding to the algorithm execution node via the underlying cross-process communication mechanism. Conversely, when the underlying computing node completes forward inference or iterative computation and updates the output feature parameters, the system's built-in state manager detects the memory data change and triggers a view update command to push the calculation results to the bound front-end chart display control for rendering.
[0062] To facilitate intuitive understanding of the physical meaning of the normalized prediction vector output by the underlying model, the workflow orchestration module performs an inverse normalization calculation using a microprocessor before the data is pushed to the chart control for rendering. Let the normalized prediction vector output by the underlying computation node be... The process orchestration module calls the characteristic extreme value parameters recorded in the global variable table and executes the following inverse calculation formula to obtain the actual physical prediction value. : ; in, This represents the actual physical prediction value displayed by the chart control; This represents the normalized prediction vector output by the underlying algorithm execution node; This represents the global maximum value of the corresponding physical feature in the historical sample set; This represents the global minimum value of the corresponding physical feature in the historical sample set.
[0063] The above global maximum value and global minimum The resource adaptation module extracts and statistically analyzes the data during the initial data preprocessing stage, maintaining constant attributes within the global scope of the current computational project. Regarding the underlying mechanism for monitoring the front-end view state and comparing differences in the virtual object tree, those skilled in the art can implement it using conventional reactive data hijacking or publish-subscribe patterns. Its cross-component state synchronization logic is a well-known technology in the field and will not be elaborated upon here.
[0064] S206, the workflow orchestration module provides a scripting language extension interface, allowing developers to embed interactive logic code in specific front-end control property panels to achieve event triggering control at the interface component level.
[0065] Because the basic properties of standardized controls cannot fully cover the customized business needs in engineering scenarios, the embedded interaction logic code is encapsulated as an independent execution closure and forcibly bound to the lifecycle hook functions of the front-end controls and user interaction events such as mouse clicks and keyboard inputs. When a user interacts with the corresponding target control on the human-computer interface, the script interpreter in the browser engine or local application container is awakened and executed. This interpreter reads and runs the pre-embedded interaction logic code, thereby precisely implementing business logic control actions such as page routing, input data format regular expression validation, or sending forced interruption and environment reset commands to the underlying algorithm computing nodes.
[0066] See attached document Figure 5 Regarding the specific implementation process of the algorithm model iteration-driven and dual-channel evaluation mechanism in step S300, combined with the model training module in the system's operating architecture, it can include the following sub-steps: S301, the model training module divides the preprocessed output standard tensor data into a training sample set for gradient update and a validation sample set for generalization verification based on the ratio threshold transmitted by the front-end interface.
[0067] This proportional threshold defines the boundary of the data matrix, and its value is set to 0.7 to 0.8 in the system configuration. The model training module parses this proportional threshold and, according to the chronological order of the time series or using a random sampling algorithm, forcibly splits the standard tensor data in memory into two non-overlapping independent data subsets. The subset with the larger proportion is allocated as the training sample set, mainly used for gradient optimization calculation of the underlying model weights.
[0068] A smaller subset is allocated as a validation sample set, used only to evaluate the model's generalization performance during iterations and not involved in weight updates. For data matrix partitioning and memory address isolation operations, those skilled in the art can implement them using conventional tensor slicing functions; the underlying index offset logic is well-known in the field and will not be elaborated upon here.
[0069] S302, the model training module drives the background algorithm container to perform iterative calculations to optimize model parameters based on the set of hyperparameters.
[0070] After data segmentation, the model training module sends a start command to the backend algorithm container. The backend algorithm container loads the underlying execution driver encapsulated by the resource adaptation module and reads the hyperparameter set from the global variable table. This hyperparameter set includes system runtime constants such as learning rate, maximum number of iterations, and batch size. Within each iteration cycle, the model training module inputs the training sample set into the loaded algorithm model according to the batch size to perform forward propagation calculations and compares the forward propagation output with the corresponding true labels to calculate the error loss value. Taking mean squared error loss as an example, the set batch size, i.e., the number of samples in the batch, is... , No. The true label value of each sample is The corresponding predicted value output by the algorithm model is The microprocessor executes the following formula to calculate the error loss value for the current batch. : ; in, This represents the error loss value for the current batch; Indicates the batch sample quantity; Indicates to From 1 to The terms are summed and calculated cumulatively. Indicates the first The true label value of each sample; Indicates the first Predicted values for each sample; This represents the sequence index of the samples within the batch.
[0071] After calculating the error loss value, the backend algorithm container calculates the gradient vector of each weight node within the network model based on the backpropagation chain rule. The underlying optimizer combines the learning rate set in the hyperparameter set with the calculated gradient vector to perform numerical update operations on the weight parameters of the algorithm model, thereby completing a single iteration of model parameter optimization.
[0072] S303, the model training module controls the converged algorithm model to perform independent forward inference in the dual-channel verification topology, and calculates the quantitative evaluation matrix by combining the built-in accuracy operator or the embedded custom evaluation script.
[0073] When the iterative operation reaches the maximum number of iterations set in the hyperparameter set, or the error loss value... When the weights fall below the system-defined convergence threshold, the model training module terminates the weight update process. The convergence threshold is configured as a constant between 0.001 and 0.01, depending on the accuracy requirements of different engineering scenarios. Subsequently, the model training module locks all weight parameters of the current algorithm model and controls its operation in a dual-channel validation topology. The dual-channel validation topology requires the system to establish two parallel data flow links, injecting the training sample set and validation sample set into the solidified algorithm model through independent channels for independent forward inference.
[0074] The model training module captures the inference result vectors output from these two channels and invokes either the built-in accuracy operator bound to the workflow orchestration module or a custom evaluation script embedded by the developer. The microprocessor executes the evaluation logic in parallel, calculating statistical metrics such as the coefficient of determination, root mean square error, precision, or multi-class confusion matrix. By extracting and integrating comparative statistical metrics from the training and validation sample set channels, the model training module generates a quantitative evaluation matrix covering both local fit and global generalization ability. This quantitative evaluation matrix is then sent to the state manager to trigger the front-end page's view rendering update mechanism.
[0075] Regarding the specific implementation process of the algorithm model encapsulation and asset release mechanism in step S300, combined with the model training module in the system's operating architecture, it can include the following sub-steps: S304, after the algorithm model completes parameter optimization iteration and meets the convergence condition, the model training module extracts the complete algorithm engineering nodes fixed in the graph computing engine and divides them into standardized business units.
[0076] To achieve standardized integration between the underlying computing logic and the upper-layer business applications, the system clearly divides the extracted complete algorithm engineering nodes into four standardized business units according to the functional execution boundaries: data source acquisition unit, data conversion unit, algorithm setting unit, and evaluation unit.
[0077] The data source acquisition unit records the external system communication interfaces and local feature file storage paths bound before model training. The data transformation unit encapsulates the anomaly filtering rules, linear interpolation parameters, and parameter mapping matrices in the control flow graph that the initial data matrix undergoes during the preprocessing stage. The algorithm setting unit embeds the iteratively updated and frozen network weight parameters, basic operating hyperparameters, and the corresponding underlying execution driving environment. The evaluation unit solidifies the dual-channel verification operator and comparative statistical algorithm used to generate the quantized evaluation matrix during the convergence stage.
[0078] S305, the model training module uses a serialization tool to persistently convert the memory state and directed acyclic execution topology of the above four units, and packages them to generate a standard model entity containing an algorithm compressed package and a formatted description file.
[0079] During the packaging process, the system compiles the network weight parameters in the algorithm setting unit and the underlying execution driver into a binary algorithm compressed package, thereby compressing the file size and protecting the core algorithm code. Simultaneously, the microprocessor automatically extracts the interface information from the data source acquisition unit, data transformation unit, and evaluation unit, generating a formatted description file that matches the algorithm compressed package.
[0080] This formatted description file uses a lightweight text format based on JavaScript object spectroscopy. Internally, it records the input feature dimension definitions required for model operation, the specifications of the exposed output metrics ports, and the communication dependencies of each unit in the directed acyclic execution topology, all in a dictionary-like hierarchy. The aforementioned algorithm compressed package and the formatted description file together constitute a standard model entity, transforming the originally scattered engineering nodes into independent computational components with complete input and output definitions.
[0081] S306, the model training module submits the completed standard model entity to the system's shared resource library to perform asset release operations and assigns it a global version record number to support subsequent business combination and calls.
[0082] During the submission process to the shared resource repository, the management service performs a combined calculation based on the timestamp of the current operation and the hash value of the model name to generate and assign a globally unique version record number to the newly added standard model entity. This version record number is written as the primary key into the system's database index table to accurately identify the lifecycle status and iteration version trajectory of the model entity.
[0083] The standard model entities released as assets are stored as physical black boxes in a shared resource library, completely shielding the underlying gradient calculation mechanism and parameter optimization code details from the external application layer. This isolation and encapsulation mechanism transforms the model into a standard asset, providing a solid data foundation for decoupling business logic across projects during the application development phase. For the basic operations of hash value generation and database index structure establishment, those skilled in the art can implement them using conventional hash calculations and relational data table design; the principles of data storage are well-known technologies in this field and will not be elaborated upon here.
[0084] See attached document Figure 6 Regarding the specific implementation process of application software logic decoupling and reconfiguration orchestration in step S400, combined with the process orchestration module in the system's operating architecture, it can include the following sub-steps: S401, the process orchestration module receives the model retrieval request sent by the front-end interface, and initiates a search query in the system's shared resource library based on the global version record number carried to extract the standard model entity.
[0085] After locating the target standard model entity, the process orchestration module calls the parsing engine to first read the formatted description file inside the entity. Through deserialization, the lightweight text based on JavaScript object spectrograms is transformed into an in-memory object structure, from which the input feature dimension definitions, output indicator port specifications, and underlying runtime environment dependency declarations are extracted. These extracted parameters will serve as the basic constraints for subsequently building the upper-layer application's business flow. For the basic operations of cross-process service requests and object deserialization, those skilled in the art can use conventional remote procedure call protocols and standard parsing libraries. The underlying network communication principles are well-known technologies in the field and will not be elaborated upon here.
[0086] S402, the process orchestration module pre-allocates computing resources and memory stack space for the upcoming algorithm compressed package based on the extracted model runtime dependency declarations.
[0087] To ensure the concurrent processing efficiency of the application software in real-world business scenarios, the system needs to dynamically calculate the memory requirements based on the model parameter scale. Let the expected application concurrent batch size be... The total number of parameters declared in the formatted description file for the algorithm model is The basic byte size of a single-layer neural network node or feature variable is [size missing]. The microprocessor executes the following formula to calculate the base memory requirements of the target running node. : ; in, This indicates the base memory requirements of the target running node; Indicates the expected application concurrent batch size; This indicates the total number of parameters declared in the algorithm model; This indicates the size of the basic bytes occupied by a node or feature variable in a single-layer neural network. This represents the memory redundancy coefficient.
[0088] The above memory redundancy coefficient To absorb the overhead of forward activation values and intermediate state tensors generated during model inference, the system fixes these values between 1.2 and 1.5 based on the hardware configuration benchmarks of industrial computing nodes. After completing the resource requirement calculation, the process orchestration module initiates a call to the underlying operating system to request contiguous memory space of the corresponding size, preparing resource allocation for subsequent model file decompression and physical loading operations.
[0089] S403, the process orchestration module decrypts the algorithm compressed package and loads it into the allocated memory space, mapping the parameter specifications exposed by the model to the standardized physical interface in the application editing view.
[0090] During this process, the workflow orchestration module extracts the input feature dimensions and output metric port specifications defined in the formatted description file, and instantiates an independent application execution node on the interactive canvas of the graph computing engine. This application execution node is presented as a physical black box component, completely hiding the code execution details of the original algorithm setting unit and data transformation unit inside.
[0091] The instantiated application execution node exposes its interaction ports only through standardized input and output interfaces generated by mapping. The process orchestration module captures the connection actions drawn by the user on the canvas and establishes topological associations between the application execution node and other business logic components or external communication interface components. As a result, the underlying complex gradient calculation and data preprocessing logic are decoupled, enabling the modular reconstruction and seamless assembly and invocation of algorithm assets in new application business flows.
[0092] The specific implementation process of business logic decoupling and secondary graph flow orchestration in step S400, combined with the process orchestration module in the system's operating architecture, can include the following sub-steps: S404, the process orchestration module responds to the orchestration instructions of the front-end operation interface, retrieves and instantiates the communication interface component and logic judgment component from the system component library, and deploys them together with the pre-encapsulated application execution node in the interactive canvas of the graph computing engine.
[0093] The communication interface component is used to interface with the real-time network communication protocols of external business systems and listen for data requests. The logic judgment component has built-in conditional branch operators and a rule engine to carry out the specific business processes and exception interception rules at the upper layer. This design based on independent components severs the physical binding between the upper-layer application logic code and the lower-layer gradient calculation code used for optimization iteration, achieving logical decoupling and orchestration of application software business processes and underlying model training processes at the system architecture level. For the underlying implementation of network communication protocol parsing and service interface binding, those skilled in the art can use conventional application programming interface gateways and web service frameworks. The protocol message conversion logic is well-known in the field and will not be elaborated here.
[0094] S405, the process orchestration module captures the connection actions between the ports of each component in the interactive canvas, and, in combination with the execution priority of the business rules, re-establishes the control flow graph that defines the business execution sequence.
[0095] In real-world business application orchestration scenarios, the trigger point of the control flow graph is set to the communication interface component. When an external business system sends a request message that triggers this communication interface component, the system's backend engine sequentially activates the logic judgment component and application execution node along the directed connections of the control flow graph. The microprocessor continuously monitors the execution status of this control flow graph and forces each node to perform business rule verification and model forward inference actions according to the topological dependencies calculated in the graph, ensuring that task scheduling is carried out in an orderly manner under high concurrency.
[0096] S406, Based on the above control flow graph, the process orchestration module re-establishes the data flow graph for cross-node variable transmission according to the port data type and dimension matching rules.
[0097] Real-time data fields transmitted from external business systems need to be accurately routed and mapped to the standardized input interfaces of application execution nodes. To prevent dirty data from causing application execution node computational crashes, the process orchestration module uses a logic judgment component to intercept and verify the validity of real-time data. Let the real-time input feature vector received and extracted by the communication interface component be... The microprocessor calculates the Euclidean norm of the vector and compares it with the data fluctuation threshold set by the system. A comparison is performed. The judgment logic calculates the validity check result identifier using the following piecewise function. : ; in, This indicates the validity verification result; a value of 1 represents valid data, and a value of 0 represents invalid data. This represents the real-time input feature vector; This represents the Euclidean norm of the real-time input feature vector; This indicates the threshold for data fluctuation.
[0098] The above data fluctuation threshold This is calculated from the feature distribution data of historical samples generated during the model training phase. The system retrieves the maximum norm of all feature vectors in the historical training sample set and sets the data fluctuation threshold. The value is configured to be 1.1 to 1.5 times the maximum norm. When the validity check result indicates... When the value is 1, the data flow graph allows the real-time input feature vector to pass through and injects it into the subsequent application execution node for inference computation; when the value is 0, the system blocks the data flow into the application execution node and returns the abnormal alarm information to the external business system through the communication interface component. Through the above component instantiation and data routing verification operations, the system realizes secondary graph flow orchestration.
[0099] See attached document Figure 7 Regarding the specific implementation process of real-time data stream access and online inference of the physical system in step S500, combined with the process orchestration module in the system operation architecture, it can include the following sub-steps: S501, the process orchestration module establishes a continuous network connection with external business systems through the communication interface component deployed in the application engine, and receives the on-site production data stream pushed by the external business systems in real time.
[0100] The communication interface component is configured in long-connection listening mode, continuously capturing data packets from the network port and using deserialization tools to parse packets encapsulated by different external protocols into a unified dictionary structure within the system. Based on the input feature dimension definitions in the formatted description file, the system extracts valid values from the dictionary structure and converts them into a one-dimensional real-time input feature vector. For the maintenance of the long network connection and the packet unpacking operations of the underlying transmission control protocol, those skilled in the art can use conventional socket programming or asynchronous network communication libraries. The underlying network communication logic is well-known in the field and will not be elaborated upon here.
[0101] S502, the process orchestration module allocates a dedicated circular queue in memory as an asynchronous buffer for real-time data streams, and uses the microprocessor to perform micro-batch aggregation calculations to balance the system's inference latency and throughput.
[0102] High-frequency, single-data points directly trigger underlying model inference, easily leading to excessive microprocessor resource scheduling overhead. The process orchestration module stores the extracted one-dimensional real-time input feature vectors sequentially into a circular queue according to their arrival time. Let the number of real-time data samples currently backed up in the circular queue be... The retention time of the first sample in the queue is The microprocessor performs the following Boolean logic calculation to obtain the batch trigger status flag. : ; in, This indicates the batch trigger status flag; when the value is true, the system triggers a data aggregation operation. This indicates the number of real-time data samples currently backed up in the circular queue; This indicates the preset micro-batch trigger threshold; Indicates the dwell time of the first sample in the queue; This indicates the maximum allowed waiting time threshold; Represents the logical OR operator.
[0103] The above micro-batch trigger threshold The maximum latency threshold is determined based on the number of parallel computing cores in the underlying microprocessor and is configured as an integer between 8 and 64. Based on the real-time response requirements of external business systems for prediction results, its value ranges from 50ms to 200ms. When a batch triggers a status flag... When the value is true, the process orchestration module synchronously pops the accumulated feature vectors from the circular queue and concatenates them into a two-dimensional inference batch matrix along the batch dimension.
[0104] S503, the process orchestration module routes and distributes the concatenated inference batch matrix along the secondary orchestration data flow graph, and injects it into the standardized input interface of the application execution node to perform online forward inference computation.
[0105] After receiving the inference batch matrix, the application execution node wakes up the algorithm runtime environment residing in the pre-allocated memory space and performs linear tensor transformation and nonlinear activation calculation on the inference batch matrix using the frozen network weight parameters. Through layer-by-layer forward propagation within the algorithm model's hidden layer nodes, the application execution node generates a prediction result matrix corresponding to the input features at its standardized output interface. This prediction result matrix resides in system memory and becomes the core data basis for subsequently triggering interface view updates and sending reverse control commands externally.
[0106] The specific implementation process of dynamic rendering of inference results and unified application release in step S500, combined with the model training module and application release module in the system architecture, can include the following sub-steps: S504, the model training module extracts the result data obtained from forward inference computation from the memory stack of the application execution node, and transmits the result data to the chart control of the human-computer interaction interface for dynamic rendering and display through the state manager.
[0107] Because the real-time data stream of the physical system exhibits high-frequency fluctuations, directly pushing a single prediction result to the front end can easily cause visual jitter in the chart display controls. Before transmitting data to the front-end chart controls, the model training module uses a built-in signal smoothing operator to perform an exponential moving average on the prediction results. Let the prediction result output in the current microprocessor cycle be... The smoothed display value of the previous period is The microprocessor performs the following calculation to obtain the smoothing display value currently used for rendering. : ; in, This indicates the smoothing display value currently used for chart rendering; This represents the predicted output value of the current microprocessor cycle. This represents the smoothed display value from the previous cycle. When the system is in its initial microprocessor cycle, this... The default value is equal to the predicted result output in the current microprocessor cycle. ; This represents the smoothing coefficient.
[0108] The above smoothing coefficient To control the weight decay rate of historical data on the current display result, the system configures its value range between 0.1 and 0.3, thereby achieving a balance between real-time data tracking and display stability. The calculated smoothed display value is serialized into a standard view update instruction and pushed to the corresponding bound chart display control to complete the view refresh. For the asynchronous push and communication connection mechanism of the front-end view state, those skilled in the art can use the conventional WebSocket protocol or server-sending event technology. The principle of long-connection data push is a well-known technology in the field and will not be elaborated here.
[0109] S505, the application publishing module extracts the control flow graph, data flow graph, and bound human-computer interaction interface that have completed secondary orchestration from the interactive canvas, and encapsulates them as an independent algorithm application software.
[0110] During the encapsulation process, the application deployment module traverses the current system workspace, integrating and compressing the static visual framework code, including the interface layout document object model tree, the business flow verification scripts in the logic judgment components, and the standard model entities that the application execution nodes depend on. The microprocessor then packages the states of these components and the underlying runtime environment dependency declarations into a unified package, generating an application image file with self-contained properties. This encapsulation mechanism severs strong dependencies on the internal process orchestration environment, ensuring the consistency of business logic and underlying algorithms in the actual production environment deployment.
[0111] S506 The application publishing module registers the generated algorithm application software with the system's routing center and generates a Uniform Resource Locator (URL) for it to be exposed to the outside world, thereby completing the unified publishing operation of the application software.
[0112] The application deployment module calls the container orchestration interface of the underlying server to allocate an independent process running port and computing thread for the application image file generated above. After resource allocation is initiated, the routing registry center of the application deployment module captures the internal network address of this independent process and maps and binds it with the business identifier string of the current application software, thereby generating a Uniform Resource Locator that conforms to the network transmission protocol specification.
[0113] This Uniform Resource Locator (URL) is persistently recorded in the system's service directory, serving as the sole network entry point for external access. End users can use this URL to directly access the activated human-computer interface through a standard browser to view real-time rendered prediction data; external business systems also continuously inject real-time feature data streams through this network entry point. After packaging and routing by the application deployment module, the underlying algorithm logic is transformed into an online software service resource that can be directly delivered and invoked.
[0114] Specific application examples: The following provides a specific application example of the system architecture and operation method of this invention, based on the actual industrial R&D scenario of compressor proxy model development and application. The business flow process is explained in conjunction with the underlying calculation formulas and interactive interface diagrams.
[0115] See attached document Figure 8 In the initial stage of compressor proxy model training, the resource adaptation module provides data type selection options in the data source setting area of the interface to receive experimental data, simulation data, or mixed experimental and simulation data.
[0116] When importing local Excel files or extracting data from an external self-developed database via the interface, the system extracts parameters including rotational speed, flow rate, and inlet / outlet operating conditions. If the externally input inlet / outlet temperature data is in commonly used engineering units (such as Fahrenheit or Celsius), while the system's internal algorithm requires the use of standard international units (Kelvin), the resource adaptation module calls the set scaling factor. With bias constant Perform linear mapping calculations: This converts the data into a standard format.
[0117] For test data with non-uniform timestamps, the microprocessor extracts effective data points of the precursor based on features such as rotational speed and flow rate, according to a set sampling interval. With subsequent valid data points Perform linear interpolation calculations: Fill in the missing items and output a standard format dataset.
[0118] See attached document Figure 8 The process orchestration module instantiates configuration nodes for the compressor model's specific structural parameters (such as the number of blades, angle of attack, and impeller inlet radius) and training hyperparameters (such as batch size, learning rate, and maximum number of iterations) in the algorithm settings area of the interface. The process orchestration module generates a parameter mapping matrix based on the connection binding relationships within the interface. Perform feature translation calculation: Extract the specified dimension variable from the output features of the preceding data source node and input it into the subsequent algorithm node.
[0119] See attached document Figure 9 After receiving training and evaluation instructions from the interface, the model training module divides the dataset according to the set ratio threshold and controls the background algorithm container to carry out model training. During the iteration cycle, for performance parameters such as compressor pressure ratio, compressor efficiency, and outlet temperature, the microprocessor compares the predicted values from the forward propagation with the true label values and performs error loss calculation. The underlying optimizer is based on this error loss value. Update the model weights.
[0120] During the evaluation phase, the model training module controls the model to run in a dual-channel topology. The system renders MAE, RMSE, and R values in the evaluation results area of the interface. 2 The system generates a quantitative evaluation matrix for indicators such as [insert indicators here], and plots the fitting curves in the chart below to demonstrate the model's fitting effect. After the evaluation is completed, users can trigger the export or submission of the model through the interface. The system extracts data transformation, algorithm settings, and other units, packages them into a standard model entity containing an algorithm compressed package and a formatted description file, submits it to the self-developed database for archiving, and assigns a global version record number.
[0121] In compressor aerodynamic performance simulation or dynamic system matching analysis: See attached document Figure 10 In the surrogate model application interface, the process orchestration module receives commands such as "obtain the latest trained surrogate model from the self-developed database" or "import the latest trained surrogate model from the local database." Based on the global version record number, it extracts the corresponding compressor surrogate model file and displays the set of target variables and operating flow range supported by the model in the algorithm description area. The microprocessor extracts the total number of parameters from the formatted description file. Combined with application concurrent batch size Size of base bytes Perform memory allocation calculations: It requests contiguous memory space from the underlying operating system to load application execution nodes.
[0122] Input feature vectors such as the rotational speed and flow rate to be predicted are entered in the data source settings area. At that time, the system utilizes the set data fluctuation threshold. Perform a validity check: ,when When the value is 1, the feature data is input into the proxy model.
[0123] For scenarios involving high-frequency real-time data stream access, the system allocates a circular queue in memory. The microprocessor bases this queue on the number of backlogged samples. With the time already spent Perform Boolean logic calculations: ,when When true, micro-batch aggregation is triggered, generating an inference batch matrix.
[0124] After receiving the prediction data command from the interface, the application execution node generates normalized prediction vectors for the compressor pressure ratio (PR), efficiency (eta), outlet pressure (P2), outlet temperature (T2), torque (Tc), and power (Pc) at its output interface. The process orchestration module calls the eigenvalue parameters to perform inverse normalization calculations. To obtain actual physical prediction values.
[0125] See attached document Figure 11 The calculation results are displayed in a table in the prediction results area of the interface. The model training module utilizes a smoothing coefficient. Perform an exponential moving average calculation on the time series results: The smoothed data is then pushed to the chart control at the bottom of the interface for rendering and display. Through the above steps, the system realizes online business applications for compressor aerodynamic simulation.
Claims
1. A method for visualizing training and application of an algorithm model, characterized in that, Includes the following steps: It connects to heterogeneous data sources to obtain multi-source data and receives imported underlying algorithm script files, and transforms the multi-source data and the underlying algorithm script files into a unified operation instruction and standard format dataset; Instantiate functional nodes in the operation interface, construct a control flow graph and data flow mapping topology based on the connection relationship between the functional nodes, combine controls to generate a human-computer interaction interface, and complete the arrangement of algorithm model training logic. Based on the unified operation instructions, the standard format dataset, and the algorithm model training logic, the background algorithm container is driven to perform iterative training, packaged to generate standard model entities, submitted to the shared resource library, and assigned a global version record number. Based on the global version record number, the standard model entity is retrieved from the shared resource library and encapsulated as an application execution node. The control flow graph and data flow graph are re-established in combination with the communication interface component and the logic judgment component to complete the decoupling and orchestration of the application software business process. The real-time data stream is accessed through the communication interface component and input to the application execution node to perform forward inference calculation. The result data is transmitted to the human-computer interaction interface for display, and the logic that completes the decoupled orchestration is encapsulated to generate algorithm application software with a Uniform Resource Locator.
2. The algorithm model visualization training and application method according to claim 1, characterized in that, The process involves interfacing with heterogeneous data sources to acquire multi-source data and receiving imported underlying algorithm script files. The multi-source data and the underlying algorithm script files are then transformed into a unified operation command and standard format dataset, including: Extract feature parameters from the communication data packets or offline files contained in the multi-source data to generate an initial data matrix; Anomaly detection is performed on the initial data matrix, erroneous data is removed, and null nodes are filled by mapping. Based on the set sampling points and sampling intervals, linear interpolation is performed on the filled data, and dimensionality reduction and truncation are performed according to the set of feature column names to output the standard format dataset.
3. The method for visual training and application of an algorithm model according to claim 1, characterized in that, The process of interfacing with heterogeneous data sources to acquire multi-source data and receiving imported underlying algorithm script files, and converting the multi-source data and the underlying algorithm script files into a unified operation instruction and standard format dataset, also includes: Static syntax parsing is performed on the underlying algorithm script file to extract the input parameter specifications and output indicator interfaces and register them in the global variable table; A standardized calling container is constructed based on the input parameter specifications to isolate and encapsulate the execution environment of heterogeneous algorithms and generate the unified operation instructions; Read the engineering unit physical variables from the external file, call the baseline parameter matrix to perform linear mapping calculation, convert the engineering unit physical variables into standard SI unit physical variables and import them into the global variable table.
4. The algorithm model visualization training and application method according to claim 1, characterized in that, The step of instantiating functional nodes in the user interface and constructing a control flow graph and data flow mapping topology based on the connection relationships between the functional nodes includes: Directed connections are constructed between the functional nodes that include data reading, algorithm execution, and logical branch determination, the control flow graph is generated, and loop detection calculations are performed synchronously to block reverse connection requests. Based on the directed connection, a parameter mapping matrix in Boolean mask matrix format is generated. Feature extraction and dimension translation calculation are performed. The specified dimension variable in the output feature of the preceding node is extracted and injected into the successor node to generate the data flow mapping topology.
5. The algorithm model visualization training and application method according to claim 4, characterized in that, The combined controls generate a human-computer interaction interface and complete the arrangement of the algorithm model training logic, including: Obtain the coordinates and nesting relationships of the chart display controls to construct the Document Object Model tree; Establish a two-way data flow binding relationship between the read and write properties of the front-end basic controls and the memory parameters of the underlying computing nodes; When the underlying model outputs a normalized prediction vector, it calls the global maximum and global minimum values to perform inverse normalization calculations to obtain the actual physical prediction value, which is then pushed to the human-computer interaction interface for display.
6. The method for visual training and application of an algorithm model according to claim 1, characterized in that, Based on the unified operation instructions, the standard format dataset, and the algorithm model training logic, the background algorithm container is driven to perform iterative training, including: The standard format dataset is divided into a training sample set and a validation sample set according to a set ratio. The unified operation instructions inject the memory read / write addresses and running hyperparameters of the training sample set into the background algorithm container. The initial algorithm model in the background algorithm container is driven by the training logic of the algorithm model to perform forward propagation calculation according to the set batch size. The forward propagation output result is compared with the error loss value calculated by the real label, and the network weight parameters are updated based on the backpropagation chain derivative rule. When the error loss value is lower than the set convergence threshold, the converged algorithm model is controlled to run in the dual-channel verification topology, and the training sample set and the verification sample set are injected through independent channels to perform independent forward inference to generate a quantization evaluation matrix.
7. The algorithm model visualization training and application method according to claim 6, characterized in that, The process of packaging and generating standard model entities, submitting them to the shared resource repository, and assigning a global version record number includes: The complete algorithm engineering nodes are divided into a data source acquisition unit, a data conversion unit, an algorithm setting unit, and an evaluation unit. The network weight parameters in the algorithm setting unit and the underlying execution driver are compiled into an algorithm compressed package; Extract the interface information of the data source acquisition unit, the data conversion unit, and the evaluation unit to generate a formatted description file; The algorithm compressed package and the formatted description file are combined to generate the standard model entity, which is then submitted to the shared resource library. The global version record number is generated by combining the timestamp and the name hash value.
8. The algorithm model visualization training and application method according to claim 7, characterized in that, Retrieving the standard model entity from the shared resource library based on the global version record number and encapsulating it into an application execution node includes: Deserialize the formatted description file inside the standard model entity to extract the total number of parameters and the basic byte size; Based on the expected concurrent batch size, the total number of parameters, the basic byte size, and the set memory redundancy coefficient, the basic memory requirement is calculated and contiguous memory space is requested from the underlying operating system. The decrypted algorithm compressed package is loaded into the contiguous memory space, and the input feature dimensions and output indicator port specifications defined in the formatted description file are extracted to generate the application execution node.
9. The method for visual training and application of an algorithm model according to claim 8, characterized in that, The process of re-establishing the control flow graph and data flow graph by combining the communication interface component and the logic judgment component includes: Instantiate the communication interface component and the logic judgment component in the interactive canvas, and establish directed connections between the communication interface component, the logic judgment component and the application execution node according to the execution priority of business rules to regenerate the control flow graph; The real-time feature vector is extracted through the logical judgment component, the Euclidean norm of the real-time feature vector is calculated and compared with the set data fluctuation threshold; When the Euclidean norm is less than or equal to the data fluctuation threshold, the real-time feature vector is allowed to be injected into the application execution node to generate the data flow graph with cross-node variable transmission.
10. The algorithm model visualization training and application method according to claim 9, characterized in that, The process of accessing real-time data streams through the communication interface component and inputting them to the application execution node for forward inference calculation, and then transmitting the result data to the human-computer interaction interface for display, includes: A circular queue is allocated in memory to store the received one-dimensional real-time feature vectors; When either the number of backlogged samples is greater than or equal to a preset trigger threshold, or the time that the first sample in the queue has been in the queue is greater than or equal to the maximum waiting delay threshold, a data aggregation operation is triggered to generate a two-dimensional inference batch matrix. The inference batch matrix is input into the application execution node to generate a prediction result matrix; The predicted value output by the current microprocessor cycle is calculated by performing an exponential moving average with the smoothed display value of the previous cycle using the built-in smoothing coefficient, and the current smoothed display value is generated and transmitted to the human-computer interaction interface for refresh display.
