Refactoring the data science solution

Prefer `detect` over `find`.