Text this: Neural network optimization of Speckle-based phase-contrast X-ray imaging for mammography applications