Comparing with the past Moscow ecology has become worse due to new factories and a growing number of vehicles.
COMPARED WITH the past
сравнивая с прошлым, экология в Москве стала хуже из-за того, что появились новые фабрики, количество машин возрасло
The ecology of Moscow has deteriorated from what it was in the past, due to the advent of new factories and an increase in automobiles.
Comparing with the past Moscow ecology has become worse due to new factories and a growing number of vehicles.
comparing with the past, the ecology in Moscow became worse due to the fact that new factories appeared, the number of machines increased
Comparing with the past Moscow ecology has become worse due to new factories and a growing number of vehicles.
COMPARED WITH the past
“comparing with the past” isn’t correct English.
The simple past is incorrect here.
I think машины refers to cars/vehicles here.