Text this: An adaptive Home Energy Management system for prosumers in peer-to-peer trading networks with machine learning optimization