Decades of legacy laboratory information management systems (LIMS), disconnected instrument software, and nested Excel spreadsheets have left laboratories with mountains of unstructured data. Despite relentless pressure to implement artificial intelligence (AI) and machine learning (ML) for faster discovery and automation, bridging the gulf between a messy spreadsheet ecosystem and a scalable model remains a significant challenge. James Smagala, bioinformatics practice manager at Yahara Software, offers a pragmatic framework to untangle legacy data, earn the trust of skeptical scientific veterans, and avoid the common infrastructure traps that cause promising AI pilots to fail.

James Smagala, bioinformatics practice manager at Yahara Software.
Should you fix data architecture first, or can AI act as the cleaning crew?
When a lab manager stares down a labyrinth of legacy LIMS data and fragmented spreadsheets, the sheer volume of cleanup work can feel paralyzing. It raises a classic "chicken-or-egg" question: Is it necessary to spend months—or years—manually restructuring data architecture first, or can modern AI tools act as a "cleaning crew" to organize the mess?
Given that manual documentation in spreadsheets introduces severe data integrity vulnerabilities and compliance risks, finding an efficient path forward is critical. In regulated environments, electronic record systems must align with strict oversight guidelines, such as the FDA's 21 CFR Part 11 regulations, to ensure data trustworthiness, security, and complete auditability. According to Smagala, the answer is a strategic multi-part approach. A laboratory cannot simply throw raw, chaotic data at an AI and expect magic. However, achieving perfect, pristine data architecture is not a prerequisite for taking the first steps.
The blueprint must come first
"You need a little bit of organization and architecture in place first—specifically, a view of what the finished state is going to look like," Smagala explains. Before deploying any tool, laboratories must define standard taxonomies, data schemas, and data guidelines. Under global compliance frameworks such as ISO/IEC 17025, which governs the competency and quality standards of testing and calibration laboratories, establishing standardized, validated operational baselines is a non-negotiable step. Without a conceptual map of how data should be categorized, training an AI to perform this task is impossible.
Unleashing the AI cleaning crew
Once this basic foundational blueprint is established, laboratories can leverage AI as an iterative mechanism. "As soon as you’ve got some basic foundation, you absolutely can use sort of the AI cleaning crew idea as a mechanism to start to quickly iterate through your data, get it into a more cleaned up state, and archive it into a little longer term repository for how you want to organize it," Smagala notes.
GenAI versus machine learning
The cleanup strategy must also align with ultimate project goals. If preparing data for classic machine learning (ML) applications—such as predictive analytics or automated assay design—the data quality bar must be exceptionally high.
- For machine learning: ML algorithms are highly sensitive to bias and noise. "It’s absolutely crucial to do the upfront data organization before you launch into the full AI implementation or machine learning implementation. Those are heavily dependent on starting with the right data and data of a certain quality," Smagala warns. This requirement is heavily mirrored in regulatory expectations; for example, the FDA's AI/ML Software as a Medical Device (SaMD) Action Plan places immense emphasis on using highly representative, robust, and unbiased datasets to build secure clinical algorithms.
- For generative AI (GenAI): If the goal is to use large language models (LLMs) or retrieval-augmented generation (RAG) to query laboratory standard operating procedures (SOPs) or historical reports, laboratories can operate with slightly less structural rigidity. GenAI can parse unstructured text more dynamically, but even then, a fundamental organizational framework is required to extract reliable value.
Proving AI respects biological nuance, not just mathematics
One of the greatest cultural hurdles a lab manager faces when introducing AI is pushback from veteran scientists. These individuals have spent decades honing their domain expertise. To them, a neural network often looks like a "black box" performing blind mathematical matrix multiplications with no actual understanding of biological or chemical context.
To be fair, Smagala agrees with the skeptics. "A completely untuned model or a completely untuned AI may not really be respecting the biological nuances, and I think that a lot of the skeptical 'I-want-it-to-work-a-certain-way' crowd, has a point in being concerned about that," he says.
Earning endorsement from highly trained professionals requires active efforts to build workplace trust and promote open, bi-directional communication. To demonstrate that an AI tool respects the underlying science, lab managers must pivot away from "set-it-and-forget-it" implementations and embrace active governance. This proactive stance aligns closely with broader global trends in technology legislation, most notably the risk-based compliance tiers outlined in the European Union's AI Act, which mandates strict human oversight, transparent data logging, and rigorous validation for high-stakes software applications.
The human-in-the-loop model
AI models do not operate in isolation. To convince a skeptical scientist, lab managers must demonstrate the guardrails. This means implementing:
- Explicit guidelines and constraints to hardcode biological rules, standard molecular structures, or thermodynamic limits directly into the preprocessing pipelines.
- Rigorous feedback loops and review processes where the veteran scientist acts as the primary "editor".
- Workflow systems where the AI accelerates the tedious, repetitive elements of data analysis while the human expert retains final approval.
Moving beyond anecdotes to statistical verification
As laboratories transition to more complex ML systems, the path to winning over skeptics lies in rigorous scientific validation. A great example of this is the hybrid pipeline developed by Yahara Software in collaboration with human oncology researchers at the University of Wisconsin-Madison.
Historically, evaluating fluorescence in situ hybridization (FISH) microscopy forced graduate students to spend hours manually tracing cell boundaries and counting chromosomes to detect genetic abnormalities—a process highly vulnerable to fatigue and subjective bias. To automate this without losing scientific integrity, the team built a two-tiered hybrid pipeline:
Tier 1 (Foundation-Model Segmentation): To identify cell boundaries, the pipeline utilized MicroSAM (µSAM), a microscopy-specialized adaptation of Meta's open-source Segment Anything Model. Because the model brought strong general segmentation capabilities out of the box, it delineated cell boundaries without requiring the lab to first hand-label a massive, proprietary training dataset.
Tier 2 (Classical Deterministic Logic): Once boundaries were defined, the software transitioned away from machine learning entirely. To count the distinct fluorescent signals within those boundaries, the pipeline applied a classic, highly stable bright-spot detection algorithm.
By using deterministic mathematics for the actual counting step, the analytical process stayed completely transparent and auditable. If a result is questioned, a developer or scientist can inspect the exact mathematical parameters of the spot-detection algorithm.
"It is returning what you expect at a higher correctness rate and a higher consistency rate than most humans can do it," Smagala says of validated pipelines. "And now you are ready to use that model in a production context. Until that point, your skeptic is right to be skeptical."
What are the primary red flags that signal a successful AI pilot will fail to scale?
It is relatively easy to run a successful AI pilot. In a controlled, isolated environment with a single champion scientist and a clean, curated dataset, AI will almost always show impressive results. However, according to Smagala, the vast majority of lab AI pilots fail to scale. He identifies two massive red flags that tell him a pilot is doomed when introduced to a high-volume, production-ready environment.
The operational and infrastructure blind spot
A successful pilot is, by nature, small-scale. It often runs on personal access keys to an API or utilizes a hand-picked, static dataset.
"Those pieces of infrastructure that go around a full-scale production use require you to have a full build-out plan and usually support from multiple teams across your enterprise organization," Smagala points out. Without early and strategic alignment, laboratory digital transformation initiatives and new technology rollouts can result in severe change fatigue among technical staff. To keep workflows running smoothly, operations leaders must actively work to shield bench technicians from change fatigue during major transitions.
The solution is to engage cross-functional stakeholders—including IT, DevOps, cybersecurity, and data engineers, before writing the first line of pilot code.
The "happy path" validation trap
In pilot mode, developers often establish value using one or two critical, clean use cases where nothing goes wrong. There are no noisy data inputs, no corrupted files, and no edge cases.
"If you don't have a rich enough and robust enough program around how the data is going to interact once you scale this up, you will fail," Smagala warns.
To scale operations without the administrative burnout often associated with rapid expansion, verification and testing cannot be treated as a simple checklist at the very end of the process.
The solution is to treat an AI pilot like a full-blown scientific experiment. This involves building in explicit validation protocols, quality control checkpoints, and edge-case testing plans, ensuring that by the time the pilot is complete, a sufficiently diverse spectrum of data has been sampled to prove production readiness.
What does a practical roadmap to lab AI integration look like?
Step | Focus Area | Actionable Deliverable |
|---|---|---|
1 | Data Architecture Blueprint | Establish a standardized taxonomy for laboratory data before purchasing AI tools |
2 | Targeted Data Cleanup | Use basic AI algorithms to clean, categorize, and archive legacy spreadsheets based on the established blueprint |
3 | Human-in-the-Loop Validation | Embed veteran scientists as key reviewers, building guidelines and constraints into the AI's workflows |
4 | Cross-Functional Alignment | Pre-coordinate with IT, data engineering, and compliance departments during the pilot stage |
5 | Edge-Case Stress Testing | Run explicit experiments designed to stress-test the AI model and ensure resilience in a high-volume production environment |
Transitioning a laboratory from a chaotic, spreadsheet-dependent state to an AI-enabled powerhouse is not a purely technological challenge—it is an organizational and scientific one. By defining the data blueprint first, respecting the deep domain expertise of the scientific team, and treating AI implementations with the same scientific rigor applied to physical experiments, laboratories can bypass common pitfalls and construct a truly modern, scalable environment.











