Road vehicles, particularly cars, are one of the primary sources of CO2 emissions in the transport sector. Shifting to unconventional energy sources such as solar and wind power may reduce their carbon footprints considerably. Consequently, using ammonia as a fuel due to its potential benefits, such as its high energy density, being a carbon-free fuel, and its versatility during storage and transportation, has now grabbed the attention of researchers. However, its slow combustion speed, larger combustion chamber requirements, ignition difficulties, and limited combustion stability are still major challenges. Therefore, authors tried to analyze the combustion pressure of ammonia in a constant-volume combustion chamber across different equivalence ratios by adopting a machine learning approach. While conducting the analysis, the experimental values were assessed and subsequently utilized to predict the induced combustion pressure in a constant-volume combustion chamber across various equivalence ratios. In this research, a two-step prediction process was employed. In the initial step, the Random Forest algorithm was applied to assess the combustion pressure. Subsequently, in the second step, artificial neural network machine learning algorithms were employed to pinpoint the most effective algorithm with a lower root-mean-square error and R2. Finally, Linear Regression illustrated the lowest error in both steps with a value of 1.0, followed by Random Forest.