The date palm (Phoenix dactylifera L.) is a popular edible fruit consumed all over the world and thought to cure several chronic diseases and afflictions. The profiling of the secondary metabolites of optimized ripe Ajwa date pulp (RADP) extracts is scarce. The aim of this study was to optimize the heat extraction (HE) of ripe Ajwa date pulp using response surface methodology (RSM) and artificial neural network (ANN) modeling to increase its polyphenolic content and antioxidant activity. A central composite design was used to optimize HE to achieve the maximum polyphenolic compounds and antioxidant activity of target responses as a function of ethanol concentration, extraction time, and extraction temperature. From RSM estimates, 75.00% ethanol and 3.7 h (extraction time), and 67 °C (extraction temperature) were the optimum conditions for generating total phenolic content (4.49 ± 1.02 mgGAE/g), total flavonoid content (3.31 ± 0.65 mgCAE/g), 2,2-diphenyl-1-picrylhydrazyl (11.10 ± 0.78 % of inhibition), and cupric-reducing antioxidant capacity (1.43 µM ascorbic acid equivalent). The good performance of the ANN was validated using statistical metrics. Seventy-one secondary metabolites, including thirteen new bioactive chemicals (hebitol II, 1,2-di-(syringoyl)-hexoside, naringin dihydrochalcone, erythron-guaiacylglycerol-β-syringaresinol ether hexoside, erythron-1-(4′-O-hexoside-3,5-dimethoxyphenyl)-2-syrngaresinoxyl-propane-1,3-diol, 2-deoxy-2,3-dehydro-N-acetyl-neuraminic acid, linustatin and 1-deoxynojirimycin galactoside), were detected using high-resolution mass spectroscopy. The results revealed a significant concentration of phytoconstituents, making it an excellent contender for the pharmaceutical and food industries.