We study families of diffeomorphisms detected by trivalent graphs via the Kontsevich classes. We specify some recent results and constructions of the second named author to show that those non-trivial elements in homotopy groups 𝜋 * (𝐵Dif f 𝜕 (𝐷 𝑑 )) ⊗ ℚ are lifted to homotopy groups of the moduli space of ℎ-cobordisms 𝜋 * (𝐵Dif f ⊔ (𝐷 𝑑 × 𝐼)) ⊗ ℚ. As a geometrical application, we show that those elements in 𝜋 * (𝐵Dif f 𝜕 (𝐷 𝑑 )) ⊗ ℚ for 𝑑 ⩾ 4 are also lifted to the rational homotopy groups 𝜋 * (ℳ 𝗉𝗌𝖼 𝜕 (𝐷 𝑑 ) ℎ 0 ) ⊗ ℚ of the moduli space of positive scalar curvature metrics. Moreover, we show that the same elements come from the homotopy groups 𝜋 * (ℳ 𝗉𝗌𝖼 ⊔ (𝐷 𝑑 × 𝐼; g 0 ) ℎ 0 ) ⊗ ℚ of moduli space of concordances of positive scalar curvature metrics on 𝐷 𝑑 with fixed-round metric ℎ 0 on the boundary 𝑆 𝑑−1 .