Method, device and system for generating operation and maintenance strategy

By combining unified semantic representation and structured prediction results with a generative model, data center operation and maintenance strategies are generated. This solves the problem of lacking future resource supply prediction in existing technologies, realizes the foresight and security compliance of operation and maintenance strategies, and improves the prediction accuracy and execution effect of operation and maintenance strategies.

CN123178228APending Publication Date: 2026-11-27ZHEJIANG DETACENT DATA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611685882.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-29
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In existing technologies, data center operation and maintenance strategies mainly rely on human experience and rule-based responses, lacking the ability to predict future resource supply. This results in operation and maintenance strategies only being generated after resource shortages occur, lacking a window of opportunity for proactive measures.

Method used

By inputting unified semantic representations and structured prediction results into a generative model, an operation and maintenance strategy is generated. By using hard constraint set constraint decoding and combining the physical operation constraints of the data center and the future resource supply boundary, a safe, compliant and executable operation and maintenance strategy is generated.

Benefits of technology

It enables the generation of safe and compliant operation and maintenance strategies before anomalies occur, reducing ineffective strategy trial and error and manual intervention, improving the predictive accuracy and execution effect of operation and maintenance strategies, and forming a continuous optimization closed loop.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123178228A_ABST
    Figure CN123178228A_ABST
Patent Text Reader

Abstract

The application provides a method, device and system for generating an operation and maintenance strategy. The method obtains multi-source heterogeneous operation and maintenance data and historical resource supply data of a data center, generates unified semantic representations through cross-modal alignment; structures and encodes resource supply prediction results obtained through time series prediction to obtain structured prediction results; inputs the unified semantic representations and the structured prediction results into a generative model, and constrains decoding by a hard constraint set composed of physical operation constraints of the data center, wherein device parameters required by each constraint term and real-time state values are provided by the unified semantic representations, and boundaries and safety margins of each constraint term are provided by the structured prediction results; after the strategy is executed by an execution component, a prediction model is updated according to a prediction deviation, and the generative model is updated according to multi-dimensional execution effects. The application can generate a safe, compliant and executable operation and maintenance strategy before an anomaly occurs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of intelligent operation and maintenance technology for data centers, and in particular to a method, apparatus and system for generating operation and maintenance strategies. Background Technology

[0002] Data centers are the core infrastructure of the digital economy. With the continuous expansion of intelligent computing centers and industrial data centers, the number of server racks, servers, power supply and cooling equipment, as well as the volume of alarm events and maintenance decisions within these rooms, is rapidly increasing. In related technologies, maintenance strategies primarily rely on maintenance personnel to formulate them based on expert experience and preset rules: maintenance monitoring systems collect real-time operational data such as rack power consumption and airflow temperatures; when these indicators exceed preset alarm thresholds, alarms or work orders are triggered, and then manual intervention or rule engines provide appropriate measures. Other technologies input text data such as maintenance logs into language models, which then output maintenance suggestions or repair scripts. Compliance checks are performed after strategy generation, and rollbacks are implemented if anomalies occur during execution.

[0003] The common thread in these approaches is their passive response: the input data only reflects the current operational status and does not include predictions of future resource availability. Operational strategies are often generated only after resources such as power and cooling are already strained and trigger alarms, lacking a window for proactive intervention. Therefore, how to proactively generate safe, compliant, and executable operational strategies before anomalies occur is a problem that needs to be solved in this field. Summary of the Invention

[0004] The purpose of this application is to provide a method, device, and system for generating operation and maintenance strategies. The unified semantic representation and structured prediction results are input into a generative model. In the multi-step decoding, the decoding is constrained by a set of hard constraints. The equipment parameters and real-time status values ​​required for each constraint item are provided by the unified semantic representation, and the boundaries and safety margins of each constraint item are provided by the structured prediction results. This allows the operation and maintenance strategy to have both "current physical operation status" and "future resource supply boundaries" at the generation stage, thereby generating a safe, compliant, and executable operation and maintenance strategy before anomalies occur.

[0005] Firstly, this application provides a method for generating operation and maintenance strategies. The method includes: acquiring multi-source heterogeneous operation and maintenance data and historical resource supply data of a data center; performing cross-modal alignment on the multi-source heterogeneous operation and maintenance data to generate a unified semantic representation; performing time-series prediction based on historical resource supply data using a prediction model, and structurally encoding the resource supply prediction results obtained from the time-series prediction to obtain a structured prediction result; inputting the unified semantic representation and the structured prediction result into a generative model, and constraining the decoding in a multi-step decoding process with a set of hard constraints consisting of the physical operation constraints of the data center; and unifying the semantic representation and structured prediction. The results are aligned with the same batch of equipment identifiers. The equipment parameters and real-time status values ​​of each constraint item are taken from the unified semantic representation. The boundaries and safety margins of each constraint item are taken from the lower limit of the prediction confidence interval and the hierarchical label of the corresponding time segment in the structured prediction results. The higher the stress level, the smaller the safety margin. The operation and maintenance strategy is sent to the execution component of the data center for execution. The actual resource supply data after the operation and maintenance strategy is executed is obtained. The prediction deviation is determined based on the structured prediction results and the actual resource supply data. The multi-dimensional execution effect of the operation and maintenance strategy is evaluated. The prediction model is updated based on the prediction deviation, and the generative model is updated based on the multi-dimensional execution effect.

[0006] Furthermore, the aforementioned multi-source heterogeneous operation and maintenance data includes time-series indicator data, operation and maintenance text data, and data center topology data. Cross-modal alignment of the multi-source heterogeneous operation and maintenance data is performed to generate a unified semantic representation, including: inputting the time-series indicator data into a time-series encoder, which performs block embedding and positional encoding on the time-series indicator data, and outputs a time-series token sequence after passing through a Transformer encoding layer; inputting the operation and maintenance text data into a text encoder to obtain a text token sequence; inputting the data center topology data into a topology encoder for graph node representation learning to obtain a topology node representation; using the text token sequence as a query sequence, and using the sequence concatenated from the time-series token sequence and the topology node representation as the key sequence and value sequence, performing cross-modal attention computation to obtain a unified semantic representation; the unified semantic representation is used to represent the current physical operation status of the data center to the generative model.

[0007] Furthermore, the above-mentioned method, based on historical resource supply data, performs time-series forecasting through a prediction model and structures the resource supply forecasting results to obtain structured forecasting results. This includes: inputting historical resource supply data and external features into the prediction model; the prediction model performs time-series forecasting within a preset prediction window according to a preset prediction granularity, and outputs resource supply forecasting results; the resource supply forecasting results include power supply curves, cooling capacity curves, and load trend curves. Each curve consists of the values ​​of multiple forecast times arranged according to a preset prediction granularity within the preset prediction window, and the prediction confidence intervals for each forecast time; dividing the preset prediction window into multiple consecutive time segments according to the preset prediction granularity, with each time segment corresponding to one or more consecutive forecast times; for each curve, statistical analysis is performed based on the values ​​of the curve at the corresponding forecast times in each time segment to obtain the level value, maximum value, and minimum value of each time segment; and mapping the level value of each time segment to a classification label based on a preset classification threshold. The grading threshold is determined by at least one of the upper limit of the capacity and the redundancy margin of the resource corresponding to the curve; the moment when the value reaches the extreme value within each time segment is taken as the inflection point of the time segment, and the value corresponding to the inflection point is taken as the inflection point value of the time segment, which is the maximum or minimum value of the time segment; the width of the prediction confidence interval corresponding to each time segment is taken as the confidence level of the time segment, which is obtained by the uncertainty estimation of the prediction model and is independent of the maximum and minimum values ​​within the time segment; a structured record is generated for each time segment according to a preset template. The structured record includes the time segment identifier, level value, grading label, inflection point moment and its inflection point value, the trend of change represented by the slope of change relative to the previous time segment, the confidence level, and the lower limit of the prediction confidence interval, thus obtaining the structured prediction result corresponding to each curve; multi-source heterogeneous operation and maintenance data includes time series index data, historical resource supply data and time series index data are from the same source, and the generation of structured encoding and unified semantic representation adopts the same normalization scale.

[0008] Furthermore, the aforementioned generative model generates operation and maintenance strategies through multi-step decoding. In this multi-step decoding, a set of hard constraints comprised of physical operational constraints of the data center constrains the decoding process. This includes: the generative model generating candidate strategies based on a pre-defined strategy action template, using unified semantic representation and structured prediction results as conditions. The action type and target of the candidate strategies are limited by the allowed values ​​of the parameter slots in the strategy action template, and the target is the equipment in the data center represented by the unified semantic representation. In the multi-step decoding, some of the generated strategies are instantiated into specific parameter values ​​and substituted into the hard constraint set for constraint satisfaction checks, suppressing those that fail the constraint satisfaction check. Candidate strategies are checked; and the numerical parameters of candidate strategies that meet the constraint check but whose numerical parameters exceed the feasible region defined by the hard constraint set are corrected to the feasible region; candidate strategies that have filled all parameter slots and meet the hard constraint set are included in the candidate strategy set; wherein, the equipment parameters and real-time status values ​​required for each constraint item in the hard constraint set are provided by the unified semantic representation, and the boundaries and safety margins of each constraint item are provided by the structured prediction results, and the boundaries and safety margins of each constraint item are taken from the lower limit of the prediction confidence interval and the hierarchical label of the corresponding time segment in the structured record; in the candidate strategy set, the operation and maintenance strategy is determined according to the soft constraint scoring function.

[0009] Furthermore, the above-mentioned instantiation of the generated partial strategies into specific parameter values ​​and substitution into the hard constraint set for constraint satisfaction checks suppresses candidate strategies that fail the constraint satisfaction check; and the correction of the numerical parameters of candidate strategies that pass the constraint satisfaction check but whose numerical parameters exceed the feasible region defined by the hard constraint set to the feasible region includes: at each decoding step of autoregressive decoding, instantiating the partial strategies generated in that decoding step into specific parameter values ​​and substituting the specific parameter values ​​into each inequality constraint in the hard constraint set for feasibility verification; for candidate tokens that are determined to be infeasible in the feasibility verification, setting the generation probability of the candidate tokens to a preset minimum value through a logit mask; or, for the decoding branch to which the candidate tokens that are determined to be infeasible in the feasibility verification belong, pruning the decoding branch in the bundle search; and re-normalizing and sampling the remaining candidate tokens after the logit mask to ensure that each Candidate token generation for the decoding step is restricted to the feasible region. After logit masking or bundle search pruning, and all parameter slots of any decoding branch are filled to obtain candidate strategies, if the numerical parameters of the candidate strategies still exceed the feasible region, the nearest projection point of the numerical parameters on the feasible region is calculated, the numerical parameters are corrected to the values ​​corresponding to the nearest projection point, and the corrected candidate strategies are included in the candidate strategy set. When all candidate tokens of any decoding branch fail the feasibility check in any decoding step, the decoding branch is taken as the target decoding branch, and the process is reversed to the state of the decoding step that passed the feasibility check before the target decoding branch. A preset score penalty is applied to the candidate tokens of the target decoding branch in the decoding step at the time of the reversal to reduce the candidate solution score of the target decoding branch, and the search is repeated according to the reduced candidate solution score until a candidate strategy that satisfies the hard constraint set is obtained and included in the candidate strategy set.

