Machine learning based quantity measurement method for grain silos