Calculation method for machine readable digital uncertainty

Through XML Schema verification and parameter dictionary storage, the standardization and machine readability problems of uncertainty calculation are solved, the transparency of data sharing and computing processes is realized, and efficiency and accuracy are improved.

CN120447963APending Publication Date: 2025-08-08SHENZHEN INST OF TECH INNOVATION CHINA ACAD OF METROLOGY +1
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202510532031.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-25
Publication Date
2025-08-08

AI Technical Summary

Technical Problem

In the prior art, the uncertainty calculation process lacks standardization, insufficient machine readability, poor unit system compatibility, and opaque calculation process, making it difficult to share and reuse data.

Method used

The XML Schema file is used to verify the content of the data storage module, input parameter units uniformly and store them in the form of a parameter dictionary, perform calculation steps in sequence, and output results.

Benefits of technology

It realizes machine readability and data sharing of uncertainty calculations, improves calculation efficiency, avoids unit conversion errors, and ensures that the calculation process is transparent and traceable.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120447963A_ABST
    Figure CN120447963A_ABST
Patent Text Reader

Abstract

The invention discloses a method for calculating machine readable digital uncertainty, which comprises the following steps of: constructing a data storage module for storing uncertainty operation description which comprises parameter input and calculation steps; reading the content of the data storage module, and verifying the content of the data storage module by using a predefined XML Schema file; analyzing all the input parameters, and unifying units of all the input parameters according to physical quantity types of the input parameters; taking the names of the input parameters after unit unification as indexes, and putting all the input parameters into a parameter dictionary; calling the parameter dictionary, and executing calculation steps in the uncertainty operation description in sequence to obtain an uncertainty calculation result; and the uncertainty calculation result is used as an output parameter to be stored in a data storage module. According to the method, data sharing and machine readability are realized through a unified format, meanwhile, the calculation efficiency of uncertainty is improved to a great extent, and the method has very high inclusiveness and flexibility.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of uncertainty calculation, and in particular to a method for calculating machine-readable digital uncertainty. Background Art

[0002] Uncertainty is a quantitative measure used to describe the reliability or trustworthiness of a measurement result. It reflects the range of difference between the measured value and the true value and is an important parameter for measuring measurement quality. Simply put, uncertainty indicates the degree of "uncertainty" in a measurement result, that is, how reliable the measurement result is.

[0003] In existing measurement uncertainty calculations, manual records or proprietary software formats are usually used to store the calculation process and results, which has the following problems:

[0004] (1) Non-standardization: The uncertainty calculation process description formats of different institutions or software are not unified, which makes data sharing and reuse difficult.

[0005] (2) Lack of machine readability: Traditional document formats (such as PDF and Excel) cannot be directly parsed and automatically processed by computers.

[0006] (3) Insufficient compatibility of unit systems: Existing methods do not describe complex units (such as derived units or extended units) in a standardized manner, which can easily lead to unit conversion errors.

[0007] (4) The computational process is not transparent: the uncertainty propagation and synthesis methods (such as linear propagation and Monte Carlo simulation) are not explicitly recorded, which affects traceability. Summary of the Invention

[0008] In response to the above-mentioned deficiencies in the prior art, the present invention provides a method for calculating machine-readable digital uncertainty, which solves the problems of low applicability, lack of machine readability and opaque calculation process in the prior art.

[0009] In order to achieve the above-mentioned object of the invention, the technical solution adopted by the present invention is: a method for calculating machine-readable digital uncertainty, comprising the following steps:

[0010] Constructing a data storage module for storing uncertainty calculation descriptions, wherein the uncertainty calculation descriptions include input parameters and calculation steps;

[0011] Read the contents of the data storage module and verify the contents of the data storage module using the predefined XML Schema file to ensure that the format of the uncertainty calculation description meets the basic requirements;

[0012] Parse all input parameters and unify the units of all input parameters according to the physical quantity type of the input parameters;

[0013] Put all input parameters into the parameter dictionary using the name of the input parameter after unifying the unit as the index;

[0014] Call the parameter dictionary and execute the calculation steps in the uncertainty operation description in order to obtain the uncertainty calculation results;

[0015] The uncertainty calculation results are saved as output parameters in the data storage module.

[0016] The beneficial effects of the present invention are:

[0017] 1. By using predefined XML Schema files to verify the contents of the data storage module, we ensure that different systems can read and generate files that conform to the data storage module format. This allows us to directly use software tools to parse the contents of the data storage module, automatically perform uncertainty calculations, and output the results, reducing manual intervention and improving calculation efficiency.

[0018] 2. Use the digital International System of Units (SI) for unit expression, support all SI basic units and derived units, support complex unit descriptions, avoid errors caused by unit conversion, and ensure unit consistency during uncertainty calculations.

[0019] 3. By unifying the data storage module structure, different institutions and software can seamlessly share uncertainty calculation data, reducing the complex work of data processing, promoting data integration and collaboration, and providing decision makers with consistent and comparable indicators.

[0020] 4. The uncertainty calculation method provided by the present invention has a complete and transparent calculation process, which facilitates the reproduction and auditing of the calculation process, while increasing the possibility of data monitoring, thereby reducing misunderstandings or costs caused by information asymmetry and promoting cross-institutional collaboration. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 A schematic flow chart of the method provided by the present invention;

[0022] Figure 2 Schematic diagram of the structure of the data storage module described in the embodiment. DETAILED DESCRIPTION

[0023] The specific embodiments of the present invention are described below to facilitate understanding of the present invention by those skilled in the art. However, it should be clear that the present invention is not limited to the scope of the specific embodiments. For those skilled in the art, as long as various changes are within the spirit and scope of the present invention as defined and determined by the appended claims, these changes are obvious, and all inventions and creations utilizing the concepts of the present invention are protected.

[0024] like Figure 1 As shown, in one embodiment of the present invention, a method for calculating machine-readable digital uncertainty provided by the present invention includes the following steps:

[0025] S1. Construct a data storage module for storing uncertainty calculation descriptions, wherein the uncertainty calculation descriptions include input parameters and calculation steps;

[0026] S2. Read the contents of the data storage module and verify the contents of the data storage module using a predefined XML Schema file to ensure that the format of the uncertainty calculation description meets the basic requirements;

[0027] S3. Analyze all input parameters and unify the units of all input parameters according to the physical quantity type of the input parameters, thereby enhancing data consistency and maintainability, avoiding certain errors, risks, and additional calculation steps caused by unit conversion, and helping to improve calculation efficiency.

[0028] S4. Use the unified input parameter names as indexes and place all input parameters into a parameter dictionary. The parameter dictionary integrates related parameters into a clear structure, allowing you to intuitively understand the meaning and purpose of each parameter. It also makes it easier to adjust parameters in the parameter dictionary, eliminating the need to search and modify each parameter individually in the code, greatly improving code maintainability.

[0029] S5. Call the parameter dictionary and execute the calculation steps in the uncertainty operation description in order to obtain the uncertainty calculation result. In this embodiment, the calculation steps include multiple calculation steps, which constitute a calculation step set and are stored in the duc:uncertaintyCalculationSteps node.

[0030] S6. Save the uncertainty calculation results as output parameters to the duc:results node of the data storage module.

[0031] The structure of the data storage module in step S1 is as follows Figure 2As shown in the figure, the root node of the data storage module is the duc:digitalUncertaintyCalculation node. This node defines the duc and si namespaces to ensure that elements and attributes throughout the module correctly reference these two namespaces. The duc:digitalUncertaintyCalculation node contains the duc:baseInfo and duc:uncertaintyCalculation nodes. The duc:inputDatas, duc:uncertaintyCalculationSteps, and duc:results nodes are all child nodes of the duc:uncertaintyCalculation node.

[0032] The duc:inputDatas node is used to store input parameters. The duc:inputDatas node includes duc:table, duc:row, and duc:cell child nodes. The duc:table child node stores list data; the duc:row child node stores row data; and the duc:cell child node stores cell data. Cell data includes the data name (si:label), the value (si:value), and the unit (si:unit).

[0033] The duc:uncertaintyCalculationSteps node is used to store a set of uncertainty calculation steps. The duc:uncertaintyCalculationSteps node includes the duc:uncertaintyCalculationStep child node, the duc:name child node, and the duc:formula child node. The duc:uncertaintyCalculationStep child node stores a single uncertainty calculation step; the duc:name child node stores the name of a single calculation step; and the duc:formula child node stores the calculation formula description.