[0010] Furthermore, the aforementioned set of hard constraints includes at least two of the following: temperature upper limit constraint, power capacity constraint, and cooling redundancy constraint; the soft constraint scoring function is a weighted sum of the sub-scorings of multiple objectives; in the candidate strategy set, the operation and maintenance strategy is determined according to the soft constraint scoring function, including: calculating the sub-scorings of multiple objectives for each candidate strategy in the candidate strategy set, and weighting and summing the sub-scorings to obtain the candidate strategy score; the multiple objectives include energy efficiency objectives, reliability objectives, and cost objectives; the sub-scorings of the energy efficiency objective are determined based on the data center's power utilization efficiency and energy savings, the sub-scorings of the reliability objective are determined based on the service level agreement default risk and redundancy margin, and the sub-scorings of the cost objective are determined based on operating costs and electricity costs; candidate strategies dominated by other candidate strategies are removed from the candidate strategy set to obtain a non-dominated solution set, and the candidate strategy with the largest candidate strategy score in the non-dominated solution set is selected as the operation and maintenance strategy; when outputting the operation and maintenance strategy, the sub-scorings of the operation and maintenance strategy under multiple objectives and the reasons for objective selection are also output, and when the reasons for objective selection indicate that manual confirmation is required, the operation and maintenance strategy is sent to the execution component after manual confirmation.

[0011] Furthermore, the above-mentioned multi-dimensional evaluation of the operation and maintenance strategy includes: collecting data center operation data after the operation and maintenance strategy is implemented to obtain indicator data for each of the multiple evaluation dimensions; the multiple evaluation dimensions include energy efficiency, performance, reliability, security, cost, service level agreement compliance, and prediction accuracy; the indicator data for the prediction accuracy dimension is determined by the deviation between the structured prediction results and the actual resource supply data; the indicator data for each evaluation dimension are normalized to obtain the dimension score for each evaluation dimension; and the scores of each dimension are weighted and summed according to their respective weights to obtain a comprehensive score for the execution effect of the operation and maintenance strategy.

[0012] Furthermore, the above-mentioned updating of the prediction model based on prediction deviation and updating of the generative model based on multi-dimensional execution effects includes: prediction deviation including the mean absolute error, root mean square error, and supply-demand gap rate between the structured prediction results and the actual resource supply data, where the supply-demand gap rate is the ratio of the difference between the predicted supply power and the actual supply power to the upper limit of the data center capacity; when the mean absolute error or root mean square error exceeds a preset error threshold, the prediction model is retrained or fine-tuned; when the absolute value of the supply-demand gap rate exceeds a preset gap threshold, the risk level parameter of the generative model is adjusted according to the positive or negative value of the supply-demand gap rate, where the risk level parameter is the operating parameter when the generative model generates the operation and maintenance strategy, representing the degree of trade-off between ensuring the physical security of the data center and improving energy efficiency; The risk level parameters are updated jointly by the supply-demand gap ratio and the comprehensive performance score, with upper and lower limits for their values. Operational strategies with a comprehensive performance score higher than a preset threshold and no security constraint violations indicated by the security dimension are used as positive samples, while those with a comprehensive performance score lower than the preset threshold are used as negative samples. These are used to align or fine-tune the generative model's parameters online. Simultaneously with this alignment or fine-tuning, the risk level parameters are updated in conjunction with the results. Operational strategies and their comprehensive performance scores are stored in a strategy knowledge base for reference when the generative model generates the next operational strategy. The updated generative model is then put into operation after successful playback verification in the data center's digital twin environment.

[0013] Secondly, this application also provides an apparatus for generating operation and maintenance strategies, comprising: a data acquisition module for acquiring multi-source heterogeneous operation and maintenance data and historical resource supply data of a data center; a cross-modal alignment module for performing cross-modal alignment on the multi-source heterogeneous operation and maintenance data to generate a unified semantic representation; a supply prediction module for performing time-series prediction based on historical resource supply data through a prediction model, and performing structured encoding on the resource supply prediction results obtained from the time-series prediction to obtain structured prediction results; and a strategy generation module for inputting the unified semantic representation and structured prediction results into a generative model, which generates operation and maintenance strategies through multi-step decoding, wherein the decoding is constrained by a set of hard constraints consisting of physical operation constraints of the data center; the unified semantic representation and structured prediction results are aligned according to the same batch of equipment identifiers, and the equipment parameters and real-time status values ​​of each constraint item are taken as... The unified semantic representation and the boundaries and safety margins of each constraint are taken from the lower limit of the prediction confidence interval and the hierarchical label of the corresponding time segment in the structured prediction results, and the higher the stress level, the smaller the safety margin; the execution evaluation module is used to distribute the operation and maintenance strategy to the execution component of the data center for execution, obtain the actual resource supply data after the operation and maintenance strategy is executed, determine the prediction deviation based on the structured prediction results and the actual resource supply data, and evaluate the multi-dimensional execution effect of the operation and maintenance strategy; the model update module is used to update the prediction model based on the prediction deviation and update the generative model based on the multi-dimensional execution effect; the cross-modal alignment module and the supply prediction module are respectively connected to the strategy generation module, the strategy generation module is connected to the execution component through the execution evaluation module, the execution evaluation module is connected to the model update module, and the model update module is connected to the supply prediction module and the strategy generation module respectively, forming a feedback loop.

[0014] Thirdly, this application also provides a system for generating operation and maintenance strategies, including a processor and a memory, wherein the memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to implement the method described in the first aspect.

[0015] The operation and maintenance strategy generation method, device, and system provided in this application generate a unified semantic representation from multi-source heterogeneous operation and maintenance data through cross-modal alignment, enabling the generative model to "see" the current physical operation status of the data center. Historical resource supply data is generated into structured prediction results through time-series prediction and structured encoding, allowing future resource supply to participate in decision-making in a form readable by the generative model. The combination of these two approaches transforms the operation and maintenance mode from "post-event response" to "pre-event prevention," providing a time window for early handling of actions such as peak shaving, rate limiting, and migration. Furthermore, the hard constraint set is not verified only after execution, but rather constrained during the multi-step decoding process: the equipment parameters and real-time status values ​​required for the constraint items are taken from the unified semantic representation, ensuring that each constraint can be applied to specific racks and devices to truly participate in the calculation; the boundaries and safety margins of the constraint items are taken from the structured prediction results, causing the constraint threshold to dynamically tighten with the predicted supply level and redundancy margin in future periods, thereby suppressing the generation of out-of-bounds and unexecutable strategies from the source and reducing ineffective strategy trial and error and manual intervention. Furthermore, after the strategy is executed, the prediction deviation is determined by the actual resource supply data and structured prediction results, and the strategy is evaluated by multi-dimensional execution effect. The prediction model is updated by the prediction deviation and the generative model is updated by multi-dimensional execution effect, forming a continuous optimization closed loop of "more accurate prediction → more reliable strategy basis → improved execution effect → evaluation feedback → further correction", so that the prediction accuracy and strategy quality evolve in sync. Attached Figure Description

[0016] To more clearly illustrate the technical solutions in the specific embodiments of this application or the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0017] Figure 1 A flowchart illustrating a method for generating an operation and maintenance strategy as provided in an embodiment of this application; Figure 2 A flowchart illustrating another method for generating an operation and maintenance strategy provided in this application embodiment; Figure 3 A flowchart illustrating the generation of a hierarchical constraint-embedded strategy is provided for an embodiment of this application. Figure 4 A flowchart of a dual-signal feedback optimized closed-loop process is provided for embodiments of this application; Figure 5 A structural block diagram of an operation and maintenance strategy generation device provided in an embodiment of this application; Figure 6 This is a schematic diagram of the structure of an operation and maintenance strategy generation system provided in an embodiment of this application. Detailed Implementation

[0018] The technical solutions of this application will be clearly and completely described below with reference to the embodiments. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0019] Example 1: This embodiment provides a method for generating operation and maintenance policies. The executing entity can be a data center operation and maintenance management platform or a policy generation device deployed on that platform. Figure 1 As shown, this method generally follows the main line of "multi-source data input → cross-modal alignment → supply forecasting and structured coding → constraint-aware strategy generation → execution and evaluation → feedback optimization," and is continuously iterated through dual-signal closed-loop feedback. The following explanation uses steps S101 to S106 as examples.

[0020] S101. Obtain multi-source heterogeneous operation and maintenance data and historical resource supply data of the data center.

[0021] Multi-source heterogeneous operation and maintenance data describes "what is currently happening" in the data center and can include time-series indicator data, operation and maintenance text data, and data center topology data: Time-series indicator data includes, for example, rack power consumption, total power consumption, UPS status, chiller power, inlet and outlet air temperature, IT load (CPU / memory / IO utilization), and network traffic, with a sampling granularity of 5 to 15 minutes; Operation and maintenance text data includes, for example, operation and maintenance alarm logs, change orders, inspection records, equipment manuals, and historical operation and maintenance policy texts; Data center topology data describes the hierarchical structure of "data center → rack → server → GPU" and carries equipment attributes (model, rated power, cooling capacity, redundancy level) and connection relationships.

[0022] Historical resource supply data refers to the supply records of resources such as power supply, cooling capacity, and load within the same data center over past periods. It's important to note that multi-source heterogeneous operation and maintenance data and historical resource supply data can originate from the same collection channel; that is, they share the same source. For example, power consumption readings of the same server rack at the same sampling granularity can serve both as current time-series indicator data for generating a unified semantic representation and as historical resource supply data for time-series prediction. Consistent source collection ensures that subsequent processing links maintain consistency in their treatment of the same physical quantity, avoiding contradictory inputs to the generative model due to differences in units or normalization methods.

[0023] S102. Perform cross-modal alignment on multi-source heterogeneous operation and maintenance data to generate a unified semantic representation.

[0024] Time-series metrics data, operational text data, and data center topology data are independent in form—one is a numerical sequence, one is natural language, and one is a graph structure—and cannot be directly concatenated and fed into the generative model. This step maps the three types of data to the same semantic space through cross-modal alignment, obtaining a unified semantic representation Z. This unified semantic representation is used to characterize the current physical operational status of the data center to the generative model, i.e., answering "what is the current status, what equipment is there, and what is the status of each device."

[0025] Unified semantic representation functions in S104 through four paths: First, it serves as an input prerequisite for the generative model, forming the main body of the generation conditions together with the structured prediction results. Second, it completes the set of hard constraints by providing the necessary equipment parameters and real-time status values ​​for each constraint term. For example, it specifies which racks are involved in the constraints, the rated power of the rack, the current inlet air temperature, and the remaining cooling capacity. These values ​​all come from the unified semantic representation, where topology provides equipment attributes and time series provides real-time status. Constraint terms can only be truly calculated when they are applied to specific equipment. Third, it limits the selectable targets. The strategy of "migrate to which rack" can only be selected from the topology devices described by the unified semantic representation, preventing errors such as "migrate to a non-existent rack." Fourth, it provides justification for the strategy, such as "because the inlet air temperature of rack A03 has reached 31°C and the fan speed is too low." In short, the unified semantic representation determines "who to apply it to, how much to apply, and why to apply it."

[0026] S103. Based on historical resource supply data, time-series forecasts are made using a forecasting model, and the resource supply forecast results obtained from the time-series forecasts are structured and encoded to obtain structured forecast results.

[0027] The predictive model takes historical resource supply data as input and extrapolates forward within a preset prediction window at a preset prediction granularity, outputting resource supply prediction results, such as electricity supply curves, cooling capacity curves, and load trend curves. Structured coding is necessary because the input to generative models is discrete, semantically understandable symbols. A continuous curve lasting 24 hours with sampling points every 5 minutes is both lengthy and inconvenient for direct comparison, making it difficult for the model to determine "which period will be strained, where the critical point is, and how reliable this judgment is." Structured coding transcribes the continuous curve into structured records arranged by time segments. Each record carries the level of strain, gradation of tension, inflection point location and value, trend, and reliability for that period.

[0028] The structured prediction results play four roles in S104: First, determining whether and when to take action—if all time segments are at the "sufficient" level, a maintenance strategy is output; once the "tense / insufficient" level appears or the inflection point approaches the safety line, peak shaving, flow limiting, or migration actions are triggered in advance, with a default lead time of 30-60 minutes; Second, determining the extent of action—numerical parameters such as flow limiting thresholds are determined with reference to the lower limit of the predicted supply, ensuring that even if the prediction is optimistic, it will not exceed the limit; Third, determining how conservative the approach should be—the wider the confidence interval, the more conservative the strategy, and the higher the proportion requiring manual confirmation; Fourth, pairing with the unified semantic representation to form a complete "current situation + future" input. This can be understood as follows: the unified semantic representation governs "whether it can be done, to whom it should be done, and on what basis," while the structured prediction results govern "whether it should be done, when it should be done, and to what extent." Both are indispensable—with only the unified semantic representation, it reverts to a real-time passive response; with only the structured prediction results, there are no actionable targets or constraints.

