(A) Schematic view of full ANN-based chemotaxis agent. A chemical field , swimmer arm lengths (, , ), and respective arm velocities (, , ) are used as input. By measuring the CG through the CG block, the swimmer controls the forces and in order to perform directed locomotion toward an ascending gradient of . Directed locomotion is split into two PCLs, which permute input and output of the SAL (Fig. 2 A, Insets) according to a predicted sign of the CG. The prediction of by the CG block (cyan) can be performed either by directly measuring , by (B) spatial resolution of the chemical field, or by (C) temporal sensing at the COM position . The respective solutions for the ANNs (gray and dark gray) found by NEAT are shown in D and E; details are in SI Appendix.