We developed and constructed a novel model that could make reliable predictions on the adsorption of methylene blue dye and Cd2+ions from an aqueous medium.