Funayūrei

"Funayūrei" from the Konjaku Gazu Zoku Hyakki by Sekien Toriyama
Kawanabe Kyōsai's "Boatman and Funayūrei". An example of a funayūrei rendered as an umibōzu-like yokai.
An example of a funayūrei appearing as mysterious flames. From the Tosa Bakemono Ehon.

Funayūrei (船幽霊 or 舟幽霊; literally "boat spirit") are spirits (yūrei) that have become vengeful ghosts (onryō) at sea. They have been passed down in the folklore of various areas of Japan. They frequently appear in ghost stories and miscellaneous writings from the Edo Period as well as in modern folk customs. In Yamaguchi Prefecture and Saga Prefecture, they are called Ayakashi.