1 Introduction

Hip bone is a robust and complex structure in the human body and transfers mechanical loads from the upper body (head, hands, and torso) to lower body (legs) as the body does activities like standing, walking, running, sit-to-stand, etc. It is a part of pelvic girdle and consists of three bones: the ilium, the ischium and the pubis bone. These three bones are fused together at the acetabulum (where thigh bone is connected to the hip bone). The hip bone has a hole between the ischium bone and the pubis bone, called the obturator foramen, through which blood vessels and nerves pass. This hole creates stress concentrations, and among the most common modes of hip fracture, the lateral compression and vertical shear fracture modes occur in bones surrounding the obturator foramen [1]. Hence, we are motivated to pose the following design question: are there similar geometric structures as the hip bone bearing the same loads under same boundary conditions, but more stiff (implying less chances of fracture) than the natural hip bone? The structural similarity might be essential for maintaining the functions of the hip bone like upright bipedal gait and providing bone marrow for generation of blood cells. Till now, no work is reported on the optimal design of hip prosthesis considering the effect of loads of ADLs, or bio-functional aspects like presence of muscle attachment sites. Hence, there is a need for the design of a prosthesis that maintains the same functions as the natural hip bone and structurally stronger than the natural hip bone.

Deformation study of the hip bone under loads of various activities like walking and running is a well-studied area of research. Finite element (FE) analysis has been widely and almost exclusively used to analyze the complex sandwich structure of the hip bone under mechanical loads. Various 3D FE models have been used to do realistic analysis of the sandwich material comprising the hip bone, i.e., the trabecular bone covered by a layer of cortical shell for walking loads. Goel et al. [2, 3] made the first attempts to calculate stresses in the pelvis and hip bone using a FE model. Dostal and Andrews [4] formulated a straight-line model to estimate muscle forces from elastic strings connected between hip bone and femur. Bergmann et al. [5] measured the resultant hip joint force, its orientation and moments during walking and running from patients using telemetering total hip prosthesis. Dalstra and Huiskes [6] calculated the muscle forces during eight phases of gait cycle and found that maximum stress occurs during one legged stance phase. They also noted high stresses in the outer cortical shell than in the inner trabecular matrix of the hip bone. Anderson et al. [7] developed a patient specific model of pelvis and carried out validation and sensitivity studies using FE. Ghosh et al [8] investigated the variation in load transfer due to fixing an implant. Ghosh et al. [9] investigated the changes in acetabular stresses and strains due to the inclusion of cartilage layer at the hip joint using a 3D FE model. Mukherjee and Gupta [10] developed a framework to understand progressive tissue differentiation and bone ingrowth around the acetabular component. Hu et al. [11] explored the effect of boundary conditions on load transmission to the pelvic bone by using FE analysis. They suggested that determination of boundary and connection conditions have to be modeled more closely to existing bone to study the clinical applications. Ricci et al. [12] investigated the distribution of force in the pelvic ring for the mechanical loads of a gait cycle. Ramezani et al. [13] refined an existing FE model of the pelvis with the help of in vitro data of load and deformation by using an inverted validation approach.

Sit-to-stand is defined as moving the mass center of body upward from sitting to standing position. Sit-to-stand has a consistent pattern of forward lean followed by a lift to reach the standing position [14]. In contrast to walking, only a few studies have been performed to understand the kinematics of the sit-to-stand. Kotake et al. [15] analyzed the movements involved in sit-to-stand and observed regular series of transition points in the angles of joints (hip, knee and ankle). Mourey et al. [16] compared the center of mass control in young and elderly people during the sit-to-stand. Janssen et al. [17] identified the determinants of the sit-to-stand and described their effect on the performance of sit-to-stand. Yoshioka et al. [18] examined the effect of seat height on maximum joint force and moments of lower limbs during sit-to-stand. Carthers et al. [19] developed an OpenSim model to examine the influence of muscle forces on the horizontal and vertical acceleration of the center of mass during sit-to-stand. Tse et al. [20] evaluated the pelvic response for underbody blast (UBB) for different seating positions and suggested that upright seated posture may have low risk of pelvic injuries under UBB.

On the other hand, bone micro-structure design using methods like topology optimization is an area of active research [21,22,23,24]. However, most of these researches have focused on developing bone micro-structural models of the femur bone where the global geometry of the bone is fixed. Thus, we see a research gap for an attempt towards designing the global geometry of a load bearing bone. Hip bone is such a bone; it bears considerable mechanical loads during movement of the body (the whole weight of upper part of the body is transmitted to the legs through the hip bone, and similarly all forces from the femur is transmitted to the upper body through it), and has sufficient complicated geometry (upper part flat and lower part undulated with a hole in middle) of genus one. Thus, the optimal design of the global geometry of the hip bone under mechanical loads of different ADLs is a problem worth challenging and has not received much attention. Recently, Kumar and Rakshit [25, 26] presented the optimal design of hip bone for walking loads, and the design of hip bone prosthesis under single leg stance [27].

