A deep learning model using retinal images obtained during ROP screening may be used to predict diagnosis of BPD and PH.