The energy-environmental behavior of the pre-industrial basic building: learning approach and applications