Skip to main content

Advertisement

Log in

CCeACF: content and complementarity enhanced attentional collaborative filtering for cloud API recommendation

  • Published:
The Journal of Supercomputing Aims and scope Submit manuscript

Abstract

Cloud application programming interface (API) is a software intermediary that enables applications to communicate and transfer information to one another in the cloud. As the number of cloud APIs continues to increase, developers are inundated with a plethora of cloud API choices, so researchers have proposed many cloud API recommendation methods. Existing cloud API recommendation methods can be divided into two types: content-based (CB) cloud API recommendation and collaborative filtering-based (CF) cloud API recommendation. CF methods mainly consider the historical information of cloud APIs invoked by mashups. Generally, CF methods have better recommendation performances on head cloud APIs due to more interaction records, and poor recommendation performances on tail cloud APIs. Meanwhile, CB methods can improve the recommendation performances of tail cloud APIs by leveraging the content information of cloud APIs and mashups, but their overall performances are not as good as those of CF methods. Moreover, traditional cloud API recommendation methods ignore the complementarity relationship between mashups and cloud APIs. To address the above issues, this paper first proposes the complementary function vector (CV) based on tag co-occurrence and graph convolutional networks, in order to characterize the complementarity relationship between cloud APIs and mashups. Then we utilize the attention mechanism to systematically integrate CF, CB, and CV methods, and propose a model named Content and Complementarity enhanced Attentional Collaborative Filtering (CCeACF). Finally, the experimental results show that the proposed approach outperforms the state-of-the-art cloud API recommendation methods, can effectively alleviate the long tail problem in the cloud API ecosystem, and is interpretable.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Algorithm 1
Algorithm 2
Fig. 4
Fig. 5

Similar content being viewed by others

Data availability

Data and source code will be made available on request by contact with the corresponding author.

