A head driving device configured to drive a liquid ejection head (3, 14), the liquid ejection head (3, 14) including a plurality of nozzles and a plurality of pressure generating devices provided respectively corresponding to the nozzles, the head driving device comprising: a plurality of driving-waveform correcting units provided respectively corresponding to the pressure generating devices, each of the plurality of driving-waveform correcting units being configured to correct driving waveform data that defines ejection characteristics of liquid to be ejected from the corresponding nozzle based on interference patterns (FP1 to FP4) expressing variations in the ejection characteristics caused by an interference occurring in the corresponding nozzle; characterised in that each driving-waveform correcting unit includes: an ejection-history holding unit configured to hold an ejection history of a corresponding nozzle; an interference-pattern holding unit configured to hold the interference patterns (FP1 to FP4) in association with the corresponding nozzle; a comparing unit configured to compare the ejection history and each of the interference patterns (FP1 to FP4), and output a comparison result indicating whether the ejection history and any of the interference patterns (FP1 to FP4) match with each other; and a correction-data holding unit configured to hold pieces of correction data to correct driving waveforms for the corresponding nozzle, the pieces of correction data respectively corresponding to the interference patterns (FP1 to FP4), and select and output a piece of correction data for the corresponding nozzle according to the comparison result, and each of the interference patterns (FP1 to FP4) in association with the corresponding nozzle is a pattern based on the ejection history of the corresponding nozzle that causes an influence of a temporal interference. a plurality of driving-waveform correcting units provided respectively corresponding to the pressure generating devices, each of the plurality of driving-waveform correcting units being configured to correct driving waveform data that defines ejection characteristics of liquid to be ejected from the corresponding nozzle based on interference patterns (FP1 to FP4) expressing variations in the ejection characteristics caused by an interference occurring in the corresponding nozzle; characterised in that each driving-waveform correcting unit includes: an ejection-history holding unit configured to hold an ejection history of a corresponding nozzle; an interference-pattern holding unit configured to hold the interference patterns (FP1 to FP4) in association with the corresponding nozzle; a comparing unit configured to compare the ejection history and each of the interference patterns (FP1 to FP4), and output a comparison result indicating whether the ejection history and any of the interference patterns (FP1 to FP4) match with each other; and a correction-data holding unit configured to hold pieces of correction data to correct driving waveforms for the corresponding nozzle, the pieces of correction data respectively corresponding to the interference patterns (FP1 to FP4), and select and output a piece of correction data for the corresponding nozzle according to the comparison result, and an ejection-history holding unit configured to hold an ejection history of a corresponding nozzle; an interference-pattern holding unit configured to hold the interference patterns (FP1 to FP4) in association with the corresponding nozzle; a comparing unit configured to compare the ejection history and each of the interference patterns (FP1 to FP4), and output a comparison result indicating whether the ejection history and any of the interference patterns (FP1 to FP4) match with each other; and a correction-data holding unit configured to hold pieces of correction data to correct driving waveforms for the corresponding nozzle, the pieces of correction data respectively corresponding to the interference patterns (FP1 to FP4), and select and output a piece of correction data for the corresponding nozzle according to the comparison result, and hold pieces of correction data to correct driving waveforms for the corresponding nozzle, the pieces of correction data respectively corresponding to the interference patterns (FP1 to FP4), and select and output a piece of correction data for the corresponding nozzle according to the comparison result, and each of the interference patterns (FP1 to FP4) in association with the corresponding nozzle is a pattern based on the ejection history of the corresponding nozzle that causes an influence of a temporal interference.