Introduction

The term “Polymer hydrogels,” is used to introduce materials which have mention as three-dimensional polymeric networks that are formed with highly hydrophilic monomers to build high-molecular-weight polymeric network that are able to imbibe huge quantity of water or aqueous solution or biological fluids by covalent crosslinking, hydrogen bond or electrostatic in their construction to balance without network dissolution [1,2,3,4]. The responsibility of high water absorption by hydrogel networks carry out by the existence narrow vessel areas in the network and hydrophilic nature of functional groups on the polymeric structure that can be classified as neutral, ionic such as –CO2Na, –CO2H, –SO3H, –CO2NH3, or on-ionic –OH, –CONH–, –CHO, –O–, –NH2 and osmotic pressure in different parts of hydrogel networks [5,6,7].

Hydrogels have significantly slight toxicity, inflammatory responses and tissue damaging and excellent biodegradability and biocompatibility which show reversible responses to stimuli-responsive such as temperature, pH, magnetic field, electric field and ionic strength of solution with biological molecules that make them as intelligent or smart hydrogels [8,9,10].

Since these significant properties hydrogel are useful in the different range of applications including pharmaceuticals, drug delivery, biotechnology, tissue engineering, agriculture, food processing, wastewater purification, and biosensors and bioactuators in biomicroelectro mechanical systems (BioMEMS) [11,12,13,14,15,16,17,18].

Many research groups recently have focused on improving hydrogels to enrich their swell or de-swell in water and to keep the swollen state, gel strength that can be done by the synthesis of cross-linking of hydrophilic polymers-monomers hydrogel either by a chemical method or by radiation method [6, 19, 20].

Hydrogels based on Poly vinylpyrrolidone (PVP) are a well-known biologically and eco-friendly that have excellent solubility in water, absorbency, mucoadhesive and biocompatibility which have been utilized to treat wound as the local dressings in burning, skin’s ulceration and postoperative and controlled for releasing in drug delivery system [21,22,23,24]. However, because of low mechanical properties in hydrogels of PVP, they have limitation for using in some applications [25].

Copolymerization N-vinyl pyrrolidone (NVP) via acrylic acid (AA), methacrylates and other vinyl monomers have been investigated to receive PVP-PAA crosslinked complexes that enhance the mechanical properties and its biocompatibility and water uptake [25,26,27,28,29]. Because of the pH and electrically sensitive of acrylic acid due to having carboxylic acid groups, PVP-PAA hydrogels have been applied in pH-controlled loading and releasing rate for drug delivery and preparation of mucoadhesive microspheres and polymer-ceramic composites [26,27,28,29,30,31].

However, high costly production and weak natural mechanical strength of hydrogels have unfortunately limited their practical applications [32]. So, researchers attempt to reinforce the hydrogels conformation to achieve nanocomposite hydrogels by improving chemical, Physical and mechanical properties by using nanoparticles or nanostructures [33,34,35,36].

For preparation nanocomposites hydrogels have been used clays nanoparticles like laponite [37, 38], hydrotalcite [39], bentonite [40], and Na-montmorillonite [41,42,43] which develop biomedical applications in drug delivery systems, contact lenses and in-vitro [44] and in-vivo [45] wound dressing systems by changing their excellent mechanical properties, high water swelling, good biocompatibility and reducing effectively cost of hydrogels [46,47,48].

Cephalexin (Ce) is an antibiotic β-lactam that can use against a number of bacterial infections. It is significantly useful for killing both gram-positive and some gram-negative bacteria by disturbing the cell wall growing in the bacteria [49, 50]. It is very critical for the drug releasing along the intestine for the treatment of microbial infections [51, 52]. Some literature has been reported the investigation of synthesis and biological activities of nano antibiotic β-lactam [53, 54] and copolymerization them that have tested again bacteria [55, 56].

Experimental section

General

Chemical reagents

Gelatin (average Mw = 190000–220000) was prepared by Aldrich (USA). Acrylic acid (AcA; MW = 72.06 g mol−1, d = 1.06 gml−1, purity >99% from Fluka) was utilized as a monomer after vacuum distillation. N-Vinyl pyrrolidone was purchased from Merck and used upon arrival. N, N-Methylene bisacrylamide (MBA) from Merck as a crosslinker, Montmorillonite (MMT) form Aldrich and ammonium persulfate (APS) from Fluka as a thermal initiator were purchased and used immediately. The cephalexin with purity >99% was purchased from Farabi pharmaceutical industry. The bacteria, S. aureus (ATCC-6538) and E. coli (ATCC-25922) were kindly provided by microbiology laboratory of Islamic Azad University, Arak, Iran.

Instruments

Fourier transform infrared spectroscopy (FT-IR) analysis of the samples was taken on a Shimadzu FT-IR 8300 spectrophotometer. The phase formation and crystallographic state of nanoparticles were determined by PW 17c phelix X-ray diffractometer with Cu Ka radiation (λ = 1.5418).

The size and morphology of the nanoparticles were observed using a LEO 912AB transmission electron microscope (TEM) with an acceleration voltage 100 kV in 31X-680 KX. The nanoparticles were thoroughly dispersed in water by ultrasonication and placing a drop of solution on the carbon coated copper grid. Field Emission Scanning Electron Microscopy (FE-SEM) images were obtained on TE-SCAN, MIRA III. The hydrodynamic size of the particle was measured by dynamic light scattering (DLS) techniques, using a HORIBA-SZ-100 particle size analyzer. Thermogravimetric analysis (TGA) and differential scanning calorimetric (DSC) were carried out using Q600 with Ar carrier gas and the rate of temperature change of 20 °C min−1. BET analysis was used to determine surface area by BELSORP MINI II and degassing devise was BELPREP VAC II. A Shimadzu UV–visible Agilent-8541 spectrophotometer was used for recording absorption spectra in solution. Photolyses were performed using a low-pressure mercury lamp with a transmission maximum at k = 254 nm (85% transmission) and transmitted light from 254 to 579 nm (15% transmission). Drug releasing was performed by HPLC using the SGX, C18 column.

Synthesis of cross-link gelatin-g-PVP-AA hydrogel

For the synthesis of cross-link gelatin-g-PVP-AA hydrogel, 25 ml of distilled water was poured into a beaker that equipped with a mechanical stirrer and placed in a constant-temperature bath at 80 °C. Then, a certain amount of gelatin (0.3 g) was added to the beaker and used the mechanical stirrer to dissolve completely. After gelatin dissolved and homogenized, the monomers, AA (6 mL), NVP (2.5 mL) and the MBA as crosslinker (0.06 M) were added simultaneously and kept the reaction mixture was stirred for 15 min. Then the ammonium persulfate (APS, 0.05 M) as a radical initiator was added to the mixture and copolymerization was observed after around 40 min. After cooling the reactor, 1 N sodium hydroxide was added drop wise to the reaction mixture and kept for 1 h for partly neutralization by treating with the carboxylic groups of the excess of acrylic acid. For removing the water, the hydrogel was poured to100 mL ethanol for 3 h, and then the dried hydrogel was cut in small pieces and kept in the oven for 24 h at room temperature to completely remove water. Then, the obtained hydrogel was ground and separated with the graded sieve between particles of 40 to 60 meshes (250–350 μm) and kept away from light and moisture for further research.

