**Abstract**

Intermittent fasting (IF) is the cycling between periods of eating and fasting. The two most popular forms of IER are: the 5: 2 diet characterized by two consecutive or non-consecutive "fast" days and the alternate-day energy restriction, commonly called alternate-day fasting (ADF). The second form is time-restricted feeding (TRF), eating within specific time frames such as the most prevalent 16: 8 diet, with 16 hours of fasting and 8 hours for eating. It is already known that IF can bring about changes in metabolic parameters related with type 2 diabetes (T2D). Furthermore, IF can be effective in improving health by reducing metabolic disorders and age-related diseases. However, it is not clear yet whether the age at which fasting begins, gender and severity of T2D influence on the effectiveness of the different types of IF in reducing metabolic disorders. In this chapter I will present the risk factors of T2D, the different types of IF interventions and the research-based knowledge regarding the effect of IF on T2D. Furthermore, I will describe several machine learning approaches to provide a recommendation system which reveals a set of rules that can assist selecting a successful IF intervention for a personal case. Finally, I will discuss the question: Can we predict the optimal IF intervention for a prediabetes patient**?**

**Keywords:** machine learning, decision tree, type 2 diabetes, insulin resistance, precision medicine, intermittent fasting
