Unified Code for Units of Measure (UCUM)

Slides:



Advertisements
Similar presentations
Computer Graphics: 2D Transformations
Advertisements

Chapter 0 Review of Algebra.
You have been given a mission and a code. Use the code to complete the mission and you will save the world from obliteration…
SI UNITS & METRIC CONVERSIONS
1 Knowledge Representation Introduction KR and Logic.
Functions and Their Representations
Chapter 1 The Study of Body Function Image PowerPoint
Copyright © 2011, Elsevier Inc. All rights reserved. Chapter 5 Author: Julia Richards and R. Scott Hawley.
1 Copyright © 2010, Elsevier Inc. All rights Reserved Fig 2.1 Chapter 2.
By D. Fisher Geometric Transformations. Reflection, Rotation, or Translation 1.
© Copyright 2009 TopQuadrant Inc. Slide 1 QUDT: An OWL Ontology for Measurable Quantities, Units, Dimension Systems, and Dimensional Data Types James Chip.
Math Vocabulary Review Part 1.
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Title Subtitle.
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Chapter R: Reference: Basic Algebraic Concepts
Conversion Problems 3.3.
DIVIDING INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
Addition Facts
Year 6 mental test 5 second questions
Relational data objects 1 Lecture 6. Relational data objects 2 Answer to last lectures activity.
Query optimisation.
Automata Theory Part 1: Introduction & NFA November 2002.
Programming Language Concepts
Tintu David Joy. Agenda Motivation Better Verification Through Symmetry-basic idea Structural Symmetry and Multiprocessor Systems Mur ϕ verification system.
1 Verification of Parameterized Systems Reducing Model Checking of the Few to the One. E. Allen Emerson, Richard J. Trefler and Thomas Wahl Junaid Surve.
Evaluating Limits Analytically
Copyright © Cengage Learning. All rights reserved.
© 2011 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary. Towards a Model-Based Characterization of Data and Services Integration Paul.
ABC Technology Project
Chapter 15 Complex Numbers
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
Chapter 4 Systems of Linear Equations; Matrices
Chapter 4 Systems of Linear Equations; Matrices
Mathematics and Special Education Leadership Protocols
Chapter 2 Section 3.
1Computer Graphics Homogeneous Coordinates & Transformations Lecture 11/12 John Shearer Culture Lab – space 2
5.4 Basis And Dimension.
6.4 Best Approximation; Least Squares
Chapter 5 Test Review Sections 5-1 through 5-4.
GG Consulting, LLC I-SUITE. Source: TEA SHARS Frequently asked questions 2.
What You Should Learn • Represent and classify real numbers.
Common Core: Engage New York 6.EE.1, 6.EE.2, 6.EE.3 and 6.EE.4
Addition 1’s to 20.
25 seconds left…...
Exponential and Logarithmic Functions
The Fundamental Theorem of Algebra
Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved.
Week 1.
We will resume in: 25 Minutes.
Introduction The concept of transform appears often in the literature of image processing and data compression. Indeed a suitable discrete representation.
Mathematics1 Mathematics 1 Applied Informatics Štefan BEREŽNÝ.
Lecture 15 Functions CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
TASK: Skill Development A proportional relationship is a set of equivalent ratios. Equivalent ratios have equal values using different numbers. Creating.
How Cells Obtain Energy from Food
Transformations Ed Angel Professor Emeritus of Computer Science
1 Functions and Applications
9. Two Functions of Two Random Variables
Year 3 Objectives: Number NUMBER AND PLACE VALUE Objective 1: Read and write numbers up to 1000 in numerals and words Read and write all numbers to 100.
Chapter 6 Languages: finite state machines
Equivalence Relations
Math Review with Matlab:
In this section we’ll consider space groups Pm, Cm, Pc and Cc
Copyright © Cengage Learning. All rights reserved.
Introduction and Vectors
Quantum One.
Presentation transcript:

Unified Code for Units of Measure (UCUM) Gunther Schadow, MD, PhD, Investigator, Regenstrief Institute Associate Professor, Indiana University School of Informatics Co-chair, Orders and Observations, Health Level-7 President, Pragmatic Data LLC

Copyright (c) 1999-2009 Regenstrief Institute, Inc. Abstract: The Unified Code for Units of Measure (UCUM) provides human-friendly codes for all units of measures with precise semantics to facilitate unambiguous and computable communication between computer systems used in science, engineering and business world wide. UCUM is inspired by earlier standards (ISO 2955-1983, ANSI X3.50-1986) which it expands and corrects (resolving various ambiguities). The semantics of units is based on the intuition applied by most physicists when computing with quantities and units (but chemists and medical people may have to enhance their intuition first). It represents the meaning of equivalence, commensurability, conversion, base and derived units, including special units which require arbitrary conversion functions (e.g., logarithm). UCUM’s formal semantics is defined algebraically, which leads to a very compact representation and efficient (constant time) reasoning. However, it is quite different from symbolic knowledge representation methods that many ontologists are familiar with. While symbolic models in UML are useful for discussing the design of the UCUM implementation, they do not replace the elegance and efficiency of the algebraic definition. This supports the conclusion that units of measure are essentially quantitative phenomena that require a focus on quantitative methods for their definition. UCUM does not, however, attempt to define base units in any formal way but uses those as primitives and refers to appropriate standards bodies (ISO, BIPM) for their definitions. UCUM has been adopted by many standards organization world wide in and outside of the medical domain. While the actual maintenance of the core code system is minimal, defining organization and governance are becoming more important. The key challenge in content is to deal with procedure defined (arbitrary) units that are common in biomedical sciences. 9/24/2009 Copyright (c) 1999-2009 Regenstrief Institute, Inc.

UCUM - Unified Code for Units of Measure Scope All units of measures being contemporarily used in international science, engineering, and business. Purpose To facilitate unambiguous semantically defined and computable communication of physical quantities with units between computer systems. Inspired by ISO 2955-1983, ANSI X3.50-1986, and HL7 ISO+. Predecessors (now obsolete) had many defects “a” for “year” and “are” “cd” for candela and centi-day ounce: Avoirdupois? Troy? Apothecaries’? many missing units, e.g., mm[Hg] Specifies all units with computable semantics Automatic conversion No need for large tables 9/24/2009 Copyright (c) 1999-2009 Regenstrief Institute, Inc.

UCUM is Easy and Precise Human-friendly Codes with Precise Semantics Write units as you would when typing a scientific journal article draft in a plain-text email ug/dL, not mcg/deciliters g, kg, not gm, gms, kgs, etc. cm3 not cc For standard units, you will be correct most of the time. Only beware of customary units, jargon, non-units, and arbitrary units. 9/24/2009 Copyright (c) 1999-2009 Regenstrief Institute, Inc.

Copyright (c) 1999-2009 Regenstrief Institute, Inc. 9/24/2009 Copyright (c) 1999-2009 Regenstrief Institute, Inc.

Copyright (c) 1999-2009 Regenstrief Institute, Inc. 9/24/2009 Copyright (c) 1999-2009 Regenstrief Institute, Inc.

Copyright (c) 1999-2009 Regenstrief Institute, Inc. Syntax Unit atom: g, m, min, [in_i], m[Hg] Simple unit: prefix * atom kg, mm, mm[Hg], but not mmin, m[in_i] Prefixes only for “metric” units Unit terms Exponents: m2, cm3 Multiplication: kg.m Division: m/s Combination: kg.m/s2 Numeric factors, Parentheses: mg/(12.h) Annotations: kg{potatoes}, mg{creat} do not change the meaning 9/24/2009 Copyright (c) 1999-2009 Regenstrief Institute, Inc.

