Neural network modelling for photochemical processes