Dec 9 · Webinar with ESAA: AI in contaminated sites work, on Zoom. Register
Product
TimelineResearchLab dataDocument namingDesktop assessmentGuideline screening3D mapping and volumesGroundwater trendsEnvironmental forensicsReports, tables and figuresSite FactsPortfolio prioritization
Solutions
Site owners & operatorsConsultantsEnvironmental lawyers Use cases Industries
Offerings
PlatformExpert servicesPortfolio programs
Resources
Case studiesAI workflow self-checkGlossaryBlogEnviroBench
Trust Company Contact us

One Database, Two Labs, Two PAH fingerprints

Data Quality for your Site - Part 2

A site’s PAH dataset combined results from two laboratories. Both labs reported correctly, but they reported two of the 16 Parent PAHs differently. Nobody using the data knew until a machine learning technique called Uniform Manifold Approximation and Projection (UMAP) was used to split the samples by the laboratory reporting them.

Same 16 Parent PAHs: different numbers

Soil at the site was monitored for the 16 Parent PAHs that are routinely reported. Results from two laboratories had been combined into one database that was passed along, which is normal when a site changes consultants or labs over the years. Both lab datasets passed QA/QC.

The difference was in three compounds that come out of a GC column very close together: benzo(b)fluoranthene, benzo(j)fluoranthene and benzo(k)fluoranthene. The detector cannot tell them apart as they have the same mass, instead the column has to separate them by time. Columns typically separate them only partly.

Benzo(b)fluoranthene and benzo(k)fluoranthene are two of the 16 Parent PAHs. Benzo(j)fluoranthene is not.

It is usually in the sample and it where it ends up depends on the instrument column. On one lab’s column it comes out under the benzo(b)fluoranthene peak and is counted as B(b)F. On another lab’s column it comes out with benzo(k)fluoranthene and is counted as B(k)F. The same soil would get a higher B(b)F from one lab and a higher B(k)F from the other.

Some labs label the combined result “benzo(b+j)fluoranthene”. Others label it “benzo(b)fluoranthene” and mention the co-elution only in a footnote or the method section. Once the results are in a database, the footnote is lost along with this context, and the two columns of numbers look identical.

Figure 1. How benzo(j)fluoranthene adds to a different reported compound depending on the column. Schematic, not a real chromatogram.Figure 1. How benzo(j)fluoranthene adds to a different reported compound depending on the column. Schematic, not a real chromatogram.

Changes to the guideline comparison and the fingerprint

For guideline screening, B(b)F and B(k)F results from the two labs are not directly comparable. Neither is anything calculated from them, such as benzo(a)pyrene total potency equivalents.

The larger effect was on the fingerprint. The ratio of B(b)F to B(k)F is part of a PAH profile. Shifting part of one compound into the other changed that ratio for every sample from one lab. Fingerprinting is used to tell sources apart, and here it was picking up a laboratory difference and presenting it as a chemical one.

UMAP split the samples by laboratory. PCA did not.

Principal Component Analysis (PCA) is the tool many 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 a shift in two of 16 compounds adds too little variation to show on them. The samples land in the middle of the cloud.

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. The effect of site variation does not affect the data distribution. In Figure 2 (right), what matters is that the affected samples look more like each other than like anything else, so they form their own group.

Samples from the same area should sit together whichever lab analyzed them. When they group by laboratory instead, the difference comes from the measurement.

The split was invisible until the method changed. Both labs passed QA/QC, the concentrations looked plausible, and the PCA plot looked normal.Figure 2. PAH profiles (% of the 16 PAHs) for 636 soil samples from the site, plotted with PCA (left) and UMAP (right). The 44 laboratory B samples overlap laboratory A in PCA and form their own group in UMAP. Site data from Statvis Explore; site name, locations and laboratory names withheld.Figure 2. PAH profiles (% of the 16 PAHs) for 636 soil samples from the site, plotted with PCA (left) and UMAP (right). The 44 laboratory B samples overlap laboratory A in PCA and form their own group in UMAP. Site data from Statvis Explore; site name, locations and laboratory names withheld.

Syncing data with the document record

UMAP showed that one lab’s results were different. It did not say why. The explanation was in the lab documentation: the certificates and method descriptions behind each result, where the compound labels, footnotes and column details are recorded.

In Statvis, each result links back to the supporting documents it came from, so the analyst can go straight from a group on the plot to the documents for those samples and compare what each lab reported and how. With the co-elution in mind, the numbers confirm it. The B(b)F to B(k)F ratio has a median of 3.0 in laboratory A’s samples and 1.2 in laboratory B’s.

That is the part of the work Statvis is built for: finding outliers, results that do not fit, and then showing from the documents the reason why.

Figure 3. Benzo(b)fluoranthene divided by benzo(k)fluoranthene for each sample, by laboratory. Laboratory B’s ratios sit in a narrow band well below laboratory A’s. Site data from Statvis Explore.Figure 3. Benzo(b)fluoranthene divided by benzo(k)fluoranthene for each sample, by laboratory. Laboratory B’s ratios sit in a narrow band well below laboratory A’s. Site data from Statvis Explore.

Fingerprinting on the other 14 Parent PAHs

With the cause known, B(b)F and B(k)F were removed from the dataset used for chemical fingerprinting. The PAH fingerprints for the forensic work were compared on the other 14 PAHs, which both laboratories report the same way. Each sample’s profile was recalculated as a percentage of those 14 compounds.

In Figure 4, when comparing all 16 with UMAP against run on the 14 PAHs, UMAP no longer shows laboratory B data differently. Its samples distribute among the main group, along one edge next to laboratory A samples with similar profiles, so what is left to compare is the PAH pattern rather than the laboratory.

Removing two compounds costs some detail in the fingerprint. Keeping them would have meant fingerprinting the laboratories instead of the sources.

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, instead of finding a gap in the data and wondering.

Figure 4. UMAP of the same 636 soil samples using all 16 PAHs (left) and using 14 PAHs, with B(b)F and B(k)F removed (right). Without the two co-eluting compounds, the laboratory B samples join the main group. Site data from Statvis Explore.Figure 4. UMAP of the same 636 soil samples using all 16 PAHs (left) and using 14 PAHs, with B(b)F and B(k)F removed (right). Without the two co-eluting compounds, the laboratory B samples join the main group. Site data from Statvis Explore.

What to take from it

Data that comes out of a database is often assumed to be correct. Each lab’s results passed QA/QC, so people stop questioning the combined dataset. This case shows that two sets of correct results can still give the wrong picture when they are combined without the correct context.

Any dataset built from more than one lab can hold differences that pass QA/QC at each lab and still change what the data says. Check the combined dataset as a whole with UMAP before relying on it, and read the method notes behind the numbers.

Finding bad data in your site dataset - Part 1, our previous blog post of this series, covered a PCB batch that passed validation and was wrong.

Take control of your contaminated sites.

Bring us one site's documents. We'll show you what's in them.