Introduction

Malunion is a complication that arises when fractured bone segments unite in a suboptimal position [1]. As a result, the malunited bone is characterized by non-anatomical bending, twist and/or shortening. In the case of radius malunion, this deformity can compromise the natural biomechanics of the distal radioulnar and radiocarpal joints and lead to a loss of wrist function and forearm rotation [2]. When the malunion is symptomatic, it is treated by corrective osteotomy surgery in which the bone is cut at the level of the deformity and subsequently realigned and fixated in a more anatomical position [3]. Since the outcome of the surgery is directly related to bone realignment [4, 5], accurate surgical planning is fundamental.

In the last decades, three-dimensional (3D) computer-assisted techniques in preoperative planning of corrective osteotomy of the radius have been established [6,7,8]. In these 3D techniques, relying on a bilateral computer tomography (CT) scan of the radius, the optimal correction parameters are calculated in six degrees of freedom by using the mirrored contralateral bone as reference [9,10,11]. The correction parameters can then be used to virtually perform the osteotomy and to reposition the bone segments.

Despite the growing popularity of 3D planning techniques, one of the major challenges is the transfer of the preoperative plan to the patient during surgery. A promising solution is the use of patient-specific instruments (PSIs) such as surgical cutting guides and implants designed to match the patient’s anatomy. The cutting guide is used to physically transfer the osteotomy planning, while the plate, which fits the deformed bone segments in the planned alignment, is subsequently used to fixate the bone segments [10, 12]. These custom guides and implants (PSIs) can be modeled using computer-aided design (CAD) software during preoperative surgical planning and fabricated via a computer-aided manufacturing (CAM) technology, such as 3D printing [3, 9, 10, 13,14,15,16,17].

Yet, despite the auspicious clinical results [12], PSIs are still not the first choice for every surgery mainly because of the costs and time related to PSIs design and manufacturing. Due to the complexity and scarce automation of commercially available standard CAD software [18, 19], design of PSIs can be an exhausting process taking up to several hours [20]. Although initiatives have been proposed to customize standard CAD software to automatize repetitive tasks (e.g., via Visual Programming), more automated techniques targeting specific PSI design tasks may be beneficial to make the design process more efficient.

Therefore, the purpose of the present study is to introduce and evaluate a novel method that reduces the complexity and speeds up the design of PSIs for corrective osteotomy of the radius. Hence, we compared the time and the user interaction required when designing PSI using a standard, partially customized and the proposed dedicated CAD software solutions.

Methods

Design of PSIs for corrective osteotomy requires preoperative position planning based on the contralateral healthy bone. In this study, preoperative planning was performed in 3D with existing custom-made software, as described by Dobbe et al. [9, 21, 22]. In brief, we obtain a 3D polygon model of the affected radius by image segmentation (level set segmentation initialized by region growing) from a CT scan of the patient’s forearm. Distal and proximal segments are subsequently clipped, excluding the deformed region. Registration of these clipped segments to the mirrored CT image of the contralateral healthy bone (Fig. 1a) results in a correction matrix \( M_{\text{c}} \) which brings the distal bone segment to the planned position. The surgeon then chooses an osteotomy plane (Fig. 1b). The distal segment resulting from the virtual osteotomy is repositioned using \( M_{\text{c}} \) (Fig. 1c) [1, 2].

Fig. 1
figure 1

a During position planning a distal and proximal segments of the affected bone are registered to the mirrored image of the healthy bone, here shown in a multi-planar reconstruction (MPR) view; b the surgeon chooses the osteotomy plane; c the distal segment is repositioned from the affected (red) to the planned (green) position using \( M_{\text{c}} \)

In this study, results of the preoperative plan were considered as starting point for PSI design. These consisted of a 3D virtual model in the stereolithographic format (STL) of the affected bone, the osteotomized bone segments in the affected position, an additional version of the distal bone segment in the planned position and the correction matrix \( M_{\text{C}} \). The next paragraphs describe the three selected CAD software solutions (standard, partially customized and dedicated) to create guides and customized plates and the evaluation method that was used to compare them.

