Chapter 4. Automated Data Preprocessing and Feature Engineering
I’ll never forget the project that taught me the actual cost of poor data preprocessing. It was 2006, and I was consulting for a price optimization startup that wanted to predict patient readmission risk for an insurance pricing project using its electronic health records. Three months later, it had spent 80% of its time wrestling with data quality issues and still hadn’t trained a single meaningful model. When we finally automated much of the preprocessing pipeline using modern AutoML techniques, the transformation was dramatic—what had taken three months of manual work was reduced to three days of automated processing.
This experience crystallized a fundamental truth about machine learning: data preprocessing isn’t just a necessary evil—it’s often the most critical factor determining project success or failure. The famous adage that data scientists spend 80% of their time on data preparation isn’t just folklore; it’s been validated by multiple industry surveys. According to a survey by CrowdFlower (now Appen), data scientists spend 80% of their time finding, cleaning, and organizing data. A 2023 study of enterprise ML teams found that data preprocessing and feature engineering consumed an average of 76% of project time, with only 24% spent on actual model development and evaluation.
Note
All code examples in this chapter are tested and validated. For complete implementations, detailed outputs, experimental variations, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access