Introduction
Machine Learning (ML) has transitioned from an academic curiosity to a fundamental component of modern software engineering. However, this transition is often difficult; Gartner recently noted that ML has entered the "trough of disillusionment," a phase where implementations frequently fail to meet expectations. A primary cause for these failures is a lack of accessible, expert-validated best practices. Existing guidelines are often fragmented across forum posts, buried in "grey literature," or overly domain-specific, leaving software engineers without a clear roadmap for the entire ML lifecycle.
Research Context
Previous research has extensively explored the landscape of ML development by mining developer communities like Stack Overflow (SO) and GitHub. As shown in Table 1, these studies have primarily focused on identifying general challenges, specific library issues, or categorizing common topics of discussion among practitioners.
While these efforts have successfully mapped the problem space, there remained a critical need for a validated repository of actionable best practices. This study addresses that gap by extracting and vetting technical wisdom directly from the "crowd."
Methodology
The researchers employed a multi-stage empirical approach to build a reliable handbook of practices:
- Data Collection: They targeted 14 Stack Exchange (STE) sites (including Stack Overflow, Cross Validated, and Data Science), filtering for posts with "Machine Learning" tags and keywords like "best practice."
- Manual Tagging: Using an open-coding approach, the team analyzed 242 high-quality posts. They extracted practices using a structured format:
<Phase Category> + <Verb> + <Complement>(e.g.,Training_use_dropout_layers). - Taxonomy Building: These practices were mapped to an expanded ML pipeline framework, which included a dedicated "Implementation" stage for software engineering concerns like resource usage and reproducibility.
- Expert Validation: To ensure quality, four independent ML experts reviewed the initial descriptions. A practice was only "validated" if at least three out of four experts agreed it was a good practice.
Key Insights and Findings
The study produced a final taxonomy of 127 validated practices across 10 pipeline stages. Several key trends emerged from the data:
The "Training and Cleaning" Bias
Practitioners are overwhelmingly focused on the middle of the pipeline. Model Training (37%) and Data Cleaning (26%) accounted for the vast majority of reported practices. This suggests that while core technical tasks are well-discussed, other stages of the lifecycle may be under-served.
The Importance of Implementation
The authors identified a critical need for an "Implementation" category, which is often absent from theoretical ML models. This category includes 11 practices focused on replicability, hyperparameter documentation, and building "resource-aware" systems—factors essential for production-grade software.
Expert Consensus and Context
Interestingly, only 58 of the 127 practices received unanimous (4/4) expert approval. This highlights that "best" is often contextual; what works in a research setting might be a "bad practice" in a high-throughput production environment.
Gaps in Ethics and Deployment
There were surprisingly few practices found regarding ethics, fairness, and model deployment/monitoring. This suggests that while practitioners are becoming proficient at building models, the industry is still maturing in how it governs and maintains them over time.
Conclusion
This study demonstrates that Stack Exchange is a highly reliable source of technical wisdom, with 81.5% of crowd-sourced practices being validated by experts. By organizing these insights into a structured taxonomy, the researchers provide a valuable resource for developers looking to move beyond experimentation into robust ML implementation. Future work involves developing automated tools to suggest these best practices to developers in real-time as they write code.
Summary updated