Phase Transitions Caused by Threshold in Random Neural Network and Its Medical Applications