Bacteria have a complex external layer that render them with an increased stiffness and more resistant to external invasion. The works aims to model the squeezing of a bacteria between two walls, and deduce the composition of bacterial external layer from the observed deformations. A FE based model will be developed for inferring the stiffness of baceria, solving an inverse problem from the applied loading and measured displacements. The results will be applied to laboraotry experiments carried out at Institu of Bioengineering of Catalunya (IBEC)