This chapter argues that the branch of AI known as Machine Learning (ML) can make useful contributions to music research, if employed in a thoughtful way. After giving a brief introduction to machine learning and discussing some general methodological questions, the article presents an ongoing project by the author as an example of a substantial and highly non-trivial application of machine lea...