In this work, we present the optimal design of the hip bone for two ADLs, walking, and sit-to-stand. The particular focus of this work is the user guided design of the hip bone by using combination of the loads of walking and sit-to-stand. The design approach in ‘combination of phases’ presented in [27] is extended to inter-combination of phases between walking and sit-to-stand. Rest of the paper is organized as follows: Sect. 2 explains topology optimization and its sensitivity analysis. It also introduces the two ADLs that we consider for topology optimization, Procrustes analysis and a user-guided design approach for solving combination between walking and sit-to-stand. Section 3 presents the optimal design of the hip bone for walking, sit-to-stand and combination between walking and sit-to-stand. Section 4 concludes with final remarks and future work.

2 Methods

2.1 Topology optimization

Topology optimization (TO) finds the optimal material distribution of a structure for a given objective function with the constraints. Generally, the objective functions in TO of solid structures are: compliance minimization, frequency maximization, design synthesis for specified force/displacement. Compliance minimization with volume constraint has been widely used for stiff structure design with volume constraints [28]. The compliance minimization formulation is given as:

$$\begin{aligned} \qquad {\text {minimize:}}&\quad \int _\varGamma s_i u_i ~{\mathrm{d}}\varGamma \nonumber \\ \qquad {\text {Subject to:}}&\quad \int _\varOmega \rho {\mathrm{d}}\varOmega - V_{{\mathrm{max}}} \le 0\nonumber \\ \text {div}(C_{ijkl}u_{k,l} )&= 0 \quad {\text {on}} \quad \varOmega \nonumber \\ u_i&= \bar{u}_0\quad {\text {on}} \quad \varGamma _u\nonumber \\ s_i&= \bar{s}_0\quad {\text {on}} \quad \varGamma _s\nonumber \\&0 \le \rho \le 1 \end{aligned}$$
(1)

where \(s_i\) is the traction, \(u_i\) is the displacement, \(\rho\) is the non-dimensional density (design variable) and varies from 0 (void material) to 1 (solid material), \(V_{{\mathrm{max}}}\) is the maximum allowable volume, \(C_{ijkl}\) is the elastic tensor, \(\varOmega\) is the design domain, \(\varGamma\) is the boundary of the domain, \(\varGamma _u\) is the displacement boundary and \(\varGamma _s\) is the force boundary. Using a numerical method like finite element the above formulation can be posed as:

$$\begin{aligned} \qquad \qquad {\text {minimize:}}&\quad c = {\mathbf {f}}^{{\mathrm{T}}} {\mathbf {u}} \nonumber \\ \qquad \qquad {\text {Subject to:}}&\quad V \le V_{{\mathrm{max}}}\nonumber \\ \qquad \qquad {\mathbf {K}}\, {\mathbf {u}}&= {\mathbf {f}} \end{aligned}$$
(2)

where c, the compliance of a structure is defined as the work done by external forces on the structure, \({\mathbf {K}}\) is the stiffness matrix, \({\mathbf {u}}\) is the displacement vector, \({\mathbf {f}}\) is the force vector and V is the volume of the structure that should not be greater than the maximum allowable volume \(V_{{\mathrm{max}}}\). In this problem, we considered \(V_{{\mathrm{max}}}\) as the enclosed volume of the hip bone.

2.1.1 Sensitivity analysis

The modified elemental stiffness matrix using a material modeling technique like Solid Isotropic Material Penalization (SIMP) method is given as:

$$\begin{aligned}&{\mathbf {k}}_{{\mathrm{e}}}=\rho ^p {\mathbf {k}}_0, \nonumber \\&0<\rho _{{\mathrm{min}}}\le \rho \le 1 \end{aligned}$$
(3)

where \(\rho\) is the design variable, \({\mathbf {k}}_{{\mathrm{e}}}\) is the modified elemental stiffness matrix, \({\mathbf {k}}_0\) is the initial elemental stiffness matrix, p is the penalization factor (greater than 1, usually 3) and \(\rho _{{\mathrm{min}}}(=0.001)\) is the lower limit on the design variable to avoid singularity [29, 30]. The objective function using SIMP method is given as:

$$\begin{aligned} c_{{\mathrm{e}}}&= {\mathbf {f}}_{{\mathrm{e}}}^{{\mathrm{T}}} {\mathbf {u}}_{{\mathrm{e}}}\nonumber \\&= {\mathbf {u}}^T_{{\mathrm{e}}} {\mathbf {k}}_{{\mathrm{e}}} {\mathbf {u}}_{{\mathrm{e}}}\nonumber \\&=\rho ^p {\mathbf {u}}^T_{{\mathrm{e}}} {\mathbf {k}}_0 {\mathbf {u}}_{{\mathrm{e}}} \end{aligned}$$
(4)

where the subscript e represents an elemental quantity. Since many of the established topology optimization algorithms use gradient-based optimization methods, sensitivities of the objective function and the constraints are required. The sensitivity of elemental compliance \(c_{{\mathrm{e}}}\) with respect to the design variable density (\(\rho\)) is defined as:

$$\begin{aligned} \frac{\partial c_{{\mathrm{e}}}}{\partial \rho }&= -\frac{\partial }{\partial \rho } ({\mathbf {f}}^T_{{\mathrm{e}}} {\mathbf {u}}_{{\mathrm{e}}}) \nonumber \\&= -\frac{\partial }{\partial \rho } ({\mathbf {u}}^T_{{\mathrm{e}}} {\mathbf {k}}_{{\mathrm{e}}} {\mathbf {u}}_{{\mathrm{e}}}) \end{aligned}$$
(5)

From Eqs. 35, the analytical expression for sensitivity of the objective function (compliance) with respect to the design variable (\(\rho\)) is given as:

$$\begin{aligned} \frac{\partial c_{{\mathrm{e}}}}{\partial \rho } = -p\rho ^{p-1} {\mathbf {u}}^T_{{\mathrm{e}}} {\mathbf {k}}_0 {\mathbf {u}}_{{\mathrm{e}}}. \end{aligned}$$
(6)

2.1.2 Design and non-design domains

In general TO starts with an arbitrary design domain and optimizes it based on the objective function but this work uses a highly constrained domain due to the presence of boundary conditions. If initial input to topology optimization is any general primitive shape like cubiod; then following difficulties are faced:

  • Modeling the muscle attachment areas inside the cuboid involves the modeling of the replica surface of these muscle attachment areas; this increases the complexity of modeling; and meshing of these complex modeled areas is difficult.

  • The application of traction boundary conditions on inner elements is not allowed. The inner elements can take only body forces, while the boundary elements can take traction.

  • To avoid the convergence to a local optimal solution since OptiStruct\(^{\textregistered }\) solver uses a convex optimization technique.

The following are list of boundary conditions acting on the hip bone:

  • Fixed boundary conditions at pubic symphysis (joint between two hip bones) and sacro-iliac joint (joint between the hip bone and lower part of the spinal chord).

  • Hip joint forces at acetabulum (joint between the hip bone and the femur/thigh bone).

  • Muscle attachment areas through which muscles apply active force on the hip bone.

The input design domain after considering all these boundary conditions is shown in Fig. 2. It has similar outer geometry as natural hip bone but the design domain and natural hip bone is topologically different since the natural hip bone has a hole. In this work, we use non-design domains to prevent material removal from the unwanted areas. These are listed as:

  • Iliac crest is a bone marrow rich region which generates new blood cells.

  • Muscle attachment areas provide connection to muscles that apply forces on the hip bone.

These areas are included into non-design domains to maintain the biological functionality of the hip bone [26].

Fig. 1
figure 1

Natural hip bone with its components and the boundary conditions

Fig. 2
figure 2

Design domain with the boundary conditions

2.2 Modeling of the hip bone

This work uses the hip bone geometric model which is purchased from TurboSquid domain. It is built from a 3D laser scanner with 0.1 mm accuracy using laser topography (LT) technique. The solid geometry is defined with the help of a surface triangular mesh which is obtained from the LT point cloud.

Each hip bone is connected to sacrum at sacro-iliac joint, other hip bone at pubic symphysis and the femur at acetubulum (Fig. 1). The deformation of the sacro-iliac joint and pubic symphysis are negligible when compared with the acetabulum, hence the pubic symphysis and the sacro-iliac joint are fixed and the hip joint force is applied at acetabulum [7]. Hip bone is connected to 21 muscles which apply active forces during various ADLs through the muscle attachment areas. Hence, we include the muscle forces in the force boundary conditions and the magnitude of the muscle forces are either adopted from the literature or obtained from OpenSim software.

Fig. 3
figure 3

Eight phases of walking gait cycle [25]

Table 1 Description of load phases and hip joint forces during a gait cycle for a human of weight 650 N [6]
Table 2 Muscle forces on hip bone during eight phases of gait cycle for a human of weight 650 N [6]

2.3 Activities of daily living (ADLs)

2.3.1 Walking

