Intelligent fusion terminal data analysis method based on multi-protocol fusion
By constructing an objective function that integrates basic weights and physical prior constraint boundaries, the problem of data sparsity caused by differences in sampling mechanisms in multi-protocol data alignment is solved. This achieves strict spatiotemporal alignment of multi-source data on a unified time axis, improving the accuracy of line loss calculation and the reliability of edge control.
Patent Information
- Application Number
- CN202611658572.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-26
- Publication Date
- 2026-11-20
AI Technical Summary
Existing multi-protocol data alignment methods in distribution radio areas suffer from sparse data at the edge of the time window due to the difference in sampling mechanisms between synchronous polling protocols and asynchronous triggering protocols. Pure mathematical fitting loses the constraints of electrical and physical laws, leading to distortion in line loss calculation and failure of edge control.
By constructing an objective function based on comprehensive basic weights and edge sparsity indices, and combining it with physical prior constraint boundaries, multi-protocol fusion data parsing is performed, including data timestamp correction, protocol type identifier parsing, physical quantity type identifier mapping, interpolation processing, and fitting error term penalty, to ensure strict spatiotemporal alignment of data on a unified time axis.
It achieves strict spatiotemporal alignment of multi-source heterogeneous data on a unified time axis, eliminates the risks of numerical distortion and time misalignment, and improves the accuracy of line loss calculation in transformer areas and the reliability of edge service control.
Smart Images

