In the realm of agribusiness, transformative shifts are underway, propelled by the growing demands and expanding scales of grain production. This evolution calls for a critical reevaluation of the existing paradigms in coffee production and marketing paradigms, with a specific focus on integrating Artificial Intelligence (AI). This work aims to review, synthesize, and summarize the available data regarding how Machine Learning (ML) has been used to detect and classify characteristics in coffee beans and leaves. For this purpose, a comprehensive literature review of the most significant research contributions describing the application of AI for advanced classification techniques in coffee agriculture has been carried out. Our analysis suggests that implementing AI technologies allows the classification of coffee, encompassing various attributes such as maturity, roast intensity, disease identification, flavor profiles, and overall quality. More largely, this technological advancement holds the potential to revolutionize coffee farming by providing producers and agricultural specialists with sophisticated tools to enhance production efficiency, minimize costs, and improve the accuracy and confidence of their decision-making processes. The motivation for the literature review is to address the increasing global demands and evolving scales of grain production, particularly in coffee farming, by critically reevaluating existing paradigms and integrating AI techniques. This review aims to synthesize and summarize how ML has been utilized to detect and classify various characteristics of coffee beans and leaves, thereby highlighting the potential of AI to revolutionize coffee farming by enhancing production efficiency, minimizing costs, and improving decisionmaking accuracy. This article presents the latest studies in ML in the coffee area, observes the methodology used, and allows researchers to develop new solutions that cover gaps in the literature, open problems, challenges, and future trends, bringing a real contribution to the scientific field. Finally, this article gathers and presents the databases used in many studies, which may be useful for future ML projects.