Mathematical models for biological networks and machine learning with applications