Next Article in Journal
Dynamic Hand Gesture Recognition Using MediaPipe and Transformer
Previous Article in Journal
Improving Effectiveness of Energy Baseline Using Deep Learning
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Proceeding Paper

Analyzing and Predicting Alcohol or Non-Alcoholic Cocktails †

by
Hifza Khan
1,*,
Attique Ur Rehman
1 and
Anggun Fergina
2
1
Department of Software Engineering, University of Sialkot, Sialkot 51040, Pakistan
2
Department of Informatics Engineering, Nusa Putra University, Sukabumi 43152, West Java, Indonesia
*
Author to whom correspondence should be addressed.
Presented at the 7th International Global Conference Series on ICT Integration in Technical Education & Smart Society, Aizuwakamatsu City, Japan, 20–26 January 2025.
Eng. Proc. 2025, 107(1), 48; https://doi.org/10.3390/engproc2025107048
Published: 2 September 2025

Abstract

Using a structured dataset, this study investigates the use of machine learning algorithms to analyze and forecast several properties of cocktails. Cocktails’ names, classifications, ingredients, alcoholic contents, glass types, and preparation guidelines are all included in the dataset. Based on the components, we created algorithms to categorize cocktails as either alcoholic or nonalcoholic, forecast their category, and suggest different kinds of glasses. The results give useful tools for customization in the beverage business, as well as information about cocktail trends.

1. Introduction

As a major component of the drink industry, cocktails which contain alcohol are distinguished by their variety of flavors, components, and presentation. Machine learning presents a chance to evaluate and forecast cocktails’ features of being alcohol or non-alcoholic using available data, which is in line with the growing interest in automation and customization. Conversely, non-alcoholic drinks, sometimes referred to as mocktails, have been becoming more popular due to a growing movement towards healthy living choices. Many customers are choosing non-alcoholic beverages as a result of a growing understanding of the harmful effects of alcohol on their health. Pregnant women, designated drivers, and people abstaining from alcohol for personal or health reasons can all enjoy these cocktails, since they provide the same elegant and tasty experience as their alcoholic equivalents without the alcohol. Because it appeals to the growing market of health-conscious consumers, the non-alcoholic cocktail business is predicted to grow more quickly than the alcoholic cocktail market. In order to complete classification tasks and obtain knowledge that can improve decision-making in this field, this study intends to use a structured dataset of cocktails which contain alcohol. The goal is to focus on cocktails in bar or sectors in which alcohol is used. The research also analyzes how harmful alcohol is, and discusses the pros and cons of the alcohol used.

2. Literature Review

One of the main causes of liver-related death worldwide is alcohol-related liver disease (ARD), which is connected to excessive drinking and impacted by lifestyle and genetic factors. Although there are few integrated clinical trials treating AUD and ARD, studies indicate that dropping alcohol use improves liver health [1]. As shown in Figure 1, the cocktail drinks follow the same scheme.
There are serious public health issues associated with excessive drinking. Prior studies showed that a 12-week non-alcoholic beverage intervention decreased heavy consumers’ alcohol intake. This study investigated how the effectiveness of the intervention varied by gender [3] using the Mojet model, which divides components into product, individual, and environmental categories, to investigate the factors influencing consumer behavior with reference to no- and low-alcohol (NOLO) drinks [4]. In Poland, non-alcoholic drinks are becoming more and more popular as a result of shifting consumption patterns and growing health consciousness. Reference [5] examines how non-alcoholic drinks (NABs) affect different patient populations. As healthier substitutes, these drinks, which resemble alcoholic ones but have less than 0.5% alcohol, are becoming more and more well-liked. However, little is known about their effects on health, which results in a range of suggestions from medical professionals. Reference [6] investigates the effects of acute alcohol consumption and working memory capacity (WMC) on auditory selective attention, particularly the “cocktail party effect”, i.e., the ability to focus on one speaker in a crowded environment while also noting salient inputs like hearing one’s name [7]. Through processes like oxidative stress, sympathetic activation, and baroreceptor stimulation, alcohol use is known to contribute to hypertension. The effects of moderate social drinking, especially in non-alcoholics, are less well studied than the well-established link between heavy drinking and blood pressure [8]. In [9], the authors examine 117 case examples from the advertising sector from the 1980s to 2016. It brings attention to the ways that food and beverage advertising uses techniques including emotional appeals, celebrity endorsements, and health claims to increase sales and brand loyalty. Children were the target of almost 40% of campaigns, which frequently promoted unhealthy foods that were rich in fat, sugar, or salt (HFSS). No/low drinks are promoted as harm reduction tools for reducing alcohol-related health issues. Studies suggest that these drinks are more popular among affluent, health-conscious individuals, aligning with trends in socially advantaged demographics [10]. Although health authorities advise abstinence during pregnancy, many women continue to drink before and during the early stages of pregnancy, which is connected with negative outcomes such as low biological weight and fetal alcohol syndrome [11]. Alcohol’s role in obesity is complex, with mixed evidence on whether it significantly contributes to weight gain. Public health policies, like nutritional labeling, aim to address the global obesity epidemic by promoting informed consumer decisions [12]. Alcohol consumption is firmly established in social and cultural behaviors but raises considerable public health issues due to its role in diseases, accidents, and societal expenses. The idea that moderate alcohol use has health advantages is being challenged by more and more research [13]. Young people’s harmful alcohol consumption is a serious public health concern, since it frequently results in mishaps, injuries, and alcohol-related illnesses. Web-based programs and motivational interviewing are examples of current therapies that do not work in real time during drinking episodes [14]. Both alcoholic and non-alcoholic drinks are associated with gendered stereotypes, such as the following:
  • Masculine: Whiskey, beer, soda, energy drinks, and protein shakes.
  • Feminine: Wine, mixed drinks, diet soda, iced tea, and fruit drinks.