[0034] The duc:results node is used to store uncertainty calculation results. The duc:results node includes the duc:expandedUnc, duc:uncertainty, duc:coverageFactor, and duc:distribution child nodes. The duc:expandedUnc child node stores the expanded uncertainty term; the duc:uncertainty child node stores the uncertainty value; the duc:coverageFactor child node stores the uncertainty coverage factor; and the duc:distribution child node stores the uncertainty probability distribution type.

[0035] In addition, the uncertainty calculation results stored in the duc:results node, i.e., the output parameters, meet the following requirements: the output parameter name consists only of uppercase or lowercase letters and its length does not exceed 100 characters; the data type of the output parameter is a numeric type; and the output parameter is expressed in digital International System of Units.

[0036] The duc:baseInfo node is used to store basic information. The duc:baseInfo node includes the duc:softwareName child node, the duc:softwareRelease child node, the duc:calcDate child node, the duc:calcNodeName child node, and the duc:comment child node. The duc:softwareName child node stores the name of the software that generated the interaction data; the duc:softwareRelease child node stores the software version number; the duc:calcDate child node stores the calculation time; the duc:calcNodeName child node stores the calculation node name; and the duc:comment child node stores comment information.

[0037] The specific method of using the predefined XML Schema file to verify the content of the data storage module in step S2 is:

[0038] Use predefined XML Schema files to validate the input parameters stored in the duc:inputDatas node and the calculation steps stored in the duc:uncertaintyCalculationSteps node;

[0039] Validation of input parameters includes:

[0040] The name of the input parameter is a unique value, consisting only of uppercase or lowercase letters, and the length of the input parameter does not exceed 100 characters; the data type of the input parameter is a numeric type; the input parameter is expressed in digital international units; the uncertainty of the input parameter is a numeric data type; the uncertainty of the input parameter consists of only two types: A and B;

[0041] Validation of the set of computational steps includes:

[0042] A calculation step includes its name and its calculation formula. The name of a calculation step cannot exceed 100 characters. The calculation formula of a calculation step includes the names of input parameters and the names of other calculation steps.

[0043] Using predefined XML Schema files for verification not only ensures that the structure of the file data complies with predefined rules, but also ensures data integrity, prevents data loss, and facilitates subsequent accurate data analysis. Secondly, verification ensures that different systems can read and generate files that conform to the data storage module format, thereby directly using software tools to parse the data, automatically perform uncertainty calculations, and output results, reducing manual intervention and improving computational efficiency.

[0044] Putting all input parameters into the parameter dictionary in step S4 specifically involves arranging the reference values and measured values of the input parameters in rows according to the expression of the data table, where each unit data in each row includes a data name si:label, a numerical value si:value and a unit si:unit.

[0045] The specific method of calling the parameter dictionary in step S5 is: before executing the calculation step, the calculation formula in the duc:formula child node is parsed, and the input parameter placeholders in the calculation formula are replaced with actual values retrieved from the parameter dictionary according to the parameter name.

[0046] In summary, the present invention achieves data sharing and machine readability by unifying the data storage format, while greatly improving the calculation efficiency of uncertainty and having strong inclusiveness and flexibility.

Claims

1. A method for calculating machine-readable digital uncertainty, characterized in that: The following steps are involved: Constructing a data storage module for storing uncertainty calculation descriptions, wherein the uncertainty calculation descriptions include input parameters and calculation steps; Read the contents of the data storage module and verify the contents of the data storage module using the predefined XML Schema file to ensure that the format of the uncertainty calculation description meets the basic requirements; Parse all input parameters and unify the units of all input parameters according to the physical quantity type of the input parameters; Put all input parameters into the parameter dictionary using the name of the input parameter after unifying the unit as the index; Call the parameter dictionary and execute the calculation steps in the uncertainty operation description in order to obtain the uncertainty calculation result; The uncertainty calculation results are saved as output parameters in the data storage module.

2. The method for calculating the uncertainty of a machine-readable digital data according to claim 1, characterized in that: The data storage module includes the duc:inputDatas node, the duc:uncertaintyCalculationSteps node, and the duc:results node; Among them, the duc:inputDatas node is used to store input parameters; duc:uncertaintyCalculationSteps node, used to store the uncertainty calculation step set; The duc:results node is used to store uncertainty calculation results.