[0029] S104. Input the unified semantic representation and structured prediction results into the generative model. In the multi-step decoding, the decoding is constrained by a set of hard constraints consisting of the physical operation constraints of the data center. The unified semantic representation and structured prediction results are aligned with the same batch of equipment identifiers. The equipment parameters and real-time status values ​​of each constraint item are taken from the unified semantic representation. The boundaries and safety margins of each constraint item are taken from the lower limit of the prediction confidence interval and the grade label of the corresponding time segment in the structured prediction results. The higher the tension level, the smaller the safety margin.

[0030] Generative models, based on unified semantic representation and structured prediction results, gradually generate the content of operation and maintenance strategies (such as action types, target objects, numerical parameters, and rationale explanations) through multi-step decoding, rather than outputting free text all at once. The so-called "constraint on decoding" refers to the constraint on the strategy being generated itself, that is, the devices and values ​​in the strategy, rather than decoding the data or prediction curves; unified semantic representation and structured prediction results are prerequisites, located on the input side.

[0031] The key to this step lies in who provides the "number" and "boundary" of each constraint in the hard constraint set: the equipment parameters and real-time status values ​​required for the constraint (rated power of the target rack, remaining cooling capacity, current inlet and outlet air temperatures, redundancy level) are provided by a unified semantic representation; the boundaries and safety margins of the constraint (the predicted lower limit of supply for this period, and how long it is expected that the cooling capacity will approach the critical point) are provided by the structured prediction results. Both are aligned according to the same batch of equipment numbers—each time segment in the structured prediction results is associated with the same batch of equipment, so they can be directly combined, avoiding the disconnect of "predicting a power shortage but not knowing which rack it is."

[0032] Taking the upper limit of temperature constraint as an example, the "current intake air temperature" is taken from the unified semantic representation, while the "permissible upper limit of temperature for this period" is determined based on the cooling capacity level and redundancy margin given by the structured prediction results. Taking the power capacity constraint as an example, the "total power of the rack after migration" is derived from the equipment attributes and real-time status in the unified semantic representation, while the "capacity limit not to be exceeded" is determined by the classification label and lower limit of the confidence interval for this period in the structured prediction results. In this way, hard constraints are no longer ex-post verification rules that are unrelated to the generation process, but rather constraints that dynamically tighten with changes in future resource supply, and which can be truly calculated at each step of decoding.

[0033] S105. The operation and maintenance strategy is sent to the execution component of the data center for execution, the actual resource supply data after the operation and maintenance strategy is executed is obtained, the prediction deviation is determined based on the structured prediction results and the actual resource supply data, and the multi-dimensional execution effect of the operation and maintenance strategy is evaluated.

[0034] The execution components are objects that can be called automatically via APIs by the operation and maintenance orchestration platform, such as load scheduling interfaces, chiller control interfaces, and GPU training task concurrency control interfaces. Execution logs are recorded during the execution process. After the strategy is issued and executed, the actual resource supply data is transmitted back from the same batch of acquisition channels. This data is then compared item by item with the structured prediction results generated by S103, segment by segment, to obtain the prediction deviation. The reason for retrieving the actual resource supply data after execution is that the prediction deviation serves as both a basis for evaluating the accuracy of the prediction and an input for correcting the prediction model and adjusting the conservatism of the strategy in S106. Multi-dimensional execution effects quantify the actual benefits of this strategy from multiple dimensions, including energy efficiency, performance, reliability, security, cost, service level agreement compliance, and prediction accuracy, avoiding judgment of the strategy's effectiveness based on a single indicator.

[0035] S106. Update the prediction model based on the prediction bias, and update the generative model based on the multi-dimensional execution effect.

[0036] The prediction deviation signal is fed back to the prediction model in S103 for retraining or fine-tuning; the multi-dimensional execution effect signal is fed back to the generative model in S104 for iterating model parameters. These two signals act on two models respectively, forming a dual-signal closed loop: more accurate prediction → more reliable strategy basis → improved execution effect → evaluation feedback → further correction. Thus, this embodiment does not end with the generation of a single strategy, but rather establishes physical connections between the stages of "execution → evaluation → feedback → regeneration," enabling the operation and maintenance strategy to be continuously optimized based on operational data.

[0037] The method for generating operation and maintenance strategies provided in this application has the following beneficial effects: ① After the three types of data—time series, text, and topology—are aligned into the same semantic space, the generative model obtains a complete physical operational status rather than a single modality fragment. Therefore, the matching degree between the generated strategy and the physical operational status of the data center is improved, reducing strategies that point to non-existent equipment or ignore on-site conditions.

[0038] ② The resource supply in the future period enters the generation conditions in a generative model readable form, which expands the decision-making basis from "current state" to "current state + future supply", so that the operation and maintenance strategy can be generated before the anomaly occurs, and the operation and maintenance mode changes from ex-post response to ex-ante prevention.

[0039] ③ In multi-step decoding, hard constraint sets are used to constrain the decoding process. That is, the constraints occur during the generation process rather than after execution. Candidates that do not meet the constraints are excluded during the decoding period. Therefore, the safety and compliance of the strategy are guaranteed from the source, and invalid strategy trial and error and the resulting manual intervention are avoided.

[0040] ④ The "number" and "boundary" of the constraint terms are obtained separately and aligned with the equipment numbers of the same batch, so that the hard constraints can be actually calculated on specific equipment and can be dynamically tightened according to the future resource supply tension, thereby achieving both "foresight" and "safety and compliance", which cannot be achieved by simply introducing prediction or simply adding ex-post verification.

[0041] ⑤ Update the prediction model based on the prediction deviation and update the generative model based on the multi-dimensional execution effect. The two models are driven by signals corresponding to their respective responsibilities for iteration. The prediction accuracy and strategy quality evolve synchronously and continuously. The long-term effect of the solution does not decay with changes in equipment and business.

[0042] Example 2: This embodiment is based on Embodiment 1 and illustrates the optional implementation methods of each step using a specific scenario. Scenario: A smart computing center predicts fluctuations in mains power supply and tight UPS capacity in the next 2 hours, which may lead to a power bottleneck if the current load is maintained. As shown in Figure 2, the overall process diagram in this scenario includes six steps: ① multi-source data acquisition and multi-modal fusion encoding, ② resource supply prediction, ③ constraint-aware strategy generation, ④ strategy verification and execution review, ⑤ multi-dimensional execution effect evaluation, and ⑥ dual-signal feedback optimization. It should be understood that ① and ② take multi-source heterogeneous operation and maintenance data and historical resource supply data as inputs, respectively. There is no necessary sequential dependency between them, and they can be executed in parallel. The arrows in Figure 2 are only used to indicate the overall order in which each step is incorporated into ③.

[0043] (I) On the generation of unified semantic representation.

[0044] Time-series metrics data are equally spaced numerical sequences, operational text data is natural language, and data center topology data is a graph structure with connections; their representation spaces are completely different. If these three types of data are simply pieced together into a text segment using the same timestamp and fed to a generative model, the model cannot perceive topological causality, nor can it correlate a temperature curve with an alarm description for a specific device. Therefore, in one optional implementation, multi-source heterogeneous operational data includes time-series metrics data, operational text data, and data center topology data. S102 may include: Time-series metric data is input into a time-series encoder, which performs block embedding and position encoding on the time-series metric data, and outputs a time-series token sequence after passing through a Transformer encoding layer. Operation and maintenance text data is input into a text encoder to obtain a text token sequence. Data center topology data is input into a topology encoder for graph node representation learning to obtain a topology node representation. The text token sequence is used as the query sequence, and the sequence concatenated with the time-series token sequence and the topology node representation is used as the key sequence and value sequence. Cross-modal attention computation is performed to obtain a unified semantic representation. The unified semantic representation is used to represent the current physical operation status of the data center to the generative model.

[0045] Specifically, the temporal encoder performs patch embedding on the indicator sequence and superimposes positional encoding, enabling the model to see both the numerical value and its position on the time axis; the text encoder can use a pre-trained language model to encode work orders and logs; the topology encoder can use a graph attention network (GAT / GNN) to learn the data center topology embedding. Cross-modal attention calculation can be represented as: Z = CrossAttention(Q = H_x, K = [H_t ; H_g], V = [H_t ; H_g]). Here, H_t is the temporal token sequence, H_x is the text token sequence, H_g is the topological node representation, ";" indicates concatenation, and Z is the unified semantic representation.

[0046] The reason for using a text token sequence as the query sequence and a sequence concatenated with a time-series token sequence and topological node representations as the key and value sequences is that text carries operational semantics (what happened, what problem was recorded). Using operational semantics as the query to retrieve time-series and topological data allows text tokens to proactively "grab" relevant evidence from numerical sequences and graph structures. For example... Figure 2 As shown in ①, time-series metrics, text logs / work orders, and data center topology are aligned through cross-modal attention to output a unified semantic representation Z, which serves as the input context for the constraint-aware strategy generated in ③.

[0047] In this embodiment, the three modalities are aligned to the same semantic space, and the unified semantic representation becomes a "situational description" that can be directly read by the generative model, so that the objects, parameters and states on which the strategy is based are complete and mutually corroborated, and the matching degree between the strategy and the physical operation status of the data center is significantly improved.

[0048] (ii) Specific practices regarding structured coding.

[0049] Predictive models output continuous curves, while generative models take discrete inputs. Furthermore, operational decisions are not concerned with details like "supply is 1483.6kW in the 7th minute," but rather with "which period will be tight, how low will it drop, and how reliable is this judgment?" Therefore, in one possible implementation, S103 can include: (1) Input historical resource supply data and external features into the prediction model. The prediction model performs time-series prediction within the preset prediction window according to the preset prediction granularity and outputs the resource supply prediction results. The resource supply prediction results include the power supply curve, the cooling capacity curve and the load trend curve. Each curve consists of the values ​​of multiple prediction times arranged according to the preset prediction granularity within the preset prediction window and the prediction confidence interval of each prediction time. (2) Divide the preset prediction window into multiple consecutive time segments according to the preset prediction granularity, with each time segment corresponding to one or multiple consecutive prediction times; (3) For each curve, statistical analysis is performed based on the value of the curve at the corresponding prediction time in each time segment to obtain the level value, maximum value, and minimum value of each time segment; (4) Map the level value of each time segment to the level label of the time segment according to the preset level threshold. The preset level threshold is determined by at least one of the capacity limit and redundancy margin of the resource corresponding to the curve. (5) The moment when the value in each time segment reaches the extreme value is taken as the inflection point of the time segment, and the value corresponding to the inflection point moment is taken as the inflection point value of the time segment. The inflection point value is the maximum or minimum value corresponding to the time segment. In other embodiments, the inflection point moment can also be the moment when the rate of change of the value on the curve exceeds the preset mutation threshold, and the inflection point value is the value corresponding to that moment.

[0050] (6) The width of the prediction confidence interval corresponding to each time segment is used as the confidence level of the time segment. The prediction confidence interval is obtained by the uncertainty estimation of the prediction model and is independent of the maximum and minimum values ​​within the time segment. (7) Generate a structured record for each time segment according to the preset template. The structured record includes the time segment identifier, level value, grade label, inflection point time and its inflection point value, the trend of change represented by the slope of change relative to the previous time segment, confidence level and lower limit of the prediction confidence interval, and obtain the structured prediction result corresponding to each curve. Among them, the multi-source heterogeneous operation and maintenance data includes time-series indicator data. Historical resource supply data and time-series indicator data are from the same source, and the generation of structured coding and unified semantic representation adopts the same normalization scale.

