Hello Maher,
Greetings and Welcome to Microsoft Q&A! Thanks for posting the question.
I understand that you are facing some challenges with the Azure Document Intelligence custom classification model, especially given the similarity in your invoice layouts. consider these steps,
Increasing the number of samples per class can significantly enhance the model's accuracy. While 10 samples per class can be a starting point, providing more diverse examples helps the model learn better and generalize across similar layouts. please refer this Custom classification model - Document Intelligence - Azure AI services | Microsoft Learn.
The custom classification model primarily relies on layout and text features, which can be challenging when dealing with similar invoice layouts. Since the model doesn't consider visual elements like colors and logos, it might struggle with accurate classification in such cases.
Utilize the incremental training feature of the latest custom classification model. This allows you to add new samples to existing classes or introduce new classes over time, continuously improving the model's performance.
Ensure that your documents are preprocessed correctly. High-quality scans or text-based PDFs can significantly improve the model's ability to classify documents accurately. Proper preprocessing helps in extracting clear and consistent features from the documents.
Also refer this Build and train a custom classifier - Document Intelligence - Azure AI services | Microsoft Learn.
I hope you understand! Thank you.