3. Methodology

The dataset has about 5000 entries of drinks and is organized into 11 columns. Among the important columns are “id”, which is each cocktail’s unique identification name, and “The cocktail’s name. alcoholic”, which indicates if the cocktail contains alcohol or not. The cocktail’s category (such as cocktail, shot, or ordinary drink) is indicated by category: “glassType”.
The type of glass that the cocktail is served in, the ingredients, and their corresponding measurements are detailed in “ingredients” and “ingredient Measures”. This dataset improves our comprehension of cocktails’ qualities by enabling a variety of classification and prediction tasks [15,16,17].
The dataset is used in this study to carry out classification tasks using machine learning methods. One of the main goals is to categorize cocktails as either alcoholic or non-alcoholic according to their ingredients and category [18].
We determine a cocktail’s categorization based on its components and glass type and suggest glass types according to the components or category of the cocktail. Categorical columns were encoded, and missing values were handled for preprocessing [19]. For classification problems, models including, Decision Trees, Support Vector Machines, Random Forest, and Naïve Bayes were used.

4. Result

The results demonstrate machine learning’s promise in the beverage sector. The models can make suggestions that suit user preferences by examining the connections between components, glass kinds, and categories [20]. Managing partial or missing data and guaranteeing model generalizability across various datasets are significant challenges. The bar chart illustrates the accuracy performance of four different machine learning classification algorithms: Decision Tree, Support Vector Machine (SVM), Random Forest, and Naïve Bayes. Accuracy is a key metric that indicates the proportion of correctly predicted instances out of the total predictions made. The chart is designed to help compare how well each model performs in terms of predictive accuracy.
From Table 1 we can see, the Decision Tree algorithm achieves the highest accuracy of of 95%. This indicates that it performs well on the given dataset, effectively learning patterns and making correct predictions. The Support Vector Machine and Random Forest models follow closely, both achieving around 90% accuracy. These results suggest that these models are also reliable for the classification task, with SVM being known for its ability to handle high dimensional data and Random Forest for its ensemble nature, which helps reduce overfitting and improves robustness.
On the other hand, the Naïve Bayes classifier shows a significantly lower accuracy, approximately 60%. This drop in performance, as shown in Figure 2, could be due to the assumptions made by the Naïve Bayes algorithm, mainly that features are conditionally independent. In many real-world datasets, this assumption does not hold true, which can limit the model’s effectiveness. While Naïve Bayes is fast and works well with small datasets or specific types of problems (like text classification), it may underperform compared to more complex models on structured data.

5. Conclusions

