The middle east and the ottoman empire were mostly free of the west's influence until they lost the first world war and became subjugated by the allies. They were in extreme decadence way before that, and lots of countries like albania and bulgaria declared independence autonomosly from the ottoman empire with basically no repercussions.
There's a reason the ottoman empire was called the ill man of europe and the revolution of the young turks happened.
While the Ottoman Empire was degrading in terms in terms of administration and taxation/ military affairs leading to the Young Turk Revolution, Europe's hands are not free of playing a role.
The Great Powers during much of 1800s-1914 had steered the Ottoman Empire through reforms to help it survive but not become powerful again. The "Eastern Question" of the Ottoman Empire saw that Britain didn't want the Ottomans to completely collapse leading to a conflict between them, Russia, France, and Germany for Ottoman territories.
While Britain wanted the Ottomans to survive, Russia wanted it destroyed to take the Straits for itself.
The Ottomans couldn't focus on internal reforms as they were constantly involved in nationalist uprisings (spurned by Russia or just nationalism in general) or colonial wars (like Italy in 1911). The Young Turks wanted a strong army and internal reforms, and were mostly secular until the Counterrevolution of 1909 in which the Islamists didn't want secular leaders and the Committee of Union and Progress had to appease them with more "Islamic" looking reforms. The Young Turks wanted to reform the empire to save it but like the Ottoman sultans before them they couldn't look inwards towards modernization due to immediate external problems like revolts in Albania and the Balkans, war with Italy, and then the Balkan Wars. All of the Sultan's before them had the same problems from Mahmud II, Abdulmecid, Abdulaziz, Murad V, and Abdulhamid II.
The only European empire that was genuine in trying to help the Ottoman empire (from their perspective) was Germany, but Germany wanted them to eventually help them attack Entente colonies in case of war.
The Ottoman Empire was im search of a European ally from 1822-1914, to make sure it can survive if Russia ever attacked and I think that definitely shows that the Great Powers of Europe with the imperialist rivalry is partly to blame.