An intelligent monitor of erectile function, including a pair of underpants equipped with a mechanical device operating to monitor a penile axial length, a penile radial length, and a penile volume a temperature detector operating to detect a penile temperature an oxygen saturation measuring device operating to measure a penile oxygen saturation an integrated circuit chip operating to receive and process output signals from the mechanical device, the temperature detector, and the oxygen saturation measuring device and a data storage device. The mechanical device, the temperature detector, and the oxygen saturation measuring device are electrically or electronically connected to the integrated circuit chip. The data storage device is electrically or electronically connected to the integrated circuit chip.