Synthesis of cross-link gelatin-g-NVP-AA/MMT nanocomposite hydrogel

For the synthesis of nano-clay cross-link gelatin-g-NVP-AA\MMT hydrogel had been used as the same procedure that explains the synthesis of cross-link NVP-AA hydrogel instead of sodium montmorillonite (Na-MMT) was added before the adding MBA. For this aim, the monomers, AA (4 mL) and NVP (2 mL) were added to the dissolved gelatin (0.3 g) in 25 ml of distilled into a beaker that equipped with mechanical stirrer and placed in a constant-temperature bath at 80 °C. Then, a certain amount of Na-MMT (0.008 M) was added to the reaction mixture and stirred for 30 min. After that, the MBA as crosslinker (0.10 M) were added simultaneously and kept the reaction mixture was stirred for 15 min. Then the APS (0.05 M) as a radical initiator was added to the mixture and copolymerization started and completed after around 40 min. After cooling the reactor, 1 N sodium hydroxide was added drop wise to the reaction mixture and kept for 1 h for partly neutralization by treating with the carboxylic groups of the excess of acrylic acid. For removing the water, the hydrogel was poured to100 mL ethanol for 3 h, and then the dried hydrogel was cut in small pieces and kept in the oven for 24 h at room temperature to completely remove water. Then, the obtained hydrogel was ground and separated with the graded sieve between particles of 40 to 60 meshes (250–350 μm) and kept away from light and moisture for further research.

Concentration measurement method

Due to the absorption wavelength of Cephalexin in the UV region, the UV-visible spectrophotometer and HPLC chromatography were used to measure the concentrations. To do this, a corresponding standard curve was prepared and by using this curve, the conversion rate of absorption to the material concentration in a given volume is easily accomplished [57].

Water swelling measurement

An appropriately weighed samples (0.1 ± 0.0001 g) of the powdered gelatin-g-PVP-AA and gelatin-g-PVP-AA/MMT nanocomposite hydrogels as superabsorbent were tested swelling capacity by “tea bag” method with average particle sizes between 40 to 60 mesh (250–350 μm) by immersing in 200 ml distilled water for 3 h. The equilibrium swelling (ES) capacity was calculated twice at room temperature by the following formula (1):

$$ ES\left(g/g\right)=\frac{W2-W1}{W1}\kern0.75em $$
(1)

Where in this formula W1 and W2 are the weights of dry and swollen gel, respectively. Es was calculated at 450 and 557 (g/g) for gelatin-g-PVP-AA and gelatin-g-PVP-AA/MMT nanocomposite hydrogels, respectively.

Measuring the amount of hydrogel swelling in different salt solutions

To measure the rate of swelling or absorption of synthetic the gelatin-g-PVP-AA and gelatin-g-NVP-AA/MMT nanocomposite hydrogels, 1.0 g of compounds was immersed in different 0.1 M salt solution such as LiCl, NaCl, KCl, RbCl, CsCl, and calculated the equilibrium swelling rate. In addition, the hydrogel and nanocomposite hydrogel balance equilibrium capacity were also measured in concentrations of 0.01, 0.20, 0.05, 0.1, 0.15, 0.20 and 0.25 M of NaCl, CaCl2 and AlCl3.

Study of swelling kinetic

To study the Hydrogel swelling kinetics, their swelling rates are measured with different particle sizes. For this purpose, with special sieves, particle size of 100–250, 250–400, and 550–400 were separated and placed inside the tea bag and it was immersed in containing 200 ml of distilled water beaker and measured the amount of water absorption of hydrogel and nanocomposite hydrogel at different times (1 to 120 min) after extraction of excess water.

Study of hydrogels swelling sensitivity to pH

To determine the sensitivity of the synthesized hydrogels to the pH, the swelling was measured in buffers at pH 1 to 12. Buffer solutions were prepared and 0.1 g of hydrogels was kept for 3 h in the beaker containing 200 ml buffer solution and was obtained the amount of hydrogels’ swelling in buffer solutions.

Drug loading of cephalexin on hydrogels

The drug solution was prepared at a concentration of 200 ppm and then 0.5 g of synthesized gelatin-g-NVP-AA and gelatin-g-NVP-AA/MMT nanocomposite hydrogels were added to the drug solution and for two days. The hydrogels were placed at a constant temperature to absorb the drug by hydrogels. The specimens were then filtered and washed with a portion of distilled water to remove the adherent drug completely from the hydrogels. The volume of the filtrate was measured and one sample was taken to obtain the total amount of drug loaded. The loaded hydrogels were dried by vacuum oven at 40 °C and screened by sieve labeled with a mesh of 40 to 60 (250 to 350 μm) and these loaded hydrogels were used to examine the release of the drug [57].

Study of the amount loading drug in different salt solutions

A solution of NaCl, CaCl2 and AlCl3 (0.01 M) were prepared and then the drug was added at a specific concentration to each salt solution. Then, 0.5 g of synthesized gelatin-g-PVP-AA and gelatin-g-PVP-AA/MMT nanocomposite hydrogels were added to a solution containing drug and salt for two days and were placed at a constant temperature to absorb the drug. After that, the samples in salt solutions were filtered and washed with a portion of distilled water to rinse the drug completely from the surface of the hydrogels. A volume of the filtrate was taken to obtain the total amount of loaded drug in saline solutions and measured with UV spectroscopy.

Investigating the nanoclay effect on the amount of drug loading

The amount of 1.0 g of nanocomposite hydrogel containing various amounts of nanoclay (0.008–0.02 g) was added in 50 ml of the drug solution with certain concentration and kept at a constant temperature for a certain time. Then loaded drug hydrogels were filtered and the filtrate was used to calculate the total amount of drug loaded by UV spectroscopy.

Effect of duration time on the amount of drug loading

The amount of 0.1 g of gelatin-g-NVP-AA and gelatin-g-NVP-AA/MMT nanocomposite hydrogels were added in 50 ml of a solution of the drug at a specified concentration and fixed at a constant temperature for a specified period of time, then, after a specified period, the loaded hydrogels were filtered. Then, the absorbance of the filtrate was measured to determine the total amount of drug loaded by UV spectroscopy. This method has been repeated over time [57].

Study of the drug releasing in different buffers

