A force sensor system comprising: an integrated circuit comprising a semiconductor substrate, the semiconductor substrate comprises a plurality of magnetic sensors configured for measuring a magnetic field; a permanent magnet which is movable relative to the integrated circuit, and configured for generating said magnetic field, the magnet being flexibly mounted relative to the integrated circuit by means of a flexible material; a processing circuit configured for determining at least two physical quantities related to a position of the magnet using a predefined algorithm based on the measured magnetic field, the at least two physical quantities being two or three force components (Fx, Fy, Fz) of a mechanical force exerted upon a contact surface of said flexible material; wherein - the plurality of magnetic sensors is configured for measuring at least two first magnetic field components (Bxl, Bx2) oriented in a first direction (X), and for measuring at least two second magnetic field components (Bzl, Bz2) oriented in a second direction (Y; Z); - the processing circuit is configured for determining said at least two force components using a predefined algorithm that uses at least three or at least four magnetic field differences derived from said at least two first and said at least two second magnetic field components, as inputs, and that uses a plurality of at least eight constants which are determined using machine learning. an integrated circuit comprising a semiconductor substrate, the semiconductor substrate comprises a plurality of magnetic sensors configured for measuring a magnetic field; a permanent magnet which is movable relative to the integrated circuit, and configured for generating said magnetic field, the magnet being flexibly mounted relative to the integrated circuit by means of a flexible material; a processing circuit configured for determining at least two physical quantities related to a position of the magnet using a predefined algorithm based on the measured magnetic field, the at least two physical quantities being two or three force components (Fx, Fy, Fz) of a mechanical force exerted upon a contact surface of said flexible material; wherein - the plurality of magnetic sensors is configured for measuring at least two first magnetic field components (Bxl, Bx2) oriented in a first direction (X), and for measuring at least two second magnetic field components (Bzl, Bz2) oriented in a second direction (Y; Z); - the processing circuit is configured for determining said at least two force components using a predefined algorithm that uses at least three or at least four magnetic field differences derived from said at least two first and said at least two second magnetic field components, as inputs, and that uses a plurality of at least eight constants which are determined using machine learning. - the plurality of magnetic sensors is configured for measuring at least two first magnetic field components (Bxl, Bx2) oriented in a first direction (X), and for measuring at least two second magnetic field components (Bzl, Bz2) oriented in a second direction (Y; Z); - the processing circuit is configured for determining said at least two force components using a predefined algorithm that uses at least three or at least four magnetic field differences derived from said at least two first and said at least two second magnetic field components, as inputs, and that uses a plurality of at least eight constants which are determined using machine learning. <EOS>