Ecological and agro-economic study of small farms in sub-Saharan Africa