In one aspect, the present invention is directed to an apparatus for dynamically fitting an insole to a patient, the apparatus comprising: a first fitting panel, comprising: a virtual model of desired strains on the plantar surface of a foot a plurality of fitting units deployed on the first panel, each fitting unit comprising: (a) a strain sensor, for measuring the strain of the foot on the fitting unit and (b) an elevating unit, for elevating the top point of the fitting unit to a desired point a processing unit, for instructing the elevating unit to adjust the elevation of the top point of the fitting unit towards a position wherein the strain of the foot, as measured by the strain sensor, corresponds to the strain of the virtual model.