The deployment of fifth-generation (5G) broadband wireless cellular networks has enabled the support of highly demanding applications, paving the way towards global broadband connectivity. In the same context, related advances in network infrastructure, such as network function virtualization via the decoupling of related functionalities from hardware equipment has leveraged end-to-end service support in highly heterogeneous environments. To this end, uninterrupted provision of service necessitates a holistic network redesign where access points (APs) should be placed and configured dynamically. One of the key supporting technologies of 5G communications are massive multiple input multiple output (m-MIMO) configurations, deployed over various APs, either in a centralized or in a distributed manner. However, such a configuration would pose an additional degree of complexity during network planning, since on one hand accurate channel estimation for all potential links is limited due to the pilot contamination effect, and on the other hand the number of actually deployed radio frequency chains is again limited when compared to the fully digital approach, in an effort to relax hardware and computational burden. Moreover, additional issues should be taken into consideration as well, such as the coexistence of m-MIMO configurations with other novel technologies in the 5G air interface as well as the need for provision of acceptable quality of service to a large number of mobile users. In an effort to deal with the aforementioned issues, machine learning (ML) algorithms have emerged over the last decade as a promising solution that can deal with complex optimization problems. In this context, the main goal of this survey paper is to present the state-of-the-art approaches in the deployment of ML methods in m-MIMO configurations. Unlike other related survey papers, this is the first scientific attempt to cover all aspects of m-MIMO practical implementations (i.e., channel estimation, MIMO precoding and signal detection, hybrid beamforming, distributed configurations, user pairing and power allocation in non-orthogonal multiple access), in the context of ML-aided calculations. To this end, all presented works are categorized according to the studied aspect, while in the same context potential limitations and future challenges are highlighted as well.INDEX TERMS Massive MIMO, machine learning, channel estimation, hybrid beamforming, cell-free orientations, NOMA.