To select the appropriate buffer for the drug releasing, three buffers containing salt buffers (Table 1), universal buffer (Britton–Robinson buffer (0.04 M H3BO3, 0.04 M H3PO4 and 0.04 M CH3CO2H)) [58] and stock buffer pH 13 (NaOH), pH 1 (HCl)) solutions were prepared and the drug interactions with these buffers were investigated to select the buffer with the least interaction with the drug [57].

Table 1 Preparation of salt buffer solution

Investigating the temperature effect on the amount of drug releasing

According to the previous method, for the determination of temperature in the drug releasing, a certain amount of drug loaded on gelatin-g-NVP-AA and gelatin-g-NVP-AA/MMT nanocomposite hydrogels (0.03 g) were added to the 100 ml beaker containing 100 ml of buffer solution with a certain pH at three different temperatures (25, 35 and 43 °C) at the certain time. The release concentration of the drug was measured at each temperature by UV spectroscopy.

Time effect on drug releasing

The amount of 0.1 g of gelatin-g-NVP-AA and gelatin-g-NVP-AA/MMT nanocomposite hydrogels were added in 50 ml of a solution of the drug at a specified concentration and fixed at a constant temperature for a specified period of time, then, after a specified period, the loaded hydrogels were filtered. Then, the absorbance of the filtrate was measured to determine the total amount of drug releasing by UV spectroscopy. This method has been repeated over time [57].

Controlled the drug releasing test in different pHs

In this series of experiments, a certain amount of drug loaded on gelatin-g-NVP-AA and gelatin-g-NVP-AA/MMT nanocomposite hydrogels (0.2 g) were added to the 100 ml beaker containing 100 ml of a buffer solution with a certain pH at 37 °C. By permeation, the buffer solution into the hydrogels and swelling it, the drug is released gradually from the hydrogels, and the concentration of drug increased in the buffer solution. To measure the concentration of the drug during its release into a buffer solution, at certain time intervals, 3.5 ml of solution was taken from the sample and absorbance was measured. In order to avoid changing the system concentration, this volume of the buffer solution was returned to the system in the same conditions to maintain the volume constant during the test. This test was done at pH 1, 3, 5, 7, 8, 10 and 12 to evaluate the drug’s release at different pHs. Also, the drug releasing tests were performed in a similar manner of the human body in a solution with pH = 1.6 (stomach condition) and a solution with pH = 7.4 (intestinal condition) at 37 °C and its release rate was measured by UV spectroscopy and HPLC [3].

Antibacterial test

The synthesized hydrogels were used by using the agar diffusion method to determine to the antibacterial potential activity against both the gram-negative Escherichia coli (ATCC-25922) and the gram-positive Staphylococcus aureus (ATCC-6538). For this purpose, a part of Gelatin-g-NVP-AA, Gelatin-g-NVP-AA\MMT and Gelatin-g-NVP-AA\MMT\Ce hydrogels were prepared in distilled water with 1 ppm concentration and loaded on nutrient agar plates which contained the grew bacteria and sterilized by autoclaving for 1 h at 120 °C. The inhibition zones were calculated by averaging the diameters (mm) in three directions after 24 h incubation of the inoculated plates at 37 °C.

Results and discussion

Synthesis and characterization

Synthesis of hydrogels, nanocomposite hydrogel and their dug loading

The synthesis of the crosslinking and graft polymerization process gelatin-g-NVP-AA (A), gelatin-g-NVP-AA/MMT (B) were shown in scheme 1. In this process, gelatin was used as a protein backbone to graft and copolymerize the hydrogel and nanocomposite hydrogel. Totally, because of high molecular weight in polymer structure of proteins, gelatin has low solubility in aqueous solution. But grafting with copolymerization in their structure the solubility gets improved in the aqueous solution. For the copolymerization NVP and AA, monomers were used in the solution of gelatin and the NMB monomer was used as the cross-linking agent. The copolymerization started at 70 °C in a constant-temperature bath when APS was decomposed to make radical initiator by abstracting hydrogen from functional groups such as COOH, OH in a side chain [59]. After completing the reaction for the removing the excess of acrylic acid and naturalizing carboxylic groups, 1 N NaOH was poured in the reaction mixture. After naturalizing, the reaction mixture was poured in EtOH to remove water and after that, the resulting wet product kept in the oven to dry completely. The resulting product was called gelatin-g-NVP-AA that shown in scheme 1 which obtained from pathway A. As the same procedure for the synthesis of gelatin-g-NVP-AA/MMT, the NaMMT was added to the crude mixture before adding NMB which shown in pathway B in Scheme 1. After preparation of gelatin-g-NVP-AA (A) and gelatin-g-NVP-AA/MMT (B), the cephalexin was loaded. For this goal, 1 g of gelatin-g-PVP-AA and gelatin-g-NVP-AA/MMT nanocomposite hydrogels were poured into a 500 and 90 ppm solution of drug for 2 days and after that the drug-loaded hydrogel and nanocomposite hydrogel were filtered and washed that schematic form of a 3D network of each produces gelatin-g-NVP-AA/Ce and gelatin-g-NVP-AA/MMT/Ce were shown in scheme 1.

Scheme 1
scheme 1

Schematic diagram for synthesis of gelatin-g-NVP-AA and gelatin-g-NVP-AA/MMT and drug loading

Characterization of hydrogel and nanocomposite hydrogel

FTIR analysis of hydrogel and nanocomposite hydrogel

For the confirmation of the network structure of the prepared hydrogel and nanocomposite hydrogel, FTIR was used which is the unique technique to confirm original functional groups by detecting the shifting a bond in the spectrum. For comparison spectra, the combination of NVP-AA (A), NVP-AA/MMT (B), pure Cephalexin (C), hydrogel NVP-AA/Ce and nanocomposite hydrogel NVP-AA/MMT/Ce after loading with Cephalexin (D and E) spectra were shown in Fig. 1. As shown in Fig. 1, the spectra A-E clearly showed a broadband at the 3000–3500 cm−1 which presented OH group in carboxylic acid that existed in PVP-AA, PVP-AA/MMT and Cephalexin structure. Also, asymmetric and symmetric stretching peaks of methyl and methylene groups exhibited about at 2920 and 2780 cm−1, respectively in the spectrum A-E. The spectrum of A represented three main peaks at the area of 1470, 1545 and 1712 cm−1 which related to stretching C=O symmetric and asymmetric stretch of the carboxylate anion onto acrylic acid monomers and stretching COOH in non-ionized form, respectively [9]. Furthermore, the spectrum of B represented the absorption peaks at 1747 cm−1 and 1050 cm−1 that attributed to the ester groups formed during graft copolymerization and Si-O stretching onto MMT skeleton. As already mentioned, the carboxylic groups of the grafted AA-co-NVP can react with the OH groups on the silica gel surface [43]. The replacement of hydroxyl groups on the surface of montmorolonite by carboxylate anions results in the ester formation. The FTIR spectrum of Cephalexin (C) showed a sharp peak at the area of 1750 that related to stretching C=O in the β-lactam ring [60]. This peak could be able to see in (D) and (E) spectra that confirmed the Cephalexin had loaded on NVP-AA and NVP-AA/MMT hydrogels.

