Forage diagnosis in livestock ecosystem