Background: Diagnostic pathways are based on expert rules (“if…then…else”), which can be visualized as decision trees. Machine learning algorithms may be used to validate existing or to suggest potential new decision trees. Methods: We present and compare two machine learning algorithms, which automatically generate decision trees from laboratory data. The underlying functions (rpart and ctree) are included in the free statistical software environment R (www.r-project.org). Results: Using input data from a published study on hepatitis C patients, we demonstrate that both algorithms are easy to apply and produce plausible decision trees. These algorithms confirm common knowledge about the power of laboratory testing to detect liver fibrosis and cirrhosis. For example, we show that conventional measurands such as choline esterase or albumin can separate cases with no or slight fibrosis from those with severe fibrosis and cirrhosis, while intermediate stages are often misclassified. Addition of the newer ELF score to the test panel makes decision trees simpler and may improve the quality of classification. Validation of the automatic decision trees with the leave-one-out method shows that the accuracy of all models created by machine learning is significantly higher than pure guessing. However, small changes of the input data result in markedly deviant decision trees, which need to be validated further with respect to clinical plausibility. Conclusions: The machine learning algorithms presented here can support but do not replace the medical expert when designing decision trees for diagnostic pathways.
Background/Objectives: We present a software package called reflimR (Version 1.0.6), which enables rapid and transparent verification of reference intervals from routine laboratory measurements. Our method makes it easy to compare the results with specified target values and facilitates the interpretation of deviations using traffic light colors. Methods: The algorithm includes three procedural steps: (a) definition of an appropriate distribution model, based on Bowley’s quartile skewness, (b) iterative truncation, based on a modified boxplot method to obtain the central 95% of presumably inconspicuous results, and (c) extrapolation of reference limits from a truncated normal quantile–quantile plot. Results: All algorithms have been combined into one consolidated library, which can be called in the R environment with a single command reflim (x). Using an example dataset included in the package, we demonstrate that our method can be applied to mixed data containing a substantial proportion of pathological values. It leads to similar results as the direct guideline approach as well as the more sophisticated indirect refineR software package. As compared to the latter, reflimR works much faster and needs smaller datasets for robust estimates. For the interpretation of the results, we present an intuitive color scheme based on tolerance ranges (permissible uncertainty of laboratory results). We show that a relatively high number of published reference limits require careful reevaluation. Conclusions: The reflimR package closes the gap between direct guideline methods and the more sophisticated indirect refineR method. We recommend reflimR for the rapid routine verification of large amounts of reference limits and refineR for a careful analysis of unclear or doubtful results from this check.
According to the recommendations of the IFCC and other organizations, medical laboratories should establish or at least adapt their own reference intervals, to make sure that they reflect the peculiar characteristics of the respective methods and patient collectives. In practice, however, this postulate is hard to fulfill. Therefore, two task forces of the DGKL (“AG Richtwerte” and “AG Bioinformatik”) have developed methods for the estimation of reference intervals from routine laboratory data. Here we describe a visual procedure, which can be performed on an Excel sheet without any programming knowledge. Patient values are plotted against the quantiles of the standard normal distribution (so-called QQ plot) using the NORM. INV function of Excel. If the examined population contains mainly non-diseased persons with approximately normally distributed values, the respective dots form a straight line. Very often the values are rather lognormally distributed; in this case the straight line can be detected after logarithmic transformation of the original values. Values, which do not match with the assumed theoretical distribution, deviate from the linear shape and can easily be identified and eliminated. Using the reduced data set, the mean value and standard deviation are calculated and the reference interval (μ±2σ) is estimated. The method yields plausible results with simulated and real data. With the increasing number of results, which do not match with the model, it tends to underestimate the standard deviation. In all cases, where the QQ plot does not yield a substantial linear part, the proposed method is not applicable.
Zusammenfassung: Hintergrund: Im Zuge des deutschen E-Health-Gesetzes von 2016 wurde die DGKL aufgefordert, Vorschläge für die standardisierte Speicherung und Übermittlung von Labordaten zu erarbeiten. Wir schlagen dafür die in der Statistik weit verbreitete z-Transformation vor. Methoden: Man erhält mit diesem Verfahren einen Relativwert, der angibt, um wie viele Standardabweichungen ein Messwert vom Mittelwert des Referenzkollektivs abweicht. Anhand realer Daten belegen wir die Annahme, dass die Werte gesunder Referenzpersonen durch logarithmische Transformation einer Normalverteilung angenähert werden können. Ergebnisse: Kennt man somit die Unter- und Obergrenze UG und OG des Referenzintervalls, so kann man jedes Laborergebnis mit folgender Gleichung transformieren: zlog = (log(x) – (log(UG) + log(OG))/2) ⋅ 3,92/(log(OG) – log(UG)) $\eqalign{ & {\rm{zlog}} = {\rm{(log(x)}}-{\bf{ }}{\rm{(log(UG)}} + {\rm{log(OG))/2)}} \cdot {\rm{3,92/(log(OG)}} \cr & & -{\bf{ }}{\rm{log(UG))}} \cr} $ Der zlog-Wert ist leicht interpretierbar: Sein Referenzintervall liegt methodenunabhängig stets zwischen –1,96 und +1,96; stark erniedrigte oder erhöhte Laborergebnisse führen zu zlog-Werten um –5 bzw. +5. Für eine intuitive Befunddarstellung kann man zlog-Werte auch in eine kontinuierliche Farbskala, z. B. von Blau über Weiß bis Orange umrechnen. Mithilfe der Umkehrfunktion lässt sich aus dem zlog-Wert auch das theoretische Resultat einer Messmethode mit einem anderen Referenzintervall berechnen: x = UG 0 , 5 − zlog / 3 , 92 ⋅ OG 0 , 5 + zlog / 3 , 92 ${\rm{x}} = {\rm{U}}{{\rm{G}}^{0,5{\bf{ }} - {\bf{ }}{\rm{zlog}}/3,92}} \cdot {\rm{O}}{{\rm{G}}^{0,5{\bf{ }} + {\bf{ }}{\rm{zlog}}/3,92}}$ Schlussfolgerung: Unser Standardisierungsvorschlag ist ein leicht realisierbarer und effektiver Beitrag zur Verbesserung der Datenqualität und Patientensicherheit im Rahmen des E-Health-Gesetzes. Es wird gefordert, dass alle Labore künftig zusätzlich zum Originalwert den zlog-Wert zur Verfügung stellen und dass in die Protokolle für die elektronische Labordatenübertragung (HL7, LDT) ein eigenes Feld für diesen zusätzlichen Wert eingefügt wird.
Background: With regard to the German E-Health Law of 2016, the German Society for Clinical Chemistry and Laboratory Medicine (DGKL) has been invited to develop a standard procedure for the storage and transmission of laboratory results. We suggest the commonly used z-transformation. Methods: This method evaluates by how many standard deviations (SDs) a given result deviates from the mean of the respective reference population. We confirm with real data that laboratory results of healthy individuals can be adjusted to a normal distribution by logarithmic transformation. Results: Thus, knowing the lower and upper reference limits LL and UL, one can transform any result x into a zlog value using the following equation: zlog = (log(x) – (log(LL) + log(UL))/2)·3 .92/(log(UL) – log(LL)) $\eqalign{ {\rm{zlog}} = & {\rm{(log(x)}}-{\rm{(log(LL)}} + {\rm{log(UL))/2)\cdot3}}{\rm{.92/(log(UL)}} \cr -{\bf{ }}{\rm{log(LL))}} \cr} $ The result can easily be interpreted, as its reference interval (RI) is –1.96 to +1.96 by default, and very low or high results yield zlog values around –5 and +5, respectively. For intuitive data presentation, the zlog values may be transformed into a continuous color scale, e.g. from blue via white to orange. Using the inverse function, any zlog value can then be translated into the theoretical result of an analytical method with another RI: (1) x = LL 0.5 − zlog / 3.92 ⋅ UL 0.5 + zlog / 3.92 $${\rm{x}} = {\rm{L}}{{\rm{L}}^{0.5 - {\rm{zlog}}/3.92}} \cdot {\rm{U}}{{\rm{L}}^{0.5 + {\rm{zlog}}/3.92}}$$ Conclusions: Our standardization proposal can easily be put into practice and may effectively contribute to data quality and patient safety in the frame of the German E-health law. We suggest for the future that laboratories should provide the zlog value in addition to the original result, and that the data transmission protocols (e.g. HL7, LDT) should contain a special field for this additional value.
Reference intervals play an important role in medicine, for instance, for the interpretation of blood test results. They are defined as the central 95% values of a healthy population and are often stratified by sex and age. In recent years, so-called indirect methods for the computation and validation of reference intervals have gained importance. Indirect methods use all values from a laboratory, including the pathological cases, and try to identify the healthy sub-population in the mixture of values. This is only possible under certain model assumptions, i.e., that the majority of the values represent non-pathological values and that the non-pathological values follow a normal distribution after a suitable transformation, commonly a Box–Cox transformation, rendering the parameter of the Box–Cox transformation as a nuisance parameter for the estimation of the reference interval. Although indirect methods put high effort on the estimation of , they come to very different estimates for , even though the estimated reference intervals are quite coherent. Our theoretical considerations and Monte-Carlo simulations show that overestimating can lead to intolerable deviations of the reference interval estimates, whereas produces usually acceptable estimates. For close to 1, its estimate has limited influence on the estimate for the reference interval, and with reasonable sample sizes, the uncertainty for the -estimate remains quite high.