Fig. 1
figure 1

FTIR spectra of gelatin-g-NVP-AA (a), gelatin-g-NVP-AA/MMT (b), Cephalexin (c), gelatin-g-NVP-AA/Ce (d) and gelatin-g-NVP-AA/MMT/Ce (e)

TGA and DSC analysis of gelatin-g-NVP-AA and gelatin-g-NVP-AA/MMT hydrogels

For thermal stability of gelatin-g-NVP-AA and gelatin-g-NVP-AA/MMT hydrogels, TGA analysis was used and the TGA curves of them were shown in Fig. 2. In TGA thermogram could detect four three losing weigh in different temperatures for both compounds. In the first step of losing weight corresponded to the evaporating of water from the surface and internal of molecules which were 2.93 and 5.87% in 149 °C for hydrogels and nanocomposite hydrogel, respectively. By increasing the temperature, the degradation of side chain started and the data showed the degradation for gelatin-g-NVP-AA/MMT hydrogel was 26.37% in 332 °C which this portion in 335 °C for gelatin-g-NVP-AA hydrogel was 33.91%. In 335 °C TGA thermogram showed a big gap between the gelatin-g-NVP-AA and gelatin-g-NVP-AA/MMT hydrogels losing weight which was 78.3 and 52.1% for hydrogels and nanocomposite hydrogel, respectively that represented to the degradation of the polymer backbone. In totally, the results showed that nanocomposite hydrogel was more stable than hydrogel and both cross-link copolymers were stable in the room temperature which was useful for the medicine release.

Fig. 2
figure 2

TGA curves of gelatin-g-PVP-AA and gelatin-g-PVP-AA/MMT hydrogels

The differential scanning calorimetric (DSC) analysis is a thermo analytical technique which illustrates the change in the amount of heat required to increase the temperature of a sample. DSC is used widely for examining polymeric materials to determine their thermal transitions. So, this technique was used for gelatin-g-NVP-AA and gelatin-g-NVP-AA/MMT hydrogels to show the amount heat needed to increase the temperature and changes in their structures. According to Fig. 3, both gelatin-g-NVP-AA and gelatin-g-NVP-AA/MMT hydrogels thermogram showed the two minimum which was endothermic peaks. The gelatin-g-PVP-AA thermogram showed two peaks in 238.7 and 423.8 °C that the first peak resulted of melting of gelatin-g-NVP-AA hydrogel with ΔH 7.83 J g−1 and the second peak related to amount heat for decomposition gelatin-g-NVP-AA with ΔH 1.71 J g−1. Also, two small peaks were seen in the gelatin-g-NVP-AA/MMT hydrogel thermogram in 355.2 and 491.1 °C which resulted of melting and degradation of gelatin-g-NVP-AA/MMT hydrogel with ΔH 12.3 and 19.2 J g−1, respectively [61]. The DSC thermogram approved MMT in the structure of gelatin-g-NVP-AA\MMT hydrogel dramatically increased the thermal stability of hydrogel.

Fig. 3
figure 3

DSC thermogram of gelatin-g-NVP-AA and gelatin-g-NVP-AA/MMT hydrogels

Morphology, size and chemical property analysis of hydrogels

By using X-ray powder diffraction (XRD), is possible to phase identification of a crystalline material and prepare information on unit cell dimensions, which determines the ground, homogenized, and average bulk composition. The Fig. 4 shows the XRD pattern of the gelatin, MMT, gelatin-g-NVP-AA and gelatin-g-NVP-AA/MMT nanocomposite hydrogels. As shown in Fig. 4, the pure MMT showed a base peak in 2Ɵ = 7.48° which referred to the conforming of the interlamellar distance (at the direction of 001) and the basal plane (Ref.00–029-1771). The gelatin had no peak in XRD, while gelatin-g-NVP-AA had a broad peak in 2Ɵ = 24° which was related to the amorphous structure of gelatin and hydrogel. The XRD pattern of gelatin-g-PVP-AA/MMT showed a small peak in 2Ɵ = 7.48° which confirmed the existence the MMT onto chains entrance in empty space of nanocomposite hydrogel, and two peaks in 2Ɵ = 24° and 2Ɵ = 33° which are related to the amorphous structure of nanocomposite hydrogel. In addition, other peaks of MMT disappeared in gelatin-g-NVP-AA/MMT XRD pattern which proved the clay layer was dispersed in due to silicate layers’ exfoliation [62]. This high dispersion of clay layer into the matrix of hydrogel was the necessary factor to approve the well-exfoliated nanocomposite hydrogel that this effect was shown in TEM image [32].

Fig. 4
figure 4

XRD patterns of the gelatin, MMT, gelatin-g-NVP-AA and gelatin-g-NVP-AA/MMT

Also, for more analysis of size and morphology, gelatin-g-PVP-AA/MMT nanocomposite was analyzed by TEM and DLS (Fig. 5). The TEM image showed the spherical MMT with higher density was dispersed in gelatin-g-PVP-AA which detected size for MMT was about 50–110 nm (Fig. 5a). In addition, DLS analysis of gelatin-g-NVP-AA/MMT illustrated particles size were between 40 and 130 nm that average size of the particle was in 85 nm (Fig. 5b). In addition, the BET isotherm test showed the mean average pores diameter was 2.41 nm and the active surface area of gelatin-g-NVP-AA/MMT was expected 2.4571 m2 g−1.

Fig. 5
figure 5

TEM image (a) and DLS analysis of (b) gelatin-g-PVP-AA/MMT nanocomposite

For approving the elemental analysis, size and morphology of cross-link gelatin-g-NVP-AA and gelatin-g-NVP-AA/MMT nanocomposite hydrogels were used energy-dispersive X-ray spectroscopy (EDX) and scanning electron microscope (SEM). By using EDX technique could be analyzed the atomic proportion which was used in a particle. As shown in Fig. 6 could be identified the elements were contained in the structure of gelatin-g-NVP-AA and gelatin-g-NVP-AA/MMT nanocomposite hydrogels, respectively. The Fig. 6a showed gelatin-g-NVP-AA hydrogel contains C, N and O with 42.1, 40.9 and 16.2%, respectively and negligible amount of Na. The Fig. 6b approved the MMT nanocomposites were grafted in gelatin-g-NVP-AA/MMT nanocomposite hydrogel by illustrating the 1.5% Al, 2.8% Si, 7.9% N, 39.7% O, and 48% C in the structure.

Fig. 6
figure 6