The walking gait cycle is divided into eight phases as shown in Fig. 3. The magnitude of the hip joint force and muscle forces for a person of body weight of 650 N during walking gait cycle is presented in Tables 1 and 2, respectively, and are adopted from Dalstra and Huiskes [6]. The coordinate data for proximal and distal points of muscle are presented by Dostal and Andrews [4] are used in this work to find out the muscle directions.

Fig. 4
figure 4

Five phases of sit-to-stand [19]

Table 3 Description of load phases and hip joint forces during sit-to-stand for a human of weight 650 N [18]
Table 4 Forces on hip bone during five phases of sit-to-stand for a human of weight 650 N [19]

2.3.2 Sit-to-stand

The sit-to-stand is divided into five phases as shown in Fig. 4. We use OpenSim software to obtain the muscle forces acting on the hip bone for sit-to-stand. We use the model presented by Caruthers et al. [19] to calculate the muscle forces for sit-to-stand. The direction of the muscle forces is obtained from the ‘MuscleForceDirection’ plugin in OpenSim [31, 32]. The hip joint force for sit-to-stand is adopted from Yoshioka et al. [18]. The description of the load phases and corresponding hip joint forces during sit-to-stand for a human of weight 650 N is presented in Table 3. Table 4 lists the muscle forces for the five phases of the sit-to-stand for a human of weight 650 N [19].

This work uses the finite element model of the hip bone from our previous work Kumar and Rakshit [25], which is validated against literature.

2.4 Procrustes analysis

Procrustes analysis (PA) is a technique to find the shape similarity between two shapes using coordinate data. PA removes translation, scaling and rotation components from either of the coordinate data to produce the transformed data. The normalized sum of squared distance between the transformed data and other coordinate data gives the dissimilarity index (D). The similarity index (S) is defined as:

$$\begin{aligned} S = 1 - D. \end{aligned}$$
(7)

2.5 Combination between walking and sit-to-stand

This section describes a method that uses the shape similarity values for a user-guided design of the hip bone. The method follows closely the approach presented in [25], however, in this work we extend it to two ADLs, walking and sit-to-stand. To understand our approach, let the walking phases be denoted by the set \(S_1=\{I,II,III,IV,V,VI,VII,VIII\}\) and sit-to-stand phases be denoted by the set \(S_2=\{A,B,C,D,E\}\). The problem is to determine how many permutations exist without any repetition. Each permutation denotes a sequence of user guided optimization procedure. For example, the permutation \(I-A-II-B\) implies the following design procedure: on optimal design (\(D_1\) say) from loading conditions of I use loading conditions of A to get a new optimal design (\(D_2\) say), then use loading condition II on \(D_2\) to get the optimal design \(D_3\), and then get the final design \(D_4\) by applying loading condition B on \(D_3\). There can be different ways of determining the permutations. If elements of \(S_1\) and \(S_2\) are chosen indiscriminately, then total number of permutations is \(13!=6227020800\). One may wish to reduce the number of permutations by choosing to apply elements of \(S_1\) and \(S_2\) alternatively. This gives \(2\times 8!\times 5!=9676800\) permutations (the 2 is for selecting either of \(S_1\) or \(S_2\) first). However, this also gives a very high number of permutations. As we will show later, the designer can reduce the number of permutations by only choosing a small number of optimal designs that have high shape similarity with the natural hip bone. Thus, if \(S'_1=\{I,III,V\}\) be the set of designs with high shape similarity from walking, and \(S'_2=\{A,D\}\) be the set of designs with high shape similarity from sit-to-stand, then indiscriminate mixing gives \(5!=120\) permutations, while alternate selection of elements from \(S'_1\) and \(S'_2\) gives \(2\times 3!\times 2!=24\) permutations. This intuitive user guided design approach leads to much saving in computation time as each optimization run takes approximately 8–9 h of computation time in a i7 3.60 GHz computer with 32 GB RAM.

3 Results

The section presents the optimal design of the hip bone for walking and sit-to-stand using a topology optimization solver (OptiStruct\(^{\textregistered }\)). The simulations are performed on a desktop computer with an Intel(R) Core i7, 3.60 GHz processor and 32 GB of RAM that consumes approximately 8–9 h to converge to an optimal solution. This work uses isotropic elastic cortical bone properties (Young’s modulus = 17 GPa and Poisson’s ratio = 0.3) in topology optimization and finite element analysis of the natural hip bone.

Fig. 5
figure 5

Optimal designs of the hip bone for eight phases of walking gait cycle. The first row gives the interior view while the second row gives the exterior view of the optimal designs in each phase. At bottom the shape similarity values of the each optimal design with the natural hip bone are presented (adopted from [25])

Fig. 6
figure 6

