At least 18 people died and 160 were injured when a train derailed in northeastern Taiwan on Sunday, authorities said.