An AI/ML model can be built that can predict future consumption with a expenditure estimation analysis.
A model is usually set up in the cloud, and you talk to it via a VPN. Local data processing can be used to anonymize the data that is sent back and forth. The model can also be set up locally with you if the data is especially sensitive, so that the data does not leave your premises.