von-Mises stress distribution of the optimal designs obtained from topology optimization for eight phases in a gait cycle. Top row represents the interior view and bottom row represents the exterior view. The values in legend are in MPa (adopted from [25])

Table 5 Shape similarity index and compliance of the optimal solution for eight phases of the gait cycle of a human weight 650 N
Table 6 Maximum stress and maximum displacement of the optimally designed hip bones and the natural hip bone during walking for a human of body weight of 650 N (adopted from [25])

3.1 Optimal design of the hip bone for walking gait cycle

The optimal designs of the hip bone and the corresponding stress distributions for eight phases of walking are obtained from our previous work Kumar and Rakshit [25] and shown in Figs. 5 and 6, respectively. The first row gives the interior view, while the second row gives the exterior view of the optimal designs. The shape similarity values and compliance of the optimal designs are compared with the natural hip bone and listed in Table 5. Phases III and IV have high shape similarity with the natural hip bone since these two phases have inactive lower muscle forces, which creates a hole in the lower portion of the designs in the same region as the obturator foramen. Phase VI has high compliance (167 N-mm) and phase VII has low compliance (20.72 N-mm). Table 6 compares the maximum stress and maximum displacement of the optimally designed hip bones with the natural hip bone. Phase VI has high value of maximum stress (192.7 MPa) and phase II has low value of maximum stress (40.79 MPa). The highest value of maximum displacement is in phase VI (0.419 mm) and the lowest value of maximum displacement is in phase II (0.102 mm).

Fig. 7
figure 7

Optimal designs of the hip bone for five phases of sit-to-stand. The first row gives the interior view while the second row gives the exterior view of the optimal designs in each phase. At bottom the shape similarity values of the each optimal design with the natural hip bone are presented

Fig. 8
figure 8

von-Mises stress distribution of the optimal designs obtained from topology optimization for five phases of sit-to-stand. The top row represents the interior view and the bottom row represents the exterior view. The values in legend are in MPa

Table 7 Compliance and shape similarity index of the optimally designed hip bone and the natural hip bone during the sit-to-stand
Table 8 Maximum stress and maximum displacement of the optimally designed hip bones and the natural hip bone during sit-to-stand for a human of body weight of 650 N

3.2 Optimal design of the hip bone for sit-to-stand

Figure 7 shows the optimal designs of the hip bone obtained for the five phases of the sit-to-stand and the corresponding stress distributions are shown in Fig. 8. Phases I and III create a small hole in the lower portion of the optimal designs, while the remaining phases only remove a layer of material from the lower portion. The size of the hole in the lower portion of sit-to-stand is small compared to walking as the high stresses in the lower portion of optimal designs of sit-to-stand are more than that of the optimal designs of walking (Figs. 68). Table 7 lists the shape similarity values of the five optimal designs. Phase I has high shape similarity and is equal to 63.86%. The magnitude of lower muscles such as adductor muscles, semitendinosus, semimembranosus are low in the phases I and III. These muscles create low stresses in the lower portion and the hip joint force along with the upper muscles creates high stresses in the upper portion (Fig. 8). Hence, the material is removed from the lower portion and creates a hole similar to obturator foramen.

From Table 7 we see that the optimal designs have low compliance compared to the natural hip bone, which indicates that the optimal designs are stiffer than the natural hip bone. Among all five phases, phase IV has high compliance (486.31 N-mm) and phase II has low compliance (64.90 N-mm). The maximum compliance value in walking is 196.04 N-mm, which is nearly 0.4 times the maximum compliance value of sit-to-stand. This is because of the high magnitude of the muscle forces in sit-to-stand than the walking. These muscle forces create high stresses in sit-to-stand as shown in Figs. 6 (vi) and 8 (iv). The number high stress zones are more in sit-to-stand than the walking, hence the high compliance in sit-to-stand. Table 8 enlists the maximum stress and maximum displacement of the optimal designs and the natural hip bone. Phase V has high value of maximum stress (308.5 MPa) and phase II has low values of maximum stress (97.05 MPa). The maximum stress value of walking (192.4 MPa) is nearly 0.6 times the maximum stress value of sit-to-stand as the magnitude of the muscles is high in sit-to-stand (Tables 24). These phases also have high compliance values.