3. The method for calculating the uncertainty of machine-readable digital data according to claim 2, characterized in that: The duc:inputDatas node includes the duc:table child node, the duc:row child node, and the duc:cell child node; Among them, the duc:table child node is used to store list data; duc:row child node, used to store row data; The duc:cell child node is used to store cell data; the cell data includes the data name si:label, the numerical value si:value, and the unit si:unit.

4. The method for calculating the uncertainty of machine-readable digital data according to claim 3, wherein: The duc:uncertaintyCalculationSteps node includes the duc:uncertaintyCalculationStep child node, the duc:name child node, and the duc:formula child node; Among them, the duc:uncertaintyCalculationStep child node is used to store a single calculation step item of uncertainty; duc:name child node, used to store the name of a single calculation step; The duc:formula child node is used to store calculation formula descriptions.

5. The method for calculating the uncertainty of machine-readable digital data according to claim 4, characterized in that: The duc:results node includes the duc:expandedUnc child node, the duc:uncertainty child node, the duc:coverageFactor child node, and the duc:distribution child node; Among them, the duc:expandedUnc child node is used to store the expanded uncertainty term; duc:uncertainty child node, used to store uncertainty values; duc:coverageFactor child node, used to store uncertainty coverage factor; duc:distribution child node, used to store uncertainty probability distribution type.

6. The method for calculating the uncertainty of machine-readable digital data according to claim 5, characterized in that: The specific method for validating the content of the data storage module using the predefined XML Schema file is as follows: Use predefined XML Schema files to validate the input parameters stored in the duc:inputDatas node and the calculation steps stored in the duc:uncertaintyCalculationSteps node; Validation of input parameters includes: The name of the input parameter is a unique value, consisting only of uppercase or lowercase letters, and the length of the input parameter does not exceed 100 characters; the data type of the input parameter is a numeric type; the input parameter is expressed in digital international units; the uncertainty of the input parameter is a numeric data type; the uncertainty of the input parameter consists of only two types: A and B; Validation of the set of computational steps includes: A calculation step includes its name and its calculation formula. The name of a calculation step cannot exceed 100 characters. The calculation formula of a calculation step includes the names of input parameters and the names of other calculation steps.

7. The method for calculating the uncertainty of machine-readable digital data according to claim 6, characterized in that: The uncertainty calculation results stored in the duc:results node, i.e., the output parameters, must meet the following requirements: The name of the output parameter must consist of only uppercase or lowercase letters and must not exceed 100 characters. The data type of the output parameter is a numeric type; The output parameters are expressed in digital SI units.

8. The method for calculating machine-readable digital uncertainty according to claim 1, characterized in that: Put all input parameters into the parameter dictionary as follows: input the reference value and measurement value of the input parameters in rows according to the expression of the data table, where each unit data in each row includes the data name si:label, the value si:value and the unit si:unit.

9. The method for calculating the uncertainty of machine-readable digital data according to claim 4, characterized in that: The specific method of calling the parameter dictionary is: before executing the calculation step, parse the calculation formula in the duc:formula child node and replace the input parameter placeholders in the calculation formula with the actual values retrieved from the parameter dictionary according to the parameter name.

10. The method for calculating machine-readable digital uncertainty according to claim 1, characterized in that: The data storage module also includes a duc:baseInfo node for storing basic information; the duc:baseInfo node includes a duc:softwareName child node, a duc:softwareRelease child node, a duc:calcDate child node, a duc:calcNodeName child node, and a duc:comment child node; The duc:softwareName child node is used to store the name of the software that generates the interactive data; the duc:softwareRelease child node is used to store the software version number; duc:calcDate child node, used to store calculation time; duc:calcNodeName child node, used to store the calculation node name; duc:comment child node, used to store comment information.

Citation Information

Patent Citations

  • Oil-gas pipeline data alignment management method

    CN111274683A

  • Service work order processing method and device

    CN112947944A

  • Aircraft performance software computing kernel pre-processing and post-processing system, method, medium and equipment

    CN114756916A

  • Uncertainty evaluation method and uncertainty evaluation apparatus

    JP2022190451A

  • Validation of function call parameters

    US20140033314A1