Semantics – The Intuition Unit is a product of integer-powers of base units: 1 N = 1 kg.m/s2 = 103 m1 s-2 g1 1 dyn/s/cm5 = 108 m-4 s-1 g1 1 mmol/L = 10-3 m-3 mol1 1 U/L = 1/60 10-3 m-3 s-1 mol1 Represented as: (Factor ) x [vector of exponents] E.g., 1/60 10-3 x [-3, -1, 0, 1, 0, 0, 0] 9/24/2009 Copyright (c) 1999-2009 Regenstrief Institute, Inc.

Copyright (c) 1999-2009 Regenstrief Institute, Inc. Semantics - Examples 1 N = 1 kg.m/s2 = 103 m1 s-2 g1 103 x [1, -2, 1, 0, 0, 0, 0] 1 dyn/s/cm5 = 108 m-4 s-1 g1 108 x [-4, -1, 1, 0, 0, 0, 0] 1 mmol/L = 10-3 m-3 mol1 10-3 x [-3, 0, 0, 1, 0, 0, 0] 1 U/L = 1/60 10-3 m-3 s-1 mol1 1/60 10-3 x [-3, -1, 0, 1, 0, 0, 0] 9/24/2009 Copyright (c) 1999-2009 Regenstrief Institute, Inc.

Semantics – The Formalities §16 preliminaries ■1 The semantics of UCUM is defined by the algebraic operations of multiplication, division and exponentiation between units, by the equivalence relations of equality and commensurability of units, and by the multiplication of a unit with a scalar.   ■2 Every expression in UCUM is mapped to one and only one semantic element. But every semantic element may have more than one valid representant in UCUM.    ■3 The set of expressions in UCUM is infinite. 9/24/2009 Copyright (c) 1999-2009 Regenstrief Institute, Inc.

§17 equivalence relations ■1 The set of expressions in UCUM has 2 binary, symmetric, reflexive, and transitive relations: (1) “equals” = and (2) “is commensurable with” ~. All expressions that are equal are also commensurable but not all commensurable expressions are equal. 9/24/2009 Copyright (c) 1999-2009 Regenstrief Institute, Inc.

Copyright (c) 1999-2009 Regenstrief Institute, Inc. §18 algebra of units ■1 The equivalence classes generated by the equality relation = are called units.    ■2 The set of units U has a binary multiplication operator · that is associative and commutative and has the neutral element 1 (called “the unity”). For each unit u  U there is an inverse unit u-1 such that u · u-1 = 1.    ■3 The division operation u / v is defined as u · v-1.    ■4 The exponentiation operation with integer exponents n is defined as un = Π1n u.     ■5 The product u' = ru of a real number scalar r with the unit u is also a unit, where u' ~ u. 9/24/2009 Copyright (c) 1999-2009 Regenstrief Institute, Inc.

§19 dimension and magnitude ■1 The equivalence classes generated by the commensurability relation ~ are called dimensions. The set D of dimensions is infinite in principle, but only a finite subset of dimensions are used in practice. Thus, implementations of UCUM need not be able to represent the infinite set of dimensions.    ■2 Two commensurable units that are not equal differ only by their magnitude.    ■3 The quotient u / v of any two commensurable units u ~ v is of the same dimension as the unity (u / v ~ 1). This quotient is also equal to the unity 1 multiplied with a scalar r: u / v = r1, where r is called the relative magnitude of u regarding v. 9/24/2009 Copyright (c) 1999-2009 Regenstrief Institute, Inc.

Copyright (c) 1999-2009 Regenstrief Institute, Inc. §20 base units ■1 Any system of units is constructed from a finite set B of mutually independent base units B = { b1, b2, ..., bn }, on which any other unit u  U is defined as u = r1b1u1 · r2b2u2 · ... · rnbnun, where r = r1 · r2 ·· · rn is called the magnitude of the unit u regarding B.    ■2 With respect to a basis B every unit can thus be represented as a pair (r, û) of magnitude r and dimension û = (u1, u2, ..., un).    ■3 Two sets of base units are equivalent if there is an isomorphism between the sets of units that they generate. 9/24/2009 Copyright (c) 1999-2009 Regenstrief Institute, Inc.

