We show that the stochastic background of gravitational waves, produced in the early cosmological epochs, strictly depends on the assumed theory of gravity. In particular, the specific form of the function f(R), where R is the Ricci scalar, is related to the evolution and the production mechanism of gravitational waves. Using a neural network algorithm… (More)