References

  1. Papazoglou MP (2003) Service-oriented computing: Concepts, characteristics and directions. In: Proceedings of the Fourth International Conference on Web Information Systems Engineering, 2003. WISE 2003., pp. 3–12. IEEE

  2. Yu J, Benatallah B, Casati F, Daniel F (2008) Understanding mashup development. IEEE Internet comput 12(5):44–52

    Article  Google Scholar 

  3. Ngu AH, Carlson MP, Sheng QZ, Paik H-y (2010) Semantic-based mashup of composite applications. IEEE Trans Serv Comput 3(1):2–15

    Article  Google Scholar 

  4. Derr E, Bugiel S, Fahl S, Acar Y, Backes M (2017) Keep me updated: An empirical study of third-party library updatability on android. In: Proceedings of the 2017 ACM SIGSAC Conference on Computer and Communications Security, pp. 2187–2200

  5. Khazbak Y, Fan J, Zhu S, Cao G (2020) Preserving personalized location privacy in ride-hailing service. Tsinghua Sci Technol 25(6):743–757

    Article  Google Scholar 

  6. Zheng Z, Ma H, Lyu MR, King I (2009) Wsrec: A collaborative filtering based web service recommender system. In: 2009 IEEE International Conference on Web Services, pp. 437–444. IEEE

  7. Cao J, Lu Y, Zhu N (2016) Service package recommendation for mashup development based on a multi-level relational network. In: Service-Oriented Computing: 14th International Conference, ICSOC 2016, Banff, AB, Canada, October 10-13, 2016, Proceedings 14, pp. 666–674. Springer

  8. Li C, Zhang R, Huai J, Guo X, Sun H (2013) A probabilistic approach for web service discovery. In: 2013 Ieee International Conference on Services Computing, pp. 49–56. IEEE

  9. He P, Qi W, Liu X, Liu L, You D, Shen L, Chen Z (2022) Association rule guided web api complementary function recommendation for mashup creation: An explainable perspective. In: CCF Conference on Computer Supported Cooperative Work and Social Computing, pp. 73–83. Springer

  10. Picozzi M, Rodolfi M, Cappiello C, Matera M (2010) Quality-based recommendations for mashup composition. In: Current Trends in Web Engineering: 10th International Conference on Web Engineering ICWE 2010 Workshops, Vienna, Austria, July 2010, Revised Selected Papers 10, pp. 360–371. Springer

  11. Chen Z, Qi W, He P, Liu L, Shen L (2023) A survey for cloud application programming interface security: threats and protection. J Electron Inf Technol 45(1):371–382

    Google Scholar 

  12. Yao L, Wang X, Sheng QZ, Benatallah B, Huang C (2018) Mashup recommendation by regularizing matrix factorization with api co-invocations. IEEE Trans Serv Comput 14(2):502–515

    Article  Google Scholar 

  13. Xu W, Cao J, Hu L, Wang J, Li M (2013) A social-aware service recommendation approach for mashup creation. In: 2013 Ieee 20th International Conference on Web Services, pp. 107–114. IEEE

  14. Rahman MM, Liu X, Cao B (2017) Web api recommendation for mashup development using matrix factorization on integrated content and network-based service clustering. In: 2017 IEEE International Conference on Services Computing (SCC), pp. 225–232. IEEE

  15. Gao H, Qin X, Barroso RJD, Hussain W, Xu Y, Yin Y (2020) Collaborative learning-based industrial iot api recommendation for software-defined devices: the implicit knowledge discovery perspective. IEEE Trans Emerg Top Comput Intell 6(1):66–76

    Article  Google Scholar 

  16. Lian S, Tang M (2022) Api recommendation for mashup creation based on neural graph collaborative filtering. Connect Sci 34(1):124–138

    Article  MathSciNet  Google Scholar 

  17. Wang F, Wang L, Li G, Wang Y, Lv C, Qi L (2021) Edge-cloud-enabled matrix factorization for diversified apis recommendation in mashup creation. World Wide Web, 1–21

  18. Fletcher K (2019) Regularizing matrix factorization with implicit user preference embeddings for web api recommendation. In: 2019 IEEE International Conference on Services Computing (SCC), pp. 1–8. IEEE

  19. Chen C, Peng X, Xing Z, Sun J, Wang X, Zhao Y, Zhao W (2021) Holistic combination of structural and textual code information for context based api recommendation. IEEE Trans Software Eng 48(8):2987–3009

    Article  Google Scholar 

  20. Wen W, Wang S, Ye B, Zhu X, Hu Y, Lu X, Zhang B (2021) Api recommendation based on wii-wmd. Int J Cognit Inf Nat Intell (IJCINI) 15(4):1–20

    Google Scholar 

  21. Chen Z, Li Y, Wang Y, Liu X, Xing Y, Liu L, You D, Shen L (2022) Knowledge graph enhanced web api recommendation via neighbor information propagation for multi-service application development. In: International Conference on Collaborative Computing: Networking, Applications and Worksharing, pp. 20–40. Springer

  22. Zhao H, Wang J, Zhou Q, Wang X, Wu H (2019) Web api recommendation with features ensemble and learning-to-rank. In: Big Data: 7th CCF Conference, BigData 2019, Wuhan, China, September 26–28, 2019, Proceedings 7, pp. 406–419. Springer

  23. Zhang M, Bockstedt J (2020) Complements and substitutes in online product recommendations: the differential effects on consumers’ willingness to pay. Inf Manag 57(6):103341

    Article  Google Scholar 

  24. Wang R, Yang N, Philip SY (2022) Learning aspect-level complementarity for intent-aware complementary recommendation. Knowl-Based Syst 258:109936

    Article  Google Scholar 

  25. Wu B, Zhong L, Li H, Ye Y (2022) Efficient complementary graph convolutional network without negative sampling for item recommendation. Knowl-Based Syst 256:109758

    Article  Google Scholar 

  26. Zhang W, Chen Z, Zha H, Wang J (2021) Learning from substitutable and complementary relations for graph-based sequential product recommendation. ACM Trans Inf Syst (TOIS) 40(2):1–28

    Google Scholar 

  27. Koren Y, Bell R, Volinsky C (2009) Matrix factorization techniques for recommender systems. Computer 42(8):30–37

    Article  Google Scholar 

  28. Koren Y (2008) Factorization meets the neighborhood: a multifaceted collaborative filtering model. In: Proceedings of the 14th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 426–434

  29. He X, Liao L, Zhang H, Nie L, Hu X, Chua T-S (2017) Neural collaborative filtering. In: Proceedings of the 26th International Conference on World Wide Web, pp. 173–182

  30. Rendle S (2012) Factorization machines with libfm. ACM Trans Intell Syst Technol (TIST) 3(3):1–22

    Article  Google Scholar 

  31. Shen L, Pan M, Liu L, You D, Li F, Chen Z (2020) Contexts enhance accuracy: on modeling context aware deep factorization machine for web api qos prediction. IEEE Access 8:165551–165569

    Article  Google Scholar 

  32. Xiao J, Ye H, He X, Zhang H, Wu F, Chua T-S (2017) Attentional factorization machines: Learning the weight of feature interactions via attention networks. arXiv preprint arXiv:1708.04617

  33. Song W, Shi C, Xiao Z, Duan Z, Xu Y, Zhang M, Tang J (2019) Autoint: Automatic feature interaction learning via self-attentive neural networks. In: Proceedings of the 28th ACM International Conference on Information and Knowledge Management, pp. 1161–1170

Download references

Funding

This study was funded by National Natural Science Foundation of China (No.62102348), National Natural Science Foundation of Hebei Province (No.F2022203012), Science and Technology Program of Hebei (No.236Z0103G), Innovation Capability Improvement Plan Project of Hebei Province (22567626 H) and Graduate Innovation Funding Project of Hebei Province (CXZZSS2023048).

Author information

Authors and Affiliations

Authors

Contributions

ZC contributed to conceptualization, data acquisition, and supervision. WC contributed to main manuscript writing and methodology. XL contributed to formal analysis. JZ contributed to investigation and supervision. All authors reviewed the manuscript.

Corresponding author

Correspondence to Zhen Chen.

Ethics declarations

Ethical approval

Not applicable.

Conflict of interest

The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Chen, Z., Chen, W., Liu, X. et al. CCeACF: content and complementarity enhanced attentional collaborative filtering for cloud API recommendation. J Supercomput 80, 26111–26139 (2024). https://doi.org/10.1007/s11227-024-06445-7

Download citation

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11227-024-06445-7

Keywords