[0051] For example: Assuming a preset forecast window of 2 hours and a preset forecast granularity of 5 minutes, a total of 24 consecutive time segments are obtained; the upper limit of power supply capacity is 2000kW. The preset grading thresholds are determined based on the upper limit of capacity and in conjunction with redundancy margin. These preset grading thresholds can be determined by the quantiles of the historical supply data of the resource corresponding to the curve, or by operation and maintenance expert rules, and are linked to the upper limit of capacity and redundancy margin of the resource. Examples are: Sufficient ≥1700kW, Good 1500~1700kW, Tight 1300~1500kW, Insufficient 1100~1300kW, Severe <1100kW, which are respectively 85%, 75%, 65%, and 55% of the upper limit of capacity as grading thresholds. Take the 9th time segment (time period labeled T+40 to 45 minutes): The statistical values ​​obtained from the prediction times within this segment are 1480kW, with a maximum of 1660kW and a minimum of 1310kW. The slope of change relative to the 8th time segment is approximately a decrease of 18kW every 5 minutes, indicating a downward trend. The level value of 1480kW falls within the 1300-1500kW range, so the classification label is "tight". The time when the value reaches its extreme value (minimum) within this segment is T+45 minutes, so the inflection point time is T+45 minutes, and the inflection point value is the minimum value of 1310kW. The prediction confidence interval for this segment is obtained from the uncertainty estimate of the prediction model, for example, 1310-1660kW. The interval width of 350kW is used as the confidence level for this segment. The larger the width, the more uncertain the supply during this period. (It should be noted that this interval is given independently by the uncertainty estimate and is not derived from the same statistic as the maximum and minimum values ​​within the segment.) The structured record generated according to the preset template is in the form of: "Time window T+40~45 minutes|Level value 1480kW|Tense level|Inflection point T+45 minutes 1310kW|Declining trend|Confidence interval width 350kW|Lower confidence limit 1310kW". The above preset template can use a sequence of tokens with type tags or structured text: the former arranges the time period identifier, level value, grade label, inflection point time and its inflection point value, change trend, confidence level and lower limit value in the form of tokens with type tags in sequence, while the latter is expressed in the form of text separated by field name and value. Both can be directly read by the generative model.

[0052] The prediction model can be a long-sequence Transformer time series prediction model (such as Informer, PatchTST). External features can include weather, time period and scheduling. The preset prediction window can be 1 to 24 hours and the preset prediction granularity can be 5 to 15 minutes.

[0053] Regarding "common origin" and "same normalization scale": The structured prediction result is derived by extrapolating the time-series data in the unified semantic representation. Both use the same encoding and normalization caliber for the same physical quantity, and each time segment is associated with the same batch of rack numbers. Therefore, in the input of the generative model, the unified semantic representation and the structured prediction result are not two parallel inputs, but rather a pair consisting of "current state + future state," and they will not conflict when combined.

[0054] In this embodiment, the continuous curve is transcribed into a structured record arranged by time segments. The generative model can directly read "which period is tense, where the critical point is, and how reliable the judgment is" without having to summarize from the long sequence. The input length and information density are improved at the same time. The hierarchical label is determined by the capacity limit and redundancy margin, the inflection point value is taken from the extreme value within the segment, and the confidence level is taken from the interval width of the uncertainty estimate and is independent of the extreme value. The three are decoupled from each other, so that the boundary and safety margin of the subsequent hard constraints have clear and verifiable value sources. The same source and the same normalization scale further ensure that the "current situation" and the "future" are not disconnected.

[0055] (III) Specific process for generating constraint-aware strategies.

[0056] If a generative model outputs maintenance suggestions as free text, the results cannot guarantee that they point to real-world devices or that the parameters fall within a physically feasible range. In one alternative implementation, the generative model can be a pre-trained large language model with parameters ranging from 7B to 14B. This pre-trained large language model can be fine-tuned using low-rank adaptive optimization (LoRA) or prefix tuning based on historical work orders, historical maintenance strategy texts, and operational logs to obtain the generative model. The output of the generative model is not free text, but rather slot content filled according to a pre-defined strategy action template, including the action type, target, numerical parameters, and rationale. An executable operation and maintenance strategy can be output based on unified semantic representation and structured prediction results because: firstly, the output is bounded by the strategy action template and constrained decoding, and the generative model only needs to select from legal action types, target objects, and numerical parameters; secondly, the unified semantic representation and structured prediction results have already provided the generative model with the current physical operation status of the data center and the future resource supply situation, providing complete decision-making information; and thirdly, the set of hard constraints is satisfied during the multi-step decoding process, making the output operation and maintenance strategy inherently executable. Therefore, in one possible implementation method, such as... Figure 3 As shown, S104, "The generative model generates an operation and maintenance strategy through multi-step decoding, and the decoding is constrained by a set of hard constraints in the multi-step decoding," can include: (1) The generative model generates candidate strategies based on the unified semantic representation and structured prediction results. The action type and target of the candidate strategy are limited by the values ​​allowed by the parameter slots of the strategy action template. The target is the equipment in the data center represented by the unified semantic representation. (2) In the multi-step decoding, the generated partial strategies are instantiated into specific parameter values ​​and substituted into the hard constraint set for constraint satisfaction check, suppressing candidate strategies that fail the constraint satisfaction check; and the numerical parameters of candidate strategies that pass the constraint satisfaction check but whose numerical parameters exceed the feasible region defined by the hard constraint set are corrected to the feasible region. (3) Candidate strategies that have been filled in all parameter slots and satisfy the set of hard constraints are included in the candidate strategy set; wherein, the equipment parameters and real-time status values ​​required for each constraint item in the set of hard constraints are provided by the unified semantic representation, and the boundaries and safety margins of each constraint item are provided by the structured prediction results. The boundaries and safety margins of each constraint item are taken from the lower limit of the prediction confidence interval and the hierarchical label of the corresponding time segment in the structured record. (4) Determine the operation and maintenance strategy based on the soft constraint scoring function from the candidate strategy set.

[0057] Combination Figure 3 Explain the process: Figure 3 The upper part, "Generative Model Decoding (Multimodal Context Z + Prediction Result Encoding)," corresponds to the input side, and its output enters "Hard Constraint Check (Mandatory Satisfaction During Decoding)," where the check items are the inequality constraint set C_hard = {c1(x)≤0, c2(x)≤0, …, c n (x)≤0};where C_hard is the set of hard constraints, c i (x) is the i-th constraint function, x is the adjustable parameter vector of the operation and maintenance strategy, and S(policy) is the soft constraint scoring function; the candidates that pass the inspection enter the "soft constraint scoring (candidate strategy trade-off)", which is the scoring function S(policy) composed of energy efficiency (PUE), cost, and reliability (SLA); finally, the "operation and maintenance strategy is output".

[0058] The explanations of each feature are as follows: Strategy action templates are in the form of "migrate the {load} of {rack} to {target}" or "set the upper limit of {equipment} temperature to {value} ℃". The action type (migrate / current limiting / cooling / start standby / maintain) and the target (selected from the topology devices described by the unified semantic representation) are limited by the allowed values ​​of the parameter slots. The generative model only needs to fill in the valid values, structurally avoiding the generation of arbitrary free text instructions. Constraint satisfaction checks are performed during the autoregressive decoding process: at each generation step, the generated partial strategy is instantiated into specific parameter values, substituted into hard constraint inequalities for rapid feasibility verification. If a candidate makes the constraint function c... i If (x) > 0, the strategy is deemed infeasible and suppressed. The "decoding" process repeatedly examines the equipment and values ​​within the strategy—setting the temperature, current limiting threshold, which rack to migrate to, and the migration ratio—and these quantities must be completed by unified semantic representation and structured prediction results before judgment: the target rack's rated power, remaining cooling capacity, current inlet and outlet air temperatures, and redundancy level come from the unified semantic representation; the predicted lower limit of supply for that period (e.g., 1310kW) and the estimated timeframe for cooling capacity to approach the critical point come from the structured prediction results. Boundaries and safety margins are taken from the lower limit of the prediction confidence interval and the classification label of the corresponding time segment in the structured record. For example, the current limiting threshold is set according to the level corresponding to the lower confidence limit of 1310kW, ensuring that even if the prediction is overly optimistic, it does not exceed the limit; for periods with classification labels of "tight" or "insufficient," the safety margin is correspondingly tightened. Candidate strategies that are filled with all parameter slots and satisfy the hard constraint set are included in the candidate strategy set, and then the soft constraint scoring function selects the best from among them.

[0059] In this embodiment, the decoding space is first narrowed to legal actions and legal objects by the template, and then filtered layer by layer by hard constraints during the generation process. Non-compliant candidates are suppressed on the spot, and out-of-bounds values ​​are pulled back to the feasible domain. Each item in the output candidate strategy set is a physically executable strategy. Therefore, there is no need to use real devices to test and verify whether the strategy is feasible. The strategy execution rate and security are improved at the same time. Furthermore, since the boundary and safety margin are taken from the confidence lower limit and grade label of the corresponding time segment, the constraint threshold adaptively tightens with the future supply level, and the foresight is bound to security and compliance in the generation stage.

[0060] (iv) How the constraints are specifically implemented during the decoding period.

[0061] In practice, decoding typically involves maintaining multiple branches at a time using a bundle search. If constraints are only checked after all branches have been generated, a significant amount of computational power is wasted on branches that are destined to be infeasible, and once a branch is rendered invalid, there may be no candidates available. Therefore, in one alternative implementation, such as... Figure 3 As shown in the "Rollback and Regeneration / Feasible Region Projection" path, the constraint check and correction in S104 may include: (1) In each decoding step of autoregressive decoding, the partial strategy generated in the decoding step is instantiated into specific parameter values, and the specific parameter values ​​are substituted into each inequality constraint in the hard constraint set for feasibility verification. (2) For candidate tokens that are determined to be infeasible by the feasibility check, the generation probability of the candidate tokens is set to a preset minimum value by using a logit mask; or, for the decoding branch to which the candidate tokens that are determined to be infeasible by the feasibility check belong, the decoding branch is pruned in the bundle search. (3) After normalizing the remaining candidate tokens after the logit mask, sample them to limit the generation of candidate tokens in each decoding step to the feasible domain; (4) After the logit mask or bundle search pruning, the parameter slots of any decoding branch are filled to obtain the candidate strategy, and the numerical parameters of the candidate strategy still exceed the feasible region, calculate the nearest projection point of the numerical parameters in the feasible region, correct the numerical parameters to the value corresponding to the nearest projection point, and include the corrected candidate strategy into the candidate strategy set. (5) When all candidate tokens of any decoding branch fail the feasibility check at any decoding step, the decoding branch is taken as the target decoding branch, and the process is reversed to the state of the decoding step that passed the feasibility check most recently before the target decoding branch. A preset score penalty is applied to the candidate tokens of the target decoding branch at the decoding step where the process is reversed to reduce their candidate solution scores. The process is then re-searched according to the reduced candidate solution scores until a candidate strategy that satisfies the set of hard constraints is obtained and included in the candidate strategy set.

[0062] Specifically, the logit mask is equivalent to minimizing the generation probability of infeasible candidate tokens (such as the -∞ equivalent mask), and then re-normalizing and sampling the remaining candidates to ensure that each decoding step remains within the feasible region; in the bundle search scenario, the branch is directly pruned. The nearest projection point truncates out-of-bounds numerical parameters to a feasible region such as a safety upper limit, for example, setting the value corresponding to the allowable upper limit for that time period when the temperature exceeds the limit. The fallback retry is used to avoid the situation where "the entire branch is blocked by constraints" leading to no solution: it backtracks to the most recent feasible state and applies a preset score penalty to that branch, so that other branches are explored first during the research until a candidate strategy that satisfies the set of hard constraints is obtained.

