Research on service-oriented encapsulation method for heterogeneous agricultural models
[Purpose]Agricultural models,spanning across various disciplines and domains,constitute the cornerstone of smart agriculture.Shielding the heterogeneous attributes,such as development languages and invocation methods of agricultural models,is crucial for enabling efficient integration and sharing of agricultural model resources.This is paramount for facilitating scientific agricultural management and decision making,thereby fostering sustainable,efficient and secure agricultural development.[Method]This paper designed standardized encapsulation interfaces,including model description interfaces,model execution interfaces,and model deployment interfaces.Based on this,it proposed standardized service encapsulation methods tailored for different forms of model runtime bodies such as COM components,Jar packages,R language,Python language,and DLLs.The feasibility and practicality of the heterogeneous model service encapsulation methods were validated using an example of a potato intelligent fertilization recommendation model implemented in both Python and DLL forms.[Result](1)After encapsulation,the model generated standardized description documents,completed the transformation of model entry point functions,and integrated third-party dependency libraries.As a result,the model could be directly executed via network requests,reducing the cost of model usage.(2)Taking Yunnan Province as an example,the standardized model services post-encapsulation were invoked and operated.Inputting the target potato yield,optimal fertilizer recommendations for that specific yield were obtained,validating the feasibility and practicality of the heterogeneous model service encapsulation methods.[Conclusion]This method effectively shields discrepancies in semantics,data,form,and runtime environments of models,thereby promoting the efficient sharing and reuse of agricultural model resources in network environments.It enhances the management capability of model resources in the domain of smart agriculture.
agricultural modelsheterogeneous and diverse modelsmodel resource sharingstandardized service encapsulation