With the Increasing use of Machine Learning in Android applications, more research and efforts are being put into developing better-performing machine learning algorithms with a vast amount of data. Along with machine learning for mobile phones, the threat of extraction of trained machine learning models from application packages (APK) through reverse engineering exists. Currently, there are ways to protect models in mobile applications such as name obfuscation, cloud deployment, last layer isolation. Still, they offer less security, and their implementation requires more effort. This paper gives an algorithm to protect trained machine learning models inside android applications with high security and low efforts to implement it. The algorithm ensures security by encrypting the model and real-time decrypting it with 256-bit Advanced Encryption Standard (AES) inside the running application. It works efficiently with big model files without interrupting the User interface (UI) Thread. As compared to other methods, it is fast, more secure, and involves fewer efforts. This algorithm provides the developers and researchers a way to secure their actions and making the results available to all without any concern.
翻译:随着在 Android 应用程序中越来越多地使用机器学习,正在开展更多的研究和努力,以开发使用大量数据的更好的机器学习算法。在移动电话的机器学习的同时,还存在通过反向工程从应用软件包(APK)中提取经过训练的机器学习模型的威胁。目前,有各种方法可以保护移动应用程序中的模型,如名称模糊、云层部署、最后一层隔离。然而,这些模型提供的安全性较低,其实施需要更多努力。本文提供了一种算法,以保护内部经过训练的机器学习模型和高度安全和低度执行的机器人应用。该算法通过在运行应用程序中加密模型并用256位高级加密标准(AES)实时解密它来确保安全。它有效地使用大型模型文件而不会中断用户界面(UI)的连接。与其他方法相比,它既快又安全,也涉及更少的努力。这一算法为开发者和研究人员提供了一种方法,可以确保它们的行动安全,并毫无顾虑地将其结果提供给所有人。