[0063] In this embodiment, constraint verification is moved to each decoding step, and infeasible values ​​are eliminated when they are generated, avoiding the waste of computing power on branches that are destined to fail. Projection correction and rollback retry constitute a two-level fallback, which can still stably produce feasible candidates after the constraints are tightened, so as not to fail to generate due to excessive constraints, thereby achieving a balance between "ensuring safety" and "ensuring a solution".

[0064] (v) On multi-objective selection and manual confirmation.

[0065] In the same scenario, there are often multiple candidates that satisfy the hard constraints, and energy efficiency, reliability, and cost often conflict with each other—the electricity saved may come at the cost of a higher SLA (Service Level Agreement) risk. Therefore, in one possible implementation, the set of hard constraints includes at least two of the following: temperature upper limit constraint, power capacity constraint, and cooling redundancy constraint. The soft constraint scoring function is a weighted sum of the sub-scorings of multiple objectives. S104, "determining the operation and maintenance strategy based on the soft constraint scoring function from the candidate strategy set," may include: (1) Calculate the sub-scores of each candidate strategy for each objective in the candidate strategy set, and sum the sub-scores by weight to obtain the candidate strategy score; the multiple objectives include energy efficiency objectives, reliability objectives and cost objectives; the sub-scores of energy efficiency objectives are determined based on the power utilization efficiency and energy savings of the data center, the sub-scores of reliability objectives are determined based on the default risk and redundancy margin of the service level agreement, and the sub-scores of cost objectives are determined based on operating costs and electricity costs; (2) Remove candidate strategies that are dominated by other candidate strategies from the candidate strategy set to obtain a non-dominated solution set. Select the candidate strategy with the highest score in the non-dominated solution set as the operation and maintenance strategy. When outputting the operation and maintenance strategy, output the sub-scores of the operation and maintenance strategy under multiple objectives and the reasons for objective selection. When the reasons for objective selection indicate that manual confirmation is required, the operation and maintenance strategy is sent to the execution component after manual confirmation.

[0066] Specifically, S(policy) = Σ w i ·s i The weights can be configured according to business focus, with equal weights by default, or adjusted according to operation and maintenance priorities. First, dominated solutions are eliminated, and the non-dominated solution set (Pareto front) is retained. Then, the solution with the highest weighted comprehensive score is selected from the front solution set. This avoids selecting solutions with high comprehensive scores but significantly inferior performance on a specific objective. When weights are not configured or the decision is sensitive, several compromise solutions with different focuses can be provided for manual selection. Taking this scenario as an example, S104 can output a candidate strategy of "migrating non-critical business loads from racks A03 / A04 to area B, while reducing the concurrency of GPU cluster training tasks." The hard constraint ensures that the target rack power after migration is ≤90% of the rated capacity. The soft constraint selects the solution with the best energy utilization efficiency from the candidates that meet this constraint, and outputs a reason for the trade-off, such as "this solution reduces energy efficiency by 2% to lower SLA risk."

[0067] When the rationale for target selection requires manual confirmation, the operational strategy is issued to the execution component after manual confirmation. As an optional supplementary implementation, such as... Figure 2 As shown in ④, before deployment, simulation verification (thermal field simulation, power flow calculation, and cooling capacity verification) can be performed in the digital twin environment of the data center. The simulation results are used to correct or confirm the strategy, and it is managed in layers according to risk level—low-risk strategies are executed automatically, medium-risk strategies are executed after manual confirmation, and high-risk strategies are executed after expert review. Finally, the strategy is executed through the automated API of the operation and maintenance orchestration platform and the execution log is recorded. In this scenario, the strategy involves cross-region migration, and it is executed after manual confirmation as a medium-risk trigger.

[0068] In this embodiment, hard constraints ensure "whether it can be done" and soft constraints address "which one is more desirable to do." This two-layer division of labor allows multi-objective trade-offs to occur among feasible solutions, and the selected operation and maintenance strategy takes into account energy efficiency, reliability, and cost. The non-dominated solution set is taken first, and then the optimal solution is selected by weighting, to avoid dominated solutions crowding out the optimal solution. The sub-scores of each objective and the reasons for objective selection are output, so that manual review is based on evidence and the decision is traceable. Strategies that require manual confirmation are forced to be manually confirmed before being issued, further reducing the risk of erroneous execution.

[0069] (vi) On the evaluation of multi-dimensional implementation effect.

[0070] After the strategy is executed, simply looking at whether the temperature has decreased or whether electricity has been saved is insufficient to judge the effectiveness of the strategy—power saving may come at the cost of performance degradation. Therefore, in one optional implementation, "evaluating the multi-dimensional execution effect of the operation and maintenance strategy" in S105 can include: After the implementation of the operation and maintenance strategy, operational data of the data center is collected to obtain indicator data for multiple evaluation dimensions. These evaluation dimensions include energy efficiency, performance, reliability, security, cost, service level agreement compliance, and prediction accuracy. The indicator data for the prediction accuracy dimension is determined by the deviation between the structured prediction results and the actual resource supply data. The indicator data for each evaluation dimension are normalized to obtain the dimension score for each evaluation dimension. The scores of each dimension are weighted and summed according to their respective weights to obtain the comprehensive score of the implementation effect of the operation and maintenance strategy.

[0071] Specific indicators for each dimension are as follows: Energy efficiency includes changes in electricity utilization efficiency, energy savings, and cooling efficiency; Performance includes CPU / memory / IO utilization, response latency, and throughput; Reliability includes failure rate, availability (Mean Time Between Failures (MTBF) / Mean Time To Repair (MTTR)), and changes in the number of alarms; Security includes the number of security constraint violations and changes in risk level scores; Cost includes operating costs, electricity costs, and human intervention costs; Service Level Agreement (SLA) compliance includes SLA compliance rate and service quality level; and Prediction accuracy includes resource supply prediction deviation.

[0072] Overall Score = Σ k w k ·score k Among them, score k For the score of the k-th dimension indicator, w k Set its weight, either equal by default or configured according to business focus. For example... Figure 4 As shown, one of the outputs of the "Multi-dimensional Execution Effect Evaluation (Seven-Dimensional Index Comprehensive Score)" is fed back to the "Constraint-Aware Strategy Generation" as an execution effect signal. The post-execution evaluation of this scenario shows that the power utilization efficiency decreased by 0.06, the high temperature alarm decreased by 80%, and the SLA was not affected.

[0073] The beneficial effects of this implementation are: seven dimensions jointly characterize the true benefits of a strategy, avoiding the obscuring of side effects by a single indicator; and by including prediction accuracy as an evaluation dimension, the accuracy of predictions is directly incorporated into the judgment of the quality of the strategy, providing a unified, weighted, and comparable basis for subsequent dual-signal feedback.

[0074] (vii) Specific rules regarding dual-signal feedback.

[0075] Forecast deviations can be magnituded or directional: a 5% deviation in supply forecasting, whether over- or under-forecasting, has completely opposite implications for the strategy. Therefore, in one possible implementation, S106 may include: Forecast bias includes the mean absolute error, root mean square error, and supply-demand gap rate between the structured forecast results and the actual resource supply data. The supply-demand gap rate is the ratio of the difference between the predicted supply power and the actual supply power to the upper limit of the data center capacity. (1) When the mean absolute error or root mean square error exceeds the preset error threshold, the prediction model is retrained or fine-tuned. (2) When the absolute value of the supply-demand gap ratio exceeds the preset gap threshold, the risk level parameter of the generative model is adjusted according to the positive or negative value of the supply-demand gap ratio. The risk level parameter is the operating parameter when the generative model generates the operation and maintenance strategy, which represents the degree of trade-off between ensuring the physical security of the data center and improving energy efficiency. The risk level parameter is updated by the supply-demand gap ratio and the comprehensive score of the execution effect, and the value has upper and lower limits. (3) Take the operation and maintenance strategies with a comprehensive performance score higher than the preset score threshold and no security constraint violation indicated by the security dimension as positive samples, and take the operation and maintenance strategies with a comprehensive performance score lower than the preset score threshold as negative samples, and perform preference alignment or online fine-tuning on the model parameters of the generative model. (4) While performing preference alignment or online fine-tuning on the model parameters of the generative model, update the risk level parameters in conjunction with the results of preference alignment or online fine-tuning; (5) The operation and maintenance strategy and the comprehensive score of the execution effect are stored in the strategy knowledge base in association, so as to be retrieved and referenced when the generative model generates the next operation and maintenance strategy; the updated generative model is put into operation after being verified by the digital twin environment of the data center.

[0076] Specifically, the mean absolute error MAE = (1 / n)·Σ| i - y i |, Root Mean Square Error (RMSE) = The supply-demand gap ratio GAP = (P_pred - P_actual) / P_capacity, where i Forecast of resource supply, y i Here, n represents the actual resource supply value, and n is the sample size; P_pred represents the predicted supply power, P_actual represents the actual supply power, and P_capacity represents the capacity limit. Their functions are as follows: the mean absolute error and root mean square error (RMSE) assess the overall accuracy of the prediction; exceeding limits requires retraining or fine-tuning the prediction model. The supply-demand gap ratio assesses the business consequences of deviations and is used to adjust the risk level parameters and parameter margins on the generative model side. The risk level parameters are operational parameters of the generative model, not internal parameters of the prediction model. They can be updated online jointly by the supply-demand gap ratio and the comprehensive performance score, and have upper and lower limits to prevent long-term excessive conservatism or aggressiveness that could lead to instability.

[0077] The implementation of risk level parameters can be chosen in one or a combination of the following ways: First, adjust the weights—when weighting the energy efficiency, reliability, and cost, increasing the level increases the weight of reliability / safety, while decreasing the level increases the weight of energy efficiency and cost; Second, adjust the generation style—when the level is increased, the model generates more convergent and more conservative candidates, while decreasing the level results in a more aggressive output; Third, adjust the constraint margin—when the level is increased, the threshold of hard constraints is tightened further, for example, the upper limit of the inlet air temperature is reduced from 28℃ to 27℃, leaving an additional margin within the safety line. Example of tiered adjustment rules (thresholds can be calibrated on-site): |GAP|≤2% No adjustment, only cumulative statistics; GAP>5% indicates that the predicted supply is more optimistic than the actual supply and the risk is underestimated. Increase the risk tier parameters, such as lowering the flow restriction threshold by 5% to 10%, advancing the migration action by about 15 minutes, widening the confidence interval by 20%, and increasing the weight of samples in this period in fine-tuning; GAP<-5% indicates that the prediction is too conservative and the strategy is too cautious, resulting in a loss of energy efficiency. Appropriately reduce the risk tier parameters, relax the flow restriction threshold to restore energy efficiency, and reduce unnecessary migration; Three consecutive cycles of exceeding the limit in the same direction are judged as systematic bias, triggering the prediction model retraining, and checking whether external features such as weather and scheduling are missing.

[0078] The preference alignment target is the generative model (including the risk level parameters mentioned above). In the same scenario, the generative model will provide multiple candidate strategies at once. After execution, S105 will output a comprehensive score of the execution effect and data of various dimensions. High-scoring and compliant strategies are recorded as better solutions, and low-scoring or non-compliant strategies are recorded as worse solutions, and these are saved in pairs. Alignment methods, from light to heavy, can be used in combination: ① Offline Preference Optimization (DPO / ORPO): directly fine-tunes the model using paired data, without requiring additional training of the scoring model. This is the most stable and lowest-cost approach, and is the default practice. ② Reward Modeling + Reinforcement Learning (RLHF / PPO): combines the comprehensive score with safety penalties to form a reward, suitable for scenarios where violations, out-of-bounds actions, and SLA risks need to be explicitly penalized. ③ Online Fine-tuning / Retrieval Enhancement: stores superior and inferior samples in the policy knowledge base. When generating new policies, it retrieves high-scoring policies in similar scenarios as reference examples, taking effect immediately without retraining the model. ④ Tier-based Updates: increases the sample weight of policy types that consistently score low, reducing their tendency to be prioritized. ⑤ Safety Barriers: samples used for alignment must be compliant policies that have passed constraint checks; non-compliant samples cannot be considered better solutions. ⑥ Regression Validation and Gray-Scale Deployment: first validate in a digital twin environment or historical data playback, and only deploy after confirming that the overall score has improved and that SLA and safety indicators have not degraded. Manual review is retained as a fallback.