This study shows how machine learning may be used to analyze and predict cocktails which are alcoholic or non-alcoholic, as well as their properties or qualities. The findings open up new paths for investigation into inventory optimization and handmade processes in the beverage sector. Predictive accuracy could be further improved by investigating cutting-edge deep learning algorithms and adding more varied cocktails to the dataset.
This study is limited by the imbalance or lack of diversity of the data used for training the models. If the data contains more alcoholic cocktails compared to non-alcoholic cocktails (or vice versa), the model will be biased towards predicting the majority class, and the results will be skewed. Also, the data lacks more complex features such as flavor profiles, ingredient ratios, or cultural aspects, which might be extremely relevant for distinguishing more complex cocktail types. These exclusions can affect the model’s ability to learn more complex distinctions, rendering its predictions ultimately less accurate. A second concern is the application of simpler machine learning models like Decision Trees and Naïve Bayes, which are interpretable and easy to apply but might not be able to grasp deeper, non-linear relationships between features that other models, such as deep learning models (specifically convolutional ones) might.
Neural networks (if visual inputs are present in the data) or recurrent neural networks (for text descriptions) might express more intricate patterns hidden in cocktail recipes or ingredient lists.
For future work, the incorporation of multi-modal data—i.e., images, ingredient descriptions, preparation steps, or even customer reviews—can potentially enhance the performance and flexibility of prediction models. Transfer learning techniques and pre-trained models for similar domains can also give a head start in pushing classification tasks forward. Lastly, the incorporation of real-time analysis of user preferences and consumption habits can lead to dynamic and personalized recommendations for consumers and bartenders alike. Scaling the project to a recommendation engine that is integrated into hospitality or e-commerce sites would be a very valuable application. Overall, while the current study is a promising beginning, future work is hoped for in the areas of richer data, more complex models, and integration into real-world applications in the food and beverage industry.

Author Contributions

Conceptualization, H.K. and A.U.R.; methodology, H.K.; software, H.K.; validation, H.K., A.U.R., and A.F.; formal analysis, A.U.R.; investigation, H.K. and A.F.; resources, A.U.R.; data curation, H.K.; writing—original draft preparation, H.K.; writing—review and editing, A.U.R. and A.F.; visualization, H.K.; supervision, A.U.R.; project administration, A.U.R.; funding acquisition, A.F. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data presented in this study are available on request from the first author.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Lee, B.P.; Witkiewitz, K.; Mellinger, J.; Anania, F.A.; Bataller, R.; Cotter, T.G.; Curtis, B.; Dasarathy, S.; DeMartini, K.S.; Diamond, I.; et al. Designing clinical trials to address alcohol use and alcohol-associated liver disease: An expert panel Consensus Statement. Nat. Rev. Gastroenterol. Hepatol. 2024, 21, 626–645. [Google Scholar] [CrossRef] [PubMed]
  2. Newsverge. Inflation: Soft, Alcoholic Drinks Dealers Groan Under Soaring Prices, Low Purchases [Photograph]. 17 February 2024. Available online: https://newsverge.com/2024/02/17/inflation-soft-alcoholic-drinks-dealers-groan-under-soaring-prices-low-purchases/ (accessed on 1 January 2025).
  3. Dobashi, S.; Kawaida, K.; Saito, G.; Owaki, Y.; Yoshimoto, H. Gender differences in changes in alcohol consumption achieved by free provision of non-alcoholic beverages: A secondary analysis of a randomized controlled trial. BMC Public Health 2024, 24, 150. [Google Scholar] [CrossRef] [PubMed]
  4. Waehning, N.; Wells, V. Product, individual and environmental factors impacting the consumption of no and low alcoholic drinks: A systematic review and future research agenda. Food Qual. Prefer. 2024, 117, 105163. [Google Scholar] [CrossRef]
  5. Kaminska, A.; Dmowski, P.; Marjańska, E. Availability conditions as a critical factor in product category management in shaping the offer of non-alcoholic equivalents of alcoholic beverages. Zesz. Nauk. Politech. Śl. 2024, 207, 212–228. [Google Scholar]
  6. Bowdring, M.; Rutledge, G.; Prochaska, J. Advising patients on the use of non-alcoholic beverages that mirror alcohol. Prev. Med. Rep. 2024, 47, 102888. [Google Scholar] [CrossRef] [PubMed]
  7. Harvey, A.; Beaman, C. Acute alcohol intoxication and the cocktail party problem: Do ‘mocktails’ help or hinder? Psychopharmacology 2021, 238, 3083–3093. [Google Scholar] [CrossRef] [PubMed]
  8. Rajendran, C. Effect of weekend alcohol consumption on Blood Pressure control in Non-alcoholic patients engaging in social drinking. Int. J. Sci. Res. 2024, 11, 11–12. [Google Scholar] [CrossRef]
  9. Nanchahal, K.; Vasiljevic, M.; Petticrew, M. A content analysis of the aims, strategies, and effects of food and nonalcoholic drink advertising based on advertising industry case studies. Open Sci. Policy 2022, 8, 208–218. [Google Scholar] [CrossRef] [PubMed]
  10. Perman-Howe, P.; Holmes, J.; Brown, J.; Kersbergen, I. Characteristics of consumers of alcohol-free and low-alcohol drinks in Great Britain: A cross-sectional study. Drug Alcohol Rev. 2024, 43, 1686–1697. [Google Scholar] [CrossRef] [PubMed]
  11. Saxov, K.; Pristed, S.; Kesmodel, U. Characteristic associated with alcohol drinking in early pregnancy: A cross sectional study. Sci. Rep. 2023, 13, 10925. [Google Scholar] [CrossRef] [PubMed]
  12. Robinson, E.; Boyland, E.; Evans, R.; Finlay, A.; Halsall, L.; Humphreys, G.; Langfield, T.; McFarland-Lesser, I.; Patel, Z.; Jones, A. Energy labelling of alcoholic drinks: An important or inconsequential obesity policy? Open Sci. Policy 2023, 9, 75–86. [Google Scholar] [CrossRef] [PubMed]
  13. Musto, J.; Brown, R.; Lucey, M. Is there a safe limit for consumption of alcohol? J. Hepatol. 2024, 82, 535–540. [Google Scholar] [CrossRef] [PubMed]
  14. Wilson, S.E.; Lavoie, H.A.; Berey, B.L.; Frohe, T.; Rowland, B.H.P.; Hone, L.S.E.; Leeman, R.F. Exploratory analysis of blood alcohol concentration-related technology use and drinking outcomes among young adults. Alcohol Clin. Exp. Res. 2024, 48, 2188–2199. [Google Scholar] [CrossRef] [PubMed]
  15. Pinar, M.; Ekebas-Turedi, C.; Basfirinci, C. Gender-Based Drink Stereotypes and Consumption Intentions: A Study With the U.S. Millennials. J. Mark. Dev. Compet. 2021, 15, 72–82. [Google Scholar]
  16. Karunarathna, I.; De Alvis, K.; Gunasena, P.; Jayawardana, A. Understanding Alcohol-Related Oxidative Stress and Its Implications for Chronic Disease. 2024. Available online: https://www.researchgate.net/publication/382801097 (accessed on 14 August 2025).
  17. Malnick, S.; Alin, P.; Somin, M.; Neuman, M. Fatty Liver Disease-Alcoholic and Non-Alcoholic: Similar but Different. Int. J. Mol. Sci. 2022, 23, 16226. [Google Scholar] [CrossRef] [PubMed]
  18. De Alvis, K.; Gunasena, P.; Jayawardana, A. Unraveling the complex relationship between alcohol and cancer risk: Effects of alcohol on health. Res. Sq. 2024. [Google Scholar] [CrossRef]
  19. Diwaker, C.; Tomar, P.; Solanki, A.; Nayyar, A.; Jhanjhi, N.Z.; Abdullah, A.; Supramaniam, M.A. A New Model for Predicting Component-Based Software Reliability Using Soft Computing. IEEE Access 2019, 7, 147191–147203. [Google Scholar] [CrossRef]
  20. Kok, S.H.; Abdullah, A.; Jhanjhi, N.Z.; Supramaniam, M.A. A review of intrusion detection system using machine learning approach. Int. J. Eng. Res. Technol. 2019, 12, 8–15. [Google Scholar]
