The electrical response of two-dimensional electron gas to vibrations of a nanomechanical cantilever containing it is studied. Vibrations of perpendicularly oriented cantilevers are experimentally shown to change oppositely the conductivity near their bases. This indicates the piezoelectric nature of electromechanical coupling. A physical model is developed, which quantitatively explains the experiment. It shows that the main origin of the conductivity change is a rapid change in the mechanical stress on the boundary between suspended and non-suspended areas, rather than the stress itself.PACS numbers: 85.85.+j, 73.50.Dn, 77.65.Ly Most of the currently studied low-dimensional electron systems are fabricated from a two-dimensional electron gas (2DEG) embedded in a semiconductor bulk. A classical example of such a system is a 2DEG in GaAs/AlGaAs heterostructures. However, selective etching of a sacrificial layer (often called surface nanomachining) gives an opportunity to create also a 2DEG embedded in a thin membrane freely suspended over a substrate [1]. The nanostructures fabricated from such membranes are mechanically moveable with their movement affecting electron transport and conductivity [2]. Such electromechanical coupling gives an opportunity to probe mechanical motion at the nano-scale and it could be used to study various interesting mechanical phenomena, such as "phonon lasing" [3] and the quantum-limited motion of an artificially made object [4]. Moreover, it opens up new prospects for studying non-trivial transport phenomena in 2DEG under unusual conditions, namely, in the presence of additional mechanical degrees of freedom, and for creating nanoelectromechanical systems (NEMS). For example, papers [5,6] show that the electron transport through a quantum point contact placed on a micromechanical resonator is sensitive to mechanical vibrations. Papers [2,7,8] demonstrate that diffusive conductive channels in 2DEG can also be used as nanoelectromechanical transducers.The two fundamental key points arising in the context of NEMS are the physical mechanisms underlying actuation and transduction of the nanomechanical motion. The question about the actuation in NEMS with 2DEG is addressed elsewhere [7], while, in the present paper, we focus on the transduction mechanism. Most of the papers considering GaAs/AlGaAs-based suspended systems contain a proposal that a 2DEG embedded in a resonator is sensitive to its vibrations due to the change in the density of a 2DEG that screens the piezoelectrically induced bound charge [2,5,6,9]. However, there is a lack of experimental evidence for this hypothesis.In the present paper, we experimentally demonstrate that the dominant physical mechanism making a 2DEG sensitive to NEMS mechanical vibrations is associated with the piezoelectric effect and show the sensitivity magnitude. We propose also a physical model giving an independent estimate for the value of electron density change consistent with the experiment. According to the model, the local change in the 2DE...