This study will be performed in 236 first cycle in vitro fertilization (IVF) and/or ICSI (intracytoplasmic sperm injection) patients, randomized 1:1 in two arms. In the intervention arm, the dose of FSH will be assigned by a machine learning (ML) model called IDoser, while in the control arm, the dose will be determined by the clinician following standard practice. Stratified block randomization will be carried out depending on the patient being classified as expected low responder, high responder, or normo-responder. Patients will complete their participation in the trial once the first embryo transfer result is known. The primary outcome of the study is the number of metaphase II (MII) oocytes retrieved at ovarian pick up (OPU) and the hypothesis of non-inferiority of the intervention arm compared to the control. Secondary outcomes include the number of cycle cancelations (due to low response or no retrieval of mature oocytes), risk of ovarian hyperstimulation syndrome (OHSS), and clinical pregnancy and live birth rates per first transfer.DiscussionTo our knowledge, this is the first randomized trial to test clinical performance of an all-patient inclusive model to select the first dose of FSH for COS. Prospective trials for machine learning (ML) models in healthcare are scarce but necessary for clinical application.Trial registrationClinicalTrials.gov,NCT05948293. Registered on 14 July 2023.