A computational model for the insect brain