From Figs. 5 and 7, it is observed that not all phases create a hole in place of obturator foramen. Some phases of walking and sit-to-stand create a hole in lower portion, whereas the remaining phases remove material in upper portions as dents. Figure 5 shows that walking phases III and IV produce highest shape similarity by producing a moderate sized hole in the same region as the obturator foramen in the natural hip bone. Figure 6 shows in the corresponding stress plots that the lower portion in these phases is not highly stressed which may be the reason as to why the hole is generated in topology optimization. The holes generated in phases I and III of sit-to-stand are much smaller compared to that generated in walking. From Fig. 8 we notice that the stress ranges in phases I and III of sit-to-stand are similar to the stress ranges in phases III and IV in walking. However, in phases I and III of sit-to-stand the high and low stressed zones are sort of mixed (high stress red-green and low stress blue in Fig. 8) whereas in phases III and IV of walking there is clear demarcation between the high and low stressed zones (high stress green more in upper part and low stress blue in lower part in Fig. 6). Thus, we conclude that the lower part should not only experience low stress, but a contrasting stress profile, i.e., the upper part experiencing predominantly high stress and lower part predominantly low stressed, is an essential criterion for topology optimization to create a moderate sized hole in the same region as the obturator foramen.

Fig. 9
figure 9

The selected phases from the walking and sit-to-stand are shown in the middle row. The first and last rows give the eight possible combinations between walking and sit-to-stand

Fig. 10
figure 10

Schematic representation of the procedure of combination between walking and sit-to-stand by imposing phase I sit-to-stand loads on modified optimal design from phase III walking. The percentages above the figures indicate shape similarity with the natural hip bone

3.3 Combination between sit-to-stand and walking

As explained before, each optimization run takes nearly 8–9 h on a desktop computer with 32 GB RAM and i7 3.60 GHz processor, considering all phases for combination of activity is computationally prohibitive. Hence, we choose two phases with high shape similarity from each ADL for the combination between walking and sit-to-stand. This reduces the total combinations to \(2\times 2!\times 2!=8\). We select phase III and phase IV having shape similarity of 76.96% and 69.08%, respectively, from walking and phase I and phase III having shape similarity of 63.86% and 62.52%, respectively, from sit-to-stand for combination between walking and sit-to-stand. Figure 9 shows the list of possible combinations between walking and sit-to-stand. The selected phases from the walking (3W, 4W) and sit-to-stand (1S, 3S) are shown in the middle row. As explained earlier, this gives a total of eight combinations and these eight combinations are divided into two sets based on the input and loading conditions. The first set consists of the first four combinations, where we apply walking loads on the modified input obtained from sit-to-stand and shown in last row of Fig. 9 with S-W sequence. The second set consists of the last four combinations, where we apply sit-to-stand loads on the modified input obtained from walking and shown in first row of Fig. 9 with W-S sequence. The following is a list of combinations of walking and sit-to-stand applied as put in the sequence:

  • Case (i): phase I sit-to-stand and phase III walking (IS–IIIW)

  • Case (ii): phase I sit-to-stand and phase IV walking (IS–IVW)

  • Case (iii): phase III sit-to-stand and phase III walking (IIIS–IIIW)

  • Case (iv): phase III sit-to-stand and phase IV walking (IIIS–IVW)

  • Case (v): phase III walking and phase I sit-to-stand (IIIW–IS)

  • Case (vi): phase III walking and phase III sit-to-stand (IIIW–IIIS)

  • Case (vii): phase IV walking and phase I sit-to-stand (IVW–IS)

  • Case (viii): phase IV walking and phase III sit-to-stand (IVW–IIIS)

Figure 10 explains the procedure of combination between walking and sit-to-stand by imposing phase I loads of sit-to-stand on optimal design obtained from phase III loads of walking. We observe that the optimization process converges to a local optimal solution in 2-3 iterations. The obtained optimal design is similar to the input (the output from the phase III walking loads) because the input is already an optimal solution and optimization on this input does not give a better solution. So, we modify the input by patching the dents present in the upper portion which also has the effect of moving the initial input to the optimization solver sufficiently away from the local minimum corresponding to the previous solution. This procedure is done for all eight combinations to give enough deviation to the optimization solver to converge to different distinct optimal solutions. This procedure also ensures wide-range exploration of the multi-dimensional design space.

Table 9 Compliance and shape similarity values of optimal designs obtained from the combination of sit-to-stand and walking
Fig. 11
figure 11

Optimal designs of the hip bone obtained by imposing walking load conditions on the modified input from the sit-to-stand. At bottom the shape similarity values of the each optimal design with the natural hip bone are presented

Fig. 12
figure 12

von-Mises stress distribution of the optimal designs obtained from the combination of sit-to-stand and walking. The values in legend are in MPa

Table 10 Maximum stress and maximum displacement of the optimally designed hip bones from the combination of sit-to-stand and walking and the natural hip bone for a human of body weight of 650 N

3.3.1 Combination of sit-to-stand and walking

This section presents the optimal design of the hip bone obtained from applying walking loads of phases III and IV on the optimal designs from sit-to-stand of phases I and III. The four combinations are:

  • Case (i): IS–IIIW

  • Case (ii): IS–IVW

  • Case (iii): IIIS–IIIW

  • Case (iv): IIIS–IV W