EDX analysis of gelatin-g-NVP-AA (a), gelatin-g-NVP-AA/MMT nanocomposite (b), SEM images of gelatin-g-NVP-AA (c), gelatin-g-NVP-AA/MMT nanocomposite (d)

The Fig. 6c-d illustrated the SEM image of gelatin-g-NVP-AA and gelatin-g-NVP-AA/MMT nanocomposite hydrogels, respectively which showed the size and topology of them. The SEM images of gelatin-g-PVP-AA (Fig. 6c) and gelatin-g-NVP-AA/MMT nanocomposite (Fig. 6d) hydrogels exhibited the surface of components had highly porous surface in gelatin-g-NVP-AA/MMT nanocomposite to gelatin-g-NVP-AA. The average detected size of pores in Fig. 6c and d were about 0.4–4.0 μm and 0.3–1.7 μm, respectively which indicated gelatin-g-NVP-AA/MMT nanocomposite had smaller prose than gelatin-g-NVP-AA could be more effective in swelling and drug loading. In addition, the Fig. 7a-b showed the amount of contain in hydrogels after drug loading.

Fig. 7
figure 7

EDX analysis of gelatin-g-NVP-AA\Ce (a), gelatin-g-NVP-AA/MMT\Ce nanocomposite (b), SEM images of gelatin-g-NVP-AA\Ce (c), gelatin-g-NVP-AA/MMT\Ce nanocomposite (d)

The Fig. 7a showed gelatin-g-NVP-AA\Ce hydrogel had C, N, O, Na and S with 30.07, 1.64, 44.36, 22.57 and 1.36%, respectively which confirmed the loading of cephalexin on hydrogel by present of S in the contain of the structure. The Fig. 7b approved the MMT nanocomposites and cephalexin were grafted in gelatin-g-NVP-AA/MMT\Ce nanocomposite hydrogel by illustrating the 1.5% Al, 2.8% Si, 7.9% N, 39.7% O, and 23.7% C, 1.2% N, 35.2% O, 37.7% Na, 0.7% Al and 1.37% S in its structure. The Fig. 7c-d showed the morphology and size of particles after loading of dugs which showed cubic morphology for particles with average identified size about 10–50 nm and 30–60 nm for gelatin-g-NVP-AA (Fig. 6e) and gelatin-g-NVP-AA/MMT nanocomposite hydrogels (Fig. 6f), respectively.

Swelling study

Salts effect on swelling of hydrogels

Swelling capacity of nanocomposite hydrogels in different salt solutions decreased significantly compared with the amount of swelling in distilled water.

As shown in Fig. 8, in different solution gelatin-g-NVP-AA/MMT nanocomposite in compare to gelatin-g-NVP-AA had increased in swelling. Also, by comparing periodic calculations on a series of monovalent, (Li+, Na+, K+, Rb+, Cs+), divalent (Mg2+, Ca2+, Sr2+, Ba2+) and trivalent cations (Al3+) and monitoring their effect on the swelling of hydrogels illustrated adsorbing water increased with increasing cation radius in one series and swelling reduced with number of charges in one row cations (Na+, Ca2+, Al3+).

Fig. 8
figure 8

Influence capacity of hydrogels swelling in various chlorine salt solutions

This experience revealed ion change had the effect on swelling and this phenomenon could explain by the hard-soft acid-base (HSAB) principles. According to HSAB, Na+ that coordinated with COO in the structure of the hydrogels was hydrated and replaced with another monovalent cation that is softer than Na+ and the order of swelling in different monovalent cation was Cs+ > Rb+ > K+ > Na+ > Li+ [63]. In contrast, by increasing the charge cation in one row, the swelling reduced in the same concentration salt solution and swelling order was Na+ > Ca2+ > Al3+. For further investigation, the salt solution with different concentrations was used to determine the water absorption in the hydrogels, which indicates that the swelling decreased in the same trend with increasing salt concentration (Fig. 9). The results showed that swelling at gelatin-g-NVP-AA/MMT nanocomposite in the certain cation was more than to gelatin-g-NVP-AA. In addition, with increasing bar charge, the amount of hydrogel density increased and the water absorption decreased because the cross-linking network in the hydrogels was closer to each other and prevented water absorption [32, 64]. Also, groups had repulsion on the hydrogels and increasing in ion strength caused shield electronic repulsion and reduced swelling [3].

Fig. 9
figure 9

The effect of salt concentration on the water absorption hydrogels

Kinetic study of swelling

Practically using of the hydrogel is related to high swelling at the shortest time. Several factors effects on hydrogel’s swelling as a superabsorbent that Buchholz proposed such as size distribution of powder particles, swelling capacity, specific size area and composition of the polymer [65]. Fig. 10 showed the relation between the swelling and different gelatin-g-NVP-AA and gelatin-g-nVP-AA/MMT nanocomposite hydrogel’s particle sizes which indicated absorbing water significantly increased at begging time which emphasized rate of swelling for gelatin-g-NVP-AA/MMT was faster than gelatin-g-NVP-AA, which in continue, swelling obtained at the equilibrium state at about 60 min.

Fig. 10
figure 10

Hydrogels swelling kinetics with the different particle size in distilled water

By ‘Voigt-based model’, could be calculated St (g/g) which is swelling at the time t by the following equation [66]:

$$ St= Se\left(1-{e}^{-\raisebox{1ex}{$t$}\!\left/ \!\raisebox{-1ex}{$\tau $}\right.}\right) $$

Where Se is equilibrium swelling (power parameter, g/g), and t is time (min) for swelling St, and τ (min) stand for ‘rate parameter’. For particle sizes, 100–250, 250–400 and 400–550 μm in gelatin-g-NVP-AA the rate parameters for superabsorbent was calculated 22.73, 23.53 and 27.93, and in gelatin-g-NVP-AA\MMT was founded 20.45, 21.46 and 26.25, respectively which showed absorbance directly related to particle size. This results exhibited smaller particle size nanocomposite hydrogel swilling more than hydrogel.

Effect of pH on swelling of hydrogels

Hydrogels in their network have acidic and basic groups, so it is highly sensitive to the pH environment and the amount of water absorption changes in the different pHs. In this investigation, the rate of swelling in gelatin-g-NVP-AA and gelatin-g-NVP-AA/MMT nanocomposite hydrogels at the pH 1 to 13 have been examined (Fig. 11). The amount of ions in water affects the absorption of water, so stock NaOH (13.0) and HCl (1.0) solutions were diluted with distilled water to reach the desired pH. As shown in Fig. 10, swelling gradually increased from pH 1 and reached to maximum point pH 8 which was 177 and 196 (g/g) for gelatin-g-NVP-AA and gelatin-g-NVP-AA/MMT hydrogels respectively, and reduced again at the basic area (pH 9–12). Because the carboxylate groups mostly changed to in the form of nonionic hydrophilic COOH and –OH groups in the acidic media (pH 1–5), the swelling values of hydrogels were not too much, but by increasing pH of solutions from 6 to 8 the rate of hydrogel’s swelling significantly increased as the pH of solutions was increased from 4 to 8 which repulsion between carboxylate groups after ionization made an increase in the swelling value. The reducing swelling ratio in the strong basic solutions (pH 8–13) was affected by excess Na+ in the solution which prevented anion–anion carboxylate anions repulsion [67].

