(1) | Input: gender, assess bone age, test height |
(2) | Output: The predicted height of each bone age point |
(3) | //STEP-1: Set parameters, initialize sex variable sex, evaluate bone age, test height, variable capacity to predict height-array |
(4) | //Establish growth trend data models F0 and F1 for boys and girls based on the fitting results |
(5) | //The gender of boys and girls is distinguished by 0 and 1. |
(6) | Sex Enter 0 (boys) or 1 (girls) |
(7) | //Assessment of bone age and test height values are accurate to one decimal place |
(8) | boneage Enter expert bone age assessment results |
(9) | height Enter the test height result |
(10) | //Matching gender determines the growth trend model used for calculation F |
(11) | if sex == 0 |
(12) | F = F0 |
(13) | else |
(14) | F = F1 |
(15) | endif |
(16) | //STEP-2: Loop matching growth trend line, calculate the height of the next bone age point |
(17) | //Use 0.5 as the interval to establish the next bone age point to ensure that the bone age does not exceed 18 years old |
(18) | //Initialize next-boneage, magnify it by 10 times and add to it to be divisible by 5 |
(19) | next-boneage = boneage 10 |
(20) | while next-boneage % 5 ! = 0 |
(21) | next-boneage + = 1 |
(22) | next-boneage = next-boneage/10 |
(23) | while boneage < 18 |
(24) | △height-3 th = F-3 th (boneage) – height |
(25) | △height-50th = F-50 th (boneage) – height |
(26) | △height-97th = F-97 th (boneage) – height |
(27) | abs (△min-height) Compare the smallest bone age and height difference |
(28) | nearly-percent Use the closest growth trend model |
(29) | //Predict the height of the next bone age point based on the difference between the current height and the height of the model |
(30) | next-height = F- nearly-percent (next-boneage) + △min-height |
(31) | height-array.push (next-height) |
(32) | boneage = next-boneage |
(33) | next-boneage = next-boneage + 0.5 |
(34) | end |
(35) | return height-array |