Zwitterionic nanocomposites grafted onto titanium dioxide enhanced water-based drilling fluid for high-temperature and high-salinity deep resource development Authors: Fardin Talebi Sarokolai, Yousef Shiri Published: 2025 ABSTRACT AbstractWith increasing challenges in high-pressure high-temperature (HPHT) and saline drilling environments, improving the thermal and filtration stability of water-based drilling fluids (WBDFs) is critical. In this study, a zwitterionic polymer–grafted titanium dioxide (TiO₂) nanocomposite was developed as a multifunctional additive. The nanocomposite was synthesized via aqueous free-radical polymerization of acrylamide (AM), 2-acrylamido-2-methylpropanesulfonic acid (AMPS), N-vinylpyrrolidone (NVP), and dimethyldiallylammonium chloride (DMDAAC), which were covalently bonded to silane-modified TiO₂ nanoparticles. Structural and thermal analyses confirmed successful grafting, uniform dispersion, and stability up to 300 °C. When 0.11–1.00 g per 350 mL of bentonite-based WBDF was incorporated, the rheological performance of the nanocomposite improved, increasing the plastic viscosity from 7 to 15 mPa·s (7–15 cP), the apparent viscosity from 25.5 to 55 mPa·s (25.5–55 cP), and the yield point from 8.86 to 19.15 Pa (18.5–40 lb/100 ft²), while maintaining shear-thinning behavior. Under low-pressure low-temperature conditions, fluid loss decreased by ~ 35%, and filter cake thickness decreased by 75%, whereas HPHT tests (120–180 °C, 3.45 MPa/500 psi) revealed up to 23% lower fluid loss and ~ 62% thinner cakes. Comparative tests with the pure zwitterionic polymer confirmed that TiO₂ functionalization further enhanced the gel strength, filtration control, and salt resistance. The additive also maintained stability up to 30 wt% NaCl, and cyclic HPHT aging tests demonstrated superior long-term performance relative to that of the polymer alone. Zeta potential (–75 mV), DLS, and SEM analyses revealed high colloidal stability and compact, low-permeability filter cakes, driven by synergistic electrostatic–steric stabilization and nanoparticle–polymer reinforcement. Rheological modeling revealed that the Herschel–Bulkley model best captured flow behavior (R² > 0.99). These findings highlight the TiO₂–zwitterionic nanocomposite as a robust thermal stabilizer and filtration controller, offering next-generation performance for WBDFs in HPHT and saline drilling environments.Keywords: Water-based fluid drilling, Nanoparticles, Zwitterionic, Rheological and filtration performance, High-pressure high-temperatureSubject terms: Chemistry, Engineering, Materials science, Nanoscience and technology Introduction The limited supply of accessible shallow oil and gas has driven the need to investigate deeper and ultradeep formations, where drilling operations routinely face extreme downhole conditions, including pressures exceeding 5000 psi (≈ 34.5 MPa) and temperatures above 150 °C1–3. Under such high-pressure high-temperature (HPHT) conditions, the thermal and rheological stability of water-based drilling fluids (WBDFs) is greatly weakened, often resulting in increased filtration loss, colloidal destabilization, polymer degradation, and poor borehole cleaning efficiency4–6. Excessive filtrate invasion into permeable formations not only damages the reservoir by obstructing hydrocarbon flow channels but also contributes to issues such as wellbore collapse, stuck pipes, and reduced drilling efficiency due to thick, low-strength filter cakes7. Bentonite-based WBDFs are widely used in drilling operations because of their cost-effectiveness and environmental compatibility. These fluids rely on additives to tune key properties such as viscosity, yield stress, and filtration control parameters critical for ensuring cutting suspension, wellbore stability, and minimal formation damage8. However, at temperatures above 120 °C, bentonite loses hydration, and conventional additives such as starch, cellulose, and xanthan gum suffer from thermal breakdown, which leads to severe degradation in fluid performance9–11. To address these challenges, many natural and synthetic polymer-based fluid loss agents have been investigated and developed. Natural polymers such as guar gum12, starch13, cellulose nanocrystals14, and xanthan gum15,16 have demonstrated significant potential. Synthetic polymers, including polycaprolactone17, polyacrylates18, polystyrene microspheres19, and chitosan20, have also been explored. Polymers such as amphoteric polymers (PEXs)21, polyacrylates18, polyacrylamide (PAM)22, and zwitterionic copolymers23 have shown improved thermal resilience and the ability to modulate rheology under HPHT conditions. However, even high-performance polymers alone are insufficient for fully sealing micro- and nanopores in filter cakes or maintaining structural integrity under prolonged thermal exposure24. This has led to increased interest in polymer–nanoparticle hybrid systems, which combine the thermal durability of inorganic nanomaterials with the adaptive flow behavior and tunability of polymer chains. Nanoparticles (NPs), such as silica (SiO₂)25–27, aluminum oxide25, titanium dioxide (TiO₂)26,28, copper oxide (CuO)29,30, zinc oxide (ZnO)11,30,31, iron oxides32–34, and graphene oxide (GO)35–37, have been widely incorporated into WBDFs to increase fluid loss control, improve gel structure, and increase temperature and salt tolerance. TiO₂, in particular, offers high thermal stability, strong surface activity, and chemical compatibility with polymeric matrices28,38. Recent studies have explored TiO₂–polymer composites synthesized through physical mixing or miniemulsion polymerization, which have shown improved viscosity and filtration control under low-pressure low-temperature (LPLT) conditions39. Nevertheless, few studies have thoroughly examined the performance of such systems under true HPHT conditions or addressed the colloidal stability limitations of TiO₂ NPs, which are prone to agglomeration in saline or high-temperature environments. To overcome these limitations, zwitterionic polymers—containing both anionic and cationic groups—have emerged as promising candidates because of their charge-balanced structure, excellent hydration, and salt tolerance40. For instance, Ao et al. (2021) developed zwitterionic silica-based hybrid nanoparticles that significantly improved dispersion stability and reduced filter cake permeability under harsh conditions41. Pang et al. (2025) grafted zwitterionic polymers onto nano-SiO₂ to create a high-temperature, salt-resistant fluid loss reducer, which demonstrated excellent gel strength and rheological stability42. Similarly, Gao et al. (2025) introduced a salt-responsive zwitterionic polymer that maintained low fluid loss in saline media43, whereas Zhang et al. (2025) synthesized a zwitterionic copolymer with excellent performance at temperatures exceeding 200 °C44. These findings underscore the critical role of zwitterionic functionality in preserving fluid integrity under thermal and saline stress. Other studies support this trend. Liu et al. (2022) and Sun et al. (2020) designed zwitterionic copolymers with strong hydration inhibition and responsive rheology. Their work showed that zwitterionic groups enhance electrostatic stability and reduce filtrate invasion45–48. Wang et al. (2024) confirmed these benefits by developing a polymer that preserved performance across varying salinity and pH conditions49. Furthermore, Tan et al. (2021), Li et al. (2023), Chang et al. (2024), and Bai et al. (2024) reported that zwitterionic copolymers effectively reduced filtration loss and improved suspension through better clay–polymer interactions and compact filter cake formation23,50–53. These advancements collectively demonstrate the potential of zwitterionic polymers and their nanocomposites, such as TiO₂38, to increase the thermal and structural resilience of drilling fluids. Building on these advancements, this study reports the synthesis and application of a novel zwitterionic polymer grafted onto TiO₂ nanocomposite designed for rheological enhancement and fluid loss mitigation in WBDFs. The nanocomposite was synthesized via aqueous free-radical copolymerization via acrylamide (AM), 2-acrylamido-2-methylpropanesulfonic acid (AMPS), N-vinylpyrrolidone (NVP), and dimethyldiallylammonium chloride (DMDAAC), which were chemically grafted onto silane-modified TiO₂ nanoparticles. Unlike previous TiO₂–polymer systems that rely on physical adsorption or limited functionalization, this work achieves strong covalent bonding via silane linkers, promoting thermal durability and structural integrity. A comprehensive performance evaluation was conducted under both LPLT and HPHT conditions (up to 180 °C and 500 psi ≈ 3.45 MPa), and the effects on plastic viscosity, apparent viscosity, yield point, gel strength, and fluid loss behavior were assessed. Furthermore, rheological modeling was performed via the Bingham, power law, and Herschel–Bulkley models to characterize the non-Newtonian behavior of the drilling fluids. Additional tests under varying salinity levels were conducted to confirm salt tolerance. Materials and methods Materials As shown in Table 1, TiO₂ (≥ 99.5%) was purchased from Merck and used as the inorganic nanofiller. Silane γ-methacryloxypropyltrimethoxysilane (A-174, ≥ 98%) from Sigma–Aldrich was used for surface modification of TiO₂. The monomers used in zwitterionic polymerization included acrylamide (AM, ≥ 99%), 2-acrylamido-2-methylpropanesulfonic acid (AMPS, ≥ 98%), N-vinylpyrrolidone (NVP, ≥ 99%), and dimethyldiallylammonium chloride (DMDAAC, 65% solution), all supplied by Merck. Sodium hydroxide (NaOH, ≥ 98%) was used for pH adjustment, and the redox initiator system consisted of ammonium persulfate (APS, ≥ 98%) and sodium metabisulfite (NaHSO₃, ≥ 96%), also from Merck. Ethanol (96%) and deionized water were used as solvents and cleaning agents during synthesis. Bentonite powder was obtained from the National Iranian Drilling Company (NIDC) and used to formulate the base drilling fluid. Table 1Materials utilized in the laboratory.MaterialsChemical FormulaAmountAbbreviationTitanium dioxideTiO₂1.00 g-Y-MethacryloxypropyltrimethoxysilaneC₁₀H₂₀O₅Si0.25 gSilane A174EthanolC₂H₅OH45 mL-Deionized waterH₂O350 mL-Acetic acid (1 M)CH₃COOH3–5drops-AcrylamideC₃H₅NO12 gAM2-Acrylamido-2 methylpropanesulfonic acidC₇H₁₃NO₄S10 gAMPSN-vinylpyrrolidoneC₆H₉NO4 gNVPDimethyldiallylammonium chlorideC₈H₁₆Cl₂N3 gDMDAACSodium hydroxideNaOH2.50 g-Ammonium persulfate(NH₄)₂S₂O₈0.06 gAPSSodium metabisulfiteNaHSO₃0.03 g-BentoniteAl₂Si₄O₁₀(OH)₂·nH₂O22.5 g- Materials utilized in the laboratory. Preparation of zwitterionic polymer nanocomposites containing surface-modified TiO₂ As shown in Fig. 1, surface modification of TiO₂ nanoparticles was performed using A-174 to increase their dispersion stability and facilitate chemical interactions with the polymer matrix. In this process, 1.00 g of TiO₂ was dispersed in a solvent mixture containing 45 mL of ethanol and 5 mL of deionized water (volume ratio 9:1), followed by magnetic stirring for 10 min. Subsequently, 0.25 g of silane A-174 was added to the suspension (step 1). To activate the methoxy groups of the silane and adjust the pH, 3–5 drops of 1 M acetic acid were added (step 3), changing the pH to approximately 4–5. The silanization was conducted at 55 °C with continuous stirring for 3 h. After the reaction, the modified TiO₂ nanoparticles were collected by centrifugation at 7000 rpm (step 2) and then washed twice with 96% ethanol and twice with deionized water to eliminate any unreacted materials. The final product was dried at 60 °C for 24 h (step 5), resulting in a fine powder of surface-functionalized TiO₂. To thoroughly remove the unreacted silane coupling agent and impurities, the surface-modified TiO₂ nanoparticles were washed carefully after centrifugation. The washing involved two cycles with 96% ethanol followed by two cycles with deionized water, which efficiently removed the remaining chemicals before the next step. Although extensive washing was performed, a minimal amount of residual impurities remained unavoidable; however, this trace level was insignificant and did not impact the subsequent reactions or the overall performance of the nanocomposite. Diagrammatic overview of zwitterionic polymer-modified TiO₂ nanocomposite synthesis. A zwitterionic nanocomposite was synthesized by incorporating surface-modified TiO₂ nanoparticles into a free-radical polymerization system. Initially, 12 g of AM, 10 g of AMPS, 4 g of NVP, and 3 g of DMDAAC were fully dissolved in 70 mL of deionized water in a 250 mL beaker (step 3). The pH of the monomer solution was adjusted to 7–8 by first adding 2.00 g of NaOH dissolved in 5 mL of water, followed by the dropwise addition of 0.50 g of NaOH in 10 mL of water to fine-tune the pH (step 4). After the pH was adjusted, 1.00 g of the surface-functionalized TiO₂ was added to the monomer mixture and dispersed via magnetic stirring for 10 min (step 5). The resulting dispersion was transferred to a three-necked flask, and the beaker walls were rinsed with 20 mL of deionized water to ensure full transfer of the materials. During the polymerization reaction, nitrogen gas was purged continuously into the reactor to maintain an inert atmosphere and prevent oxidation, thereby ensuring the integrity of the free-radical polymerization process. The polymerization reaction was carried out at 60 °C under continuous stirring. A redox initiator system consisting of 0.06 g of ammonium persulfate (APS) and 0.03 g of sodium metabisulfite (NaHSO₃), each of which was dissolved in water, was simultaneously introduced into the system to initiate polymerization. The reaction was allowed to proceed for 3 h. After completion, the resulting hydrogel was washed twice with 96% ethanol to remove any residual monomers or impurities, followed by a final wash with deionized water. The purified polymer nanocomposite was dried at 67 °C for 48 h, ground and sieved to obtain a uniform powder of the zwitterionic polymer grafted onto TiO₂ nanocomposite. As depicted in Fig. 2, the reaction mechanism begins with the hydrolysis of methoxy groups in silane A-174, resulting in the formation of silanol (Si–OH) groups. These groups subsequently react with the hydroxyl groups on the TiO₂ surface, forming stable Si–O–Ti covalent bonds. During polymerization, AM, AMPS, NVP, and DMDAAC undergo free-radical polymerization, initiated by the APS/NaHSO₃ redox system. The resulting zwitterionic copolymer interacts chemically with the surface-modified TiO₂ through residual silanol and amide functionalities, creating both covalent bonds and hydrogen-bonding interactions. The major functional groups in the copolymer include amide (–CONH₂), sulfonate (–SO₃⁻), pyrrolidone (from NVP), and quaternary ammonium (–N⁺(CH₃)₂) groups. These moieties collectively enhance the nanocomposite’s electrostatic stability, hydrophilicity, and thermal resistance, thereby contributing to its improved colloidal behavior and structural performance. Synthesis of surface-modified TiO2 covalently bonded to a zwitterionic polymer. The grafting mechanism occurs in two main steps: first, the surface modification of TiO₂ nanoparticles, and second, the covalent bonding of polymer chains. Initially, the silane coupling agent A-174 undergoes hydrolysis in water, producing reactive silanol (Si–OH) groups. These groups react with the hydroxyl (–OH) groups on the TiO₂ surface, creating strong Si–O–Ti bonds that anchor the silane molecules to the nanoparticles. Next, zwitterionic monomers—such as AM, AMPS, NVP, and DMDAAC—polymerize through a free-radical process triggered by the APS/NaHSO₃ initiator system. The resulting polymer chains attach covalently to the vinyl groups of the silane on TiO₂, resulting in a core–shell nanostructure. In addition to covalent bonding, hydrogen bonding between amide groups and surface hydroxyl groups, along with electrostatic interactions, strengthens the interface. This grafting approach ensures even dispersion of TiO₂ in the polymer, prevents aggregation, and improves the stability and effectiveness of the nanocomposite in drilling fluids. Formulation of standard and modified water-based drilling fluids Following API 13 A-154, 22.5 g bentonite (from the National Iranian Drilling Company, NIDC) was hydrated in 350 mL distilled water for 24 h to form the base fluid. No external pH regulator (e.g., Na₂CO₃) was added because the bentonite used naturally yielded an alkaline pH of 9.2 ± 0.1 after hydration, which is sufficient for optimal platelet dispersion. Furthermore, omitting Na₂CO₃ eliminated potential interference with the zwitterionic nanocomposite’s electrostatic–steric stabilization mechanism and allowed the rheological and filtration effects to be attributed solely to the synthesized additive. The suspension was stirred continuously for 24 h at ambient temperature to ensure complete hydration and swelling of the bentonite particles, resulting in a stable colloidal structure. To evaluate the impact of the synthesized zwitterionic polymer–TiO₂ nanocomposite on the performance of the drilling fluid, a series of modified formulations were prepared. Specifically, 0, 0.11, 0.25, 0.50, 0.75, and 1.00 g of the nanocomposite was added to 350 mL portions of the hydrated base fluid. Each sample was subjected to high-speed mechanical stirring for 20 min to ensure uniform dispersion of the additive throughout the fluid matrix. All the samples were subsequently aged statically at room temperature for 16 h to promote interaction between the nanocomposite and bentonite particles. Characterization of zwitterionic polymers grafted onto TiO2 Fourier transform infrared spectroscopy Fourier transform infrared spectroscopy (FTIR) analysis was carried out via a PerkinElmer Spectrum Two CO spectrometer with a resolution of 0.5 cm⁻¹, employing the attenuated total reflectance (ATR) technique on dry powdered samples55. This method was employed to identify key functional groups and confirm the successful grafting of organic moieties onto the TiO₂ surface. The presence of characteristic absorption bands in the polymer backbone, alongside signals attributed to silane and surface-bound groups, verified the chemical interaction between the zwitterionic polymer and silanized TiO₂. FTIR confirmation of these interactions is critical for substantiating the structural integrity and chemical compatibility of the nanocomposite. X-ray diffraction analysis X-ray diffraction (XRD) patterns were recorded via an AW-XDM300 diffractometer (Asen Ware Co.) to determine the crystalline phases and assess structural integrity postpolymerization56. This technique revealed whether TiO₂ retained its crystalline form and whether polymer incorporation influenced its diffraction profile. Maintaining the anatase or rutile phase is essential for the thermal and mechanical performance of an additive in high-temperature environments. Additionally, the presence of an amorphous halo in the diffraction pattern supported the successful integration of the polymer matrix. Thermogravimetric analysis Thermal behavior was evaluated via an STA601 instrument (Damapajouh Arvin Co.) by monitoring mass loss as a function of temperature57. This allowed for the differentiation between physically adsorbed moisture, degradation of side chains, and decomposition of the main polymer backbone. Thermogravimetric analysis (TGA) confirmed the thermal stability of the nanocomposite at temperatures above 200 °C, indicating its suitability for HPHT drilling operations. Microscopic morphology characterization The surface morphology and dispersion quality were examined via field emission scanning electron microscopy (FESEM) with a Zeiss Sigma 300-HV FESEM58. This analysis confirmed the uniform distribution of TiO₂ within the polymer network, indicative of successful synthesis. Additionally, the morphology of the filter cake formed by the drilling fluid was analyzed, revealing enhanced compactness and reduced pore volume, which contributed to improved fluid loss control. For SEM, the synthesized TiO₂-functionalized zwitterionic polymer powder was first dried in a vacuum oven at 60 °C for 24 h to eliminate residual moisture. A small quantity of the dried material was placed onto carbon adhesive tape affixed to an aluminum stub. To ensure clean imaging, any excess particles were gently removed via compressed air. The mounted sample was then sputter-coated with an ~ 5 nm layer of gold to improve the surface conductivity and image clarity under high-vacuum conditions. Notably, only the solid nanocomposite powder was analyzed at this stage, excluding the full drilling fluid formulation. Zeta potential and dynamic light scattering The particle size distribution and colloidal stability were assessed via a Lite Sizer (Anton Paar). Dynamic light scattering (DLS) measurements provided insight into the hydrodynamic diameter of the particles and revealed a narrow size distribution59. Zeta potential values further confirmed the stability of the suspension, with highly negative values suggesting strong electrostatic repulsion, which prevents agglomeration and enhances dispersion, which is key for stable drilling fluid performance. Diffuse reflectance spectroscopy Diffuse reflectance spectroscopy (DRS) measurements were conducted using a Shimadzu UV-3600 spectrophotometer operating in the 200–2500 nm range. This technique provides insights into the optical behavior and bandgap energy of TiO₂ within a nanocomposite. The reduced absorption in the visible range indicated lower photoreactivity and suggested effective polymer coverage, contributing to material stability in subsurface environments. Evaluation of the drilling fluid properties A laboratory evaluation of the drilling fluid performance was conducted at Sharood University of Technology using a range of specialized instruments to measure the rheological and filtration properties based on API standards60. A Hamilton Beach Mixer was used for sample preparation, and this high-speed mixer ensured uniform dispersion of the polymer–nanocomposite additive within the bentonite slurry. Homogeneous mixing was critical for obtaining reliable and reproducible rheological and filtration data, preventing artifacts due to uneven additive distributions. Drilling fluid density Drilling fluid balance (Fann) precisely measures fluid density, a critical parameter for maintaining wellbore stability by balancing formation pressures. Accurate mud weight determination was essential for assessing the impact of the nanocomposite on the fluid hydrostatic pressure. Assessment of filtration under LPLT conditions The filtration behavior of the drilling fluids was assessed via a FANN filter press, a commonly used instrument in petroleum engineering laboratories for separating liquid filtrate from solid particles in drilling fluids. The device applies a controlled pressure to force the fluid’s liquid phase through a porous filter, leaving a solid filter cake behind. This test is important for evaluating fluid loss and the quality of the filter cake, both of which affect drilling efficiency and formation protection. In the experiment, the drilling fluid sample was placed in the filter press cell, and a pressure of 100 psi (≈ 0.69 MPa) was applied at room temperature (25 °C) to replicate LPLT conditions. The volume of filtrate was collected over a set time, and the resulting filter cake was examined for its thickness and structural strength. Owing to its ability to simulate field filtration conditions closely, this apparatus is essential for optimizing drilling fluid formulations. After each test, the filter cake was removed, and the equipment was cleaned thoroughly to ensure consistent and accurate results in subsequent tests. API filtration assessment under HPHT conditions The filtration performance of the drilling fluids under HPHT conditions was evaluated via an OFITE HPHT filter press, which is specifically designed to simulate the harsh downhole environments encountered in deep well drilling. This equipment is capable of testing drilling fluids, cement slurries, fracturing fluids, and completion fluids at HPHT, with cell volumes of 175 mL for field use and 500 mL for laboratory testing. In this study, the 500 mL model was utilized to achieve precise control and measurement. The filtration cell was carefully assembled, ensuring that all the components—such as the O-rings, valves, and filter medium—were inspected for integrity before being filled with the drilling fluid sample. The system was pressurized to 500 psi (≈ 3.45 MPa) with a backpressure of 100 psi (≈ 0.69 MPa) and heated between 120 °C and 180 °C to mimic HPHT conditions. The filtrate was collected periodically to measure fluid loss, and the filter cake formed was analyzed for thickness and density. After testing, the cell was safely depressurized, cooled, and thoroughly cleaned to preserve equipment functionality and ensure repeatable results. Strict safety protocols, including the use of protective shields and regular maintenance of seals, were followed to minimize risks during HPHT operations. This controlled approach enables accurate evaluation of the filtration characteristics and filter cake quality of the drilling fluid under demanding thermal and pressure environments. Rheological property evaluation Rheological measurements were performed via a FANN 35SA rotational viscometer at six rotational speeds (600, 300, 200, 100, 6, and 3 rpm; corresponding to shear rates of 1022, 511, 340, 170, 10.2, and 5.1 s⁻¹, respectively) in accordance with API RP 13B-160. The dial readings (θₓₓₓ) at each rotational speed were recorded, where θₓₓₓ denotes the viscometer dial reading at X rpm. The apparent viscosity (AV), plastic viscosity (PV), and yield point (YP) were calculated via the API formulas: where 0.4788 is the conversion factor from lb/100 ft² to Pa. The gel strengths (10 s and 10 min) were measured as the maximum dial reading observed at a shear rate of 0.51 s⁻¹ (3 rpm) after static rest and are reported as Pa and lb/100 ft². This dual-unit presentation allows results to be interpreted in both SI terms for academic readers and API field units for industry practitioners. The plastic viscosity of the drilling fluid represents the internal resistance to flow caused by the friction between the suspended particles and the continuous phase. It is a critical parameter that influences the ability of a fluid to carry cuttings and maintain wellbore stability under dynamic conditions (Eq. 1). The yield point represents the minimum shear stress required to initiate fluid flow and serves as an important indicator of the fluid’s ability to suspend and transport drill cuttings (Eq. 2). Higher yield points enhance the wellbore cleaning efficiency and prevent solids from settling, thus reducing the risk of wellbore instability. The apparent viscosity reflects the fluid’s resistance to shear under flow conditions, influencing its capacity to maintain wellbore stability and effectively transport cuttings. It also provides insight into the fluid’s pumpability and flow resistance (Eq. 3). The gel strength, which indicates the fluid’s ability to form a gel structure when static, was measured at two intervals: after 10 s and after 10 min of rest. The initial gel strength (10 s) indicates the immediate resistance to flow after a pause, whereas the 10-minute measurement assesses the fluid’s long-term suspension stability. These values were obtained by allowing the fluid to rest inside the viscometer and then applying a low shear rate to record the maximum dial deflection. Gel strength measurements are critical for evaluating the fluid’s ability to prevent particle settling during downtime, ensuring efficient drilling operations. Rheological models of drilling fluids The Bingham model describes fluids known as Bingham plastics, which do not begin to flow until a critical shear stress (τ₀) is exceeded. Once this yield stress is surpassed, the fluid flows with a constant plastic viscosity (µp), following a linear shear stress–shear rate relationship. This model is particularly suitable for characterizing drilling fluids that exhibit initial gel-like behavior followed by linear flow under stress (Eq. 4). The power law model is used to characterize shear-dependent non-Newtonian fluids, including both shear-thinning and shear-thickening types. In this model, shear stress (τ) is related to the shear rate (γ̇) through the consistency index (K) and the flow behavior index (n). Fluids with n < 1 are shear thinning, whereas those with n > 1 are shear thickening. This model effectively describes the viscosity variation across different shear rates, which is typical of many drilling fluids (Eq. 5). The Herschel–Bulkley model combines the yield stress component of the Bingham model with the nonlinear flow characteristics of the power law model. It includes three parameters: yield stress (τ₀), K, and the flow behavior index (n). This model offers enhanced flexibility for describing drilling fluids that exhibit both a finite yield stress and complex nonlinear rheological behavior, such as shear-thinning or shear-thickening under various flow conditions (Eq. 6). Results and discussion Characterization of zwitterionic polymers grafted onto TiO2 Fourier transform infrared spectroscopy As shown in Fig. 3, three distinct peaks appear at approximately 660, 610, and 524 cm⁻¹ in the FTIR spectrum of pure TiO₂. These peaks correspond to the stretching and bending vibrations of the Ti–O–Ti and Ti–O bonds. The peak near 660 cm⁻¹ is attributed to the stretching vibration of Ti–O–Ti bonds, whereas the peaks at 610 and 524 cm⁻¹ are assigned to the bending and stretching vibrations of other Ti–O bonds. These spectral features confirmed the crystalline structure and purity of the TiO₂ sample. FTIR spectra of pure TiO₂, modified TiO₂, zwitterionic polymers, modified TiO₂, and zwitterionic polymers grafted onto TiO₂. As shown in Fig. 3, the FTIR spectrum of the pure zwitterionic polymer shows distinct absorption bands that confirm the presence of key functional groups in the polymer structure. The broad band at approximately 3400 cm⁻¹ is attributed to the stretching vibrations of the hydroxyl (–OH) and amine (–NH₂) groups, which are typical of the polyacrylamide backbone. The peak near 2930 cm⁻¹ corresponds to C–H stretching vibrations from methyl and methylene groups. The absorption bands between 1570 and 1410 cm⁻¹ are related to the N–H bending and C = O stretching vibrations of amide groups, indicating a polyacrylamide structure. In the region of 1100–1000 cm⁻¹, the peaks are assigned to C–N and S = O stretching vibrations from the sulfonic acid groups in the AMPS units, confirming the presence of zwitterionic functionalities. Below 900 cm⁻¹, the absorption bands correspond to the bending and twisting vibrations of alkyl groups and other polymer backbone motions. Overall, these FTIR features verify the successful synthesis of the zwitterionic polymer with the expected chemical structure. As shown in Fig. 3, the FTIR spectrum of the silane A174-modified TiO₂ nanoparticles reveals a broad absorption band near 3227 cm⁻¹, corresponding to the stretching vibrations of surface hydroxyl (–OH) and amine (N–H) groups. This indicates the presence of adsorbed water and residual surface functionalities. A distinct peak at 2957 cm⁻¹ is associated with C–H stretching from alkyl groups in the silane, confirming successful surface grafting of organic moieties. An absorption band is observed at 1670 cm⁻¹, which can be attributed to the C = C stretching vibration of the vinyl group in the γ-methacryloxypropyltrimethoxysilane (A-174) used for TiO₂ surface modification. This residual vinyl functionality indicates incomplete consumption during the silanization step and provides reactive sites for covalent bonding with monomers in the subsequent polymerization process. In the mid-infrared region, peaks between 1459 and 1408 cm⁻¹ are attributed to bending vibrations of the –CH₃ and –CH₂– groups, which are characteristic of alkyl silanes. Strong signals in the range of 1093–1020 cm⁻¹ correspond to Si–O–Si or Si–O–Ti stretching modes, indicating the formation of covalent bonds between the silane and TiO₂ surfaces. The weaker absorption at approximately 920–980 cm⁻¹ further supports the presence of Ti–O–Si linkages. In the lower frequency region, prominent bands at 660, 610, and 524 cm⁻¹ represent Ti–O–Ti and Ti–O stretching vibrations, confirming the crystalline nature of TiO₂, which is typically associated with the anatase or rutile phases. As shown in Fig. 3, the FTIR spectrum of the synthesized zwitterionic nanocomposite, in which modified TiO₂ is embedded within a polymer matrix (AAND), shows a broad band at 3406 cm⁻¹ due to –OH and –NH₂ stretching vibrations from the acrylamide-based polymer backbone. The peak at 2930 cm⁻¹ arises from aliphatic C–H stretching, confirming the presence of methyl and methylene groups. The peaks at 1574 cm⁻¹ and 1410 cm⁻¹ are related to N–H bending and C = O stretching, respectively, indicating amide functionalities from polyacrylamide. A distinct band at 1198 cm⁻¹ corresponds to the S = O stretching of AMPS units. The additional bands at 1118 and 1034 cm⁻¹ are attributed to Si–O–Ti or C–N vibrations, confirming the successful integration of silane-functionalized TiO₂ into the polymer network. A minor peak at ~ 924 cm⁻¹ may be due to residual Ti–O–Si or C–O bonding. Finally, the strong absorption bands at 660, 610, and 524 cm⁻¹ reaffirmed the retention of Ti–O–Ti bonds, indicating that the TiO₂ crystalline structure remained stable during the polymerization process. Overall, the stacked FTIR spectra (Fig. 3) distinctly illustrate the chemical evolution from pure TiO₂ to silane-modified TiO₂, zwitterionic polymers, and the final nanocomposite. The characteristic Ti–O–Ti stretching and bending vibrations (660–524 cm⁻¹) remained evident across all the spectra, confirming the structural retention of TiO₂ after surface modification and grafting. New absorption bands corresponding to Si–O–Ti (1100–1000 cm⁻¹), C = O and N–H (1570–1410 cm⁻¹), and S = O (1198 cm⁻¹) vibrations appeared sequentially, demonstrating the successful grafting of silane and incorporation of zwitterionic polymer functionalities. The coexistence of organic (amide, sulfonate, quaternary ammonium, and alkyl) and inorganic (Ti–O and Si–O) groups confirms the formation of a chemically bonded hybrid structure. These spectral changes are in agreement with the XRD results (Fig. 4), which confirmed the preservation of the anatase phase of TiO₂, and the SEM observations (Fig. 5), which revealed morphological transitions from aggregated TiO₂ to a uniformly coated polymeric matrix. Additionally, TGA data (Fig. 6) supported the occurrence of grafting through distinct thermal decomposition stages, confirming the formation of a thermally stable nanocomposite. XRD analysis of the zwitterionic polymer grafted onto TiO2. SEM images of zwitterionic polymers grafted onto TiO2 nanoparticles at scales of a) 10 μm, b) 2 μm, c) 1 μm and d) 100 nm. TGA and DSC curves of TiO2, zwitterionic polymers, and zwitterionic polymers grafted onto TiO2. X-ray diffraction analysis As shown in Fig. 4, the XRD pattern of the zwitterionic polymer nanocomposite functionalized with TiO₂ nanoparticles displays distinct reflections over a 2θ range of 10° to 80°. The prominent diffraction peaks at 25.3°, 37.8°, 48.0°, and 54.0° are assigned to the (101), (004), (200), and (211) planes of the anatase phase of TiO₂, whereas the weaker peak at 27.4° (110) suggests the minor presence of the rutile phase. The broad, diffuse band observed between 15° and 30° is indicative of the amorphous nature of the polymer matrix. The absence of additional peaks confirms the structural purity of the nanocomposite and the absence of unreacted or crystalline impurities. The dominance of the anatase phase, known for its stability and enhanced surface activity, contributes to improved thermal durability and mechanical performance, which are critical for drilling fluid systems. The lack of additional crystalline peaks confirms the structural purity of the composite and the absence of unreacted or crystalline impurities. The dominance of the anatase phase, known for its high surface area and surface reactivity, enhances the interfacial interaction between the inorganic TiO₂ and the polymer matrix. This structural feature contributes to improved dispersion stability, thermal resistance, and mechanical integrity, thereby enhancing the overall performance quality of the nanocomposite as an additive in drilling fluid systems. Thermogravimetric analysis As shown in Fig. 6, TGA of the TiO₂ nanoparticles revealed excellent thermal stability over the temperature range of 25–950 °C. The sample showed minimal weight loss, less than 2%, which can be attributed primarily to the removal of adsorbed moisture and surface impurities. The absence of significant weight loss steps confirms the high purity and crystalline stability of the TiO₂ sample under the applied thermal conditions. Differential scanning calorimetry (DSC) results supported these findings, showing only minor endothermic events at lower temperatures, likely corresponding to the desorption of surface water. At higher temperatures, the DSC curve remained relatively flat, indicating that no major phase transitions or decomposition processes occurred throughout the heating cycle. Overall, the combined TGA and DSC analyses demonstrate the strong thermal resistance of the TiO₂ nanoparticles, confirming their suitability for applications requiring high thermal endurance. These results align well with the known properties of anatase and rutile TiO₂ phases, which are recognized for their robust crystal structures and minimal thermal degradation. The thermal properties of the synthesized zwitterionic polymers were examined via TGA and DSC. The TGA curve (Fig. 6) reveals three distinct mass loss stages. The first stage occurs below 120 °C, with a small weight loss (~ 1–2%), which is attributed to the evaporation of physically adsorbed water molecules due to the hydrophilic nature of the zwitterionic groups. The second stage, between approximately 200 °C and 350 °C, results in significant weight loss, corresponding to the decomposition of the pendant functional groups and partial cleavage of the side chains. The third stage, from 350 °C to approximately 500 °C, is associated with the degradation of the main polymer backbone. Above 500 °C, a small fraction of residue remains, indicating low char formation, which is typical for purely organic zwitterionic materials. DSC analysis further supported these findings. A small endothermic event is observed below 120 °C, which is consistent with moisture removal. No sharp melting peak is detected, which confirms the amorphous nature of the polymer. Instead, a broad exothermic transition is observed between 200 °C and 400 °C, indicating overlapping degradation reactions and possible crosslinking events before complete breakdown. Overall, the zwitterionic polymer exhibited moderate thermal stability, with degradation starting at approximately 200 °C and complete decomposition occurring at ~ 500 °C. The absence of crystalline melting behavior aligns with the expected amorphous morphology of such polymers, where the irregular arrangement of ionic and neutral segments prevents ordered packing. These observations are in agreement with previously reported thermal profiles of similar zwitterionic systems in the literature. As shown in Fig. 6, TGA of the zwitterionic polymer–TiO₂ nanocomposite revealed a multistage decomposition profile. An initial mass loss of approximately 10% is observed between 100 °C and 300 °C, which is attributed primarily to the evaporation of physically adsorbed water and residual synthesis solvents. This behavior is characteristic of zwitterionic polymers, which possess strong hygroscopic tendencies due to ionic functionalities such as sulfonate and quaternary ammonium groups. A moderate weight loss begins at approximately 300 °C, corresponding to the thermal degradation of labile functional moieties and side chains. This includes decomposition of sulfonate groups (e.g., from AMPS units) and quaternary ammonium groups, releasing volatile species such as SO₂ and NH₃. The most significant mass loss occurs between 400 °C and 700 °C, marking the breakdown of the polymer’s main carbon backbone (e.g., polyacrylamide or polyacrylate chains), which yields gases such as CO₂, CO, and light hydrocarbons. The inclusion of TiO₂ is known to slightly catalyze polymer degradation, resulting in a lower onset temperature; however, approximately 30% of the total mass remains as stable residue, consisting primarily of TiO₂ nanoparticles and carbonaceous char. Above 700 °C, the polymer matrix is fully decomposed, and the remaining mass comprises thermally inert TiO₂ and residual carbon. The thermal resilience of TiO₂ (melting point > 1800 °C) ensures its structural integrity under extreme conditions, making the nanocomposite suitable for high-temperature applications. DSC further supported the TGA findings. A prominent endothermic peak is observed between 400 °C and 600 °C, centered near 500 °C, corresponding to the degradation of the polymer matrix or possible crystalline transitions. Minor endothermic features below 300 °C are associated with moisture loss and minor structural rearrangements. Notably, the thermal transitions occur well above the operational range of drilling fluids (< 220 °C), confirming the excellent thermal stability of the nanocomposite in high-temperature drilling environments. Overall, as shown in Fig. 6, the combined TGA and DSC curves clearly reveal the distinct thermal behaviors of TiO₂, the zwitterionic polymer, and the TiO₂–polymer nanocomposite. Pure TiO₂ exhibited exceptional thermal stability, with negligible mass loss (< 2%) up to 900 °C, confirming its crystalline integrity and absence of organic impurities. In contrast, the zwitterionic polymer showed three characteristic weight-loss stages: below 120 °C (moisture removal), between 200 and 350 °C (decomposition of side-chain and ionic groups), and above 350 °C (main-chain degradation), resulting in almost complete mass loss by 500 °C. For the TiO₂–polymer nanocomposite, the thermal profile displayed intermediate behavior between the two components, reflecting the synergistic effect of polymer grafting on the inorganic surface. The initial weight loss (100–300 °C) was slightly greater because of the hygroscopic zwitterionic groups, whereas the main degradation stage shifted to higher temperatures (400–700 °C), indicating improved thermal resistance and strong interfacial bonding between TiO₂ and the polymer chains. Approximately 30% of the total mass remained as stable residue, corresponding to the thermally inert TiO₂ content. These findings confirm that grafting enhances polymer stability through inorganic reinforcement and covalent coupling, which is consistent with the endothermic DSC transitions centered at approximately 500 °C. Scanning electron microscopy As shown in Fig. 7a, in the pure TiO2 sample, the particles appeared as dense agglomerates with no clear boundaries between them. This strong tendency to agglomerate is mainly due to high surface energy and van der Waals interactions, which reduce the effective surface area and limit the performance of the particles in practical applications. In contrast, the modified TiO2 (Fig. 7b) also showed some degree of aggregation; however, the nature of this aggregation was different. The particles formed more uniform clusters with clearer boundaries, indicating that the silane layer reduced the surface energy and prevented random, compact agglomeration. Although silane modification did not completely eliminate particle aggregation, it significantly changed its nature, leading to better dispersion, a greater effective surface area, and improved stability in the medium. This behavior confirms the role of silane in enhancing the compatibility and dispersion stability of TiO2 in polymeric or aqueous systems. SEM images of pure TiO2 nanoparticles a) and modified TiO2 nanoparticles b) at a scale of 200 nm. Figure 5 shows the SEM morphology of zwitterionic polymers grafted onto TiO2 nanoparticles at scales of 10 μm, 2 μm, 1 μm, and 100 nm. SEM images were acquired at magnifications of 2800×, 5000×, 30,000×, and 100,000× to investigate the surface morphology and particle distribution. The TiO₂ nanoparticles appear as bright spots embedded within the polymer matrix, demonstrating a uniform dispersion with limited agglomeration. This homogeneous distribution indicates successful incorporation and stabilization of the nanoparticles, which is expected to contribute to enhanced drilling fluid performance—particularly in the formation of compact filter cakes and the minimization of fluid loss. Some surface cracks are visible in the polymer structure; these cracks are attributed to sample dehydration under vacuum, where the evaporation of water or volatile components—strongly retained by zwitterionic groups—generates internal stress. These features are considered artifacts of the preparation process and do not reflect inherent mechanical weaknesses of the material. The effective nanoparticle stabilization is further supported by a high zeta potential value of − 75 mV, indicating strong colloidal stability. This, in combination with the observed morphology, suggests that the nanocomposite is well suited for high-temperature drilling operations, with potential stability up to 200–220 °C. Figure 8 displays the elemental mapping and energy-dispersive X-ray spectroscopy (EDS) results for the synthesized zwitterionic polymer–TiO₂ nanocomposite. The elemental maps, color-coded for carbon (C), oxygen (O), sodium (Na), sulfur (S), and titanium (Ti), demonstrate a uniform spatial distribution of these constituents across the sample, confirming the homogeneous dispersion of TiO₂ nanoparticles within the polymer matrix. Elemental composition analysis (EDS/EDX) of the zwitterionic polymer grafted onto TiO2 nanoparticles. The EDS spectrum reveals characteristic Kα₁ peaks for the identified elements—Ti (~ 4.5 keV), S (~ 2.3 keV), and C (~ 0.3 keV)—which confirm their presence and provide insight into their bonding environments. Quantitative EDS analysis indicated that carbon constituted the largest portion (50.58 wt%, 60.44 at%), representing the organic polymer framework. Oxygen (35.41 wt%, 31.76 at%) is linked to both the polymeric functionalities and the TiO₂ component, as well as potential adsorbed water molecules. Sodium (9.59 wt%, 5.98 at%) and sulfur (3.35 wt%, 1.50 at%) are associated with sulfonate groups derived from monomers such as AMPS, which contribute to the fluid loss control capability of the nanocomposite. SEM images revealed that the TiO₂ nanoparticles were uniformly dispersed within the polymer matrix, forming a continuous phase with minimal visible agglomeration. This indicates effective surface modification and good interfacial compatibility between the inorganic core and the polymer shell. The EDS results revealed C, O, S, and Ti, which is consistent with the expected composition of the zwitterionic polymer–TiO₂ nanocomposite. These observations confirmed the formation of a well-dispersed organic–inorganic hybrid structure. To investigate the filter cake morphology, samples were gently scraped from the filter media after filtration tests and then air-dried at room temperature (approximately 25 °C) for 24 h to preserve structural features. The dried samples were fractured to expose internal sections, mounted on carbon tape over aluminum stubs, and coated with a thin gold layer (~ 5 nm) for SEM analysis under high-vacuum conditions. SEM imaging was conducted on filter cakes produced under two sets of conditions: (a and b) ambient temperature and pressure (25 °C, 100 psi ≈ 0.69 MPa) and (b and c) elevated temperature and pressure (140 °C, 500 psi ≈ 3.45 MPa). For each case, two types of drilling fluids were examined: a base fluid containing only bentonite and a modified formulation incorporating 1 gram of the synthesized zwitterionic polymer grafted onto TiO₂ nanoparticles. As shown in Fig. 9a, the filter cake derived from the base fluid at low temperature and pressure exhibited a highly porous and rough surface, with visible cracks and delaminated layers. This indicates that a weak, loosely packed structure is prone to excessive fluid loss. In contrast, Fig. 9b, representing the additive-containing sample under the same conditions, shows a significantly smoother and denser surface morphology. The microstructure displays fewer cracks and lower porosity, confirming the beneficial role of the TiO₂–polymer nanocomposite in improving cake integrity and sealing performance. SEM images at the 2 μm scale were obtained for four distinct drilling fluid filter cake samples: a) the base drilling fluid at low temperature and pressure (25 °C, 100 psi ≈ 0.69 MPa), b) the modified drilling fluid containing the zwitterionic polymer–TiO₂ additive under the same low-temperature conditions, c) the base drilling fluid at HPHT (140 °C, 500 psi ≈ 3.45 MPa), and d) the modified drilling fluid at HPHT. As shown in Fig. 9c, at HPHT, the base fluid filter cake intensifies pore formation and structural disruption. The thermal and mechanical stresses under these conditions promote the expansion of voids and exacerbate permeability issues. However, Fig. 9d that when the nanocomposite additive is introduced, many of the pores are partially or fully filled. This filling effect results from TiO₂ nanoparticles occupying interstitial spaces and the zwitterionic polymer enhancing particle–particle cohesion through electrostatic interactions and hydrogen bonding. The reduced porosity and increased compactness of the filter cake in Fig. 9d present multiple advantages: lower fluid permeability, which minimizes filtrate invasion into the formation. The improved thermal stability enables better performance at high downhole temperatures. The enhanced mechanical robustness of the filter cake led to better wellbore support and reduced formation damage. Taken together, these observations confirm that the TiO₂ grafted onto zwitterionic polymer acts synergistically with bentonite to form a well-structured, low-permeability filter cake, particularly under HPHT and LPLT conditions, thus making it a strong candidate for advanced drilling fluid formulations. Zeta potential and dynamic light scattering As shown in Fig. 10, the zeta potential measurements show an asymmetrical distribution, with the primary peak between − 40 mV and − 20 mV and a maximum relative frequency of approximately 0.6%. This strongly negative surface charge results from the anionic groups in the zwitterionic polymer and the surface properties of TiO₂. The average zeta potential, measured at approximately − 50 to −40 mV, signifies good electrostatic stability. As values above ± 30 mV typically prevent particle aggregation, this confirms that the nanocomposite remains well dispersed and resistant to sedimentation. The observed zeta potential range (–200 to 50 mV) indicates a relatively consistent surface charge among the particles, with only a minor presence of weakly charged species. This high colloidal stability contributes to the reliability of the drilling fluid by maintaining a uniform particle distribution and stable rheological behavior under dynamic wellbore conditions. The zeta potentials of the materials. The zeta potential results revealed that the pure TiO₂ nanoparticles had moderately negative values (− 25 to − 35 mV) and a single narrow size peak at 20–150 nm, indicating relatively stable, nonaggregated particles (Fig. 10; Table 2). After silane modification, the zeta potential shifted to − 40 to − 60 mV, suggesting improved electrostatic stability; however, the appearance of two size peaks (~ 100 nm and ~ 8000 nm) indicated partial clustering and a multiscale structure. The zwitterionic polymer exhibited more negative zeta potentials (− 50 to − 80 mV) with a broad size distribution (10–5000 nm), reflecting soft aggregates and a flexible polymeric network. Bentonite had lower zeta potentials (− 15 to − 25 mV) and a very broad particle size range (500–20000 nm), which is consistent with heterogeneous large aggregates. In contrast, the zwitterionic polymer covalently bonded to the TiO₂ nanoparticles presented the highest colloidal stability (− 20 to − 40 mV), with two main peaks at ~ 2325 nm and ~ 2733 nm. The slow, smooth decay of the autocorrelation function indicated a stable multiscale structure with uniformly dispersed small, medium, and large particles within the polymer matrix. Compared with bentonite alone, the bentonite slurry containing zwitterionic polymer grafted onto TiO₂ nanoparticles presented an intermediate zeta potential between − 40 and − 55 mV, indicating enhanced electrostatic stability. The particle size distribution showed multiple peaks ranging from 800 to 6000 nm, reflecting a heterogeneous system with moderate aggregation. The moderately smooth decay of the autocorrelation function suggests improved dispersion and stability of the suspension, contributing to better filtration performance in drilling fluids. Table 2The zeta potential, particle size, and autocorrelation of the materials.MaterialZeta Potential (mV)Particle Size (DLS) (nm)Autocorrelation Function DescriptionPure TiO₂ Nanoparticles−25 to −35Single peak approximately 20 ~ 150Rapid decay of g² at 10⁻⁸ to 10⁻³ s, indicating small, stable particlesModified TiO₂ Nanoparticles−40 to −60Two peaks: ~100 nm and ~ 8000 (clusters)Slower decay of g², indicating cluster formation and multiscale structureZwitterionic Polymer−50 to −80Broad distribution: 10 to 5000Gradual decay of g² with delay time, indicating soft aggregates and polymeric structureBentonite−15 to −25Multiple peaks: 500 to 20,000Irregular decay of g², indicating heterogeneous particles and large aggregatesBentonite + Zwitterionic Polymer grafted onto TiO−40 to −55Multiple peaks: 800 to 6000Moderately smooth decay of g², indicating improved stability and moderate aggregation with multiscale particle sizesZwitterionic Polymer Covalently Bonded to TiO₂ Nanoparticles−40 to −20Two main peaks: ~2325 and ~ 2733Slow decay of g², stable with minimal early fluctuations; multiscale structure with small, medium, and large particle The zeta potential, particle size, and autocorrelation of the materials. The particle size distribution by intensity for the zwitterionic polymer modified with TiO₂ nanoparticles displays two main peaks. As shown in Fig. 11a, the first and most prominent peak appears near 10,000 nm (10 μm), with an intensity exceeding 600%, suggesting the formation of stable, uniform microsized clusters of TiO₂ within the polymer network. These clusters likely serve as structural building blocks in the drilling fluid, aiding the development of a compact and low-permeability filter cake—which is especially beneficial under high-temperature conditions where mechanical stability is essential. A second, less intense peak at approximately 100,000 nm (100 μm) points to the presence of a few larger aggregates, which may contribute to a multiscale particle framework. This structural diversity can improve rheological properties such as viscosity and yield point, enhancing the suspension stability and transport efficiency of solids in HPHT environments such as deep drilling wells. The absence of significant peaks below 1000 nm indicates that most of the TiO₂ nanoparticles are chemically integrated into the polymer, minimizing free nanoparticles and supporting excellent colloidal stability—an important feature of high-performance drilling fluid systems. a) Particle size, b) correlation function analysis of the zwitterionic polymer grafted onto TiO₂ nanoparticles. As shown in Fig. 11b, the autocorrelation function (g²) obtained via DLS shows a nearly constant value close to one during the early delay times (10⁻⁸ to 10⁻³ s), indicating a stable system with minimal initial fluctuation. As the delay time increases (10⁻³ to 10⁻¹ s), the autocorrelation gradually decays, reflecting normal diffusion-driven motion in larger particles. A more noticeable increase in 1–g²(t) at longer delays (approaching 10¹ s) may result from background noise or slow-moving large aggregates. These patterns align with the observed high hydrodynamic diameter (~ 8932 nm) and broad particle size distribution, including peaks at 2325 nm and 2733 nm, confirming the coexistence of small, medium, and larger structures in the dispersion. This diverse size range supports the formation of a stable, functionally graded microstructure—favorable for controlling fluid loss and mechanical strength in advanced drilling fluids. Diffuse reflectance spectroscopy analysis The diffuse reflectance spectrum of pristine TiO₂ nanoparticles (Fig. 12) exhibits strong optical absorption in the ultraviolet (UV) region, with the maximum absorbance (~ 0.88) occurring near 315 nm. This pronounced UV absorption is a well-known characteristic of TiO₂ due to its wide band gap, enabling efficient absorption of high-energy photons. From 200 nm to 315 nm, the absorbance gradually increased, followed by a slight decrease toward 327 nm. Beyond this point, a steady decrease in absorbance is observed, dropping below 0.5 at approximately 386 nm. In the visible range (400–700 nm), the absorbance continues to decrease, reaching values below 0.15 after ~ 660 nm, and remains consistently low (< 0.1) throughout the near-infrared region (700–1500 nm). This optical profile confirms the high UV sensitivity of TiO₂ while maintaining minimal absorption in the visible and IR ranges. From an application standpoint, such behavior is advantageous for photoprotective purposes in drilling fluids. Strong UV absorption can shield organic additives from photodegradation during storage or sunlight exposure, whereas low visible/IR absorbance ensures minimal interference with optical monitoring systems in downhole environments. Compared with TiO₂-functionalized zwitterionic polymers, pristine TiO₂ has a similar UV response but lacks surface modifications that can further enhance dispersion stability. Diffuse reflectance spectroscopy analysis of TiO₂ nanoparticles and zwitterionic polymers grafted onto TiO₂ nanoparticles. Diffuse reflectance spectroscopy analysis was conducted to investigate the material’s optical properties, which may influence the stability and performance of drilling fluids under various lighting conditions. As shown in Fig. 12, the DRS of the zwitterionic polymer grafted onto TiO₂ nanoparticles was evaluated as a potential additive for drilling fluid systems. The DRS curve shows a prominent absorption peak in the ultraviolet (UV) region, with a maximum absorbance of approximately 1.4 near 300 nm. This strong UV response is characteristic of TiO₂-containing materials and reflects their ability to absorb high-energy light, which can help protect sensitive fluid components from UV-induced degradation during storage or field use. As the wavelength increases, the absorbance decreases sharply, falling below 0.5 at approximately 420 nm. In the visible to near-infrared range (beyond 500 nm up to 1500 nm), the absorbance remains very low, remaining below 0.1. This optical behavior is advantageous in drilling applications: high UV absorbance offers photoprotection, whereas low visible and infrared absorbances ensure minimal interference with optical sensors and monitoring tools commonly used in downhole environments. These results confirm the optical compatibility of TiO₂ grafted onto zwitterionic polymers, supporting its application as a stable and efficient additive in advanced drilling fluid formulations. In practical drilling operations, especially during surface storage or exposure to direct sunlight, drilling fluids are continuously subjected to ultraviolet (UV) radiation. This exposure leads to photodegradation of organic components, resulting in reduced viscosity, altered chemical stability, and impaired overall performance. The incorporation of TiO₂ grafted onto zwitterionic polymers with strong UV absorption effectively prevents such degradation by absorbing and dissipating high-energy UV photons. This photoprotective behavior ensures the long-term stability of fluid properties and preserves the integrity of additives during handling and storage. In high-radiation environments such as offshore platforms or arid regions, this optical shielding is essential for maintaining fluid efficiency and operational reliability. Rheological characteristics As shown in Fig. 13a, plastic viscosity, measured in centipoise (cP or mPa·s), reflects the internal resistance of a drilling fluid to flow under shear, which is influenced primarily by the fluid’s continuous phase and solid interactions. As shown by the data, the PV remained constant at 7 cP or mPa·s without additive and with 0.11 g of additive, then progressively increased to 8 cP or mPa·s (0.25 g), 10 cP or mPa·s (0.50 g), and 13 cP or mPa·s (0.75 g) and peaked at 15 cP or mPa·s with 1 g of additive. This trend indicates that the zwitterionic TiO₂-modified polymer enhances the viscosity, likely due to stronger interparticle interactions and structural thickening. Increased PV benefits drilling operations by improving cuttings transport and stabilizing borehole walls, especially under high shear rates encountered during circulation, thereby supporting better hydraulic performance. The PV of the zwitterionic polymer alone increased from 7 to 11.5 cp. at higher concentrations, reflecting moderate thickening of the fluid. In contrast, the TiO₂–polymer nanocomposite reached higher PV values in the range of 12 to 15 cp. under the same conditions. This direct comparison indicates that although the polymer itself improves particle dispersion and viscosity, the incorporation of TiO₂ nanoparticles provides additional network reinforcement, leading to stronger resistance against shear. a) Plastic viscosity, b) yield point, c) apparent viscosity, and d) gel strength of the base drilling fluid, and modified drilling fluid with zwitterionic polymers grafted onto TiO2 and zwitterionic polymers. As shown in Fig. 13b, the yield point, reported in lb/100 ft², denotes the minimum shear stress required to initiate fluid movement and is closely linked to the fluid’s ability to suspend solids. The measured YP increased from 37 lb/100 ft² (17.72 Pa) in the base fluid to 42 lb/100 ft² (20.11 Pa) at 0.11 g additive, slightly decreased to 39 lb/100 ft² (18.67 Pa) at 0.25 g, and then rose sharply to 53 lb/100 ft² (25.38 Pa) at 0.50 g, 65 lb/100 ft² (31.12 Pa) at 0.75 g, and 80 lb/100 ft² (38.30) at 1 g. This pattern suggests enhanced gel structure development with increasing additive concentration, improving the suspension and carrying capacity of the fluid. A higher YP is especially beneficial under low shear conditions, such as during tripping or slow circulation, as it helps maintain the suspension of drill cuttings and prevents settling, ultimately promoting cleaner wellbores and improved operational efficiency. For the zwitterionic polymer system, the YP increased steadily from 37 to 68 lb/100 ft² as the polymer concentration rose from 0 to 1 g. The slight increase at low concentrations (0.11–0.25 g) suggests limited structural reinforcement, whereas more significant improvements were observed above 0.50 g, where the YP values reached 45–68 lb/100 ft². This trend reflects the progressive development of intermolecular interactions between the polymer chains and bentonite particles, which increased the internal network strength of the fluid. However, the maximum YP values of the polymer-only system remained lower than those of the TiO₂–polymer nanocomposite, confirming that nanoparticle grafting provides additional structural bridging and stronger gel formation under shear. As shown in Fig. 13c, the increase in both plastic and apparent viscosity with increasing nanocomposite loading can be attributed to the formation of a semi-interconnected network between the polymer matrix and TiO₂ nanoparticles. These nanoparticles, which are grafted onto zwitterionic copolymers, serve as physical crosslinking points, limiting polymer chain mobility and enhancing intermolecular interactions. Additionally, electrostatic interactions between the zwitterionic functional groups and bentonite particles contribute to network structuring, resulting in increased resistance to shear. This mechanism is supported by SEM images (Fig. 9), which show uniform dispersion and localized clustering at higher additive concentrations—indicative of structural bridging. The apparent viscosity, reported in cP or mPa·s, reflects the overall resistance of the fluid to flow under specific shear rates. The measured AV values show a consistent increasing trend with increasing additive dosage: from 25.5 cP or mPa·s without additive to 28 cP or mPa·s at 0.11 g, 27.5 cP or mPa·s at 0.25 g, 36.5 cP or mPa·s at 0.50 g, 45.5 cP or mPa·s at 0.75 g, and 55 cP or mPa·s at 1 g. This progression demonstrates the thickening effect of the nanocomposite, which enhances fluid stability and pumpability. An improved AV is particularly advantageous for drilling operations, as it enhances the hole cleaning efficiency, controls fluid invasion into formations, and supports a more stable pressure profile across the wellbore. The apparent viscosity (AV) of the drilling fluids containing the zwitterionic polymer gradually increased with increasing polymer concentration. The AV values increased from 25.5 mPa·s for the base mud to 26.0, 26.8, 28.0, 34.0, and 40.0 mPa·s at polymer concentrations of 0.11, 0.25, 0.5, 0.75, and 1.0 g, respectively. This trend indicates that the polymer enhances the internal structure of the fluid. Nevertheless, compared with the TiO₂–polymer nanocomposite, the polymer-only fluids show lower AV at the same concentrations. For example, at 1.0 g, the polymer-only AV is 40 mPa·s, whereas the TiO₂–polymer fluid reaches 55 mPa·s. These results demonstrate that TiO₂ nanoparticles significantly improve viscosity and contribute to stronger thixotropic behavior. Overall, while the zwitterionic polymer moderately increases AV, grafting with TiO₂ provides a much more pronounced enhancement. As shown in Fig. 13d, gel strength, expressed in lb/100 ft², indicates the ability of the fluid to form a weak gel structure during static periods—important for suspending solids when circulation stops. Measurements were taken at two time intervals: 10 s and 10 min. For the 10-second interval, the values increase from 31 lb/100 ft² at 0 g to 51 lb/100 ft² at 1 g. For the 10-minute interval, the gel strength values move from 39 lb/100 ft² (0 g) to 34 lb/100 ft² (0.11 g), 38 lb/100 ft² (0.25 g and 0.50 g), and then increase to 46 lb/100 ft² (0.75 g) and 53 lb/100 ft² (1 g). The gel strengths of the drilled fluids were compared for the zwitterionic polymer alone and the TiO₂–polymer nanocomposite at 10 s and 10 min intervals. For the polymer-only mud, the gel strength ranged from 27 to 38 lb/100 ft² at 10 s and 34–40 lb/100 ft² at 10 min, indicating moderate structural development. In contrast, the TiO₂–polymer nanocomposite exhibited greater gel strength across all concentrations, increasing from 31 to 51 lb/100 ft² at 10 s and 39–53 lb/100 ft² at 10 min. This finding indicates that grafting TiO₂ nanoparticles significantly enhances the gel network, improves particle suspension, reduces settling, and provides stronger thixotropic behavior. Overall, while the zwitterionic polymer alone contributes to gel formation, the TiO₂–polymer nanocomposite demonstrates superior performance in reinforcing the fluid’s gel structure. The PV, AV, and YP of the drilling fluids increased with increasing concentration of TiO₂ grafted onto the zwitterionic polymer nanocomposite (Fig. 13a-c; Table 3). For direct comparison, fluids prepared with the same zwitterionic polymer without TiO₂ functionalization were also evaluated via rheological data reported in prior studies52. At a 1.00 g·concentration of the zwitterionic polymer in 350 mL, the polymer-only formulation yielded PV = 12 mPa·s, AV = 18 mPa·s, and YP = 5 Pa (10.44 lb/100 ft²), all of which were lower than the corresponding values for the TiO₂–polymer fluid (PV = 15 mPa·s, AV = 55 mPa·s, YP = 38.30 Pa [80.0 lb/100 ft²]). Table 3Comparative rheology of the base and modified drilling fluids.Additive (g)Plastic Viscosity (cP or mPa·s)Yield Point (lb/100 ft² or Pa)Apparent Viscosity (cP or mPa·s)10-sec Gel Strength (lb/100 ft² or Pa)10-min Gel Strength (lb/100 ft² or Pa)pHDrilling fluid Weight (lbs/gal or kg/m3)0737/17.7225.531/14.8539/18.6878.6/1030.50.11742/20.112826/12.4534/16.2978.6/1030.50.25839/18.6727.526/12.4538/18.2088.6/1030.50.501053/25.3836.535/16.6738/18.207.58.6/1030.50.751365/31.1245.543/20.6146/22.0388.7/1042.511580/38.305551/24.4353/25.3588.7/1042.5 Comparative rheology of the base and modified drilling fluids. The additional performance from TiO₂ grafting can be attributed to nanoparticle-induced mechanical bridging and denser network structuring, which reinforce the hydrogen bonding and electrostatic interactions already provided by the zwitterionic polymer. All formulations maintained shear-thinning behavior, but the TiO₂–polymer mixture presented the highest gel strength, indicating superior suspension and cuttings-transport capabilities. These findings suggest that the nanocomposite enhances the fluid’s thixotropic behavior—its ability to recover structure after shear removal—particularly at higher concentrations. Increased gel strength ensures that suspended particles, such as cuttings or weighting agents, remain evenly distributed during static periods, reducing risks such as barite sag, pack-off, or settling. This behavior is crucial for maintaining wellbore stability and operational continuity during pauses in drilling. As shown in Fig. 14, based on the collected data, both the drilling fluid weight and pH demonstrate minimal variation with increasing concentrations of the zwitterionic polymer grafted onto the TiO₂ nanocomposite, indicating a limited impact of the additive on these fundamental fluid properties. The mud weight remains stable at 8.6 lb/gal from 0 to 0.50 g additive, increasing slightly to 8.7 lb/gal at higher concentrations (0.75 g and 1.0 g). This negligible change confirms that the additive does not significantly influence the fluid density, preserving the hydrostatic pressure required for wellbore stability and formation pressure control. a) Changes in pH and b) change in drilling fluid weight as the concentration of the zwitterionic polymer grafted onto the TiO2 additive increases. Similarly, pH values fluctuate within a narrow range of 7.0 to 8.0, which is characteristic of mildly alkaline water-based drilling fluids. No distinct trend correlating additive concentration with pH variation is observed, suggesting that the additive maintains the acid‒base balance of the fluid. The minor fluctuations are attributed to the zwitterionic polymer functional groups—specifically, the ionization behavior of sulfonate and quaternary ammonium moieties—which subtly alter the ionic equilibrium. At an additive concentration of 0.50 g, balanced dissociation stabilizes the pH near 7.5, whereas higher concentrations (0.25, 0.75, and 1.00 g) may increase the availability of cationic species or release residual sodium ions from the synthesis process, leading to a slight increase in pH to 8.0. In addition, nonuniform dispersion of the nanocomposite and variable electrostatic interactions with bentonite surfaces likely contributed to these minor pH oscillations. The relatively stable chemical environment across all concentrations ensures compatibility with other drilling fluid components and maintains conditions favorable for field performance, such as corrosion control, clay inhibition, and additive functionality. Filtration efficiency Filtration of modified drilling fluid under LPLT conditions This study evaluated the influence of zwitterionic polymers grafted onto TiO₂ nanoparticles on the filtration performance of water-based drilling fluids under static conditions of 25 °C and 100 psi (≈ 0.69 MPa). The experimental results revealed a substantial improvement in filtration control with increasing additive concentration. As shown in Fig. 15a, the fluid loss volume significantly decreased from 10 mL in the unmodified fluid to 6.5 mL with the maximum additive concentration, whereas as shown in Fig. 15b, the filter cake thickness decreased from 4/32 inch (3.175 mm) in the base fluid (0 g additive) to 1/32 inch (0.794 mm) at the highest additive dosage (1.0 g), indicating the formation of a thinner, denser, and more compact filter cake. This reduction suggests that the modified zwitterionic polymer effectively decreased the permeability of the filter cake, thereby limiting filtrate invasion into the formation matrix. The concurrent reduction in both the filter cake thickness and the filtrate volume underscores the role of the additive in enhancing the filtration efficiency. These improvements are attributed to the interaction of the zwitterionic polymer with bentonite particles and the formation of a polymer‒nanoparticle network, which likely promotes finer particle packing and pore plugging. Ultimately, such enhancements are expected to mitigate filtration-related issues, reduce formation damage, and improve the overall efficiency and reliability of drilling operations under low-temperature and LPLT conditions. Fluid loss a) and b) filter cake thickness under LPLT conditions in the presence of different concentrations of zwitterionic polymer grafted onto TiO₂ nanoparticles and zwitterionic polymers. In the present study, the addition of 1 g of zwitterionic polymer grafted onto a TiO₂ nanocomposite (approximately 1.4 wt% based on the fluid volume) reduced the fluid loss volume from 10 mL to 6.5 mL, representing a decrease of approximately 35%. This level of improvement is comparable to, or in some cases greater than, values reported for other well-known additives. For example, Wang et al.61. reported that poly(sodium p-styrene sulfonate)-modified Fe₃O₄ nanoparticles reduce fluid loss by approximately 28%. Liu et al.62. reported that bentonite/poly(sodium 4-styrenesulfonate) composites achieved a reduction of nearly 30% while maintaining rheological stability under ultrahigh-temperature conditions. Kulyashova et al.63. reported that sulfonated refinery products lowered fluid loss by approximately 25–32%, depending on the concentration. Similarly, Liu et al.64. demonstrated that cellulose nanofibers decreased fluid loss by approximately 33% at optimized loadings. Compared with these results, the TiO₂–zwitterionic nanocomposite achieved a greater reduction, highlighting its effectiveness as a multifunctional additive for water-based drilling fluids. These findings indicate that the zwitterionic polymer-TiO₂ nanocomposite developed in this work offers competitive filtration control performance at similar or slightly higher additive loadings. Moreover, the current nanocomposite contributes to the formation of a thinner, denser, and less permeable filter cake, enhancing the overall mud cake quality. These features are particularly advantageous in drilling operations where minimizing formation damage and improving wellbore stability are critical. As shown in Fig. 15a, under LPLT conditions, the fluid loss behavior of the bentonite-based drilling fluid clearly decreased with increasing zwitterionic polymer dosage. At very low concentrations (0.11–0.25 g), the change in fluid loss was minimal (10 to 9.8 mL), suggesting that the polymer chains present in the filtrate were insufficient to significantly obstruct the pore network of the filter medium, resulting in only a marginal improvement. Increasing the concentration to 0.50 g led to a more pronounced reduction (9.1 mL), indicating that the polymer molecules had begun to interact sufficiently with the bentonite platelets, reducing the permeability of the mud structure. At 0.75 g, the reduction became even more noticeable (9.5 mL), implying enhanced dispersion stability and improved formation of a barrier against filtrate invasion. The lowest fluid loss (8.3 mL) was achieved at 1 g of polymer, reflecting the point at which polymer adsorption on clay particles and accumulation within the filter pores reached near saturation, effectively minimizing water invasion under the applied low-pressure and low-temperature conditions. These results indicate that although small dosages have a limited effect, increasing the polymer content enhances fluid loss control up to the optimal tested amount. As shown in Fig. 15b, under LPLT conditions, the filter cake thickness of the drilling fluid slightly but consistently decreased as the concentration of the zwitterionic polymer grafted onto the TiO₂ nanoparticles increased. At low additive levels (0 to 0.25 g), the filter cake thickness remained stable at 4/32 inch (3.175 mm), indicating minimal impact on cake formation. Increasing the dosage to 0.5 g resulted in a modest reduction to 3.5, suggesting the beginning of improved particle packing and compaction. A further increase to 0.75 g and 1 g led to a more noticeable decrease to 3/32 inch (2.383 mm), reflecting the formation of a thinner and potentially more impermeable filter cake. This reduction implies that the additive helps create a more compact cake structure, which can effectively reduce fluid invasion and improve wellbore stability under low-pressure and low-temperature conditions. Overall, as shown in the combined plot (Fig. 15), the filtration loss results distinctly compare the base fluid, the fluid containing only the zwitterionic polymer, and the fluid incorporating the TiO₂–polymer nanocomposite under LPLT conditions (25 °C, 100 psi ≈ 0.69 MPa). The base fluid presented the highest filtrate volume (~ 10 mL) and the thickest, porous filter cake (~ 3.2 mm), reflecting its limited sealing ability. The addition of the zwitterionic polymer reduced fluid loss to approximately 8 mL and decreased the cake thickness to approximately 2 mm, which was attributed to improved colloidal stability and polymer–clay interactions that partially sealed the pore spaces. In contrast, the TiO₂–polymer nanocomposite demonstrated the most pronounced improvement, reducing the filtrate volume to ~ 6.5 mL and producing a thin, compact filter cake (~ 0.8 mm). This enhancement arises from the synergistic action of the grafted TiO₂ nanoparticles and zwitterionic polymer, which form a dense interfacial network that limits fluid migration and strengthens the filter cake structure. The inorganic core provides mechanical reinforcement and micropore plugging, whereas the zwitterionic shell promotes electrostatic–steric stabilization, ensuring uniform dispersion throughout the mud matrix. Filtration of modified drilling fluid under HPHT conditions The filtration performance of the modified drilling fluid was assessed under HPHT conditions using a top pressure of 500 psi (≈ 3.45 MPa), a backpressure of 100 psi (≈ 0.69 MPa), and temperatures ranging from 120 °C to 180 °C. The addition of 1 g of the zwitterionic TiO₂-based nanocomposite to the base fluid led to notable improvements in both fluid loss and filter cake characteristics. As shown in Fig. 16a, at 120 °C, fluid loss decreased from 12.0 mL (base fluid) to 10.4 mL, whereas the filter cake thickness in Fig. 16b decreased from 7/32 to 6/32 inch (5.558 to 4.764 mm). At 160 °C, fluid loss decreased from 14.5 mL to 11.1 mL, accompanied by a substantial reduction in filter cake thickness from 8/32 to 3/32 inch (7.792 to 2.382 mm). Even under the most extreme conditions (180 °C), the additive maintained good performance, with fluid loss decreasing from 19.0 mL to 16.2 mL and cake thickness slightly decreasing from 24/32 to 22/32 inch (19.056 to 17.468 mm). Fluid loss a) and b) filter cake thickness under HPHT conditions in the presence of different concentrations of zwitterionic polymers grafted onto TiO₂ nanoparticles and zwitterionic polymers. These results demonstrate that the zwitterionic TiO₂ nanocomposite significantly enhances the fluid’s thermal filtration stability. The observed improvements are attributed to the synergistic interactions between the hydrophilic zwitterionic polymer and the thermally stable TiO₂ nanoparticles, which promote the formation of a compact, low-permeability filter cake. Such enhancements are particularly beneficial for maintaining wellbore stability and minimizing formation damage under HPHT conditions commonly encountered in deep drilling operations. As shown in Fig. 16a, under HPHT conditions, the addition of 1 g zwitterionic polymer to the base mud decreased fluid loss at 120 °C and 140 °C. At 120 °C, the base mud showed a fluid loss of 12 mL, whereas the modified mud reduced it slightly to 11 mL, indicating a minor improvement in fluid retention. At 140 °C, the difference was more noticeable, with fluid loss values of 15 mL for the base mud and 13 mL for the modified mud, suggesting better control of filtrate invasion due to the polymer. However, at 180 °C, both the base and modified mud samples exhibited the same fluid loss of 19 mL, indicating a decrease in additive efficiency at very high temperatures. These findings demonstrate that the zwitterionic polymer effectively reduces fluid loss under moderate HPHT conditions, but its performance is limited at extreme temperatures. As shown in Fig. 16b, under HPHT conditions, the base mud produced thicker filter cakes than did the mud containing 1 g of the zwitterionic polymer at 120 °C and 140 °C. At 120 °C, the base mud had a thickness of 7/32 inches (5.558 mm), whereas the modified mud had a slightly thinner cake of 6/32 inches (4.764 mm), indicating a modest improvement in cake compactness. At 140 °C, the difference was again small but consistent, with values of 8/32 inch (6.35 mm) for the base mud and 7/32 inch (5.558 mm) for the modified mud, suggesting a slight reduction in permeability due to the additive. However, at 180 °C, both fluids formed cakes of equal thickness of 24/32 inches (19.056 mm), indicating that the polymer’s ability to reduce filter cake thickness diminished significantly at very high temperatures. These results suggest that the additive improved filter cake properties under moderate HPHT conditions but had no effect at extreme temperatures. High-pressure, high-temperature filtration performance after thermal aging To investigate the thermal durability of the drilling fluid system, both base fluids and modified fluids containing 1.0 g of zwitterionic polymer grafted onto the TiO₂ nanocomposite were subjected to aging for 24 h at elevated temperatures of 120 °C, 140 °C, and 180 °C. After aging, filtration tests were conducted under 500 psi differential pressure for 30 min to simulate HPHT conditions better. As presented in Fig. 16a, the base mud exhibited a notable increase in fluid loss volume with increasing temperature, reaching 16 mL, 22 mL, and 26 mL at 120 °C, 140 °C, and 180 °C, respectively. In contrast, the nanocomposite-modified fluid showed reduced filtration volumes of 14 mL, 21 mL, and 24 mL at the same corresponding temperatures. The consistent gap in performance suggests that the TiO₂–zwitterionic polymer nanocomposite significantly improves the thermal resistance of the fluid system. The reduced filtrate volume after aging at 180 °C and 500 psi confirms the stability of the polymer–nanoparticle network, which likely preserves the structural integrity of the filter cake under thermal stress. These enhancements are essential for maintaining fluid efficiency and minimizing formation damage during high-temperature drilling operations. To assess the thermal stability and filtration behavior of the drilling fluids, both base fluids and nanocomposite-modified fluids were aged for 24 h at three elevated temperatures (120 °C, 140 °C, and 180 °C) under 500 psi. The thickness of the filter cake was subsequently measured under HPHT filtration conditions. As shown in Fig. 16b, the base fluid demonstrated a progressive increase in filter cake thickness with increasing temperature, reaching 28/32 inch (22.225) at 180 °C. In contrast, the drilling fluid modified with 1 g of zwitterionic polymer grafted onto the TiO₂ nanocomposite resulted in noticeably thinner filter cakes at all test temperatures: 9/32, 10/32, and 22/32 inch (4.144, 7.938, and 17.463 mm), respectively. This notable reduction in filter cake thickness after high-temperature aging suggests that the nanocomposite maintains structural integrity and contributes to the formation of more compact and less permeable filter cakes, even under harsh thermal conditions. The thermal stability of the zwitterionic polymer network and its strong interaction with bentonite particles likely play a key role in resisting thermal degradation, which typically leads to flocculation and inefficient filter cake structures in unmodified fluids. Therefore, the nanocomposite additive enhances the high-temperature filtration performance and reduces the risk of thick, loosely packed filter cakes that can cause operational issues such as stuck pipes or differential sticking. Overall, as shown in the combined HPHT plot (Fig. 16), the filtration performance of the base fluid, the zwitterionic polymer–modified fluid, and the TiO₂–polymer nanocomposite fluid reveals clear comparative trends. The base mud exhibited the greatest fluid loss and the thickest, porous filter cake, indicating poor structural integrity under elevated temperature and pressure (140 °C, 500 psi ≈ 3.45 MPa). The addition of the zwitterionic polymer reduced the filtrate volume and slightly improved cake compactness, which was attributed to enhanced hydration stability and partial sealing of micropores through polymer adsorption on bentonite surfaces. In contrast, the TiO₂–polymer nanocomposite achieved the lowest filtrate volume and the thinnest, most uniform filter cake. The improved performance results from the synergistic effect between the inorganic TiO₂ nanoparticles and the zwitterionic polymer matrix. The nanoparticles act as microplugging agents, while the polymer chains increase cohesion and reduce permeability by forming a dense polymer–particle network. This dual mechanism effectively limits filtrate migration and strengthens the structural stability of the filter cake under HPHT conditions. Effects of NaCl concentration on the performance of base and modified drilling fluids The impact of increasing NaCl concentrations (10–30 wt%) on the filtration behavior of base and modified drilling fluids was systematically evaluated. In the unmodified base fluid, salinity induced a marked deterioration in performance. As shown in Fig. 17a, the fluid loss increased from 60.0 to 85.3 mL, whereas in Fig. 17b, the filter cake thickness increased from 17 to 23 units (1/32 inch scale ≈ 0.794 mm). This trend reflects the destabilizing effect of ionic strength on the colloidal stability of the fluid, where high salinity disrupts electrostatic repulsion between particles, promotes flocculation, and results in the formation of thicker, more permeable filter cakes. Such changes can compromise wellbore integrity, escalate differential sticking risks, and exacerbate formation damage in saline-rich or high-salinity reservoirs. a) Salinity impact on base and modified drilling fluid a) filter cake and b) fluid loss systems under LPLT conditions. The fluid loss of the drilling fluid containing 1 g of the zwitterionic polymer increased significantly with increasing salt concentration. At 10%, 20%, and 30% NaCl, the fluid loss values were 65, 76, and 82 mL, respectively. These results indicate that high-salinity environments greatly reduce the effectiveness of the polymer in controlling fluid loss. The increased ionic strength likely causes compression of the polymer chains and weakening of the electrostatic interactions with the clay particles, leading to destabilization of the mud structure and increased filtrate invasion. Despite this, the polymer still demonstrates some ability to moderate fluid loss under saline conditions, although its performance is clearly impaired as the salt concentration increases. The filter cake thickness of the drilling fluid containing 1 g of the zwitterionic polymer moderately changed with increasing salt concentration. At 10%, 20%, and 30% NaCl, the filter cake thicknesses were 15/32, 18/32, and 16/32 inch (12.302, 14.288, and 12.700 mm), respectively. These values indicate that the filter cake thickness generally increased as the salt concentration increased from 10% to 20%, suggesting some swelling or loosening of the cake structure due to the high ionic strength. However, at 30% salt, the thickness slightly decreased to 16, which may indicate partial compaction or structural rearrangement of the cake. Overall, the presence of high salt concentrations influences the cake morphology and could impact the filtration properties of the mud, despite the presence of the polymer. In contrast, the addition of 1 g of the zwitterionic TiO₂-based nanocomposite significantly mitigated the adverse effects of salt. At 20 wt% NaCl, the modified fluid reduced fluid loss from 80.5 to 68.0 mL, whereas the filter cake thickness decreased from 23 to 16 units. Even at 30 wt% NaCl—where the base fluid showed severe degradation—the modified fluid limited fluid loss to 83.5 mL and reduced the cake thickness from 19 to 17 units. These improvements are attributed to the additive’s ability to reinforce the colloidal structure by forming a flexible, ion-resistant polymeric network that resists particle aggregation and reduces filter cake porosity. Mechanistically, the zwitterionic polymer grafted onto the TiO₂ nanoparticles imparts steric stabilization and electrostatic shielding, effectively counteracting the flocculating action of the sodium ions. This ensures the formation of a thinner, more compact, and less permeable filter cake across varying salinity levels. Operationally, the enhanced salt tolerance of the modified fluid highlights the additive’s suitability for challenging environments, such as deep formations with high salinity or limited freshwater access. Furthermore, improved filtration control under saline conditions contributes to reduced filtrate invasion and improved environmental sustainability. Overall, these results underscore the additive’s role as a high-performance, salt-resistant drilling fluid conditioner, supporting both its technical efficiency and eco-conscious drilling practices. All the filtration properties of the base and modified drilling fluids are presented in Figs. 18 and 19. Filtration properties (fluid loss) of the base and modified drilling fluids. Filtration properties (filter cake thickness) of the base and modified drilling fluids. Rheological modeling and shear thinning behavior The progressive incorporation of the zwitterionic polymer grafted onto the TiO₂ nanocomposite into the base drilling fluid significantly enhances its rheological properties, as substantiated through comprehensive model fitting. The rheological graph of shear stress versus shear rate is shown in Fig. 20. Rheological models were fitted to this graph, and the corresponding data are presented in Table 4. Table 4Rheological properties of the Bingham, power law and Herschel–Bulkley models for base and modified drilling fluids.Bingham ModelPower Law ModelHerschel–Bulkley modelsAdditive (g) τ 0(pa) µp(Pa·s) R² K n R² τ 0)pa) n K(Pa·s n ) R2016.80.00970.79712.360.1000.9619.320.2153.4370.9650.1113.610.01610.8827.810.1780.9639.940.41631.0590.9850.2514.570.01430.9039.2040.1500.96410.990.44290.76730.9980.5015.990.02330.8858.1850.2110.94611.160.47171.010.9770.7519.80.02980.8329.5440.2250.99511.280.29175.3380.997124.580.03530.82512.140.210.99812.310.2667.9050.999 Rheological properties of the Bingham, power law and Herschel–Bulkley models for base and modified drilling fluids. Rheological graph of shear stress versus shear rate. Rheological parameters were determined on the basis of six shear rate–shear stress readings (“six-turn” data) obtained following the API RP 13B-1 standard procedure for drilling fluid evaluation60. This protocol is widely used in drilling fluid research and allows for consistent comparisons with other published studies. Previous works have demonstrated that six-point measurements are sufficient to reliably fit common rheological models such as the Bingham Plastic, Power Law, and Herschel–Bulkley equations when the data quality is high and the flow regime is stable65–67. In the present study, the fitted models confirm that the selected dataset adequately captures the shear-thinning behavior of both the base and modified fluids. According to the Bingham plastic model, the yield stress (₀) increases markedly from 16.8 Pa to 24.58 Pa with the addition of 1 g of additive, reflecting a stronger internal structure and improved resistance to static flow. This high yield stress is especially beneficial in low-velocity zones of the wellbore, where the effective suspension of drill cuttings is critical. Although the plastic viscosity also increases (from 0.0097 to 0.0354 Pa·s), the model’s moderate correlation with the experimental data (R² ≈ 0.82–0.90) indicates that it may not fully capture the complex flow behavior of the modified fluid. In contrast, the power law model provides a superior fit for the fluid’s shear-dependent viscosity, accurately describing its non-Newtonian, shear-thinning nature. The n remains below 0.23 across all additive concentrations, confirming pronounced shear-thinning behavior and efficient pumpability with minimal pressure loss at high shear rates. K increases steadily, reaching 12.14 Pa·sⁿ at a 1 g additive, indicating greater internal cohesion and resistance to deformation at low shear rates. High coefficients of determination (R² > 0.99) across all samples indicate strong agreement with the experimental data, supporting the model’s relevance for formulation design and process optimization. The Herschel–Bulkley model has emerged as the most accurate and representative of the real behavior of a fluid. The yield stress increased from 9.32 Pa in the base drilling fluid to 12.31 Pa after the addition of 1 g of the additive, suggesting increased gel strength and structural integrity. The K increases from 3.437 (base fluid) to 7.905 Pa·sⁿ at 1 g additive, reflecting the formation of a dense, gel-like internal network. n remains consistently less than 0.5, preserving essential shear-thinning behavior for efficient cuttings transport and pressure management. Exceptional correlation coefficients (R² up to 0.9993) affirm the model’s precision, making it the most suitable for predicting field performance under variable shear and pressure conditions. Overall, these findings confirm that the zwitterionic polymer-TiO₂ nanocomposite substantially improves the rheological stability of drilling fluids. This includes enhanced suspension capacity, better fluid loss control, and optimized flow characteristics under HPHT conditions. The apparent shear-thinning behavior—validated by both power law and Herschel–Bulkley model fittings—is characterized by a decreasing apparent viscosity with increasing shear rate. This is indicative of a viscoplastic fluid, requiring a threshold shear force to initiate flow. Such behavior is highly desirable in drilling operations, as it enables effective suspension of cuttings during flow cessation and reduces frictional losses during circulation. The nanocomposite promotes this behavior by forming a weak gel structure, supported by increased yield point and gel strength measurements, thus enhancing borehole stability and minimizing sagging. The variations in n, from 0.1004 to 0.2251 (power law) and 0.215 to 0.4717 (Herschel–Bulkley), indicate that the tunable shear-thinning characteristics are influenced by the concentration of the zwitterionic nanocomposite. At lower concentrations (e.g., 0.11 g), minimal polymer bridging yields lower n values and facilitates rapid flow under high shear. In contrast, the peak n at 0.50 g (0.4717) reflects the formation of an optimal polymer‒particle network that stabilizes the viscosity under low shear conditions. This behavior provides a balance between ease of pumping and effective suspension, which is especially relevant in scenarios such as annular flow or during pipe tripping. The zwitterionic polymer component enhances this dual performance by forming robust electrostatic and hydrogen-bonding interactions with bentonite particles, constructing a semiflexible network capable of resisting structural collapse under static or low-shear conditions. This network effectively immobilizes suspended solids, reducing sedimentation and improving the transport of cuttings. Moreover, the preserved shear-thinning profile ensures that fluid remains flowable and energy efficient during dynamic circulation, rendering the formulation adaptable to complex well geometries and harsh HPHT environments. Moreover, rheological tests demonstrated that the modified drilling fluid exhibited excellent thixotropic behavior, characterized by rapid and nearly complete recovery of viscosity after exposure to high shear rates. This quick viscosity restoration is critical for drilling operations, as it ensures the efficient suspension of drill cuttings during periods of low or halted flow, preventing sedimentation and potential wellbore instability. The strong structural reconstruction capability of the fluid confirms the practical advantage of the zwitterionic polymer grafted onto the TiO₂ nanocomposite in maintaining fluid performance under dynamic downhole conditions. Strengths and limitations The synthesized zwitterionic polymer–TiO₂ nanocomposite demonstrated multiple functional advantages in enhancing the performance of water-based drilling fluids. The zwitterionic polymer grafted onto the TiO₂ surface served as a highly effective rheological and structural enhancer within the fluid system. The polar amide functionalities in the polymer chain formed hydrogen bonds and electrostatic interactions with hydroxylated bentonite surfaces, creating a reinforced, cohesive network. This internal network significantly improved the gel strength and mechanical integrity, as confirmed by SEM analysis, which revealed a denser, more compact filter cake than the unmodified system did. Furthermore, the zwitterionic nature of the polymer reduced the net surface charge, suppressing excessive electrostatic repulsion between colloidal particles. This behavior promoted controlled particle aggregation and bridging under varying shear conditions, resulting in greater viscosity stability and enhanced suspension capability. The synergy between electrostatic–steric stabilization and mechanical bridging enabled the nanocomposite-modified fluid to maintain reliable performance under HPHT and saline conditions, where conventional fluids typically lose stability. Additional strengths include the low dosage requirement (0.11–1.00 g per 350 mL), broad thermal stability up to 180 °C, and partial salinity tolerance up to 30 wt% NaCl, making the additive applicable in challenging deep drilling environments. Despite its promising performance, this study has certain limitations. First, the additive efficiency decreased slightly at the highest tested temperature (180 °C) and at extreme salinity (30 wt% NaCl), indicating potential thermal and ionic constraints. Second, the experiments were performed under laboratory-controlled static aging and HPHT conditions; long-term dynamic flow and cyclic HPHT exposure typical of field operations were not simulated. Third, cost analysis and large-scale synthesis feasibility were not addressed, and no field trial validation was conducted. Finally, while the mechanisms of action were inferred from rheology, filtration, and SEM data, further molecular-level confirmation (e.g., using advanced spectroscopy or particle–particle interaction modeling) would strengthen the mechanistic understanding. Conclusions and recommendation In this study, a multifunctional zwitterionic polymer grafted onto a TiO2 nanocomposite was synthesized and introduced as a novel additive to enhance the performance of WBDFs under HPHT and saline conditions. The free-radical polymerization method, combined with silane-assisted TiO₂ surface modification, produced a hybrid structure with covalent bonding and stable dispersion, as confirmed by FTIR, XRD, SEM, TGA, and zeta potential analyses. The nanocomposite demonstrated high thermal stability up to 300 °C and excellent colloidal stability (ζ ≈ − 75 mV), making it suitable for extreme downhole environments. The key findings are as follows: The nanocomposite significantly enhanced the rheological and filtration properties of WBDFs. At dosages of 0.11–1.00 g per 350 mL, the plastic viscosity increased from 7 to 15 mPa·s (7–15 cP), the yield point increased from 8.86 to 19.15 Pa (18.5–40 lb/100 ft²), and the apparent viscosity increased from 25.5 to 55 mPa·s (25.5–55 cP) while maintaining shear-thinning behavior. The nanocomposite significantly enhanced the rheological and filtration properties of WBDFs. At dosages of 0.11–1.00 g per 350 mL, the plastic viscosity increased from 7 to 15 mPa·s (7–15 cP), the yield point increased from 8.86 to 19.15 Pa (18.5–40 lb/100 ft²), and the apparent viscosity increased from 25.5 to 55 mPa·s (25.5–55 cP) while maintaining shear-thinning behavior. Under LPLT conditions, fluid loss decreased by ~ 35%, and the filter cake thickness was reduced from 3.18 mm (4/32 in.) to 0.79 mm (1/32 in.), indicating improved particle packing. Under HPHT testing (120–180 °C, 3.45 MPa/500 psi), the fluid loss decreased by up to 23%, and the filter cake thickness decreased by ~ 62%, indicating strong thermal sealing. Under LPLT conditions, fluid loss decreased by ~ 35%, and the filter cake thickness was reduced from 3.18 mm (4/32 in.) to 0.79 mm (1/32 in.), indicating improved particle packing. Under HPHT testing (120–180 °C, 3.45 MPa/500 psi), the fluid loss decreased by up to 23%, and the filter cake thickness decreased by ~ 62%, indicating strong thermal sealing. A direct comparison with the pure zwitterionic polymer confirmed that TiO₂ functionalization provided superior rheological reinforcement, higher gel strengths, and greater filtration control, highlighting the synergistic role of nanoparticle–polymer interactions. The nanocomposite also maintained robust salt tolerance in up to 30 wt% NaCl, whereas the polymer alone resulted in partial performance loss. Furthermore, cyclic HPHT aging tests demonstrated that the TiO₂–polymer nanocomposite preserved the stability and functional properties more effectively than the polymer alone did, underscoring its long-term reliability in harsh downhole environments. A direct comparison with the pure zwitterionic polymer confirmed that TiO₂ functionalization provided superior rheological reinforcement, higher gel strengths, and greater filtration control, highlighting the synergistic role of nanoparticle–polymer interactions. The nanocomposite also maintained robust salt tolerance in up to 30 wt% NaCl, whereas the polymer alone resulted in partial performance loss. Furthermore, cyclic HPHT aging tests demonstrated that the TiO₂–polymer nanocomposite preserved the stability and functional properties more effectively than the polymer alone did, underscoring its long-term reliability in harsh downhole environments. Rheological modeling confirmed that the Herschel–Bulkley model best captured fluid flow behavior (R² > 0.99), confirming its viscoplastic and non-Newtonian characteristics under various shear rates. Rheological modeling confirmed that the Herschel–Bulkley model best captured fluid flow behavior (R² > 0.99), confirming its viscoplastic and non-Newtonian characteristics under various shear rates. The performance improvements are attributed to a dual mechanism of electrostatic–steric stabilization and microstructural reinforcement. The grafted polymer suppresses nanoparticle agglomeration, whereas polymer–TiO₂ interactions yield compact filter cakes and resilient gel structures. This results in enhanced filtration control, rheological stability, and thermal resistance at low additive dosages. Together with its environmental compatibility and ease of integration into existing formulations, the nanocomposite represents a promising next-generation additive for high-performance drilling fluids in challenging HPHT environments. Future work will focus on pilot-scale synthesis, long-term aging studies under cyclic HPHT conditions, and field validation across various geological formations to establish scalability and industrial feasibility. Abbreviations Acrylamide 2-Acrylamido-2-Methylpropanesulfonic Acid American Petroleum Institute Ammonium Persulfate Apparent Viscosity Dynamic Light Scattering Dimethyldiallylammonium Chloride Diffuse Reflectance Spectroscopy Differential Scanning Calorimetry Energy-Dispersive X-ray Spectroscopy Fourier Transform Infrared Spectroscopy Autocorrelation Function High-Pressure High-Temperature Low-Pressure Low-Temperature Sodium Chloride Sodium Metabisulfite National Iranian Drilling Company N-Vinylpyrrolidone Plastic Viscosity Coefficient of Determination (in regression models) Scanning Electron Microscopy Thermogravimetric Analysis Titanium Dioxide Water-Based Drilling Fluid X-ray Diffraction Yield Point Author contributions Conceptualization, Y.S.; methodology, Y.S.; software, Y.S.; validation, Y.S. and F.T.S.; formal analysis, F.T.S.; investigation, F.T.S. resources, Y.S.; data curation, Y.S.; writing—original draft preparation, F.T.S.; writing—review and editing, Y.S.; visualization, Y.S. and F.T.S.; supervision, Y.S.; project administration, Y.S.; funding acquisition, Y.S. All authors have read and agreed to the published version of the manuscript. Funding This research received no external funding. Data availability The data supporting this study’s findings are available upon request. For data requests, please contact the Corresponding Author: Dr. Yousef Shiri (yousefshiri@gmail.com). Declarations Competing interests The authors declare no competing interests. Footnotes Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. References Associated Data Data Availability Statement The data supporting this study’s findings are available upon request. For data requests, please contact the Corresponding Author: Dr. Yousef Shiri (yousefshiri@gmail.com).