We construct an effective four-dimensional model by compactifying a ten-dimensional theory of gravity coupled with a real scalar dilaton field on a time-dependent torus. The corresponding action in four dimensions is similar to the action of K-essence theories. This approach is applied to anisotropic cosmological Bianchi type (ℎ=−1) model for which we study the classical coupling of the anisotropic scale factors with the two real scalar moduli produced by the compactification process. The classical Einstein field equations give us a hidden symmetry, corresponding to the equality between two radii B=C, which permits us to solve exactly the equations of motion. One relation between the scale factors (A,C) via the solutions is found. With this hidden symmetry, then we solve the FRW model, finding that the scale factor goes to B radii. Also the corresponding Wheeler-DeWitt (WDW) equation in the context of Standard Quantum Cosmology is solved, building a wavepacket when the scalar fields have a hyperbolic behavior, obtaining some qualitative results when we analyze the projection plane to the wall formed by the probability density. Bohm's formalism for this cosmological model is revisited too.