BackgroundHepatocellular carcinoma (HCC) is a leading cause of cancer-related deaths worldwide. Lysosomes are organelles that play an important role in cancer progression by breaking down biomolecules. However, the molecular mechanisms of lysosome-related genes in HCC are not fully understood.MethodsWe downloaded HCC datasets from TCGA and GEO as well as lysosome-related gene sets from AIMGO. After univariate Cox screening of the set of lysosome-associated genes differentially expressed in HCC and normal tissues, risk models were built by machine learning. Model effects were assessed using the concordance index (C-index), Kaplan-Meier (K-M) and receiver operating characteristic curves (ROC). Additionally, we explored the biological function and immune microenvironment between the high- and low-risk groups, and analyzed the response of the high- and low-risk groups to immunotherapy responsiveness and chemotherapeutic agents. Finally, we explored the function of a key gene (RAMP3) at the cellular level.ResultsUnivariate Cox yielded 46 differentially and prognostically significant lysosome-related genes, and risk models were constructed using eight genes (RAMP3, GPLD1, FABP5, CD68, CSPG4, SORT1, CSPG5, CSF3R) derived from machine learning. The risk model was a better predictor of clinical outcomes, with the higher risk group having worse clinical outcomes. There were significant differences in biological function, immune microenvironment, and responsiveness to immunotherapy and drug sensitivity between the high and low-risk groups. Finally, we found that RAMP3 inhibited the proliferation, migration, and invasion of HCC cells and correlated with the sensitivity of HCC cells to Idarubicin.ConclusionLysosome-associated gene risk models built by machine learning can effectively predict patient prognosis and offer new prospects for chemotherapy and immunotherapy in HCC. In addition, cellular-level experiments suggest that RAMP3 may be a new target for the treatment of HCC.