Figure 11 shows the four optimal designs obtained from the combination of sit-to-stand and walking phases, i.e., applying the walking loads on the modified input obtained from the sit-to-stand and the corresponding stress distributions are shown in Fig. 12. Table 9 presents the shape similarity values and compliance of the four optimal designs. Case (i) has high shape similarity due to the presence of a small hole and surface dents in the upper portion of the design. Although the size of the hole in the case (iii) is bigger than the other optimal designs, presence of surface dents in both lower and upper portion causes low shape similarity. Phases III and IV of walking remove material from lower portion of design since the lower muscles creates less stresses in the lower portion than the upper portion (Fig. 12). But in the above optimal designs, these loads create a tiny hole and keep a layer of material in the lower portion of the design. This is due to the inputs which are obtained from the sit-to-stand have a hole in the upper portion. Hence, the loads do not create a complete hole to preserve the volume constraint. In summary, the shape similarity increased with respect to sit-to-stand optimal designs, but reduced with respect to optimal designs from walking. Case (iii) has the lowest value of compliance (29.81 N-mm), whereas case (ii) has highest value of compliance (58.86 N-mm). Case (i) and case (iii) have low compliance than case (ii) and case (iv) since phase IV walking produces high compliance compared to phase III walking. Case (ii) and case (iv) designs have more high-stress zones (red colour zones above 10 MPa in Fig. 12) implies high compliance than the other two cases.

Table 10 presents the maximum stress of optimal designs from cases (i)–(iv) and the natural hip bone. It is observed that the maximum stress of the optimal designs is closely matched with the natural hip bone. Case (ii) design has the highest value of maximum stress and is equal to 110.2 MPa, whereas case (i) has the lowest value of maximum stress and is equal to 72.44 MPa. Table 10 also enlists the maximum displacement value of optimal designs and natural hip bone. It is clear that the maximum displacement are lower in optimal design compared to natural hip bone. The highest value of maximum displacement occurs in case (ii) and is equal to 0.243 mm, whereas the lowest value occurs in case (i) and is equal to 0.164 mm.

Table 11 Compliance and shape similarity values of optimal designs obtained from combination of walking and sit-to-stand
Fig. 13
figure 13

Optimal designs of the hip bone obtained by imposing sit-to-stand load conditions on the modified input from the walking. The top row gives the interior view and the bottom row gives the exterior view. At bottom the shape similarity values of the each optimal design with the natural hip bone are presented

Fig. 14
figure 14

von-Mises stress distribution of the four optimal designs obtained by imposing sit-to-stand loads on the modified input from the walking. The values in legend are in MPa

Table 12 Maximum stress and maximum displacement of the optimally designed hip bones from the combination of walking and sit-to-stand and the natural hip bone for a human of body weight of 650 N

3.3.2 Combination of walking and sit-to-stand

This section presents the optimal design of the hip bone obtained from applying sit-to-stand loads of phases I and III on the optimal designs from walking of phases III and IV. The four combinations are:

  • Case (v): IIIW–IS

  • Case (vi): IIIW–IIIS

  • Case (vii): IVW–IS

  • Case (viii): IVW–IIIS

Fig. 15
figure 15

Optimal design after removing the buttress from lower portion of the optimal design obtained from case (v) (Fig. 13 (v))

Fig. 16
figure 16

von-Mises stress distribution of the optimal design after removing the buttress from case(v) (Fig. 13 (v)). The values in legend are in MPa

Figure 13 shows the optimal designs obtained from the combination of walking and sit-to-stand, i.e., applying loads of sit-to-stand on the optimal designs obtained from the walking. The shape similarity values and compliance of all four designs are presented in Table 11. Case (v) design has highest shape similarity and is equal to 78.77%. Although two holes are generated (a large one and a smaller one), the enhanced similarity is probably due to overall shape similarity of the zone close to the obturator foramen. The optimal designs obtained from the combination of walking and sit-to-stand have high shape similarity than the optimal designs from the combination of sit-to-stand and walking. This indicates that the final design is dependent not only on the selection of the particular phases, but also on the sequence in which they are applied. Table 11 also presents the compliance of both the optimal designs obtained from combination of walking and sit-to-stand and the natural hip bone. Case (viii) has the lowest value of compliance (148.69 N-mm), whereas case (v) has highest value of compliance (155.31 N-mm). Case (v) and case (vii) have higher value of compliance than case (vi) and case (viii) since phase I of sit-to-stand generates higher compliance than phase III of sit-to-stand. The optimal designs obtained from the combination of walking and sit-to-stand have high compliance than the optimal designs obtained from the combination of sit-to-stand and walking. Since phases I and III of sit-to-stand have high muscle activity than phases III and IV of walking, which produces high stresses in sit-to-stand. Optimal designs from the sequence walking first, and then sit-to-stand produces higher shape similarity than sit-to-stand first, then walking. It is also interesting to note that once the hole is created in the zone of the obturator foramen, other loading conditions only enlarge the hole in that zone.

