This book constitutes the proceedings of the 12th International Workshop on Machine Learning in Medical Imaging, MLMI 2021, held in conjunction with MICCAI 2021, in Strasbourg, France, in September 2021.*The 71 papers presented in this volume were carefully reviewed and selected from 92 submissions. They focus on major trends and challenges in the above-mentioned area, aiming to identify new-cutting-edge techniques and their uses in medical imaging. Topics dealt with are: deep learning, generative adversarial learning, ensemble learning, sparse learning, multi-task learning, multi-view learning, manifold learning, and reinforcement learning, with their applications to medical image analysis, computer-aided detection and diagnosis, multi-modality fusion, image reconstruction, image retrieval, cellular image analysis, molecular imaging, digital pathology, etc.