Fig. 11
figure 11

Effect of pH solutions on the capacity of hydrogels swelling

Drug loading and releasing study

Drug loading study

Hydrogels have high absorbance properties due to their pore size cavities on their surface. For this purpose, synthetic hydrogels were tested for cephalexin absorption to show how much of the drug could be loaded on the hydrogels. To measure the drug loaded, 0.1 g of gelatin-g-NVP-AA and gelatin-g-NVP-AA/MMT hydrogels nanocomposite were kept in 200 ppm solution of drug for 24 h to absorb drug from in distilled water. Then, the total amount of drug loaded on the hydrogels was measured from on loaded drug in filtrate solution (Fig. 12). The result exhibited gelatin-g-NVP-AA and gelatin-g-NVP-AA/MMT hydrogels nanocomposite significantly absorbed 160 (80%) and 175 (88%) drug from distilled water, respectively which showed hydrogels could be used efficiently for further examination.

Fig. 12
figure 12

Absorption spectra of loaded drug on hydrogels in distilled water

The effect of nanoclay in drug loading in nanocomposite hydrogel

In this part of the study, the amount of nanoclay was evaluated for drug adsorption in nanocomposite hydrogel. As the SEM image showed, the amount of porous surface in gelatin-g-NVP-AA/MMT nanocomposite hydrogel was increased with the addition of nanoclay to the hydrogel which caused to improve the amount of inflammation and the penetration of the water-soluble drug increases into the nanocomposite’s hydrogel network, which increased the concentration of the drug inside the hydrogel network. As the absorption curve showed (Fig. 13), increasing the concentration of MMT to the hydrogel and forming the nanocomposite hydrogel caused the amount of drug loading was increased to 0.008 g / MMT, but after that, the excess amount of MMT reduced the drug loading, which could be due to the filling of empty spaces nanocomposite hydrogel by ineffective amount of MMT. The results of this investigation were given in Table 2. These results indicated that the amount of MMT plays an important role in the amount of drug loading in the nanocomposite hydrogel.

Fig. 13
figure 13

Absorption spectra of drug loading in nanocomposite hydrogels with different values of nanoclay

Table 2 Drug loading rate in different samples of nanocomposite hydrogels with different amounts of nanoclay

The effect of drying the hydrogel at different temperatures for loading drug

The drying rate will change the surface and structure and way the particles are stacked together. By changing the structure, the absorption of the drug in the hydrogels will be different. For this reason, synthetic hydrogels were dried at different temperatures and the absorption of drug was studied. The gelatin-g-NVP-AA and gelatin-g-NVP-AA/MMT nanocomposite hydrogels were dried at 25, 60, 70 and 80 °C and 0.1 g of them were put in 150 ppm solution of drug for 24 h. After that, the hydrogels were filtered and filtrate was used to calculate the total amount of drug loaded by UV spectroscopy. As shown in Fig. 14, the drug loading on hydrogels was decreased by increasing the temperature. The amount of loaded drug on the gelatin-g-NVP-AA was 61, 50, 41 and 26% (Fig. 14a) and on the gelatin-g-NVP-AA/MMT was 87, 66, 52, 39% (Fig. 14b) at 25, 60, 70 and 80 °C, respectively. The result indicated that increasing the temperature caused to aggregate hydrogels and reduce the pores on the surface which resulted to reduce drug loading on the hydrogels.

Fig. 14
figure 14

Absorption spectra of drug loading in dryness hydrogels in different temperature

The effect of ion valence number in drug loading

Several studies have shown that the rate of hydrogel swelling is strongly influenced by the properties of solutions, such as the type of soluble salts, the concentration of soluble salts, and ion charge ratios. As shown in Fig. 15, the amount of drug trapped into hydrogels in a saline solution containing NaCl was higher than CaCl2 and AlCl3, and the amount loaded in the gelatin-g-NVP-AA/MMT nanocomposite hydrogel was greater than the gelatin-g-NVP-AA hydrogel in these salts. In solutions containing NaCl, CaCl2 and AlCl3, the amount of loaded drug onto the gelatin-g-NVP-AA hydrogel were 30.1, 22.4 and 12.3% and for the gelatin-g-NVP-AA/MMT nanocomposite hydrogel were 55.2, 39.4 and 18.8%, respectively. The main reason for the drop in inflation hydrogels demonstrated to the overlapping effect of the cations, which caused to reduce the electrostatic anion-anion repulsion. As a result, the difference in osmotic pressure was reduced because of the difference in the concentration the moving ions between the hydrogels and the aqueous phase. In addition, high ionic valence number cations by creating a network of ions at the hydrogels which greatly reduced the absorption of water and the rate of inflation of the hydrogels, and for this two reasons, a lower amount of drug trapped in the porous of the hydrogel [64].

Fig. 15
figure 15

Adsorption spectra of the rate of drug loading in different salt solutions

Evaluation of the drug loading in hydrogels by UV-Vis spectroscopy in universal buffer

In this part of experiment drug loading in the gelatin-g-PVP-AA and gelatin-g-NVP-AA/MMT nanocomposite hydrogels at different pH (1–12) after 6, 12, 24 and 48 h were investigated. As Table 3 shown, the maximum amount of loading drug was 61.5% for gelatin-g-NVP-AA and for gelatin-g-NVP-AA/MMT was 81.3% in pH = 7 after 48 h, respectively. By increasing the time, the drug loading on hydrogels was increased, and also the order of loading in different pHs was 7 > 5 > 8 > 10 > 12 > 3 > 1. The result indicated that in neutral condition the surface of hydrogels was more reactive to absorb drug because of making zwitter ionic structure between cephalexin and hydrogel functional groups.

Table 3 Loading drug for gelatin-g-NVP-AA and gelatin-g-NVP-AA/MMT at different pH in distilled water

Evaluation of the drug releasing from hydrogels in different buffers

In order to select the best buffer solution for subsequent testing, the drug releasing rate was evaluated in three types of buffer salt, universal [58] and stock that the results were shown in Fig. 16. As the results showed, the universal buffer had the least interaction with different pHs Cephalexin at λmax = 250–280 nm, and the universal buffer was used as a reference to continue the experiments.

Fig. 16
figure 16

Absorption spectra of the drug releasing in different buffers (pH = 8)

Temperature effect on the drug releasing of hydrogels