PSI design using standard CAD software

As a standard CAD software for PSI design, we evaluated 3-matic (Materialise, Leuven, Belgium), an established PSI design software package already adopted in many clinical studies [23, 24]. In this software, several manual operations are required to accomplish the task of designing PSIs for corrective osteotomy. The adopted workflow is summarized in Fig. 2a. We started the design of the implant by importing the STL datasets of the proximal and the distal bone polygons in the planned relative position. The sweep-loft function was then used to interpolate in-between these virtual bone segments. “Push and pull” manual operations were then required to locally smooth the interpolated region. On the surface of this corrected bone model, we manually positioned and oriented lines representing drill trajectories. A 2D sketch of the implant footprint was manually drawn and projected onto the corrected bone surface to select the implant footprint including the screw locations. The footprint was extruded, and the edges were smoothed. Finally, drill holes were created by subtracting cylinders of a specified diameter at locations indicated by the drill lines.

Fig. 2
figure 2

Workflow for each of the three investigated CAD solutions. Red blocks represent manual operations and green blocks represent automatic operations. a Materialise 3-matic-adopted workflow; b Siemens NX partially customized solution; c the proposed semiautomatic solution, the only manual step is the definition of the drilling lines. During the rough footprint selection, adjusting the size of the projection box is performed semiautomatically (orange block)

In order to create the surgical guide, the repositioned distal segment had to be registered to the original position (via point-cloud fitting). This enabled retrieving the transformation parameters (which, in this case, could not be provided via the transformation matrix) to bring the distal drilling lines to the affected state of the bone. After importing the STL of the affected bone, a 2D sketch, including the drilling line insertion points, was drawn onto its surface to select the guide footprint. The same steps mentioned before were then executed onto the guide footprint. Finally, a slit of thickness 0.8 mm was created centered around the previously chosen cutting plane.

PSI design using customizable CAD software

A partially customized CAD software solution was developed with Siemens NX (formerly known as NX Unigraphics; Siemens PLM software, Plano, TX, USA). Siemens NX is a multi-purpose industrial design, simulation and manufacturing software providing a collection of Parametric Product Models under the name “Product Template Studio.” Every Parametric Product Model corresponds to a function that can be manually activated in NX. In “Product Template Studio,” the user can create, by Visual Programming, custom interfaces by linking different Parametric Product Models to automatize the design. In this environment, we created two separate applications, respectively, for the implant and guide design. The overall workflow of implant and guide design applications are summarized in Fig. 2b and detailed below.

Preliminary step Before running the design applications, definition of the drill trajectories is required. These are created by manually positioning virtual lines.

Implant design application A local coordinate system (LCS) has to be defined for both the distal and proximal bone parts. These LCSs will be used to position and project two predefined 2D implant sketches adequately onto the repositioned bone model (Fig. 3a). The 2D sketches can then be manually adjusted by dragging predefined vertices.

Fig. 3
figure 3

