Evolution of nervous systems
Jellyfish, comb jellies, and related animals have diffuse nerve nets rather than a central nervous system. In most jellyfish the nerve net is spread more or less evenly across the body; in comb jellies it is concentrated near the mouth. The nerve nets consist of sensory neurons that pick up chemical, tactile, and visual signals, motor neurons that can activate contractions of the body wall, and intermediate neurons that detect patterns of activity in the sensory neurons and send signals to groups of motor neurons as a result. In some cases groups of intermediate neurons are clustered into discrete ganglia.
Fish anatomy
Fish brains are divided into several regions. At the front are the olfactory lobes, a pair of structures that receive and process signals from the nostrils via the two olfactory nerves. Similar to the way humans smell chemicals in the air, fish smell chemicals in the water by tasting them. The olfactory lobes are very large in fish that hunt primarily by smell, such as hagfish, sharks, and catfish. Behind the olfactory lobes is the two-lobed telencephalon, the structural equivalent to the cerebrum in higher vertebrates. In fish the telencephalon is concerned mostly with olfaction. Together these structures form the forebrain.