To observe the temperature effect on the amount of the drug releasing in the loaded gelatin-g-NVP-AA and gelatin-g-NVP-AA/MMT nanocomposite hydrogels, the amount of the individual samples was placed in the buffer solution at three different temperatures over a specified time. As it is evident from the Fig. 17a and b, the highest amount of the drug releasing in both samples occurred at the highest temperature (43 °C). With increasing temperature, the speed of the drug molecules in the hydrogels was increased and the rate of release increased. The results showed that with increasing temperature, the drug releasing in the gelatin-g-NVP-AA/MMT nanocomposite (Fig. 17b) was higher than the gelatin-g-NVP-AA (Fig. 17a), which could be due to increasing the size and reactivity of nanoclay particles and reducing the available space for drug loaded on the nanocomposite hydrogels. According to these results, the amount of drug releasing was 47.5, 51.5 and 55.8% for the gelatin-g-NVP-AA (160 ppm loaded drug) and 50.5, 54.0 and 59.0% for the gelatin-g-NVP-AA/MMT nanocomposite (175 ppm loaded drug) at 25, 35 and 43 °C, respectively.

Fig. 17
figure 17

Temperature effect on absorption spectra of the drug releasing (a) gelatin-g-NVP-AA, (b) gelatin-g-NVP-AA/MMT

Time effect on the drug releasing at different pH

The drug releasing rate varies in different pH due to the different structure of the hydrogels. For this reason, the effect of time was investigated on the amount of drug releasing from gelatin-g-NVP-AA and gelatin-g-NVP-AA/MMT nanocomposite hydrogels in constant and different pHs.

The releasing drug from gelatin-g-NVP-AA and gelatin-g-NVP-AA/MMT nanocomposite hydrogels was increased over time from 6 to 48 h (Fig. 18). The amount of released drug was 47, 54, 61 and 76% for gelatin-g-NVP-AA (Fig. 18a) and 58, 64, 78 and 88% for gelatin-g-NVP-AA/MMT (Fig. 18b) in 6, 12, 24 and 48 h, respectively. Therefore, with the passage of time the releasing drug became more and more and in case of gelatin-g-NVP-AA/MMT was greater than gelatin-g-NVP-AA nanocomposite hydrogels.

Fig. 18
figure 18

Time effect on absorption spectra of the drug releasing (a) gelatin-g-NVP-AA, (b) gelatin-g-NVP-AA/MMT

Cephalexin and hydrogels having the carboxylic acid group in their structure and in alkaline medium changed to carboxylate groups which caused the electrostatic repulsion between the two compounds because of the same charges and increased the rate of the drug release. Also, the results showed that by increasing the amount of water absorption in the hydrogels, the drug was increased in proportion to its release, and changing the pH was in the same direction in both the effect and that was pH 8.0 > 10 > 7. As could be seen in Fig. 18, the amount of cephalexin release was much higher in basic solution in comparison with acidic media that result could be the effect on changing the interaction between cephalexin and polymer network [60].

It was notable that the results obtained the concentration of the drug releasing for all of pH was constant after 9 h, and the maximum amount of the drug releasing was 120 ppm and 140 at pH 8 for the gelatin-g-NVP-AA and gelatin-g-NVP-AA/MMT nanocomposite hydrogels respectively, and after that until 24 h the concentration of the released drug was the same (Fig. 19a, b).

Fig. 19
figure 19

The drug releasing curve relative to time in different pH for gelatin-g-NVP-AA (a), gelatin-g-NVP-AA/MMT (b) and in vitro test (c)

In addition, the amount of the drug releasing in the similar body condition was examined in over time that the results showed the release rate in pH 7.4 (intestinal condition) was far higher than pH 1.6 (stomach condition) for the gelatin-g-NVP-AA and gelatin-g-NVP-AA/MMT nanocomposite hydrogels (Fig. 19c). These results suggested that this protective system was an ideal method for transferring the cephalexin into the intestine and increase the efficiency of the medicine, which is susceptible to acidic conditions in the stomach.

Evaluation of the drug releasing from hydrogels by UV-Vis spectroscopy

The UV-Vis spectroscopy is a convenient method for measuring compounds that are absorbed in this region, and cephalexin is sensitive in this method due to the presence of a phenyl group in its structure, and the amount of releasing-drug is measurable. Initially, the universal buffer solution in different pH was mixed with different concentrations drug solutions and the intensity of absorption was measured by UV spectroscopy. By converting the adsorption intensity to the concentration according to the Beir-Lambert equation, standard curves and line equation for the desired pH were calculated [57].

The results of this study showed that the release of drug from the hydrogels network was directly related to the rate of their inflation in water. The degree of the drug releasing in acidic and high alkaline pHs was very low compared to pH 8. Reducing the drug releasing at acidic pH and the low hydrogels swelling in compare to pH 8 could be due to overlapping of the charge and hydrogen bonding among carboxylic groups in hydrogels and cephalexin. While in the basic medium pH 8, repulsion between carboxylate groups significantly increases hydrogel swelling, as a result, the drug releasing rate reached its maximum. However, in very high pHs, cations that were present in the environment by covering carboxylate groups and forming the ion pair had led to a drop in inflation and the drug release [57]. Also, the release rate of cephalexin in the gelatin-g-NVP-AA/MMT nanocomposite was greater than gelatin-g-NVP-AA hydrogel, which causes more swelling in the water could be due to the sodium ions repulsion in nanoclay. The percentage of released drug was calculated from the following Eq. (2). In this equation, L and Rt represent the initial rate of loaded drug (210 ppm) and the amount of released drug at time t.

$$ \% Drug\ release=\frac{R\mathrm{t}}{L}\kern0.75em $$
(2)

The results showed that the highest drug releasing was related to pH 8 that the drug releasing rate at pH 8 was 129.9 and 154.7 ppm, and the percentage of release was calculated to be 75.7 and 88.1% for gelatin-g-NVP-AA and gelatin-g-NVP-AA/MMT, respectively (Table 4).

Table 4 Determination of the rate of released drug from gelatin-g-NVP-AA and gelatin-g-NVP-AA/MMT at different pH by UV-Vis spectroscopy

Also, the release of cephalexin was performed according to the method described in universal buffer with pH 7.4 and pH 1.6 at constant temperature (37 °C), similar to the stomach and intestinal conditions. As the results showed, the amount of released drug at pH 7.4 was higher than pH 1.6, as well as gelatin-g-NVP-AA/MMT nanocomposite more than gelatin-g-NVP-AA and hydrogels due to higher inflation.

Evaluation of the drug loading and releasing of hydrogels by HPLC

