Hayes has served as secretary of AISB , chairman and trustee of IJCAI , associate editor of Artificial Intelligence , a governor of the Cognitive Science Society and president of American Association for Artificial Intelligence .