Figure CN123138599A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing, and in particular to a data parsing method for intelligent fusion terminals based on multi-protocol fusion. Background Technology
[0002] The intelligent converged terminal is the core hub for edge computing and multi-source data fusion in distribution transformer areas. It connects to the main incoming line equipment and branch node equipment of the transformer area through various communication interfaces, collecting synchronously polled and asynchronously triggered electrical quantities, and performing protocol parsing and timestamp correction to determine a standardized feature dataset for edge service computing. In edge services such as transformer area line loss calculation, overload assessment, and distribution equipment control, the electrical quantities of each node at the same time must be strictly aligned. This spatiotemporal consistency of multi-source heterogeneous data on a unified time axis is a core quality indicator for ensuring the accuracy of edge computing results and the reliability of equipment control.
[0003] Existing multi-protocol data alignment methods primarily rely on weighted least squares fitting techniques based on time windows. These methods calculate the time distance between data points and the target alignment point, assign weights based on the protocol sampling period, and utilize continuous curve fitting to achieve time alignment of heterogeneous data. However, this method is based on the fundamental assumption that data points are only affected by time distance and that pure mathematical extrapolation can accurately reflect the evolution trend of physical quantities. In actual distribution substation operations, due to the fundamental differences in the sampling mechanisms of synchronous polling protocols and asynchronous triggering protocols, data vacuum zones can easily form at the edges of time windows due to sparse sampling by slow protocols. When the substation load fluctuates drastically, the actual changes in electrical quantities are strictly constrained by the grid impedance and topology conservation relationship. Pure mathematical fitting loses control in areas lacking edge data point constraints, causing the fitted curve to deviate from the true physical evolution trajectory and producing numerical distortions that violate electrical physics laws. Ultimately, this leads to distorted line loss calculations and misjudgments of overload assessments, triggering edge control failures such as maloperation or refusal to operate of smart circuit breakers. Summary of the Invention
[0004] To address the problem that existing technologies, in scenarios with heterogeneous multi-protocol sampling mechanisms and sparse data at the edge of time windows, cannot incorporate the constraints of the electrical and physical laws of the distribution area topology using weighted least squares pure mathematical fitting techniques, leading to numerical distortion or temporal misalignment of the fitted curve in the data vacuum area, causing spatiotemporal loss of multi-source data, and ultimately resulting in distorted line loss calculation and failure of edge service control, this application provides a data parsing method for intelligent fused terminals based on multi-protocol fusion.
[0005] Firstly, this application provides a data parsing method for intelligent converged terminals based on multi-protocol fusion, employing the following technical solution: A data parsing method for intelligent converged terminals based on multi-protocol fusion includes: The intelligent fusion terminal collects and preprocesses the multi-dimensional electrical quantities of the total incoming line of the transformer area, the multi-dimensional electrical quantities of the branch nodes triggered asynchronously, and the global time base, and determines a standardized feature dataset containing data timestamps, physical quantity type identifiers, actual engineering quantity values, and protocol type identifiers. The comprehensive basic weight is calculated based on the time distance between the data timestamp and the target alignment time, and the sampling period corresponding to the protocol type identifier; The actual number of data points is counted and the vacuum region width is determined based on the data timestamp and the physical quantity type identifier. The expected number of data points is determined in combination with the sampling period. The non-negative value of the difference between the expected number of data points and the actual number of data points is calculated, and the ratio of the non-negative value to the expected number of data points plus one is calculated. The ratio is multiplied by an exponential function with the ratio of the vacuum region width to the total width of the time window as the exponent to obtain the edge sparsity index. Interpolate the associated sub-device data of the branch node device to obtain the alignment physical quantity value, calculate the sum of the alignment physical quantity values; use the sum of the sum and the tolerance boundary as the upper limit of the physical prior constraint boundary, and use the difference between the sum and the tolerance boundary as the lower limit of the physical prior constraint boundary. For the target physical quantity corresponding to the physical quantity type identifier, construct an objective function that includes a fitting error term based on the comprehensive basic weight and the actual engineering quantity value, and a physical penalty term based on the edge sparsity index and the physical prior constraint boundary. Minimize the solution to obtain the optimal fitting curve parameters, and calculate the alignment value at the target alignment time. Based on the alignment values, an operational status evaluation result is generated and equipment control is executed, using the fitting residual to fine-tune the algorithm parameters.
[0006] Optionally, determining the standardized feature dataset containing data timestamps, physical quantity type identifiers, actual engineering quantity values, and protocol type identifiers includes: The collected multidimensional electrical quantities of the main incoming line of the transformer substation and the multidimensional electrical quantities of the branch nodes are parsed using protocol messages and mapped to physical models to extract data identifiers and protocol type identifiers. The multidimensional electrical quantities of the main incoming line of the transformer substation and the multidimensional electrical quantities of the branch nodes include at least one of voltage signals, current signals, power signals and electrical energy signals. The data timestamp is obtained by correcting the acquisition time based on the protocol transmission delay and the device sampling time. The data timestamp, the physical quantity type identifier, the actual engineering quantity value, and the protocol type identifier are mapped to a sliding time window sequence constructed based on the global time base to obtain the standardized feature dataset.
[0007] Optionally, the step of calculating the comprehensive basic weight based on the time distance between the data timestamp and the target alignment time, and the sampling period corresponding to the protocol type identifier, includes: The time proximity weight is obtained by calculating the exponential decay function by dividing the absolute value of the time distance by the negative value of the preset time decay constant. Calculate the sum of the absolute values of the sampling period and the time distance to obtain a first sum; calculate the quotient of the sampling period divided by the first sum; calculate the product of the quotient and a preset protocol adjustment coefficient to obtain a first product; add one to the first product to obtain the protocol value compensation term; The product of the time proximity weight and the protocol value compensation term is used as the comprehensive basic weight.
[0008] Optionally, the step of counting the actual number of data points and determining the vacuum region width based on the data timestamp and the physical quantity type identifier, and determining the expected number of data points in conjunction with the sampling period; calculating the non-negative value of the difference between the expected number of data points and the actual number of data points, and calculating the ratio of the non-negative value to the expected number of data points plus one; multiplying the ratio by an exponential function with the ratio of the vacuum region width to the total width of the time window as the exponent, to obtain the edge sparsity index, including: The time interval that is close to the target alignment time and whose width is a preset proportion of the total width of the time window is defined as the target side edge interval, and the number of data points corresponding to the physical quantity type identifier in the target side edge interval is counted as the actual number of data points. The difference between the target alignment time and the largest data timestamp within the target side edge interval is used as the vacuum zone width. When there are no data points within the target side edge interval, the vacuum zone width is set to be equal to the width of the target side edge interval. Divide the width of the target side edge region by the sampling period to obtain the desired number of data points; Calculate the non-negative value of the difference between the expected number of data points and the actual number of data points to obtain the non-negative data point difference value; calculate the sum of the expected number of data points and one to obtain the expected sum; calculate the ratio of the non-negative data point difference value to the expected sum to obtain the data point ratio; calculate the product of the ratio of the vacuum region width to the total width of the time window and a preset sparsity amplification factor to obtain the sparsity amplification product; calculate the exponential function with the sparsity amplification product as the exponent to obtain the extrapolation risk index value; calculate the product of the data point ratio and the extrapolation risk index value to obtain the edge sparsity index.
[0009] Optionally, the step of interpolating the associated sub-device data of the branch node device to obtain alignment physical quantity values, calculating the sum of the alignment physical quantity values, using the sum of the sum and the tolerance boundary as the upper limit of the physical prior constraint boundary, and using the difference between the sum and the tolerance boundary as the lower limit of the physical prior constraint boundary, includes: When the physical quantity type identifier indicates that the target physical quantity is an accumulated conserved electrical quantity, the sum of the aligned physical quantity values and the sum of the tolerance boundary are calculated as the upper limit of the physical prior constraint boundary, and the difference between the sum and the tolerance boundary is calculated as the lower limit of the physical prior constraint boundary; the accumulated conserved electrical quantity includes current, active power, reactive power and electrical energy; When the physical quantity type identifier indicates that the target physical quantity is a voltage-type physical quantity, the upper limit of the physical prior constraint boundary is obtained by multiplying the rated voltage by a factor plus the allowable deviation ratio; the lower limit of the physical prior constraint boundary is obtained by multiplying the rated voltage by a factor minus the allowable deviation ratio.
[0010] Optionally, the objective function constructed for the target physical quantity corresponding to the physical quantity type identifier, including a fitting error term based on the comprehensive basic weight and the actual engineering quantity value, and a physical penalty term based on the edge sparsity index and the physical prior constraint boundary, includes: The physical penalty term includes a distance function between the alignment value at the target alignment time and the physical prior constraint boundary. When the alignment value is within the interval formed by the lower limit and the upper limit of the physical prior constraint boundary, the value of the distance function is zero; When the alignment value is less than the lower limit, the value of the distance function is the difference between the lower limit and the alignment value; When the alignment value is greater than the upper limit, the value of the distance function is the difference between the alignment value and the upper limit.
[0011] Optionally, the process of minimizing the solution to obtain the optimal fitted curve parameters and calculating the alignment value at the target alignment time includes: The continuous fitting curve function corresponding to the optimal fitting curve parameters is a polynomial function. The fitting order of the polynomial function is dynamically determined based on the number of data points of the target physical quantity within the time window and the edge sparsity index; when the number of data points is less than a preset threshold or the edge sparsity index is greater than a preset trigger threshold, the fitting order is reduced. The objective function is transformed into an optimization problem concerning polynomial coefficients, and solved using the Levenberg-Marquardt method, Gauss-Newton method, gradient descent method, sequential quadratic programming, or quadratic programming method to obtain the parameters of the optimal fitting curve. Substitute the target alignment time into the continuous fitting curve function corresponding to the optimal fitting curve parameters to obtain the alignment value.
[0012] Optionally, the step of generating the operating status evaluation result based on the alignment value and executing equipment control, and fine-tuning the algorithm parameters using the fitting residual, includes: The alignment value is used as the output of the multi-protocol fusion parsing, and substituted into the transformer area line loss calculation model and overload assessment logic to generate the transformer area operation status assessment result. When the operating status assessment result of the transformer area exceeds the safety threshold, a tripping command is sent to the corresponding smart circuit breaker through the local control interface; When the fitting residual is continuously greater than the first residual threshold, the sparsity trigger threshold is reduced or the physical constraint penalty weight is increased. When the fitting residual is consistently less than the second residual threshold and the physical constraint triggering frequency is higher than the frequency threshold, the sparsity triggering threshold is increased or the physical constraint penalty weight is decreased. When the alignment calculation time exceeds the time threshold, the fitting order is reduced or the total width of the time window is shortened to complete the data parsing closed loop of the intelligent fusion terminal.
[0013] This application has the following technical advantages: 1. This application constructs an objective function that includes a fitting error term based on comprehensive basic weights and actual engineering quantity values, and a physical penalty term based on edge sparsity indices and physical prior constraint boundaries. This removes the unconstrained divergence of pure mathematical fitting in the data vacuum zone at the edge of the time window from the objective function solution process, so that the value at the target alignment time is no longer affected by numerical distortion caused by the lack of slow protocol sampling. This eliminates the risk of distortion in transformer line loss calculation and misjudgment of overload assessment caused by time misalignment and edge divergence. At the same time, it introduces an edge sparsity evaluation mechanism based on the gap between expected and actual data points and the width of the vacuum zone. The activation state of the physical penalty term is automatically determined according to the degree of lack of data constraints at the edge of the time window, achieving a dual guarantee of strict spatiotemporal alignment of multi-source heterogeneous data on a unified time axis and electrical and physical rationality.
[0014] 2. This application calculates the comprehensive basic weight by combining the time distance between the data timestamp and the target alignment time and the protocol sampling period. This removes the information value density imbalance caused by the difference in sampling frequency of heterogeneous multi-protocol data from the curve fitting process, so that the continuous fitting curve is no longer constrained by the excessive dominance of high-frequency protocol data, and avoids the risk of edge oscillation caused by fixed weight allocation under complex working conditions. At the same time, it uses the fitting residual to fine-tune the algorithm parameters to form a self-evolving closed loop of data analysis. The analysis process is automatically optimized according to the deviation of the evaluation results of the operating status of the transformer area, realizing adaptive convergence of multi-protocol fusion analysis accuracy and efficient utilization of edge computing resources of intelligent fusion terminal across the entire working condition range. Attached Figure Description
[0015] Figure 1 This is a flowchart illustrating the data parsing method for intelligent fusion terminals based on multi-protocol fusion proposed in this application. Detailed Implementation
[0016] The technical solutions in this embodiment will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are some embodiments of this application, but not all embodiments.
[0017] This embodiment discloses a data parsing method for intelligent converged terminals based on multi-protocol fusion, referring to... Figure 1 The process includes steps S1-S3, as detailed below: S1: Based on the multi-source heterogeneous electrical quantities and the global time reference, perform protocol parsing and timestamp correction, map to a sliding time window, determine the standardized feature dataset, and complete the standardized access of multi-source data.
[0018] The spatiotemporal alignment and parsing of multi-protocol data in intelligent fusion terminals relies on real-time measurement data of the electrical status of the main incoming line of the distribution area and the power consumption status of branch nodes. Its comprehensive basic weight calculation, edge sparsity assessment, and physical prior constraint boundary construction all use the actual engineering quantity values, timestamps, and protocol characteristics of multi-source heterogeneous data as calculation inputs. Therefore, it is necessary to first obtain the synchronous polling electrical quantities of the main incoming line equipment, the asynchronous triggering electrical quantities of the branch node equipment, and the global time reference.
[0019] Using the edge computing scheduling cycle of the intelligent fusion terminal as a unified time benchmark, a complete data acquisition and processing flow is executed once per scheduling cycle. Assume that the target alignment time needs to be calculated within the current scheduling cycle. The alignment value.
[0020] A polling-type intelligent device connected to the first communication interface (such as an RS485 interface) of the distribution substation intelligent fusion terminal synchronously collects multi-dimensional electrical quantity signals from the substation's main incoming line or key nodes at a preset polling cycle. For example, the multi-dimensional electrical quantity signals may include: three-phase voltage signals, three-phase current signals, total active power signals, total reactive power signals, and positive active energy signals. Among these, the voltage signal characterizes the voltage state of the substation's incoming line, with units of... The current signal characterizes the current state of the incoming line, and the unit is _____. Power signals characterize real-time power status, with units of ; or The electrical energy signal represents the cumulative electricity consumption status, and the unit is... .
[0021] Branch node sensors or intelligent monitoring devices connected via the second communication interface (such as an Ethernet interface or a low-power wireless interface) of the intelligent fusion terminal asynchronously collect various electrical quantities or status signals of the branch nodes through event triggering or high-frequency timed reporting. For example, electrical quantities or status signals may include: branch current signals, branch voltage signals, branch power signals, or ambient temperature and humidity signals, switch status signals, etc. Among them, the branch current signal is defined as the instantaneous current value of the branch node at the current reporting moment, characterizing the power consumption status of each branch load, with units of [unit missing]. Similarly, branch voltage, power signals, and switch status signals represent the electrical state of the corresponding branch, and the data types are all floating-point or Boolean.
[0022] The high-precision local clock module of the intelligent fusion terminal continuously collects globally unified timestamps with second-level accuracy. It represents the absolute time base of the system, and its data type is long integer.
[0023] The raw signals collected from polling intelligent devices and branch node sensors are parsed according to protocol messages conforming to communication protocols such as DL / T645, DL / T698.45, or MQTT, and data identifiers and protocol type identifiers are extracted. Subsequently, object model mapping is performed to convert data from different protocol formats into standardized physical quantity and real engineering quantity values. This eliminates data format barriers between different protocols.
[0024] Because communication links using different protocols have transmission delays and there is a discrepancy between the device sampling time and the terminal receiving time, directly using the receiving time will lead to spatiotemporal misalignment. Therefore, the acquisition time is timestamped based on the protocol transmission delay and the device sampling time to eliminate the time reference deviation caused by communication jitter and obtain an accurate data timestamp. For messages that do not carry the sampling time, the estimated average protocol transmission delay is calculated by subtracting the terminal reception time from the estimated average protocol transmission delay.
[0025] The corrected data will be uniformly mapped to a globally unified timestamp. In the constructed sliding time window sequence, the total width of the time window is set to... Its empirical value range is As the scheduling cycle progresses, the time window slides forward, and historical data exceeding the time window is automatically discarded, forming a continuous multi-source heterogeneous data stream. This mechanism effectively limits the scale of data participating in subsequent fitting calculations and avoids memory overflow in the intelligent fusion terminal.
[0026] After the above processing, the standardized feature dataset for the current scheduling period is output. This includes data timestamps. Physical quantity type identification Physical quantities and actual engineering quantities and protocol type identifier .in, The index number of the data point; Indicates the first The data timestamps for each data point are in seconds. Indicates the first The physical quantity type identifier for each data point is used to distinguish different electrical physical quantities or state quantities; Indicates the first The actual engineering quantity values of the physical quantities at each data point are given in standard engineering units for the corresponding physical quantities, such as... , , , , or wait; Indicates the first The protocol type identifier for each data point is used as the input dataset for subsequent spatiotemporal alignment parsing algorithms.
[0027] S2: Calculate the comprehensive basic weight and edge sparsity index based on the standardized feature dataset, construct the physical prior constraint boundary and solve the objective function to obtain the alignment value, and complete the strict spatiotemporal alignment of multi-source data.
[0028] In multi-protocol fusion scenarios within distribution network areas, intelligent fusion terminals need to use discrete data points within historical time windows to fit a continuous curve at a target time. Due to the diverse types of protocols accessed, their sampling mechanisms differ fundamentally: polling protocols (such as DL / T645) have low sampling frequencies but large amounts of information per data point, while event-triggered protocols (such as MQTT) have high sampling frequencies but redundant data per data point. Existing methods typically assign weights based solely on the time distance between data points and the target time, ignoring the differences in data information value density caused by different protocol sampling mechanisms. This can easily lead to high-frequency protocol data excessively dominating the fitted curve, or key data points from slow protocols being marginalized, ultimately causing mismatch in the fitting results in sparse areas.
[0029] In this embodiment, for any data point within the time window, its comprehensive basic weight is calculated. The reference contribution of the data point to the target alignment time is characterized from two dimensions: time proximity and protocol information value density. This removes the data redundancy interference of high-frequency protocols from the weight allocation process, providing a reasonable value distribution basis for subsequent weighted least squares fitting.
[0030] The formula for calculating the overall basic weights can be: In the formula, Indicates the first The comprehensive basic weight of each data point is a dimensionless floating-point number, used to characterize the comprehensive reference value of the data point to the target alignment time. Indicates the first The data timestamp for each data point, in units of This is used to characterize the absolute moment of data acquisition; Indicates the target alignment time, in units of It serves as a unified time reference for representing upper-layer business requests; Represents the time decay constant, in units of This is used to control the decay rate of the weights over time and distance. The method for obtaining this weight is based on the inertia of physical quantities, and the empirical range is [insert range here]. Experience value The reason for the value is to match the physical inertia period of the voltage change in the distribution area. In other embodiments, the implementer can make adaptive settings based on the grid impedance parameters. This represents the protocol adjustment coefficient, a dimensionless floating-point number used to balance the value differences between different protocols. It is obtained by calculation based on the protocol bandwidth ratio, with an empirical range of [missing information]. The empirical value is 0.2. The reason for this value is to balance the information entropy difference between high and low frequency protocols. In other embodiments, implementers can fine-tune it according to the network concurrent throughput. This indicates the standard sampling period of the protocol to which the data point belongs, in units of... This is used to characterize the data update frequency of the protocol.
[0031] for In this context, the calculation logic is derived from the physical attenuation law and protocol sampling characteristics. In the physical scenario of a distribution substation, changes in electrical quantities are constrained by the physical inertia of grid impedance and load characteristics. The further away a data point is from the target time, the more its reference value reflecting the current physical state decreases exponentially. If weights are allocated solely based on time distance, when high-frequency protocol data is dense, a large amount of redundant data with similar time distances will occupy an absolute weight advantage, causing the fitting curve to be dominated by high-frequency noise; while key data points collected in a single instance by slow protocols are marginalized due to their scarcity. By introducing a protocol value compensation term, the difference in information value density between different protocols is decoupled from the weight allocation. The first part is the exponential term. Derived from the objective law of time decay, it is used to characterize pure time proximity; the product term in the latter half... Derived from the protocol sampling mechanism, this is used to characterize the information value density compensation of the protocol. When time distance... When the value increases, the values of both the exponent and the product term decrease, thus affecting the overall basic weight. This reduces the time spent on outdated data, effectively penalizing data that hasn't been updated in a long time; when the standard sampling period... When the product term increases, the overall basic weight increases. This increases the weighting of key data points in the slow protocol to ensure they have sufficient weight in the fitting process. When high-frequency protocol data is dense and close to the target time, although its time proximity weight is high, the protocol value compensation term is small, and the overall weight is reasonably suppressed. When slow protocol data is sparse but close to the target time, the protocol value compensation term is significantly amplified, and the overall weight is improved, achieving an adaptive balance of value density of multi-source heterogeneous data within the time window.
[0032] In multi-protocol fusion scenarios in distribution radio areas, due to the fundamental differences in the sampling mechanisms of synchronous polling protocols and asynchronous triggering protocols, data vacuum zones can easily form at the edges of time windows due to sparse sampling by slow protocols. Existing weighted least squares fitting methods are prone to losing control and generating unconstrained divergence when performing pure mathematical extrapolation in regions lacking edge data point constraints, resulting in the fitted curve deviating significantly from the actual physical evolution trajectory.
[0033] In this embodiment, the boundary state of the data distribution is characterized by constructing an edge interval on the side where the target time is located. An edge sparsity index is derived based on the difference between the expected number of data points and the actual number of data points within the edge interval to accurately measure the degree of missing data constraints. This index serves as an adaptive activation switch for the physical prior injection mechanism, aiming to achieve on-demand triggering of physical constraints, thereby ensuring fitting accuracy while avoiding unnecessary computational overhead.
[0034] For the target physical quantity of the target device, the target side edge interval is first determined. Specifically, the time interval closest to the target alignment time and with a width that is a preset proportion of the total width of the time window is defined as the target side edge interval. The number of data points corresponding to the physical quantity type identifier within this target side edge interval is counted and taken as the actual number of data points. Furthermore, the difference between the target alignment time and the largest data timestamp within the target side edge interval is taken as the vacuum zone width; when there are no data points within the target side edge interval, the vacuum zone width is set to be equal to the width of the target side edge interval.
[0035] Divide the width of the target-side edge region by the sampling period of the protocol to which the data point belongs to obtain the desired number of data points. Then, calculate the edge sparsity index, whose calculation expression can be: in, This represents the edge sparsity index, with a dimensionless floating-point data type, used to characterize the severity of missing data constraints in the edge region of a time window; It represents the expected number of data points in the edge interval, and the data type is a dimensionless integer, used to characterize the strength of boundary constraints under ideal conditions; It represents the actual number of data points in the edge interval, and the data type is a dimensionless integer, used to characterize the strength of the actual boundary constraint; This represents the sparsity amplification factor, with a dimensionless floating-point data type. It is used to amplify the risk of boundary extrapolation and is obtained based on the system's computing power limit calibration. The empirical range is... The empirical value is 1.5. The reason for this value is to ensure that the sparsity amplification effect matches the response latency of the terminal processor. In other embodiments, the implementer can set it according to the CPU clock frequency. Indicates the width of the vacuum region, in units of This is used to characterize the distance between the data point closest to the boundary within the edge interval and the physical boundary of the time window; This indicates the total width of the time window, in units of... This is used to characterize the time span of data caching.
[0036] for In this context, the computational logic is derived from the statistical regularity of data distribution and the risk of boundary extrapolation. In the physical scenario of a distribution network, data points at the edge of the time window play a crucial role in constraining the direction of the fitted curve. If the edge region lacks sufficient data points, pure mathematical extrapolation will lose its physical constraint. The fractional part reflects the gap ratio between the expected data points and the actual data points in the edge interval; the larger the gap, the higher the sparsity. The exponential part is derived from the error amplification law of boundary extrapolation; the wider the data vacuum region, the exponentially higher the risk of distortion from pure mathematical extrapolation. When the width of the vacuum region... As the value increases, the value of the exponential term increases sharply, and the marginal sparsity index... This increases the accuracy of measuring the divergence risk caused by data vacuum zones; when the actual number of data points in the edge interval... Increase and approximate the desired number of data points When the fractional value approaches zero, the edge sparsity index... The decrease reflects the increase in boundary constraint strength. This calculation expression transforms abstract data gaps into measurable risk metrics, providing a precise trigger for subsequent physical constraint penalties and enabling adaptive robust control of multi-protocol fusion analysis under edge conditions.
[0037] In a distribution transformer area topology, there is an objective electrical conservation relationship between the main incoming line equipment and the branch node equipment. Traditional data parsing methods sever this physical connection, resulting in the inability to use global information to compensate for missing master table data in slow polling protocols at the edge of the time window. Instead, they can only rely on pure mathematical extrapolation, which is prone to numerical distortions that violate the laws of electrical physics.
[0038] In this embodiment, the physical connection structure is characterized by extracting the parent-child device mapping relationship in the transformer area topology. The transformer area topology can be obtained through at least one of local configuration, master station distribution, device registration information, or historical association relationships. Furthermore, based on the aligned associated sub-device data, the physical conservation boundary of the target device's physical quantities is derived, and the conservation boundary is transformed into a mathematical constraint expression, realizing mutual compensation for single-point data loss across protocol physical topologies.
[0039] Before constructing the physical prior constraint boundary of the target device, the data of the associated sub-devices in the branch node device are first interpolated to obtain the alignment physical quantity values of each associated sub-device at the target alignment time.
[0040] Subsequently, based on the target physical quantity type indicated by the physical quantity type identifier, the physical prior constraint boundary is calculated. When the physical quantity type identifier indicates that the target physical quantity is an accumulated conserved electrical quantity, the sum of the aligned physical quantity values and the tolerance boundary is calculated as the upper limit of the physical prior constraint boundary, and the difference between the sum and the tolerance boundary is calculated as the lower limit of the physical prior constraint boundary. Accumulated conserved electrical quantities include current, active power, reactive power, and electrical energy. Physical Prior Constraint Boundaries The calculation expression can be: When the physical quantity type identifier indicates that the target physical quantity is a voltage-related physical quantity, the upper and lower limits of the physical prior constraint boundary are obtained by multiplying the rated voltage by an increase in the allowable deviation ratio and a decrease in the allowable deviation ratio, respectively. Physical Prior Constraint Boundaries The calculation expression can be: In the formula, Indicates the type of physical quantity The corresponding physical prior constraint boundary, in units of the corresponding physical quantity dimensions, is used to characterize the physical reasonable range of values of the target device's physical quantities at the target alignment time; This represents the total number of associated sub-devices. The data type is a dimensionless integer, used to characterize the topology scale. Indicates the first The alignment physical quantity value of each associated sub-device at the target alignment time, with the unit being the corresponding physical quantity dimension, is used to characterize the actual state of each branch; This represents the tolerance boundary, with units in the corresponding physical quantity dimensions. It characterizes the reasonable fluctuation range of physical conservation, and is obtained by derivation based on the equipment's rated current accuracy and line loss. The empirical range is... Experience value The reason for this value is to cover the maximum allowable error of the smart meter and the normal line loss of the distribution area. In other embodiments, the implementer can make fine adjustments according to the line length and wire diameter specifications. Indicates the rated voltage, in units of , used to characterize the standard operating voltage of the device; This represents the allowable deviation ratio, is a dimensionless floating-point number, and is used to characterize the permissible voltage fluctuation range. The empirical range is... The empirical value is 0.07, and the reason for this value is that it conforms to the national standard for the allowable range of voltage deviation in low-voltage distribution networks.
[0041] for In essence, its calculation logic directly stems from the objective physical law of the transformer substation topology's electrical physics. Ideally, the accumulated conserved electrical quantity of the parent device must equal the sum of the corresponding electrical quantities of all child devices. However, in practical engineering, considering line losses and measurement errors, tolerance boundaries are introduced. This boundary does not rely on real-time data from a slow polling protocol, but instead utilizes precisely aligned data from a high-frequency asynchronous protocol to deduce the reasonable range of physical values for the target device's physical quantities at the target time. When the associated sub-devices align their physical quantity values... As the load increases, the upper and lower limits of the physical prior constraint boundary move upwards synchronously, thereby dynamically tracking the physical changes in the total load of the transformer area; when the tolerance boundary... As the range increases, the interval of the physical prior constraint boundary widens, thereby accommodating higher precision measurement errors or longer line losses, and providing stable physical constraint anchor points for missing target equipment data.
[0042] Furthermore, this embodiment includes a fallback mechanism: when the number of available associated sub-devices is less than a preset threshold, physical prior constraint boundaries are not enabled or tolerance boundaries are increased. This is to prevent the failure or excessive tightening of physical constraint boundaries due to missing local data, and to ensure the robustness of the analytical algorithm under extreme conditions.
[0043] After obtaining the comprehensive basic weights and physical prior constraint boundaries, they need to be integrated into a unified mathematical framework. Traditional least squares methods only pursue the minimization of errors at data points and cannot take into account the constraints of physical boundaries. In this embodiment, a basic fitting objective function is first constructed to characterize the global closeness of data points. Then, an edge sparsity index is introduced as an activation switch to transform the physical prior constraint boundaries into physical penalty terms injected into the objective function to suppress the risk of edge divergence. Finally, by solving the constrained optimization problem, a continuous curve conforming to the laws of electrophysics is generated, achieving an end-to-end closed loop in data analysis.
[0044] For the target physical quantity corresponding to the physical quantity type identifier, obtain the set of data points corresponding to the target device and the target physical quantity within the time window, construct the objective function and solve it.
[0045] The expression for calculating the parameters of the optimal fitted curve can be: The expression for calculating the alignment value can be: In the formula, This represents the parameters of the optimal fitted curve. The data type is a floating-point vector, used to characterize the shape of the continuously fitted curve function. This represents a continuously fitted curve function, constructed using a polynomial function, used to characterize the evolution trend of a physical quantity over time. This represents the actual observed value, i.e. the true engineering quantity, and is used to characterize the original collected data; This represents the set of data points corresponding to the target device and the target physical quantity within a time window. This represents the physical constraint penalty weight, with a dimensionless floating-point data type. It controls the severity of the penalty term and is obtained by calibrating based on the stringency of the physical constraints, with an empirical range of [missing information]. The empirical value is 50. The reason for this value is to ensure that the penalty is numerically sufficient to suppress the data fitting error. In other embodiments, the implementer can set it according to the business security threshold. Represents the physical prior triggering factor, and its calculation expression is: ,in This is the maximum trigger strength, used to prevent excessively strong penalty terms from causing difficulties in the optimization solution; This represents the sparsity trigger threshold, a dimensionless floating-point number used to determine whether physical constraints are activated. It is obtained based on historical data missing probability statistics, with an empirical range of [missing information]. The empirical value is 3. The reason for this value is to define the critical point at which the data vacuum zone causes the divergence of pure mathematical extrapolation. In other embodiments, the implementers can make fine adjustments based on the intensity of electromagnetic interference on site. The distance function from a point to an interval is expressed as: This is used to characterize the degree to which the fitting results violate the laws of electrophysics; This indicates the alignment value, with the unit being the corresponding physical quantity dimension, used to characterize the alignment data required by upper-layer business processes.
[0046] for The computational logic is derived from data fitting theory and constrained optimization methods. The first part, the summation term, is based on classic weighted least squares, ensuring that the curve closely fits the observation points in data-dense regions. The second part is a physical prior penalty term, the ingenious part of which introduces a physical prior triggering factor as an adaptive switch, activating the penalty only when the marginal sparsity exceeds the limit. Once activated, if the value of the fitted curve at the target time exceeds the physical prior constraint boundary... The penalty term increases dramatically on a quadratic basis, forcing the optimizer to pull the curve constraints back within the physical boundaries. When the edge sparsity index exceeds the sparsity trigger threshold, the penalty term is activated and its value increases dramatically with the degree of violation, constraining the alignment value within the physical prior constraint boundaries, thus suppressing the risk of edge divergence. When the edge sparsity index is less than the sparsity trigger threshold, the penalty term is zero, and the alignment value is entirely data-driven, thus preserving the flexibility of mathematical fitting.
[0047] The continuous fitting curve function is represented by a polynomial function, with curve parameters being polynomial coefficients. The order of the fitting curve is determined based on the number of data points within the time window, the edge sparsity index, and the terminal computing power. When the number of data points is less than a preset threshold, a first- or second-order polynomial is used; when the edge sparsity index is greater than a trigger threshold, a lower-order polynomial is preferred. After transforming the objective function into an optimization problem involving polynomial coefficients, the Levenberg-Marquardt method, Gauss-Newton method, gradient descent method, sequential quadratic programming, or quadratic programming method is used to solve the problem and obtain the optimal fitting curve parameters. When the distance function in the penalty term has non-differentiable points, the subgradient method is used, or the distance function is replaced with a smooth approximation function. The target alignment time is substituted into the continuous fitting curve function corresponding to the optimal fitting curve parameters to obtain the alignment value. When the number of data points for the target physical quantity within the time window is less than the preset minimum number of fitting points, the order of the fitting curve is reduced. When the data point set is empty and the physical prior constraint boundary is available, the center value of the physical prior constraint boundary or the sum of the aligned physical quantity values of the associated sub-devices is used as the alignment value at the target alignment time. When physical prior constraint boundaries are unavailable, the most recent valid data value is used as the alignment value, and data quality anomalies are marked.
[0048] In a typical embodiment, the target alignment time is The target device is the main incoming power meter for the distribution area, and the target physical quantity is the A-phase current. The main meter current data is missing within the right edge interval of the time window, and the edge sparsity index exceeds the trigger threshold. The intelligent fusion terminal acquires the aligned branch currents of each branch sensor at the target alignment time and calculates the sum of the branch currents. The tolerance boundary is determined based on measurement error and line loss. Then the physical prior constraint boundary is Without imposing physical constraints, pure polynomial extrapolation yields the total current at the target time as follows: After applying the penalty term, the total current at the target time obtained from the optimization solution is constrained to... This alignment current is used for calculating line losses and determining overload in the transformer substation area.
[0049] S3: Generate operational status assessment results based on alignment values and execute equipment control. Use the fitting residual to fine-tune algorithm parameters to complete the data parsing closed loop of the intelligent fusion terminal.
[0050] After obtaining the alignment value at the target alignment time, this value eliminates the numerical distortion caused by data sparsity at the edge of the time window, comprehensively reflecting the true electrical and physical state of the distribution area within the current scheduling cycle. However, it still needs to be transformed into actual edge service evaluation results and control commands to drive the physical actions of the power distribution equipment and achieve adaptive closed-loop adjustment of the algorithm parameters. The specific operation is as follows: First, the system generates operational status assessment results and equipment control execution. The output of the multi-protocol fusion parsing, i.e., the aligned values, is substituted into the transformer area line loss calculation model and overload assessment logic to generate the transformer area operational status assessment results. Specifically, the transformer area line loss calculation model is based on Kirchhoff's current law and the principle of power conservation, using the difference between the total incoming line aligned electrical quantity and the branch node aligned electrical quantity to calculate the line loss rate; the overload assessment logic assesses the current load state based on the equipment's rated capacity and thermal stability limits. When the transformer area operational status assessment results exceed safety thresholds, such as an abnormally high line loss rate or current exceeding a preset proportion of the rated capacity, the intelligent fusion terminal sends a tripping command to the corresponding intelligent circuit breaker through the local control interface to execute physical isolation actions, preventing equipment overheating damage or the escalation of power grid accidents; if the status is normal, the standardized aligned data is reported to the cloud master station via the MQTT protocol for macro-level energy dispatch.
[0051] Then, data iteration and closed-loop updates are performed. To adapt to the dynamic changes in the operating conditions of the distribution area and the real-time fluctuations in the terminal's computing power, the terminal stores the fitting residuals and physical constraint trigger records generated by this alignment calculation in a local historical database for dynamic fine-tuning of algorithm parameters. Specific fine-tuning rules include: when the fitting residual is continuously greater than the first residual threshold, the sparsity trigger threshold is reduced or the physical constraint penalty weight is increased; when the fitting residual is continuously less than the second residual threshold and the physical constraint trigger frequency is higher than the frequency threshold, the sparsity trigger threshold is increased or the physical constraint penalty weight is reduced; when the alignment calculation time exceeds the time consumption threshold, the fitting order is reduced or the total width of the time window is shortened.
[0052] In the aforementioned closed-loop update mechanism, the setting of each threshold and weight must be strictly combined with the engineering physical boundaries. The first residual threshold and the second residual threshold are determined based on the measurement accuracy level of the smart meter and the normal line loss fluctuation range of the distribution area. The empirical range of the first residual threshold is 2% to 5% of the rated value or range of the corresponding physical quantity, and the empirical range of the second residual threshold is 0.5% to 1.5% of the rated value or range of the corresponding physical quantity. If the first residual threshold is set too high, the system is not sensitive to data distortion, resulting in the inability to activate physical constraints in a timely manner; if it is set too low, the system is too sensitive, resulting in frequent intervention of physical penalty terms, which masks the true data fluctuations. The physical constraint penalty weight must be limited to a reasonable range when dynamically adjusted. If the weight is too large, the objective function relies excessively on the physical prior boundary, causing the fitted curve to lose its ability to track high-frequency asynchronous data and produce serious phase lag; if the weight is too small, it cannot effectively suppress the risk of edge divergence. In other embodiments, implementers can adapt the physical constraint penalty weight settings according to the load fluctuation characteristics of the distribution area and the business security threshold.
[0053] The time consumption threshold is determined based on the rated computing power and scheduling cycle margin of the intelligent fusion terminal's central processing unit, with an empirical range of 10% to 30% of the total scheduling cycle duration. If the time consumption threshold is set too high, it may cause delays in issuing control commands for the current scheduling cycle, resulting in a loss of real-time edge control; if it is set too low, it will frequently trigger operations to reduce the fitting order or shorten the total width of the time window, leading to a sharp drop in fitting accuracy. In other embodiments, implementers can adjust the time consumption threshold according to the terminal processor's hardware specifications and the concurrent task load.
[0054] Through the closed-loop feedback relationship between the fitting residual, physical constraint triggering frequency and computation time, the intelligent fusion terminal achieves a dynamic balance between data parsing accuracy and computational resource consumption, thus completing the data parsing closed loop of the intelligent fusion terminal.
[0055] The above are all preferred embodiments of this application, and are not intended to limit the scope of protection of this application. Therefore, all equivalent changes made in accordance with the structure, shape and principle of this application should be covered within the scope of protection of this application.
Claims
1. A data parsing method for intelligent converged terminals based on multi-protocol fusion, characterized in that, include: The intelligent fusion terminal collects and preprocesses the multi-dimensional electrical quantities of the total incoming line of the transformer area, the multi-dimensional electrical quantities of the branch nodes triggered asynchronously, and the global time base, and determines a standardized feature dataset containing data timestamps, physical quantity type identifiers, actual engineering quantity values, and protocol type identifiers. The comprehensive basic weight is calculated based on the time distance between the data timestamp and the target alignment time, and the sampling period corresponding to the protocol type identifier; The actual number of data points is counted and the vacuum zone width is determined based on the data timestamp and the physical quantity type identifier, and the expected number of data points is determined in combination with the sampling period. Calculate the non-negative value of the difference between the expected number of data points and the actual number of data points, and calculate the ratio of the non-negative value to the expected number of data points plus one; multiply the ratio by an exponential function with the ratio of the vacuum region width to the total width of the time window as the exponent to obtain the edge sparsity index. Interpolate the associated sub-device data of the branch node device to obtain the alignment physical quantity value, calculate the sum of the alignment physical quantity values; use the sum of the sum and the tolerance boundary as the upper limit of the physical prior constraint boundary, and use the difference between the sum and the tolerance boundary as the lower limit of the physical prior constraint boundary. For the target physical quantity corresponding to the physical quantity type identifier, construct an objective function that includes a fitting error term based on the comprehensive basic weight and the actual engineering quantity value, and a physical penalty term based on the edge sparsity index and the physical prior constraint boundary. Minimize the solution to obtain the optimal fitting curve parameters, and calculate the alignment value at the target alignment time. Based on the alignment values, an operational status evaluation result is generated and equipment control is executed, using the fitting residual to fine-tune the algorithm parameters.
2. The data parsing method for intelligent fusion terminals based on multi-protocol fusion according to claim 1, characterized in that, The process of determining a standardized feature dataset containing data timestamps, physical quantity type identifiers, actual engineering quantity values, and protocol type identifiers includes: The collected multidimensional electrical quantities of the main incoming line of the transformer substation and the multidimensional electrical quantities of the branch nodes are parsed using protocol messages and mapped to physical models to extract data identifiers and protocol type identifiers. The multidimensional electrical quantities of the main incoming line of the transformer substation and the multidimensional electrical quantities of the branch nodes include at least one of voltage signals, current signals, power signals and electrical energy signals. The data timestamp is obtained by correcting the acquisition time based on the protocol transmission delay and the device sampling time. The data timestamp, the physical quantity type identifier, the actual engineering quantity value, and the protocol type identifier are mapped to a sliding time window sequence constructed based on the global time base to obtain the standardized feature dataset.
3. The data parsing method for intelligent fusion terminals based on multi-protocol fusion according to claim 1, characterized in that, The step of calculating the comprehensive basic weight based on the time distance between the data timestamp and the target alignment time, and the sampling period corresponding to the protocol type identifier, includes: The time proximity weight is obtained by calculating the exponential decay function by dividing the absolute value of the time distance by the negative value of the preset time decay constant. Calculate the sum of the absolute values of the sampling period and the time distance to obtain a first sum; calculate the quotient of the sampling period divided by the first sum; calculate the product of the quotient and a preset protocol adjustment coefficient to obtain a first product; add one to the first product to obtain the protocol value compensation term; The product of the time proximity weight and the protocol value compensation term is used as the comprehensive basic weight.
4. The data parsing method for intelligent fusion terminals based on multi-protocol fusion according to claim 1, characterized in that, The actual number of data points is counted and the vacuum zone width is determined based on the data timestamp and the physical quantity type identifier, and the expected number of data points is determined in combination with the sampling period. Calculate the non-negative value of the difference between the expected number of data points and the actual number of data points, and calculate the ratio of the non-negative value to the expected number of data points plus one; Multiplying the ratio by an exponential function with the ratio of the vacuum region width to the total width of the time window as the exponent yields the edge sparsity index, including: The time interval that is close to the target alignment time and whose width is a preset proportion of the total width of the time window is defined as the target side edge interval, and the number of data points corresponding to the physical quantity type identifier in the target side edge interval is counted as the actual number of data points. The difference between the target alignment time and the largest data timestamp within the target side edge interval is used as the vacuum zone width. When there are no data points within the target side edge interval, the vacuum zone width is set to be equal to the width of the target side edge interval. Divide the width of the target side edge region by the sampling period to obtain the desired number of data points; Calculate the non-negative value of the difference between the expected number of data points and the actual number of data points to obtain the non-negative data point difference value; calculate the sum of the expected number of data points and one to obtain the expected sum; calculate the ratio of the non-negative data point difference value to the expected sum to obtain the data point ratio; calculate the product of the ratio of the vacuum region width to the total width of the time window and a preset sparsity amplification factor to obtain the sparsity amplification product; calculate the exponential function with the sparsity amplification product as the exponent to obtain the extrapolation risk index value; calculate the product of the data point ratio and the extrapolation risk index value to obtain the edge sparsity index.
5. The data parsing method for intelligent fusion terminals based on multi-protocol fusion according to claim 1, characterized in that, The process of interpolating the associated sub-device data of the branch node device to obtain alignment physical quantity values, calculating the sum of the alignment physical quantity values, and using the sum of the sum and the tolerance boundary as the upper limit of the physical prior constraint boundary, and using the difference between the sum and the tolerance boundary as the lower limit of the physical prior constraint boundary, includes: When the physical quantity type identifier indicates that the target physical quantity is an accumulated conserved electrical quantity, the sum of the aligned physical quantity values and the sum of the tolerance boundary are calculated as the upper limit of the physical prior constraint boundary, and the difference between the sum and the tolerance boundary is calculated as the lower limit of the physical prior constraint boundary; the accumulated conserved electrical quantity includes current, active power, reactive power and electrical energy; When the physical quantity type identifier indicates that the target physical quantity is a voltage-type physical quantity, the upper limit of the physical prior constraint boundary is obtained by multiplying the rated voltage by a factor plus the allowable deviation ratio; the lower limit of the physical prior constraint boundary is obtained by multiplying the rated voltage by a factor minus the allowable deviation ratio.
6. The data parsing method for intelligent fusion terminals based on multi-protocol fusion according to claim 1, characterized in that, The objective function constructed for the target physical quantity corresponding to the physical quantity type identifier includes a fitting error term based on the comprehensive basic weight and the actual engineering quantity value, and a physical penalty term based on the edge sparsity index and the physical prior constraint boundary, comprising: The physical penalty term includes a distance function between the alignment value at the target alignment time and the physical prior constraint boundary. When the alignment value is within the interval formed by the lower limit and the upper limit of the physical prior constraint boundary, the value of the distance function is zero; When the alignment value is less than the lower limit, the value of the distance function is the difference between the lower limit and the alignment value; When the alignment value is greater than the upper limit, the value of the distance function is the difference between the alignment value and the upper limit.
7. The data parsing method for intelligent fusion terminals based on multi-protocol fusion according to claim 1, characterized in that, The process of minimizing the solution to obtain the optimal fitted curve parameters and calculating the alignment value at the target alignment time includes: The continuous fitting curve function corresponding to the optimal fitting curve parameters is a polynomial function. The fitting order of the polynomial function is dynamically determined based on the number of data points of the target physical quantity within the time window and the edge sparsity index; when the number of data points is less than a preset threshold or the edge sparsity index is greater than a preset trigger threshold, the fitting order is reduced. The objective function is transformed into an optimization problem concerning polynomial coefficients, and solved using the Levenberg-Marquardt method, Gauss-Newton method, gradient descent method, sequential quadratic programming, or quadratic programming method to obtain the parameters of the optimal fitting curve. Substitute the target alignment time into the continuous fitting curve function corresponding to the optimal fitting curve parameters to obtain the alignment value.
8. The data parsing method for intelligent fusion terminals based on multi-protocol fusion according to claim 1, characterized in that, The step of generating an operational status evaluation result based on the aligned values and executing equipment control, and fine-tuning the algorithm parameters using the fitting residuals, includes: The alignment value is used as the output of the multi-protocol fusion parsing, and substituted into the transformer area line loss calculation model and overload assessment logic to generate the transformer area operation status assessment result. When the evaluation result of the operating status of the transformer area exceeds the safety threshold, a tripping command is sent to the corresponding smart circuit breaker through the local control interface; When the fitting residual is continuously greater than the first residual threshold, the sparsity trigger threshold is reduced or the physical constraint penalty weight is increased. When the fitting residual is consistently less than the second residual threshold and the physical constraint triggering frequency is higher than the frequency threshold, the sparsity triggering threshold is increased or the physical constraint penalty weight is decreased. When the alignment calculation time exceeds the time threshold, the fitting order is reduced or the total width of the time window is shortened to complete the data parsing closed loop of the intelligent fusion terminal.