a Overview of the predefined 2D sketch for the distal segment. A local coordinate system (LCS) is used to position the sketch. The sketch can be optimized by dragging the vertices (an analogue sketch is used for the proximal bone segment; b 2D distal and proximal sketches are projected onto the respective target bone polygons, extruded into 3D plate segments and merged by interpolation

After the sketches have been shaped as desired, the automatic design procedure is started. In brief, both proximal and distal sketches are projected onto the target bone to retrieve two partial implant footprints. The partial footprints are then extruded and merged by interpolation to create the plate (Fig. 3b). Corners around the plate are blended to avoid sharp edges. To finish implant design, screw holes were created centered around the predefined drilling lines.

Guide design application The application for surgical guide design uses almost the same consecutive commands as described for the implant design. However, the interpolation step is not required for the surgical guide design. The local coordinate system (LCS) is defined onto the surface of the affected bone polygon. Again, a predefined 2D sketch for the guide is positioned at the origin of the LCSs. After manual optimization of the 2D sketch, the automatic design procedure is started with the same steps as previously mentioned. The cutting slit is manually created by using the cutting plane position. To realize the correct positions for the drilling holes on the surgical guide, the inverse of the correction matrix (M −1c ) is used to transform (a copy of) the distal lines representing the distal drilling lines, on the correct positions with respect to the surgical guide. The slit of thickness 0.8 mm was created centered around the predefined cutting plane.

PSI design with dedicated software

A semiautomatic CAD wizard was added to the existing custom software for surgical planning [21, 22]. The wizard was implemented in the C++ programming language (Visual Studio 2013, Microsoft, Redmond, WA). The Visualization Toolkit (VTK 7.0.0) was used for modeling and visualization in 3D space. Sequential steps in the design approaches are summarized in the workflow of Fig. 2c.

Drill-line placement A virtual model of the osteotomized bone segments in the planned position is created by application of the correction matrix \( M_{\text{c}} \) (Fig. 4a). The user selects a number \( n \) of screw insertion points by tagging them on this model. Screw trajectories represented by lines are automatically proposed in the direction of the local surface normal of the bone model although the line can be adjusted manually (Fig. 4b).

Fig. 4
figure 4

Proposed workflow in automated design of custom implants: a reduced bone model with the segments in the planned position; b on this model, the user selects the screw insertion points on, e.g., the volar side of the radius. The lines represent screw trajectories; c the average cylinder directions and the screw insertion points are used to automatically size and orient a virtual box to select the implant footprint on the corrected bone model; d a regular grid of point from one side of the virtual box is projected onto the surface of the corrected bone model

Corrected bone model In order to shape the implant footprint, i.e., the portion of the implant fitting the bone surface, a model of the corrected bone without a bone defect is realized by interpolating the space between the repositioned segments. Interpolation is done by sweeping the bone cross section along a cubic Bezier curve with starting and ending control points, respectively, at the centroid of the cross section in the proximal and distal bone segments [9].

Footprint surface selection To automatically position the box for selecting an initial footprint out of the affected bone polygon, the principal axes of inertia of the selected set of screw insertion points are calculated as the eigenvectors of their Inertia Tensor. They define a local coordinate system in which a virtual box is positioned that bounds the screw entry points. The box (Fig. 4c) is enlarged in the extrusion direction by h, which is equal to the distance between the centroid of the screw entry points and the centroid of points where they exit the bone. In the remaining directions, the box is enlarged by a user-defined size w, to leave space between the screws and the border of the plate. In this study, w was 6 mm. The center of the box is positioned in the centroid of the screw entry points. The box can be resized by the user. A regular grid of points is then projected from the volar side of the box toward the corrected bone polygon along the average screw direction (\( \vec{d} \)) (Fig. 4d). The result of the projection is a grid of 3D points equally spaced in two out of three dimensions. Tessellation of the projected points results in an initial implant footprint or inner surface, i.e., the portion of the bone surface to which the implant fits.

After selecting the footprint surface, the general idea is to copy and translate the footprint in the extrusion direction and then create a smooth circumferential rim by connecting each boundary point (\( p_{i} \)) of the inner surface to its corresponding point (\( p_{i} '' \)) on the outer surface by means of a cubic b-spline. Each b-spline \( b_{i} \) (with \( i = 1 \ldots n \) and \( n \) being the number of points on the outline of the inner and outer plate surfaces) is interpolating \( p_{i} \), \( p''_{ i} \) and an intermediate point \( p'_{i} \) (Fig. 5b).

Fig. 5
figure 5

Principle of the creation of an implant with a smooth circumferential rim. a The outer surface is a translated and smoothed version of the inner surface; b the bulging shape of the circumferential rim is obtained by fitting a cubic b-splines through each boundary point \( p_{i} \), its corresponding copy on the outer surface (\( p''_{i} \)) and an intermediate point (\( p'_{i} \)). The distance b determines the bulge of rim of the implant; c simplified sketch representing the 2D projection of the points making up the boundary of the implant footprint. Vector \( \vec{e} \) is a bisecting unity vector, which splits the angle α between two consecutive boundary points. Intersections of b-splines can occur in case α < 180°

The position of the intermediate point \( p'_{i} \) determines the orientation of the plane in which the b-spline resides and the bulge of the circumferential rim. Initially, the position of \( p'_{i} \) is

$$ p'_{i} = p_{i} + \left( {b \cdot \vec{e} + \frac{t}{2} \cdot \vec{d}} \right) $$

where \( b \) and \( t \) are user-defined scalars representing the bulge of the implant and the implant thickness; \( \vec{e} \) is a bisecting unity vector starting at \( p_{i} \) splitting the external counterclockwise angle (α) between the vectors \( \overrightarrow {{p_{i} p_{{\left( {i - 1} \right)}} }} \) and \( \overrightarrow {{p_{i} p_{{\left( {i + 1} \right)}} }} \) in two (Fig. 5c).

However, design of circumferential rims in the procedure above may not work in case the outline is locally strongly concave, i.e., \( \alpha_{i} < \) 180° in which case intersections of b-splines can occur depending on the edge bulge b (see Fig. 5c).

Therefore, we implemented an iterative algorithm that, for a user-defined value of \( b \), checks for b-spline intersections and reduces concavity by smoothing the footprint outline, until the b-splines no longer intersect. Finding intersections between each couple of segments was implemented as described in [25]. Whenever an intersection is found, we applied a simple central moving average filter to the outline points, which has the effect of repositioning each point based on the position of its two boundary neighbors. Based on the new position of the points \( p_{i} \), points \( p'_{i} \) are recalculated and intersections are checked. This procedure is iterated until no more intersections are found. Since the b-splines that define the circumferential rim do not depend on where along the projection axis (\( \vec{d} \)) each point \( p_{i} \) is found, smoothing of the plate outline is implemented in 2D. The 2D smoothed contour is then reprojected onto the bone model, and the surface of the bone contained inside the 3D contour is selected as the new implant footprint.

Outer surface smoothing A copy of the inner surface is smoothed and translated over a distance equal to the implant thickness \( t \) (default 2.4 mm) in the direction (\( \vec{d} \)) and represents the top surface of the plate. Smoothing of the top surface is accomplished by Laplacian smoothing (15 iterations) [26, 27]; the new position of each interior mesh points \( q_{i} \) after smoothing is calculated as

$$ q_{i} = q_{i} + \lambda \cdot \Delta \left( {q_{i} } \right) $$
$$ \Delta \left( {q_{i} } \right) = \frac{1}{{\left| {N_{i} } \right|}} \cdot \left( {\mathop \sum \limits_{{j \in N_{i} }} q_{j} } \right) - q_{i} $$

with \( N_{i} \) being the set of the connected neighboring points to \( q_{i} \) and \( \lambda = 0.3 \) being the relaxation factor.

Subtraction of drilling lines The final step in the implant design consists in creating the screw holes in the plate by Boolean subtraction of the drilling lines from the implant.

Surgical guide modeling Once the design of the implant is completed, the guide design is subsequently started. The first step in the guide modeling is transforming the drilling holes (that are already defined in the plate design method) back to the affected bone model through the inverse of the correction matrix \( M_{\text{c}}^{ - 1} \). We use the same methodology described before for automatically sizing a virtual box and selecting the bone surface for fitting the guide based on the screw insertion points, to select the surface of the affected bone where the cutting guide will be positioned. This time, the selecting box is slightly oversized to better enclose the bone, which ensures a better fit and easier guide positioning during surgery [15]. The selected guide footprint is directly extruded, and a cutting slit and screw holes are included into the guide by Boolean subtraction.

Laboratory study

A laboratory experiment was performed to evaluate the feasibility to print the PSI designed with the novel method and to use it for bone repositioning. 3D models of an affected bone, the corresponding PSIs and the corrected model (reference model) were 3D printed in Polycarbonate-ISO (PC-ISO) (Fig. 6). Printing was performed with a Fortus 450 mc fused deposition modeling printer (Stratasys, Eden, Minnesota, USA). Accuracy of the printer was ± 0.127 mm in all the printing directions. A mock surgery was performed via the guide and the implant, as previously described in [9], onto the plastic model. CT images of the corrected bone and of the reference model were then acquired. The achieved alignment was finally compared to the reference model as described in the previous section by segmentation and registration of the distal and proximal bone segments. Residual positioning errors were expressed in 6 DoF.

Fig. 6
figure 6

3D-printed models used in the laboratory study: a affected bone models with cutting and drilling guide; b after cutting and drilling screw holes in the affected bone model, the patient-specific plate was glued to the resulting bone segments; c corrected bone model used as a reference in the laboratory study to calculate residual repositioning errors

Validation experiments

Three biomedical engineers were recruited, each with experience in implant design with one of the three considered design methods. Preoperative virtual 3D plans of five patients were selected that were previously treated at our institute for corrective osteotomy using a patient-specific implant. Preoperative plans were provided to the participating engineers (STL models of bone segments, the cutting plane and the correction matrix \( M_{\text{C}} \)). Approximate screw positions and drilling line orientations were provided to the participants, via 2D sketches. This simulated the actual qualitative transfer of information between surgeons and engineers in the design stage. For every patient case, the engineers were asked to design a patient-specific volar radius plate and its companion surgical guide featuring the cutting slit and the drill holes required for plate positioning. Since PSI design is often an iterative process, due to modifications requested by the surgeon and/or recommended after strength calculations using finite element analysis, after completing the design task, the engineers were asked to modify the screw configuration of the osteosynthesis material.

Measurements In each procedure, design time, the number of mouse movements and the number of keyboard strokes were recorded from the beginning until the end of the design process through Recorder User Input (RUI) [28], a publicly available logging tool. Tracked mouse movements were also converted into a single image using IOGraph (IOGraph V1.0.1, © Anatoly Zenkov & Andrey Shipilov, 2010–2018), which enabled illustration of the complexity of the design task in a graphical fashion. To check if the activity level of the different users during the tasks was comparable, we also calculated the mouse velocity and the number of clicks and strokes per minute of activity. The validity of all the designed PSI shapes was preliminary assessed by an experienced hand surgeon (SDS).

Results

Correction using the PSIs designed with the novel method was achieved in the mock surgery with residual 6 DOF errors expressed in terms of an anatomical coordinate system (Fig. 7) of: \( \left( {\Delta_{x} ,\Delta_{y} ,\Delta_{z} } \right) = \left( { - 1.68, 1.59, - 0.15} \right)\;{\text{mm}} \) and a rotation error of \( (\Delta_{{\varphi_{x} }} ,\Delta_{{\varphi_{y} }} ,\Delta_{{\varphi_{z} }} ) = \left( { - 0.57, 2.92, 3.60} \right)^{ \circ } . \) Figure 7 shows a color map representing the positioning error calculated as the nearest distance between the planned and achieved positions for every point in the distal segment.

Fig. 7
figure 7

3D reconstruction of the corrected bone and of the repositioned distal segment. Colors on the distal segment represent the nearest neighbor distance between points in the planned and achieved positions

After qualitative examination, all the designed PSI shapes were considered plausible and in agreement with the provided 2D preoperative planning. An example of the designed PSIs with the each of the design methods is shown in Fig. 8.

Fig. 8
figure 8

Resulting implant and companion guide for the same patient case (C4) with the standard (a), the partially customized (b) and dedicated (c) software solutions

Results from user activity tracking in all the five design cases with the different software are shown in Fig. 9. For all the three software solutions, most of the time (42%) was spent on the initial implant design. We evaluated the overall design of an implant, guide and subsequent modification and considered the average parameters as recorded for five cases using the standard software as reference. With the customized commercial software, the average design time, travelled mouse distance and keyboard and mouse strokes were reduced by 46%; 54%; 67% and by 84%; 86%; 90% with the proposed dedicated method. No training effect was visible.

Fig. 9
figure 9

We designed PSIs for five patient cases with the standard (S), partially customized (C) and Dedicated (D) CAD software solutions. For each of the five design cases (C1–C5), we recorded a the design time; b the number of mouse clicks and keyboard strokes and c we calculated the distance traveled by the mouse. These parameters were recorded during the initial design of the implant and guide, and during modification of the PSIs

We found similar levels of user activity as shown in Fig. 10 during the design tasks.

Fig. 10
figure 10

Operator activity in terms of mouse clicks and keyboard strokes and mouse speed (m/min) during the five cases using the different design solutions

Summary statistics of the recorded parameters (median and interquartile ranges (IQR)) calculated after pooling the five designed activity for each software is visualized in Fig. 11. Decreased IQR of time, clicks/stokes count and mouse distance show a reduced variability of design time and user activity across the cases in the custom and the dedicated solutions.

Fig. 11
figure 11

Box plots represent the median and IQR of the measured variables (design time, number of mouse clicks and key strokes) across the five patient cases with the standard (S), partially customized (C) and dedicated (D) CAD software solutions

Tracked mouse movements’ images of the design activity of the participants (Fig. 12) also visualize a more reproducible pattern of interaction with the proposed dedicated solution.

Fig. 12
figure 12

Picture resulting from mouse movements in the screen during the five designs tasks with a the standard, b the partially customized and c the dedicated CAD software solutions. The figure is subdivided into three panels, each representing a computer monitor. The central screen was dedicated to PSI design. The other monitors were used for the activity tracking applications

Discussion

Thanks to the recent technological advances, use of 3D-printed patient-specific instruments including metal implants is gaining popularity and feasibility in the orthopedic field [19, 29, 30]. However, one of the shortcomings often reported in the medical literature is the time to process PSIs [18]. In general, the PSIs design relies on the collaboration between a surgeon and an engineering company or department [31]. Since computer-aided PSI design is usually a time-consuming process, several meetings between the surgeon and the design engineer are needed before the implant is satisfactory.

In the current study, we made a first step to automate PSI design for the distal radius. The residual positioning error as observed in the laboratory experiment was in agreement with the error as reported by Dobbe et al. in a larger laboratory study [9]. With our proposed design method, the median time to design an implant and a guide was 4.5 min which included a modification cycle. This was significantly reduced compared to using standard commercially available software. The shorter design time of the proposed methodology may enable designing PSIs in a single online session between surgeon and engineer. This could render PSI design less expensive and more accessible. Our method also showed a reduced variability in design time and in user interaction across the patient cases.

To our knowledge, this is one of the few studies that recorded the burden of design PSIs. Chen et al. already [32] proposed a general software package for the semiautomatic design of surgical templates such as surgical guides for corrective osteotomy. They reported 12 min to design an initial guide. With our proposed design method, the median time to design an initial guide was 1 min.

In this study, we focused on the efficacy of the design methodologies and not on additional steps in the workflow, such as strength analysis or production of the PSIs, which can be considered a limitation of our study. Furthermore, in this paper, we did not consider the time related to production. However, with the rapid technological improvements, a dramatic decrease in the manufacturing time is expected. We nevertheless recommend investigating ways to improve these additional steps in the entire workflow of creating patient-specific PSIs.

Although the proposed method worked satisfactorily for the presented cases, we acknowledge that cases exist where the proposed method may perform poorly, such as in the presence of a hole or a large intrusion in the corrected model. Projection (see “PSI design with dedicated software” section) on such a surface would generate a non-feasible implant footprint. This can be overcome, however, by manually adjusting the depth of the virtual box that is used to define the footprint (see “PSI design with dedicated software” section) and by limiting the projection of points to the opposite face of the box instead of to the bone surface, thus generating an implant smoothly bridging possible intrusions.

During the design experiments, the participants were aware of being tracked. Therefore, the design times could be an underestimation of the design time that is valid in normal daily practice. Similar design experiments were also used by Egger et al. [33] to demonstrate the efficacy of a software package for cranial defect restoration. However, in our case it was considered not useful to compare the shape differences of implants designed with different methodologies since different implant shapes can be used for the same purpose of bone repositioning in corrective osteotomy surgery.

Conclusion

We presented a novel semiautomatic method for the design of patient-specific implants and associated cutting guides to be used in corrective osteotomy of the radius. Compared to the existing standard and partially customized CAD software, the novel method reduces times and interaction required in the design.