Coke formation can be detected using various techniques that monitor the performance and physical state of the catalyst. Some common methods include temperature-programmed oxidation (TPO), thermogravimetric analysis (TGA), and Raman spectroscopy. These techniques help in identifying the amount and nature of the coke deposits, which is crucial for determining the appropriate regeneration strategies.