[0079] like Figure 4As shown, the "prediction bias feedback (mean absolute error / root mean square error exceeding the threshold for retraining, supply-demand gap rate driving risk correction)" is fed back to "resource supply prediction" via a dashed line, and the "execution effect signal (seven-dimensional scoring → preference alignment / online fine-tuning)" is fed back to "constraint-aware strategy generation" via a dashed line. Together with the positive link of "constraint-aware strategy generation → strategy execution and recording → multi-dimensional execution effect evaluation," they form a closed loop of "prediction → strategy → execution → evaluation → correction." In this scenario, the actual power supply curve is compared with the prediction. The mean absolute error does not exceed the preset error threshold, but the supply-demand gap rate deviation is relatively large at the 45th minute. Based on this, the sensitivity of the prediction model to sudden mains power fluctuations is adjusted; the comprehensive execution effect score drives the generative model to strengthen the preference for "peak shaving + migration" strategies.

[0080] The beneficial effects of this implementation are as follows: numerical indicators and business indicators drive two models respectively, decoupling the issues of prediction accuracy and policy conservatism, and avoiding mutual interference caused by a single signal modifying both models simultaneously; the positive or negative value of the supply-demand gap ratio is used to distinguish between "more cautious" and "more relaxed," ensuring that the feedback direction aligns with the business consequences; risk level parameters are set with upper and lower limits and updated jointly by two signals, preventing the model from being biased to one extreme in the long term; preference alignment uses only compliant samples that have passed constraint checks, and the updated generative model must be validated through playback in a digital twin environment before being put into operation, ensuring that the closed loop itself does not introduce unsafe behavior; the policy knowledge base allows high-scoring experiences to be retrieved and reused in subsequent scenarios, shortening the convergence time for cold starts and long-tail scenarios.

[0081] The method for generating operation and maintenance strategies provided in this application embodiment enables the generative model to obtain a complete and mutually corroborating physical operation status; enables future resource supply to enter the decision-making process in a model-readable and consistent form, providing a basis for forward-looking generation; enables hard constraints to be truly and gradually implemented during the decoding period, ensuring safety and compliance from the source and preventing the lack of solutions due to overly strict constraints; enables multi-objective trade-offs to occur between feasible solutions and make the decisions traceable; enables the strategy effect to be fully quantified, and the two models to be driven iteratively by signals with the correct direction, thereby forming a closed loop of continuous evolution.

[0082] Example 3: This embodiment, based on the method of Embodiment 1 or Embodiment 2, illustrates the generation of operation and maintenance strategies under a cooling redundancy failure scenario. Scenario: In the C01 server room of an industrial data center, one of the two precision air conditioners suddenly fails, reducing the cooling redundancy to N. If the other air conditioner fails, a high-temperature shutdown will be triggered.

[0083] S201. Obtain the time-series indicator data (inlet and outlet air temperature, air conditioner operating status, cabinet load), operation and maintenance text data (alarm logs and inspection records of the precision air conditioner failure) and data center topology data (airflow organization topology, positional relationship between each cabinet and air conditioner) of C01 in the data center, and obtain the historical cooling capacity data of C01 as historical resource supply data.

[0084] S202. Cross-modal alignment of multi-source heterogeneous operation and maintenance data yields a unified semantic representation that characterizes the current physical operation status of C01: the remaining cooling capacity of online air conditioners, the inlet and outlet air temperatures and load distribution of each cabinet, and the position of each cabinet in the airflow organization topology.

[0085] S203. The prediction model performs time-series predictions on the cooling capacity curve and load trend curve within a preset prediction window (e.g., the next hour), and performs structured encoding on the resource supply prediction results to obtain structured prediction results. In this structured prediction result, the classification label of the cooling capacity curve changes from "good" to "tight" at approximately T+30 minutes. The inflection point of this time segment is T+30 minutes, and the inflection point value is the minimum value of this time segment. The lower limit of the prediction confidence interval corresponds to the remaining cooling capacity.

[0086] S204. Input the unified semantic representation and structured prediction results into the generative model. The generative model outputs candidate strategies according to the strategy action template: "Start the backup air conditioner, increase the fan speed, and migrate the high-power training task to the C02 server room". The hard constraint set includes upper temperature limit constraints, power capacity constraints, and cooling redundancy constraints: In the upper temperature limit constraint, the current inlet air temperature of C01 is provided by the unified semantic representation, and the boundary of not exceeding 28℃ is provided by the lower limit of the prediction confidence interval and the hierarchical label of the corresponding time segment in the structured prediction results; In the power capacity constraint, the total power of each rack in C02 after migration is derived from the equipment attributes and real-time status values ​​in the unified semantic representation; The cooling redundancy constraint verifies the redundancy level of C01 after starting the backup air conditioner. The soft constraint scoring function selects the candidate strategy that minimizes the increase in power utilization efficiency from the candidate strategy set that satisfies the hard constraint set as the operation and maintenance strategy.

[0087] S205. The rationale for the selection of objectives in this operation and maintenance strategy requires manual confirmation. Since this strategy involves cross-data center migration, it is classified as high-risk and, after expert review, is issued to the execution component for execution. After execution, actual resource supply data is obtained. The inlet air temperature of C01 stabilizes below 26℃ within 10 minutes. Multi-dimensional execution results show that no service level agreement (SLA) breach was triggered.

[0088] S206. Update the prediction model based on the prediction deviation determined by the structured prediction results and the actual resource supply data, and update the generative model based on the multi-dimensional execution effect; and store the operation and maintenance strategy and its comprehensive execution effect score in the strategy knowledge base for retrieval reference when the generative model generates the next operation and maintenance strategy.

[0089] In this embodiment, cooling capacity is incorporated into the timing prediction and structured coding as a resource supply curve, so that actions such as starting the backup air conditioner, increasing the fan speed, and migrating high-power tasks are generated and executed after the first precision air conditioner fails and before the remaining cooling capacity approaches the critical point, rather than passively responding after the intake air temperature exceeds the limit and triggers a high-temperature shutdown, thus avoiding losses caused by shutdown.

[0090] Example 4: This example illustrates the direct impact of unified semantic representation generation on policy quality. Scenario: A server rack in a data center experiences intermittent CPU frequency throttling; the root cause is difficult to determine based solely on timing metrics.

[0091] In S202, the timing encoder extracts abnormal patterns from the timing metrics data of CPU utilization, temperature, and power consumption of the rack, and outputs a timing token sequence. The text encoder encodes alarm logs in the operation and maintenance text data, which record "low fan speed" and / or "airflow obstruction," and outputs a text token sequence. The topology encoder performs graph node representation learning on the data center topology data, locates the rack downstream of the air conditioning vent and adjacent to the hot aisle, and outputs a topology node representation. Using the text token sequence as the query sequence and the sequence concatenated with the timing token sequence and the topology node representation as the key and value sequences, cross-modal attention calculation is performed to correlate the operation and maintenance semantic of "low fan speed" with the temperature rise trend represented by the timing token sequence and the hot aisle position represented by the topology node representation. The resulting unified semantic representation represents the physical operating condition as "insufficient local heat dissipation causing CPU frequency reduction."

[0092] In S204, the generative model outputs an operation and maintenance strategy based on the unified semantic representation and the strategy action template, which is "adjust the load of adjacent cabinets, clean the air inlet filter of the cabinet, and temporarily reduce the training task concurrency". The target and numerical parameters of the strategy fall within the scope of the equipment represented by the unified semantic representation.

[0093] In S205, if the CPU utilization and response latency in the performance dimension return to normal, the number of alarms in the reliability dimension decreases, the overall performance score is higher than the preset score threshold, and the security dimension indicates no violation of security constraints, then the operation and maintenance strategy is stored as a positive sample in the strategy knowledge base.

[0094] In this embodiment, the text token sequence is used as a query sequence to retrieve both time-series and topological key-value sequences. This allows the root cause that cannot be determined by a single modality to be determined by mutual verification of the three modalities. Therefore, the operation and maintenance strategy targets the root cause rather than the appearance, and the accuracy of root cause location is higher than that of the scheme that only uses time-series data or only uses text data.

[0095] To verify the effectiveness of the above embodiments of this application, under the same load and alarm scenario, the method of this embodiment was compared with a solution based on real-time data-triggered passive response. The comparison results are as follows: the policy executability rate increased from approximately 65% ​​to approximately 92%, an increase of approximately 41.5%; the advance handling time for high-temperature alarms increased from 0 minutes to 30-60 minutes; the number of manual interventions decreased from 8 times / day to 3 times / day, a reduction of approximately 62.5%; and the average number of alarms per month decreased from 25 times to 12 times, a reduction of approximately 52%. It should be noted that the above values ​​are exemplary expected target values, and the specific values ​​are subject to actual deployment testing, and are not intended to limit the scope of protection of this application.

[0096] Example 5: Based on the above method embodiments, this application also provides an apparatus for generating operation and maintenance strategies, see [link to relevant documentation]. Figure 5As shown, the device includes: a data acquisition module 51, used to acquire multi-source heterogeneous operation and maintenance data and historical resource supply data of the data center; a cross-modal alignment module 52, used to perform cross-modal alignment of the multi-source heterogeneous operation and maintenance data to generate a unified semantic representation; a supply prediction module 53, used to perform time-series prediction based on historical resource supply data through a prediction model, and to perform structured encoding on the resource supply prediction results obtained from the time-series prediction to obtain structured prediction results; and a strategy generation module 54, used to input the unified semantic representation and structured prediction results into a generative model, which generates operation and maintenance strategies through multi-step decoding. In the multi-step decoding, the decoding is constrained by a set of hard constraints composed of the physical operation constraints of the data center; the unified semantic representation and structured prediction results are aligned according to the same batch of equipment identifiers, and the equipment parameters and real-time status values ​​of each constraint item are taken from the unified semantic table. The boundaries and safety margins of each constraint are taken from the lower limit of the prediction confidence interval and the grade label of the corresponding time segment in the structured prediction results, and the higher the tension level, the smaller the safety margin; the execution evaluation module 55 is used to distribute the operation and maintenance strategy to the execution component of the data center for execution, obtain the actual resource supply data after the operation and maintenance strategy is executed, determine the prediction deviation based on the structured prediction results and the actual resource supply data, and evaluate the multi-dimensional execution effect of the operation and maintenance strategy; the model update module 56 is used to update the prediction model based on the prediction deviation and update the generative model based on the multi-dimensional execution effect; the cross-modal alignment module and the supply prediction module are respectively connected to the strategy generation module, the strategy generation module is connected to the execution component through the execution evaluation module, the execution evaluation module is connected to the model update module, and the model update module is connected to the supply prediction module and the strategy generation module respectively, forming a feedback loop.

[0097] Furthermore, the aforementioned multi-source heterogeneous operation and maintenance data includes time-series indicator data, operation and maintenance text data, and data center topology data; the cross-modal alignment module 52 is used to input the time-series indicator data into the time-series encoder, which performs block embedding and position encoding on the time-series indicator data, and outputs a time-series token sequence after passing through the Transformer encoding layer; the operation and maintenance text data is input into the text encoder to obtain a text token sequence; the data center topology data is input into the topology encoder for graph node representation learning to obtain a topology node representation; the text token sequence is used as the query sequence, and the sequence concatenated with the time-series token sequence and the topology node representation is used as the key sequence and value sequence, and cross-modal attention calculation is performed to obtain a unified semantic representation; the unified semantic representation is used to represent the current physical operation status of the data center to the generative model.

