These authors contributed equally to this work.Despite the global efforts made in the fight against malaria, the disease is resurging. One of the main causes is the resistance that Anopheles mosquitoes, vectors of the disease, have developed to insecticides. Anopheles must survive for at least 12 days to possibly transmit malaria. Therefore, to evaluate and improve malaria vector control interventions, it is imperative to monitor and accurately estimate the age distribution of mosquito populations as well as total population sizes. However, estimating mosquito age is currently a slow, imprecise, and labour-intensive process that can only distinguish under-from over-fourday-old female mosquitoes. Here, we demonstrate a machine-learning based approach that utilizes midinfrared spectra of mosquitoes to characterize simultaneously, and with unprecedented accuracy, both age and species identity of females of the malaria vectors Anopheles gambiae and An. arabiensis mosquitoes within their respective populations. The prediction of the age structures was statistically indistinguishable from true modelled distributions. The method has a negligible cost per mosquito, does not require highly trained personnel, is substantially faster than current techniques, and so can be easily applied in both laboratory and field settings. Our results show that, with larger mid-infrared spectroscopy data sets, this technique can be further improved and expanded to vectors of other diseases such as Zika and Dengue.