Artificial neural networks (ANNs) are becoming more popular because they can solve complex, nonlinear mathematical problems. The complicated domains of biotechnology, fluid dynamics, and cellular computation all find applications for artificial neural networks. This study uses machine learning techniques to analyze heat transfer and entropy production in unsteady \({\text{TiO}}_{2}/\text{EG}\) nanofluid flow, taking into account nonlinear thermal radiation, Darcy–Forchheimer effects, and mass suction on a spinning sphere. This study examines aggregation and non-aggregation phenomena in terms of dynamic viscosity and thermal conductivity. Skin friction coefficient, heat transfer rate, entropy generation, velocity, and temperature-related nonlinear versions of classic mathematical problems may be solved using the bvp4c solver in MATLAB. Data selection, network creation, training, and performance evaluation using the mean square error metric are all part of the model's artificial neural network architecture. Tables and graphics demonstrate the impact of parameters on subjective profiles. The velocity profile in the x-direction increases with nanoparticle volume fraction \(\phi\) , unsteadiness \(A\) , porous media permeability \(K,\) and magnetic parameter \(M\) , but decreases with the Darcy–Forchheimer coefficient \(\delta\) parameter. The z-direction velocity profile declines with increasing \(\phi , A, K, M\) and \(\delta\) . As \(A\) grows, the temperature profile lowers, but bigger values of the radiation parameter, Biot number, Eckert number, and temperature ratio parameter increase. Skin friction in the x-direction increases with higher ( \(K, M, \phi\) , and \(S\) ) but decreases with \(\delta\) . Similarly, skin friction in the z-direction rises with higher values of \(K, \phi , M, \delta .\) As \(Ec\) increases, the local Nusselt number decreases and rises with \(Bi, \phi , Rd\) , and \({\theta }_{w}.\) As Brinkmann numbers and radiation parameters grow, entropy production increases, showing dual behavior for the magnetic parameter.