Ricardo Macedo, INESC TEC and University of Minho