Figure 14 shows the von-Mises stress distribution of the four optimal designs. High-stress zones are presented in the upper portion of the hip bone near the acetabulum, the pubis bone and around the acetabulum. Sacro-iliac joint and pubic symphysis experiences the maximum stress. The stress distribution of the four optimal design are almost similar since the muscle forces of phase I and phase III loads follow the same trend. This can be the reason for closest values for compliance (maximum is 155.31 N-mm and 148.69 N-mm) of the four optimal designs. Table 12 lists maximum stress values of optimal designs and natural hip bone. The highest value of maximum stress is in case (v) and is equal to 172.2 MPa, whereas the lowest value of maximum stress is in case (viii) and is equal to 167.5 MPa. It is observed that the maximum stress is low in optimal designs compared to natural hip bone. Table 12 also enlists the maximum displacements of optimal design and natural hip bone. The highest value of maximum displacement is in case (v) and is equal to 0.417 mm, whereas the lowest value is in case (viii) and is equal to 0.386 mm (Table 13).

Table 13 Comparison of compliance, shape similarity, max. stress and max. displacement values for the optimal design with buttress (Fig. 13 (v)) and without buttress (Fig. 15) in the lower portion

3.3.3 User-guided prosthesis design

We observe two holes in lower portion of optimal design obtained from case (v) and case (vi) (Fig. 13 (v) and (vi) respectively) and the part between the holes looks like a buttress. However, such a buttress may cause obstruction of the blood vessels and nerves that pass through the obturator foramen. From a prosthesis point of view also such a part might be difficult to manufacture and form a weak link in the final product. Hence, a designer may wish to remove this buttress from the final design if it does not lead to much change in compliance and maximum stress. To see the effect, we remove the buttress from case (v) design. Figure 15 shows the design after removing the buttress. The shape similarity of the design increases to 81.85% from 78.77%. The compliance value is 159.2 N-mm which is higher than compliance value of 155.31 N-mm of the optimal design from which the new design is derived, but lower than the compliance value of 165.75 N-mm of the natural hip bone. Figure 16 shows the stress distribution of the design. The variation of compliance due to the buttress removal is 2.5%, while for the stress it is equal to 0.81%. Thus, this design may be accepted as the best design with highest shape similarity and higher stiffness than the natural hip bone.

4 Conclusions and future work

In this work, we explored whether loads from ADLs can form a structure similar in geometry to the hip bone under the same structural and functional constraints as the natural hip bone. This is posed as a compliance minimization problem under loads of two ADLs, walking and sit-to-stand, along with the volume constraint equal to the volume of the natural hip bone and solved using the topology optimization software OptiStruct\(^{\textregistered }\). The current work is the first attempt to design hip bone for sit-to-stand motion. The optimal designs are compared for shape similarity with the natural hip bone using Procrustes analysis. We also developed a two-step user guided design approach in which final designs are arrived after application of loads of one ADL on the optimal designs obtained from the other ADL. The current work is an initial work to design the hip bone using the above discussed two-step approach. Our results show that we can achieve structures stiffer than the natural hip bone while maintaining good shape similarity with the same.

As mentioned before, this is one of the first works on designing the global geometry of a complex structure like the hip bone using topology optimization. The results can be validated by conducting experiments on the obtained optimal designs and natural hip bone for simple boundary conditions. This work can be extended to other human activities like stair climbing, running, cycling, etc. In the present work, we used cortical bone properties to design the hip bone since the OptiStruct\(^{\textregistered }\) solver is not able to design sandwich material, hence one can extend this work to design of sandwich materials. Then, the research work will comprise both design of bone micro-structure and optimization of global geometry of the hip bone.

Nature performs a multi-criterion optimization (objectives like metabolic cost, time varying functions), to arrive the current shape of the hip bone. However, in the current work, we have done single objective optimization. Other types of objectives can be included to extend the current work. This work can be extended to include the constraints related to obstruction of the blood vessels and nerves while doing topology optimization.

This work is the first step towards the design of prosthesis including the effect of muscle forces using topology optimization. It is identified that the mass of the prosthesis and natural hip bone is not same due to different material properties. One can include a mass constraint while designing the prosthesis to reduce the mass of it. Further, the mass of the prosthesis can be reduced by using lattice-structured material instead of a solid material.