Electronic compensation of the occlusion effect