Data Quality for your Site - Part 1
A batch of polychlorinated biphenyls (PCB) results passed data validation and was used for three years of site decisions. The lab output was wrong. Validation did not catch it, and neither did Principal Component Analysis (PCA). A machine learning tool called Uniform Manifold Approximation and Projection (UMAP) did.
Three batches, one that could not be right
Sediment samples from the site were analyzed for PCB congeners in consecutive lab batches. Batch 1 and batch 3, the batches on either side of batch 2, had the congener patterns you would expect from the PCB sources at that site.
Batch 2 held samples from very similar areas to the other two. Its congener patterns did not match batch 1, batch 3, or any PCB mixture that could be present on the site.
It was impossible. A congener pattern comes from the PCB sources at the site, and that signal is very stable over time. It cannot switch in a matter of days. Batch 2 sampled areas similar to those in batches 1 and 3, so the sources behind those samples should be similar too. The problem sat in the lab output.
Figure 1: Average congener profile of each batch. Batches 1 and 3 match each other and the site; batch 2 is dominated by a few heavy congeners and matches neither. Site data from Statvis Explore.
All three batches passed laboratory validation
Every batch passed data validation review, including batch 2. Validation checks each batch against its own QC: blanks, duplicates, spike recoveries, holding times. Batch 2's QC passed, so the batch passed. Nothing in that process compares a batch's congener pattern with the batches analyzed before and after it.
The batch 2 concentrations went into the site dataset and stayed there. For three years they informed decisions about the site before anyone found the problem.
UMAP flagged the batch, PCA did not.
PCA is the tool most people reach for. It finds the directions with the most variation across the whole dataset and plots every sample on the top two. At a real site, most of the variation is real: different source areas, different concentrations, different weathering. In Figure 2 (left) those differences fill the first two axes, and the bad batch adds too little variation to show on them. The samples land in the middle of the distribution.
UMAP works from the other end. For every sample it finds the most similar samples across all analytes, then draws a map that keeps those neighbours together. Meaning any site-wide variation has no effect. In Figure 2 (right) UMAP clearly shows that the batch 2 affected samples look more like each other than like anything else, so they form their own group.
Outliers remain invisible unless the method changes. Concentrations looked plausible, validation passed, and the PCA plot looked normal.
Figure 2: PCB congener profiles (% of total PCB) for 428 sediment samples from the site, plotted with PCA (left) and UMAP (right). The 14 batch 2 samples sit inside the PCA cloud and form their own group in UMAP. Site data from Statvis Explore; site name and locations withheld.
Traceability helps to explain what the plot found
A group of outliers on a UMAP plot is a question. To answer it, the analyst has to know what those samples have in common. In Statvis, each result links back to the supporting documents it came from. Going through them for the flagged samples showed the batch IDs and sampling dates. Every outlier came from batch 2, and the batches analyzed either side of it, with samples from the same areas, had normal patterns.
With the batch identified, the reasoning was straightforward: same areas, same sources, consecutive batches, and a pattern that matches no PCB mixture. The batch 2 results were removed from the dataset used for decisions and for chemical fingerprinting.
When a result is corrected or removed in Statvis, the change is recorded with the reason and the documents behind it. Anyone who uses the dataset later, including the next consultant, can see what changed and why, and does not have to find a gap in the data and wonder about it.
What to take from it
Data that comes out of a database is often assumed to be correct. It has been through the lab's QA/QC and through data validation, so people stop questioning it. This case shows that the assumption can fail even when every one of those precautions was taken.
Passing validation means a batch met its QC criteria. Whether the results fit the site is a separate question, and validation does not answer it. If your PCB, PAH, dioxin/furan or PFAS dataset has many samples across several batches, checking it as a whole with UMAP is a short job compared with three years of decisions on bad numbers.
Finding bad data in your site dataset - Part 2 next week covers a different cause with the same symptom, two labs that reported the same PAHs differently.