Figure 1. The Cocktail Drinks Follow the Same Schemes, Maintaining Consistency, Reprinted from [2].
Figure 1. The Cocktail Drinks Follow the Same Schemes, Maintaining Consistency, Reprinted from [2].
Engproc 107 00048 g001
Figure 2. Algorithm accuracy.
Figure 2. Algorithm accuracy.
Engproc 107 00048 g002
Table 1. Different models and their accuracies.
Table 1. Different models and their accuracies.
ModelAccuracy
Decision Tree95%
Support Vector Machines92%
Random Forest88%
Naive Bayes59.6%
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Khan, H.; Rehman, A.U.; Fergina, A. Analyzing and Predicting Alcohol or Non-Alcoholic Cocktails. Eng. Proc. 2025, 107, 48. https://doi.org/10.3390/engproc2025107048

AMA Style

Khan H, Rehman AU, Fergina A. Analyzing and Predicting Alcohol or Non-Alcoholic Cocktails. Engineering Proceedings. 2025; 107(1):48. https://doi.org/10.3390/engproc2025107048

Chicago/Turabian Style

Khan, Hifza, Attique Ur Rehman, and Anggun Fergina. 2025. "Analyzing and Predicting Alcohol or Non-Alcoholic Cocktails" Engineering Proceedings 107, no. 1: 48. https://doi.org/10.3390/engproc2025107048

APA Style

Khan, H., Rehman, A. U., & Fergina, A. (2025). Analyzing and Predicting Alcohol or Non-Alcoholic Cocktails. Engineering Proceedings, 107(1), 48. https://doi.org/10.3390/engproc2025107048

Article Metrics

Back to TopTop