[0098] Furthermore, the aforementioned supply forecasting module 53 is used to input historical resource supply data and external features into the forecasting model. The forecasting model performs time-series forecasting within a preset forecasting window according to a preset forecasting granularity and outputs resource supply forecasting results. The resource supply forecasting results include power supply curves, cooling capacity curves, and load trend curves. Each curve consists of the values ​​of multiple forecasting times arranged according to the preset forecasting granularity within the preset forecasting window, as well as the forecasting confidence intervals for each forecasting time. The preset forecasting window is divided into multiple consecutive time segments according to the preset forecasting granularity, with each time segment corresponding to one or multiple consecutive forecasting times. For each curve, statistics are performed based on the values ​​of the curve at the forecasting times corresponding to each time segment to obtain the level value, maximum value, and minimum value of each time segment. The level value of each time segment is mapped to a level label of the time segment according to a preset leveling threshold, which is determined by at least one of the upper limit of the capacity and the redundancy margin of the resource corresponding to the curve. One is determined: the moment when the value reaches its extreme value within each time segment is taken as the inflection point of the time segment, and the value corresponding to the inflection point is taken as the inflection point value of the time segment. The inflection point value is the maximum or minimum value corresponding to the time segment. The width of the prediction confidence interval corresponding to each time segment is taken as the confidence level of the time segment. The prediction confidence interval is obtained by the uncertainty estimation of the prediction model and is independent of the maximum and minimum values ​​within the time segment. A structured record is generated for each time segment according to a preset template. The structured record includes the time segment identifier, level value, hierarchical label, inflection point moment and its inflection point value, the trend of change represented by the slope of change relative to the previous time segment, the confidence level, and the lower limit of the prediction confidence interval, so as to obtain the structured prediction result corresponding to each curve. Multi-source heterogeneous operation and maintenance data includes time series index data. Historical resource supply data and time series index data are from the same source, and the generation of structured coding and unified semantic representation adopts the same normalization scale.

[0099] Furthermore, the aforementioned strategy generation module 54 is used by the generative model to generate candidate strategies according to a preset strategy action template, based on the unified semantic representation and structured prediction results. The action type and target of the candidate strategy are limited by the allowed values ​​of the parameter slots in the strategy action template, and the target is the equipment in the data center represented by the unified semantic representation. In the multi-step decoding, some of the generated strategies are instantiated into specific parameter values ​​and substituted into the hard constraint set for constraint satisfaction checks, suppressing candidate strategies that fail the constraint satisfaction check. The numerical parameters of candidate strategies that pass the constraint satisfaction check but whose numerical parameters exceed the feasible region defined by the hard constraint set are corrected to the feasible region. Candidate strategies that have been filled in all parameter slots and satisfy the hard constraint set are included in the candidate strategy set. Among them, the equipment parameters and real-time status values ​​required for each constraint item in the hard constraint set are provided by the unified semantic representation, and the boundaries and safety margins of each constraint item are provided by the structured prediction results. The boundaries and safety margins of each constraint item are taken from the lower limit of the prediction confidence interval and the grade label of the corresponding time segment in the structured record. In the candidate strategy set, the operation and maintenance strategy is determined according to the soft constraint scoring function.

[0100] Furthermore, the aforementioned strategy generation module 54 is used to instantiate the partially generated strategy of the autoregressive decoding step into specific parameter values ​​at each decoding step, and substitute the specific parameter values ​​into the inequality constraints in the hard constraint set for feasibility verification; for candidate tokens that are determined to be infeasible in the feasibility verification, the generation probability of the candidate tokens is set to a preset minimum value through a logit mask; or, for the decoding branch to which the candidate tokens determined to be infeasible in the feasibility verification belong, the decoding branch is pruned in the bundle search; the remaining candidate tokens after the logit mask are re-normalized and sampled to restrict the generation of candidate tokens in each decoding step to within the feasible region; after pruning by the logit mask or bundle search, the probability of generating candidate tokens in any decoding branch is... Once all parameter slots are filled, candidate strategies are obtained. If the numerical parameters of the candidate strategies still exceed the feasible region, the nearest projection point of the numerical parameters on the feasible region is calculated. The numerical parameters are then corrected to the values ​​corresponding to the nearest projection point, and the corrected candidate strategies are included in the candidate strategy set. When all candidate tokens of any decoding branch fail the feasibility check at any decoding step, the decoding branch is taken as the target decoding branch. The branch is then backtracked to the state of the decoding step that most recently passed the feasibility check before the target decoding branch. A preset score penalty is applied to the candidate tokens of the target decoding branch at the decoding step where the branch is backtracked to reduce the candidate solution score of the target decoding branch. The search is then repeated based on the reduced candidate solution score until a candidate strategy that satisfies the set of hard constraints is obtained and included in the candidate strategy set.

[0101] Furthermore, the aforementioned set of hard constraints includes at least two of the following: temperature upper limit constraint, power capacity constraint, and cooling redundancy constraint; the soft constraint scoring function is a weighted sum of the sub-scorings of each of the multiple objectives; the strategy generation module 54 is used to calculate the sub-scorings of each candidate strategy for each of the multiple objectives in the candidate strategy set, and to obtain the candidate strategy score by weighted summation of each sub-scoring; the multiple objectives include energy efficiency objectives, reliability objectives, and cost objectives; the sub-scorings of the energy efficiency objectives are determined based on the data center's power utilization efficiency and energy savings, the sub-scorings of the reliability objectives are determined based on the default risk and redundancy margin of the service level agreement, and the sub-scorings of the cost objectives are determined based on operating costs and electricity costs; candidate strategies that are dominated by other candidate strategies are removed from the candidate strategy set to obtain a non-dominated solution set, and the candidate strategy with the largest candidate strategy score in the non-dominated solution set is selected as the operation and maintenance strategy; when outputting the operation and maintenance strategy, the sub-scorings of the operation and maintenance strategy under each of the multiple objectives and the reasons for objective selection are also output, and when the reasons for objective selection indicate that manual confirmation is required, the operation and maintenance strategy is sent to the execution component after manual confirmation.

[0102] Furthermore, the aforementioned execution evaluation module 55 is used to collect data on the operation of the data center after the execution of the operation and maintenance strategy, and obtain indicator data for multiple evaluation dimensions. These multiple evaluation dimensions include energy efficiency, performance, reliability, security, cost, service level agreement compliance, and prediction accuracy. The indicator data for the prediction accuracy dimension is determined by the deviation between the structured prediction results and the actual resource supply data. The indicator data for each evaluation dimension are normalized to obtain the dimension score for each evaluation dimension. The scores of each dimension are weighted and summed according to their respective weights to obtain a comprehensive score for the execution effect of the operation and maintenance strategy.

[0103] Furthermore, the aforementioned model update module 56 is used to predict deviations including the mean absolute error, root mean square error, and supply-demand gap rate between the structured prediction results and the actual resource supply data. The supply-demand gap rate is the ratio of the difference between the predicted supply power and the actual supply power to the upper limit of the data center's capacity. When the mean absolute error or root mean square error exceeds a preset error threshold, the prediction model is retrained or fine-tuned. When the absolute value of the supply-demand gap rate exceeds a preset gap threshold, the risk level parameters of the generative model are adjusted according to the sign of the supply-demand gap rate. The risk level parameters are the operating parameters when the generative model generates operation and maintenance strategies, representing the degree of trade-off between ensuring the physical security of the data center and improving energy efficiency. The risk level parameters are determined by the supply-demand gap. The rate and the comprehensive score of execution effect are updated together, and the value has upper and lower limits. Operation and maintenance strategies with a comprehensive score of execution effect higher than the preset score threshold and no violation of security constraints indicated by the security dimension are used as positive samples, and operation and maintenance strategies with a comprehensive score of execution effect lower than the preset score threshold are used as negative samples. The model parameters of the generative model are adjusted for preference alignment or online fine-tuning. While adjusting the model parameters of the generative model for preference alignment or online fine-tuning, the risk level parameters are updated in conjunction with the results of preference alignment or online fine-tuning. The operation and maintenance strategies and the comprehensive score of execution effect are stored in the strategy knowledge base in association for reference when the generative model generates the next operation and maintenance strategy. The updated generative model is put into operation after passing the playback verification in the digital twin environment of the data center.

[0104] The device provided in this application embodiment has the same implementation principle and technical effect as the aforementioned method embodiment. For the sake of brevity, any parts of the device embodiment not mentioned can be referred to the corresponding content in the aforementioned method embodiment.

[0105] Based on the above method embodiments, this application also provides a system for generating operation and maintenance strategies, such as... Figure 6 The diagram shows the structure of the system, which includes a processor 61 and a memory 60. The memory 60 stores computer-executable instructions that can be executed by the processor 61, which executes the computer-executable instructions to implement the above-described method.

[0106] exist Figure 6 In the illustrated embodiment, the system further includes a bus 62 and a communication interface 63, wherein the processor 61, the communication interface 63, and the memory 60 are connected via the bus 62.

[0107] The memory 60 may include high-speed random access memory (RAM) and may also include non-volatile memory, such as at least one disk storage device. Communication between this system network element and at least one other network element is achieved through at least one communication interface 63 (which can be wired or wireless), such as the Internet, wide area network, local area network, metropolitan area network, etc. The bus 62 may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus, etc. The bus 62 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 The symbol is represented by a single double-headed arrow, but this does not mean that there is only one bus or one type of bus.

[0108] Processor 61 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuitry in the hardware of processor 61 or by instructions in software form. Processor 61 can be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiments of this application can be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software modules can reside in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. The storage medium is located in the memory, and the processor 61 reads the information in the memory and, in conjunction with its hardware, completes the steps of the method described in the foregoing embodiment.

[0109] This application also provides a computer-readable storage medium storing computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions cause the processor to implement the above-described method. For specific implementation details, please refer to the foregoing method embodiments, which will not be repeated here.

[0110] The computer program product of the operation and maintenance strategy generation method, apparatus and system provided in the embodiments of this application includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the preceding method embodiments. For specific implementation, please refer to the method embodiments, which will not be repeated here.

[0111] Unless otherwise specifically stated, the relative steps, numerical expressions, and values ​​of the components and steps described in these embodiments do not limit the scope of this application.

[0112] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a processor-executable, non-volatile, computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0113] In the description of this application, it should be noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this application. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.

[0114] Finally, it should be noted that the above-described embodiments are merely specific implementations of this application, used to illustrate the technical solutions of this application, and not to limit them. The scope of protection of this application is not limited thereto. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments, or make equivalent substitutions for some of the technical features, within the scope of the technology disclosed in this application. Such modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be covered within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of protection of the claims.

Claims

1. A method for generating an operation and maintenance strategy, characterized in that, The method includes: Acquire multi-source heterogeneous operation and maintenance data and historical resource supply data from data centers; Cross-modal alignment is performed on the multi-source heterogeneous operation and maintenance data to generate a unified semantic representation; Based on the historical resource supply data, a time-series forecast is performed using a forecasting model, and the resource supply forecast results obtained from the time-series forecast are structured and encoded to obtain structured forecast results. The unified semantic representation and the structured prediction results are input into the generative model, which generates an operation and maintenance strategy through multi-step decoding. In the multi-step decoding, the decoding is constrained by a set of hard constraints consisting of the physical operation constraints of the data center. The unified semantic representation and the structured prediction results are aligned with the same batch of device identifiers. The device parameters and real-time status values ​​of each constraint item are taken from the unified semantic representation. The boundaries and safety margins of each constraint item are taken from the lower limit of the prediction confidence interval and the grade label of the corresponding time segment in the structured prediction results. The higher the stress level, the smaller the safety margin. The operation and maintenance strategy is sent to the execution component of the data center for execution, the actual resource supply data after the operation and maintenance strategy is executed is obtained, the prediction deviation is determined based on the structured prediction results and the actual resource supply data, and the multi-dimensional execution effect of the operation and maintenance strategy is evaluated. The prediction model is updated based on the prediction bias, and the generative model is updated based on the multi-dimensional execution effect.

