When you deploy a datacenter at this scale you contract for an amount of power and you're basically obligated to use it. The trick is to get more compute out of the same amount of power.
By the way if you still have AC UPS systems that is probably your #1 problem and you definitely will not benefit from some fancy machine learning thing. Just get rid of most of your AC systems. For example you may benefit by adopting Open Rack 48V-to-point-of-load scheme that uses an in-rack DC UPS.
https://www.opencompute.org/files/External-2018-OCP-Summit-G...