Machine Learning and Canine Dysbiosis: Classifying Fecal Microbiome Data

Subtyping a dysbiotic gut sits at the clinical bottleneck of canine chronic enteropathy. Culture swabs and faecal flotation reveal what is growing, but they miss the compositional shifts that separate an inflammatory pattern from a fermentative one. High-throughput sequencing of faecal samples fills that gap, and machine learning is what converts a long list of microbial taxa into something a clinician can act on with confidence.

That is the premise behind work presented in partnership with researchers at the Harvard T.H. Chan School of Public Health, Texas A&M University and the University of Vienna: supervised learning models trained on faecal microbiome data can classify canine dysbiosis subtypes with repeatable accuracy, and their outputs can be reconciled with clinical variables such as diet, antibiotic exposure and chronicity.

The material lives within Hill's Pet Nutrition's ActivBiome platform, a branded educational microsite hosting webinar recordings, expert presentations, downloadable resources and participation certificates for veterinary professionals. Everything is on demand, so a busy clinic can absorb a session between consults or assign it as continuing education to a whole team.

Why Subtyping Changes What You Do Next

The chronic enteropathy work-up depends on separating food-responsive enteropathy, inflammatory bowel disease, antibiotic-responsive disease, neoplasia and small intestinal bacterial overgrowth. A microbial pattern that sits between those categories often adds little on its own; a machine-generated subtype that tracks with one of them changes the sequence of your investigation.

Severity grading matters just as much. Some dysbiosis profiles show a modest reduction in diversity with relative expansion of Proteobacteria, while others show near-collapse of a normal Firmicutes-dominant community with a bloom of Proteobacteria and Clostridia. Class probabilities let you place a sample on that spectrum rather than describing it in prose that two colleagues might interpret differently.

Practitioners who want the source material can create an ActivBiome account to access the downloadable resources and collect participation certificates for their CPD records.

What Faecal Sequencing Actually Provides

Two platforms dominate. Amplicon sequencing of the 16S ribosomal RNA gene produces taxonomic profiles that are cheap, reproducible and well suited to large cohorts, although it resolves species only loosely. Shotgun metagenomics costs more but reaches strain-level detail and captures functional pathways, so a machine learning pipeline can work with functional potential rather than abundance alone.

Culture favours organisms that thrive on standard laboratory media and readily colonise; many relevant anaerobes and Proteobacteria do neither. Sequencing also quantifies ratios that culture cannot, which is precisely what dysbiosis classification depends on.

Australian logistics shape the workflow. Practices in Dubbo, Toowoomba and Cairns ship faecal samples to central sequencing laboratories by overnight courier, so cold-chain integrity is critical. A sample that sits in a hot car outside a Toowoomba clinic in January behaves differently from one held at four degrees, and pre-analytical handling is a genuine source of batch variation that models must learn to ignore.

Turning Taxa Lists Into Model Inputs

Raw relative abundance tables are compositional: doubling one taxon halves everything else, whether or not biology changed. Many pipelines apply a centred log-ratio or other compositional transformation before modelling, and they add diversity metrics, richness estimates and dysbiosis indices as additional features alongside taxonomic features.

Confounders sit alongside those features. Diet (a commercial kibble, a chilled fresh diet, a raw meat diet), age, geographic region, boarding or daycare stress, and any antibiotic or course of NSAIDs within the preceding 30 days can all shift the community. A classifier trained without that metadata can end up learning "which pet food" rather than "which dysbiosis pattern".

Labels come from expert adjudication against clinical records rather than from sequencing output itself, so a reference cohort with agreed enteropathy diagnoses, complete diet histories and clean longitudinal data becomes the foundation for any training set worth trusting.

Models That Work on Clinic-Sized Datasets

Random forests and gradient-boosted trees handle heterogeneous tabular microbiome features well, remain interpretable through feature-importance scores, and tolerate missing values. Support vector machines and regularised logistic regression serve as transparent baselines, while shallow neural networks and convolutional approaches on sequence-level data suit larger, multi-site collections.

Class imbalance is unavoidable, since clearly dysbiotic samples usually outnumber healthy controls. Class weighting, oversampling and careful train-test splitting matter, as does nested cross-validation to avoid optimistic accuracy from leakage. The performance figure to watch is calibration: a well-calibrated model returns probabilities that match real-world frequencies, which is what a clinician needs when deciding how much weight to place on a result.

Interpretability keeps the model in the conversation. Feature attribution methods can show which taxa and diversity metrics drive each prediction, allowing a vet to ask why a sample was placed in a particular subtype instead of accepting a black-box label.

Reading a Classification Report in the Clinic

A subtype report is a probability statement, not a diagnosis. Positive predictive value shifts with prevalence, and because dysbiosis is common among Australian dogs presented for gastrointestinal signs, a model with strong sensitivity can still generate a moderate volume of false positives in a suburban practice.

Combining the output with clinical variables improves on either alone. Medication history, dietary trial response, weight trajectory and faecal calprotectin or SAMP values give the classifier context it was never trained on, and reporting that mixes model probability with clinical judgement keeps the practitioner in control of the plan.

Regulation shapes how far marketing can run ahead of validation. Veterinary medicines and therapeutic claims fall under the APVMA, state and territory food safety legislation and the veterinary practice acts that govern where diagnosis and treatment legitimately occur. A probiotic sold as a food supplement cannot advertise disease treatment, and antimicrobial stewardship expectations mean a microbiome result should never be used to justify unnecessary antibiotic cover.

Australian Practice Realities That Shape the Data

Around two thirds of Australian households keep a dog, and everyday routines feed directly into the samples you receive. Off-lead parks such as Albert Park in Melbourne, Centennial Park in Sydney and the dog runs along South Perth's foreshore concentrate exposure to shared water bowls, faecal contamination and intermittent parasites, while routine worming programs and tick preventatives such as Bravecto repeatedly perturb the community.

The local market is mixed. Hill's Science Diet and Prescription Diet sit alongside Australian-manufactured brands such as Cobrita and locally produced fresh and chilled meals, and the domestic shelf for prebiotics, synbiotics and digestive supplements has grown quickly. Interest in raw meat feeding persists, and raw pet food imports remain subject to Department of Agriculture, Fisheries and Forestry biosecurity rules, with several states applying additional food safety conditions.

The consequence for modelling is that diet diversity in Australia is unusually broad for a single national dataset. Collection teams need to record feeding history precisely, because a classifier applied to a heavily processed kibble population may not transfer to a practice full of raw or home-prepared fed dogs.

Where the Evidence Is Heading

The next wave of work tracks individual dogs longitudinally instead of comparing single time points, combines metagenomics with faecal metabolite and calprotectin panels, and connects results to electronic practice management systems so a result arrives inside the consultation rather than in a separate report.

You can watch the on-demand webinar recording for the full technical argument, including how classification performance was benchmarked against clinician judgement, and the collaboration with Harvard, Texas A&M and the University of Vienna frames the direction of travel for multi-site validation studies.

Expect cautious integration rather than autonomous diagnosis. Models that explain their reasoning, report calibrated probabilities and stay subordinate to clinical assessment will earn lasting use in practice, while opaque systems will struggle past the scrutiny of veterinary teams.