2. The method according to claim 1, characterized in that, The multi-source heterogeneous operation and maintenance data includes time-series indicator data, operation and maintenance text data, and data center topology data; the cross-modal alignment of the multi-source heterogeneous operation and maintenance data to generate a unified semantic representation includes: The time series index data is input into the time series encoder, which performs block embedding and position encoding on the time series index data, and outputs a time series token sequence through the Transformer encoding layer. Input the maintenance text data into a text encoder to obtain a text token sequence; The data center topology data is input into a topology encoder for graph node representation learning to obtain topology node representations. Using the text token sequence as the query sequence, and the sequence concatenated from the time-series token sequence and the topology node representation as the key sequence and value sequence, cross-modal attention computation is performed to obtain the unified semantic representation; the unified semantic representation is used to represent the current physical operating status of the data center to the generative model.

3. The method according to claim 1, characterized in that, The process involves using a prediction model to perform time-series forecasting based on the historical resource supply data, and then structuring the resource supply forecast results obtained from the time-series forecasting to obtain structured forecasting results, including: The historical resource supply data and external features are input into the prediction model. The prediction model performs time-series prediction within a preset prediction window according to a preset prediction granularity and outputs the resource supply prediction results. The resource supply prediction results include power supply curves, cooling capacity curves, and load trend curves. Each curve is composed of the values ​​of multiple prediction times arranged according to the preset prediction granularity within the preset prediction window, as well as the prediction confidence intervals of each prediction time. The preset prediction window is divided into multiple consecutive time segments according to the preset prediction granularity, and each time segment corresponds to one or multiple consecutive prediction times. For each curve, the values ​​of the curve at the predicted time corresponding to each time segment are statistically analyzed to obtain the level value, maximum value, and minimum value of each time segment. The level value of each time segment is mapped to the level label of the time segment according to a preset level threshold. The preset level threshold is determined by at least one of the capacity limit and redundancy margin of the resource corresponding to the curve. The moment when the value reaches its extreme value within each time segment is taken as the inflection point moment of the time segment, and the value corresponding to the inflection point moment is taken as the inflection point value of the time segment. The inflection point value is the maximum or minimum value corresponding to the time segment. The width of the predicted confidence interval corresponding to each of the time segments is used as the confidence level of the time segment. The predicted confidence interval is obtained by the uncertainty estimation of the prediction model and is independent of the maximum and minimum values ​​of the values ​​taken within the time segment. A structured record is generated for each time segment according to a preset template. The structured record includes the time segment identifier, the level value, the grade label, the inflection point time and its value, the trend of change represented by the slope of change relative to the previous time segment, the confidence level, and the lower limit of the prediction confidence interval, so as to obtain the structured prediction result corresponding to each curve. The multi-source heterogeneous operation and maintenance data includes time-series indicator data. The historical resource supply data and the time-series indicator data are from the same source, and the structured encoding and the generation of the unified semantic representation use the same normalization scale.

4. The method according to claim 3, characterized in that, The generative model generates an operation and maintenance strategy through multi-step decoding. In this multi-step decoding, the decoding is constrained by a set of hard constraints comprised of the physical operational constraints of the data center, including: The generative model uses the unified semantic representation and the structured prediction results as conditions to generate candidate strategies according to a preset strategy action template. The action type and target of the candidate strategy are limited by the allowed values ​​of the parameter slots of the strategy action template. The target is the device in the data center represented by the unified semantic representation. In the multi-step decoding, the generated partial strategies are instantiated into specific parameter values ​​and substituted into the hard constraint set for constraint satisfaction checks, suppressing candidate strategies that fail the constraint satisfaction check; and the numerical parameters of candidate strategies that pass the constraint satisfaction check but whose numerical parameters exceed the feasible region defined by the hard constraint set are corrected to the feasible region. Candidate strategies that have been filled in all the parameter slots and satisfy the set of hard constraints will be included in the candidate strategy set. The device parameters and real-time status values ​​required for each constraint item in the set of hard constraints are provided by the unified semantic representation, and the boundaries and safety margins of each constraint item are provided by the structured prediction results. The boundaries and safety margins of each constraint item are taken from the lower limit of the prediction confidence interval of the corresponding time segment in the structured record and the hierarchical label. The operation and maintenance strategy is determined based on the soft constraint scoring function from the set of candidate strategies.

5. The method according to claim 4, characterized in that, The step of instantiating the generated partial strategies into specific parameter values ​​and substituting them into the hard constraint set for constraint satisfaction checks, suppressing candidate strategies that fail the constraint satisfaction check; and correcting the numerical parameters of candidate strategies that pass the constraint satisfaction check but whose numerical parameters exceed the feasible region defined by the hard constraint set to the feasible region, includes: In each decoding step of the autoregressive decoding, the partial strategy generated in that decoding step is instantiated as the specific parameter value, and the specific parameter value is substituted into each inequality constraint in the set of hard constraints for feasibility verification. For candidate tokens that are deemed infeasible by the feasibility check, the generation probability of the candidate token is set to a preset minimum value using a logit mask; or, for the decoding branch to which the candidate tokens deemed infeasible by the feasibility check belong, the decoding branch is pruned in the beam search; the remaining candidate tokens after the logit mask are re-normalized and sampled to restrict the generation of candidate tokens in each decoding step to the feasible region; After the logit mask or the bundle search pruning, and after all the parameter slots of any of the decoding branches are filled to obtain the candidate strategy, and the numerical parameters of the candidate strategy still exceed the feasible region, the nearest projection point of the numerical parameters on the feasible region is calculated, the numerical parameters are corrected to the value corresponding to the nearest projection point, and the corrected candidate strategy is included in the candidate strategy set. When all candidate tokens of any decoding branch fail the feasibility check in any decoding step, the decoding branch is taken as the target decoding branch, and the process is reversed to the decoding step state that most recently passed the feasibility check before the target decoding branch. A preset score penalty is applied to the candidate tokens of the target decoding branch in the decoding step at which the process is reversed to reduce the candidate solution score of the target decoding branch. The search is then restarted based on the reduced candidate solution score until a candidate strategy that satisfies the set of hard constraints is obtained and included in the candidate strategy set.

6. The method according to claim 4, characterized in that, The set of hard constraints includes at least two of the following: temperature upper limit constraint, power capacity constraint, and cooling redundancy constraint; the soft constraint scoring function is a weighted sum of the sub-scorings of multiple objectives; determining the operation and maintenance strategy based on the soft constraint scoring function from the candidate strategy set includes: Each candidate strategy in the candidate strategy set has its own sub-scores for each of the plurality of objectives, and the candidate strategy score is obtained by weighted summation of the sub-scores. The plurality of objectives include energy efficiency objectives, reliability objectives, and cost objectives. The sub-scores for the energy efficiency objectives are determined based on the power utilization efficiency and energy savings of the data center. The sub-scores for the reliability objectives are determined based on the default risk and redundancy margin of the service level agreement. The sub-scores for the cost objectives are determined based on operating costs and electricity costs. Remove candidate strategies from the candidate strategy set that are dominated by other candidate strategies to obtain a non-dominated solution set. Select the candidate strategy with the highest score in the non-dominated solution set as the operation and maintenance strategy. When outputting the operation and maintenance strategy, the sub-scores of the operation and maintenance strategy under each of the multiple objectives and the reasons for objective selection are also output. When the reasons for objective selection indicate that manual confirmation is required, the operation and maintenance strategy is sent to the execution component after manual confirmation.

7. The method according to claim 1, characterized in that, The evaluation of the multi-dimensional execution effectiveness of the operation and maintenance strategy includes: After the operation and maintenance strategy is executed, the data center's operational data is collected to obtain indicator data for multiple evaluation dimensions. These multiple evaluation dimensions include energy efficiency, performance, reliability, security, cost, service level agreement compliance, and prediction accuracy. The indicator data for the prediction accuracy dimension is determined by the deviation between the structured prediction results and the actual resource supply data. The indicator data for each of the evaluation dimensions are normalized to obtain the respective dimension scores for each evaluation dimension. The scores of each of the aforementioned evaluation dimensions are weighted and summed according to their respective weights to obtain a comprehensive score for the execution effect of the operation and maintenance strategy.

8. The method according to claim 7, characterized in that, The step of updating the prediction model based on the prediction bias and updating the generative model based on the multi-dimensional execution effect includes: The prediction bias includes the mean absolute error, root mean square error, and supply-demand gap rate between the structured prediction results and the actual resource supply data. The supply-demand gap rate is the ratio of the difference between the predicted supply power and the actual supply power to the upper limit of the data center's capacity. When the mean absolute error or the root mean square error exceeds a preset error threshold, the prediction model is retrained or fine-tuned. When the absolute value of the supply-demand gap ratio exceeds a preset gap threshold, the risk level parameter of the generative model is adjusted according to the sign of the supply-demand gap ratio. The risk level parameter is the operating parameter when the generative model generates the operation and maintenance strategy, representing the degree of trade-off between ensuring the physical security of the data center and improving energy efficiency. The risk level parameter is updated jointly by the supply-demand gap ratio and the comprehensive score of the execution effect, and its value has upper and lower limits. Operation and maintenance strategies with an overall performance score higher than a preset score threshold and no security constraint violations indicated by the security dimension are taken as positive samples, and operation and maintenance strategies with an overall performance score lower than the preset score threshold are taken as negative samples. The model parameters of the generative model are then adjusted for preference alignment or online fine-tuning. While adjusting the model parameters of the generative model for preference alignment or online fine-tuning, the risk level parameters are updated in conjunction with the results of the preference alignment or online fine-tuning. The operation and maintenance strategy and the comprehensive score of the execution effect are stored in the strategy knowledge base in association, so that the generative model can retrieve and refer to it when generating the next operation and maintenance strategy; the updated generative model is put into operation after being verified by the digital twin environment of the data center.

9. A device for generating operation and maintenance strategies, characterized in that, include: The data acquisition module is used to acquire multi-source heterogeneous operation and maintenance data and historical resource supply data of the data center; The cross-modal alignment module is used to perform cross-modal alignment on the multi-source heterogeneous operation and maintenance data to generate a unified semantic representation; The supply forecasting module is used to perform time-series forecasting based on the historical resource supply data through a forecasting model, and to perform structured encoding on the resource supply forecasting results obtained from the time-series forecasting to obtain structured forecasting results. The strategy generation module is used to input the unified semantic representation and the structured prediction results into the generative model, and the generative model generates the operation and maintenance strategy through multi-step decoding. In the multi-step decoding, the decoding is constrained by a set of hard constraints consisting of the physical operation constraints of the data center. The unified semantic representation and the structured prediction results are aligned with the same batch of equipment identifiers. The equipment parameters and real-time status values ​​of each constraint item are taken from the unified semantic representation. The boundaries and safety margins of each constraint item are taken from the lower limit of the prediction confidence interval and the grade label of the corresponding time segment in the structured prediction results. The higher the tension level, the smaller the safety margin. The execution evaluation module is used to distribute the operation and maintenance strategy to the execution component of the data center for execution, obtain the actual resource supply data after the operation and maintenance strategy is executed, determine the prediction deviation based on the structured prediction results and the actual resource supply data, and evaluate the multi-dimensional execution effect of the operation and maintenance strategy. The model update module is used to update the prediction model based on the prediction deviation and to update the generative model based on the multi-dimensional execution effect. The cross-modal alignment module and the supply forecasting module are respectively connected to the policy generation module. The policy generation module is connected to the execution component via the execution evaluation module. The execution evaluation module is connected to the model update module. The model update module is connected to both the supply forecasting module and the policy generation module, forming a feedback loop.

10. A system for generating operation and maintenance strategies, characterized in that, It includes a processor and a memory, the memory storing computer-executable instructions that can be executed by the processor, the processor executing the computer-executable instructions to implement the method of any one of claims 1 to 8.