The invention relates to a solution that enables optimized regulation of feeding rates in aquaculture systems. The invention involves a feed detector shaped as a pipe segment that can be directly installed as a pipe socket in an outlet pipe of an aquaculture system. The feed detector comprises a pipe segment, radiation means and detection means.