In one embodiment, a signal processing apparatus that is configured to be connected to an imaging apparatus includes: a memory configured to store a predetermined program and processing circuitry configured, by executing the predetermined program, to detect respective peaks of a plurality of biological signals related to heartbeat of plural leads, calculate difference in peak time between the plurality of biological signals, and detect a specific waveform included in the plurality of biological signals based on the difference in peak time.