Seeking the faint extremes: Detection and characterisation of extragalactic soft-spectrum gamma-ray sources and exploring methods to enhance their detection with machine learning in the 50 GeV-50 TeV energy range