Copyright (c) 1999-2009 Regenstrief Institute, Inc. Base Units base units are arbitrary and conventional linear transformation can convert between isomorphic systems of units 9/24/2009 Copyright (c) 1999-2009 Regenstrief Institute, Inc.

Copyright (c) 1999-2009 Regenstrief Institute, Inc. Derived Units Any unit can be derived from the base by means of the algebra defined above. 9/24/2009 Copyright (c) 1999-2009 Regenstrief Institute, Inc.

Copyright (c) 1999-2009 Regenstrief Institute, Inc. §21 special units ■1 Units that imply a measurement on a scale other than a ratio scale (e.g., interval scale, logarithmic scale) do not represent proper units as elements of the group (U,·) but are called special units. The set of special units is denoted S, where S ∩ U = {}.    ■2 A special unit s  S is defined as the triple (u, fs, fs-1) where u  U is the “corresponding” proper unit of s and where fs and fs-1 are mutually inverse real functions, applied as follows: let rs be the numeric measurement value expressed in the special unit s and let m be the corresponding dimensioned quantity (the measurement with proper unit u.) Now, rs = fs(m/u) converts the measurement to the special unit and m = fs-1(rs) × u does the inverse. ■3 Although not elements of U, special units are said to be “of the same dimension” or “commensurable with” their corresponding proper unit u and the class of units commensurable with u. This can be expressed by means of a binary, symmetric, transitive and reflexive relation ≈ on U  S. 9/24/2009 Copyright (c) 1999-2009 Regenstrief Institute, Inc.

Examples for special units 9/24/2009 Copyright (c) 1999-2009 Regenstrief Institute, Inc.

Copyright (c) 1999-2009 Regenstrief Institute, Inc. Of Note UCUM semantics is an algebra of units Quite different from symbolic knowledge representation methods that many ontologists are familiar with. Straight-forward implementation. Constant time reasoning. 9/24/2009 Copyright (c) 1999-2009 Regenstrief Institute, Inc.

UCUM Implementation Model 9/24/2009 Copyright (c) 1999-2009 Regenstrief Institute, Inc.

Another UML model attempt for VIM, Units and UCUM 9/24/2009 Copyright (c) 1999-2009 Regenstrief Institute, Inc.

UCUM model in ISO11240 draft (TC215) 9/24/2009 Copyright (c) 1999-2009 Regenstrief Institute, Inc.

Conclusions regarding Semantics of Units of Measures Units of measure are essentially quantitative phenomena that require a focus on quantitative methods for their definition. While symbolic models in UML are useful for discussing the design of the UCUM implementation and illustrating certain concepts Symbolic schematics do not seem to replace the elegance and efficiency of the algebraic definition. Limitation UCUM does not attempt to define base units in any formal way but uses those as primitives and refers to appropriate standards bodies (ISO, BIPM) for their definitions. But we do not know of another formal system that would do that. 9/24/2009 Copyright (c) 1999-2009 Regenstrief Institute, Inc.

Copyright (c) 1999-2009 Regenstrief Institute, Inc. Ongoing UCUM Projects Organization and Procedures Project Managing Requests for new entries Figuring out how Procedure Defined (Arbitrary) Units fit into UCUM's semantic framework Testing and Quality Assurance of UCUM implementations Translations, internationalization 9/24/2009 Copyright (c) 1999-2009 Regenstrief Institute, Inc.

Copyright (c) 1999-2009 Regenstrief Institute, Inc. Thank you http://unitsofmeasure.org 9/24/2009 Copyright (c) 1999-2009 Regenstrief Institute, Inc.