Systems and methods for altering the geometry of a fluid channel to prevent upstream mobility of bacteria, using angled obstacles on the interior of the channel that among other things creates vortices that restrict the mobility. An optimized geometry can be realized by an artificial intelligence algorithm or similar methods based on performance of various configurations of obstacle parameters.