The vibrational motion of molecules in dissipative environments, such as solvation and protein molecules, is composed of contributions from both intermolecular and intramolecular modes. The existence of these collective modes introduces difficulty into quantum simulations of chemical and biological processes. In order to describe the complex molecular motion of the environment in a simple manner, we introduce a systembath model in which the intramolecular modes with anharmonic mode-mode couplings are described by a system Hamiltonian, while the other degrees of freedom, arising from the environmental molecules, are described by heat bath. Employing a machine-learning based approach, we determine not only the system parameters of the intramolecular modes but also the spectral distribution of the system-bath coupling to describe the intermolecular modes, using the atomic trajectories obtained from molecular dynamics (MD) simulations. The capabilities of the present approach are demonstrated for liquid water using MD trajectories calculated from the SPC/E model and the polarizable water model for intramolecular and intermolecular vibrational spectroscopies (POLI2VS) 1 arXiv:2002.10600v1 [cond-mat.soft] 25 Feb 2020 by determining the system parameters describing the symmetric-stretch, asymmetricstretch and bend modes with intramolecular interactions and the bath spectral distribution functions for each intramolecular mode representing the interaction with the intra-molecular modes. From these results, we were able to elucidate the energy relaxation pathway between the intramolecular modes and the intermolecular modes in a non-intuitive manner