This paper is focused on the application and performance of artificial intelligence in the numerical modeling of nanofluid flows. Suspension of metallic nanoparticles in the fluids has shown potential in heat transfer enhancement of the based fluids. There are many numerical studies for the investigation of thermal and hydrodynamic characteristics of nanofluids. However, the optimization of the computational fluid dynamics (CFD) modeling by an artificial intelligence (AI) algorithm is not considered in any study. The CFD is a powerful technique from an accuracy point of view. However, it could be time and cost-consuming, especially in large-scale and complicated problems. It is expected that the machine learning technique of the AI algorithms could improve such CFD drawbacks by patterning the CFD data. Once the AI finds the CFD pattern intelligently, there is no need for CFD calculations. The particle swarm optimization-based fuzzy inference system (PSOFIS) is considered in this study to predict the velocity profile of Al2O3/water turbulent flow in a heated pipe. One of the challenging problems in CFD modeling is the lost data for a specific boundary condition. For example, the CFD data are available for wall heat fluxes of 75, 85, 105, and 125 w/m2, but there is no data for the wall heat flux of 95 w/m2. So, the PSOFIS learns the available CFD data, and it predicts the velocity profile for where the data is not available (i.e., wall heat flux of 95 w/m2). The intelligence of PSOFIS is checked by the coefficient of determination (R2 pattern) for different values of accept ratio (AR) and inertia weight damping ratio (IWDR). The best intelligence is obtained for the AR and IWDR of 0.7 and 0.99, respectively. At this condition, the velocity profile predicted by both CFD and PSOFIS is compatible. As the performance of the PSOFIS, for learning time of 268 s, the prediction of the CFD data lost was negligible (~ 1 s). In contrast, the CFD calculation takes around 600 s for each simulation.