In order to verify the drug loaded onto the gelatin-g-PVP-AA and gelatin-g-NVP-AA/MMT nanocomposite hydrogels and the drug releasing them, chromatography HPLC C18 column was used with a length of 10 cm and run for 10 min with acetonitrile\universal buffer (83:17) as an eluent at λmax = 250–280 nm in order to determine cephalexin in a HPLC column that this method was more accurate than measuring with UV/Vis spectroscopy. Initially, the gelatin-g-NVP-AA and gelatin-g-NVP-AA/MMT nanocomposite hydrogels were kept at drug solution (200 ppm) for 24 h and after filtration, the filtrate was used to detect amount of loading drug. The result showed the loading drug on the gelatin-g-NVP-AA and gelatin-g-NVP-AA/MMT nanocomposite hydrogels were 159.6 ppm (79.8%) and 175.5 ppm (87.7%), respectively.

In continues of this research, to prepare the standard curve, different drug concentrations in various pH were prepared and injected into the HPLC column. The calibration curve was plotted based on the concentration of drug to the subsurface in a chromatogram (HPLC) and by using the linear equation obtained through the calibration curve; it was easy to calculate the drug concentration (Fig. 19c).

Firstly, the HPLC spectrum of pure cephalexin showed a peak 3.136 min which expected other peaks reveal before this time. In continues, the drug releasing from the hydrogels were evaluated at different pH after a specific time that Fig. 19 (S 19–27) showed the cephalexin absorption was at the peak time of 1.451 and 2.456 min in pH 1 after releasing from gelatin-g-NVP-AA (Fig. 19a) and gelatin-g-NVP-AA/MMT nanocomposite hydrogels (Fig. 19b), respectively.

As shown in Fig. 20, the amount of released drug from gelatin-g-NVP-AA/MMT (146.0, 86.2%) was greater than gelatin-g-NVP-AA (102.7, 67.4%), which could be attributed to the presence of MMT in a nanocomposite hydrogel network which, by increasing its activity in the hydrogel network caused to release further than hydrogel. In addition, it was noteworthy that the highest drug releasing occurred at pH 8. Also, the drug releasing in similar conditions of the human body was carried out in a solution with pH 1.6 (stomach condition) and pH 7.4 (intestinal condition) of the gelatin-g-NVP-AA and gelatin-g-NVP-AA/MMT nanocomposite hydrogels and their release rate were measured and result showed releasing in pH 7.4 (intestinal condition) was greater than pH 1.6 (stomach condition) in both samples of the hydrogels. The results of the drug releasing study by the HPLC method were shown in Table 5.

Fig. 20
figure 20

Chromatogram HPLC cephalexin loaded on gelatin-g-NVP-AA (a), gelatin-g-NVP-AA/MMT (b) and the calibration curve (c) in pH 8

Table 5 The rate of released drug from gelatin-g-NVP-AA (A), gelatin-g-NVP-AA/MMT at different pH

Antibacterial activities

The synthesized hydrogels were investigated for in vitro antibacterial effect against the gram-positive Staphylococcus aureus and the gram-negative Escherichia coli by comparing the diameter inhibition zones of the growth. The Fig. 20 illustrated that gelatin-g-NVP-AA, gelatin-g-NVP-AA\MMT and gelatin-g-NVP-AA\MMT\Ce hydrogels had antibacterial effect on S. aureus and E. coli bacteria and after 24 [68]. After measured the inhibition zone the paper discs soaked exhibited 33.4 mm, 33.6 mm, 35.0 mm and 37.0 mm (Fig. 21a) for the gelatin-g-NVP-AA, gelatin-g-NVP-AA\MMT, gelatin-g-NVP-AA\Ce and gelatin-g-NVP-AA\MMT\Ce hydrogels against S. aureus and 29.2 mm, 30.6 mm, 30.6 mm and 34.6 mm against E. coli (Fig. 21b), respectively. As result showed, all samples illustrated antibacterial activity against both bacteria because of bioactivity of the hydrogels structure but the loaded drug nanocomposite hydrogel (gelatin-g-NVP-AA\MMT\Ce) showed further potential antibacterial activity than the other hydrogels under same test conditions. This effect could be due to the swelling from the agar and the drug releasing from the porous surface nanocomposite hydrogel and more interaction with cell wall bacteria.

Fig. 21
figure 21

Antibacterial activities of the gelatin-g-NVP-AA, gelatin-g-NVP-AA\MMT, gelatin-g-NVP-AA\Ce and gelatin-g-NVP-AA\MMT\Ce hydrogels against S. aureus (a) and E. coli (b)

Conclusion

In this investigation, the free radical method was used to synthesis of gelatin base of cross-linking poly vinyl/acrylic acid hydrogel and nanoclay hydrogel which had huge inflation with 450 and 557 (g/g) for gelatin-g-NVP-AA and gelatin-g-NVP-AA/MMT nanocomposite hydrogels, respectively. These hydrogels were used to load cephalexin as an antibacterial drug and characterized by IR spectroscopy to confirm its structure onto hydrogels. The TGA and DSC analyses showed these hydrogels had a good thermal stability (550 °C) and gelatin-g-NVP-AA/MMT nanocomposite hydrogel due to had MMT in its structure, this effect was greater than and gelatin-g-NVP-AA/MMT nanocomposite hydrogel. Also, the XRD pattern and TEM image approved that MMT layers in hydrogel nanocomposite were separated and exfoliated. The DLS analysis showed the average size of nanocomposite hydrogels was 85 nm. In addition, the SEM images illustrated that in hydrogels structure had porous morphology on their surface before the drug loading and nano particle size and their morphology after drug loading that these pores directly affected on swelling, drug loading and drug releasing. The amount of adsorption of the synthesized hydrogels in salt solutions was strongly reduced in contrast to water. Also, in the kinetic study of inflation showed the rate of swelling hydrogels increased with decreasing particle size. By adding nanoclay to synthesized hydrogel, the absorption capacity of nanocomposite hydrogel dramatically increased and inflationary behavior depended to the pH and the maximum absorption was at pH 8. Drug loading was investigated in different valence ions and temperature that by increasing ion valence and temperature the drug loading was decreased. Also, the maximum loaded drug on hydrogel was in pH 8 and the 0.008 g of nanoclay in nanocomposite hydrogel. The drug releasing study was done in different buffers, distilled water and pHs which indicated universal buffer in pH 8 had the least interaction with cephalexin and the highest drug releasing that was calculated by UV-Vis spectroscopy and HPLC chromatography. The synthesized gelatin-g-NVP-AA and gelatin-g-NVP-AA/MMT nanocomposite hydrogels and their loaded drug (gelatin-g-NVP-AA\Ce and gelatin-g-NVP-AA/MMT\Ce) were tested against gram-positive S. aureus and gram-negative E. coli and results showed the gelatin-g-NVP-AA/MMT\Ce nanocomposite hydrogel obtained greater antibacterial activity than the other hydrogels. In totally, we proposed a suitable nanocomposite hydrogel as drug deliver for using against antibacterial diseases.