Building My Own AI Detection Tool

I’m looking to build my own AI detection tool, similar to AI Detector Writer, and would love some help. How can I identify AI text using features like perplexity and burstiness? Also, where can I find datasets for both AI and human-written content, and what’s the best way to preprocess this data? Once I’ve extracted features using tools like NLTK or spaCy, which machine learning model (like Random Forest or SVM) is best for classifying AI vs human text? Lastly, how do I evaluate my model’s performance and deploy it as a web app?