A method and device for processing hair follicle data and a storage medium
By calculating the total difference in the number of hair follicles in the hair transplant surgery data recording system and assigning it to the correction value of the hair follicle type, the problem of real-time linkage between data adjustment and interface display in the prior art is solved. This achieves dynamic correlation and data consistency between the total amount and the subdivision amount, thereby improving the efficiency of the surgery.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- PUNCTURE (SHANGHAI) ROBOTIC CO LTD
- Filing Date
- 2025-12-11
- Publication Date
- 2026-05-29
AI Technical Summary
Existing hair transplant surgery data recording systems cannot achieve real-time linkage between data adjustment and interface display, and lack the function of total amount linkage adjustment, which affects the efficiency of the surgery.
By responding to the user's modification of the total number of extracted hair follicles on the display interface, the total difference value of the number of hair follicles is calculated and allocated to the correction value of the hair follicle type. Based on the correction value of the hair follicle type, the number and distribution percentage of each hair follicle type are calculated, and the visual chart data on the display interface is updated accordingly.
It achieves dynamic correlation between total quantity and subdivision quantity, automatically completes the breakdown of total quantity and synchronous update of values for each hair follicle type, ensuring data consistency and improving surgical operation efficiency.
Smart Images

Figure CN121306386B_ABST
Abstract
Description
Technical Field
[0001] This application relates primarily to the field of medical information technology, and in particular to a method, apparatus, and storage medium for processing hair follicle data. Background Technology
[0002] Hair transplantation is a common hair restoration technique. During the procedure, a large amount of data needs to be monitored and recorded in real time, such as the number of hair follicles extracted, the number of extractable hair follicles, follicle density, operation time, and completion rate. This data directly relates to the dynamic adjustment of the surgical plan, the optimal allocation of hair follicle resources, and the evaluation of postoperative results.
[0003] Traditional surgical data recording relies on manual recording, which is inefficient and prone to errors. Furthermore, data cannot be synchronized in real time, making it difficult for doctors to monitor the surgical progress and patient condition during the operation, thus affecting the accuracy and efficiency of the surgery.
[0004] To address these issues, some simplified data recording systems for hair transplant surgeries have been introduced. However, when users need to optimize their surgical plans, they must manually access the corresponding interface to execute editing commands for each type of hair follicle value, consuming significant time in surgical plan development and reducing efficiency. Furthermore, these systems lack a total quantity adjustment function, failing to correlate the total number of hair follicles with the allocation to each sub-region. Users must manually modify the values for each hair follicle type independently, rather than automatically breaking down and allocating the total quantity across different types by editing the total quantity value. Finally, the interface display cannot achieve real-time synchronization between data adjustments and the overall interface presentation. Summary of the Invention
[0005] One objective of this application is to provide a method, apparatus, and storage medium for hair follicle data processing, which solves the problems in the prior art that cannot achieve real-time linkage between data adjustment and interface display, lack total amount linkage adjustment function, and affect surgical efficiency.
[0006] According to one aspect of this application, a method for processing hair follicle data is provided, the method comprising:
[0007] In response to the user's modification of the total number of extracted hair follicles on the display interface, the total difference value of the number of hair follicles is calculated and assigned to the correction value of the hair follicle type.
[0008] The number and distribution percentage of each hair follicle type are calculated based on the correction value of the hair follicle type; the visualization chart data on the display interface is updated in conjunction with the number and distribution percentage of each hair follicle type, wherein the visualization chart data includes a visualization representation for representing the distribution percentage.
[0009] Optionally, the total difference in the number of hair follicles calculated and allocated to the correction value for hair follicle type includes:
[0010] Determine the difference between the new total number of hair follicles extracted by the user and the original total number of hair follicles extracted;
[0011] The total difference value is determined based on the difference value and the historical correction value; the total difference value is then allocated to the correction value of the hair follicle type using a round-robin allocation strategy.
[0012] Optionally, the step of allocating the total difference value to the correction value of the hair follicle type through a polling allocation strategy includes:
[0013] The total difference value is assigned to the hair follicle type in a preset order, and the cycle is repeated until the total difference value is completely assigned, thereby determining the correction value for each hair follicle type.
[0014] Optionally, determining the correction value for each hair follicle type includes:
[0015] Determine temporary correction values for each hair follicle type;
[0016] Determine the sign value of the total difference, wherein the sign value includes a positive value representing an increase in demand and a negative value representing a decrease in demand;
[0017] Adjust the temporary correction value of each hair follicle type according to the symbol value; verify whether the sum of the original number of each hair follicle type and the corresponding temporary correction value is non-negative. If both are non-negative, then determine the temporary correction value as the correction value of that hair follicle type.
[0018] Optionally, the method further includes:
[0019] The total correction value and the total hair count correction value are updated based on the correction values for each hair follicle type, wherein the total hair count correction value is the sum of the products of the correction value for each hair follicle type and the corresponding number of hairs per hair follicle.
[0020] Optionally, the hair follicle type includes single-follicle, double-follicle, triple-follicle, and quadruple-follicle types, and the step of allocating unit difference amounts to the total difference value for each hair follicle type in a preset order includes:
[0021] Four hair follicles from the hair follicle type are removed to determine the target hair follicle type to be assigned; the total difference value is then used to allocate a unit difference amount to the target hair follicle type in a round-robin fashion according to a preset order of increasing number of hair follicles.
[0022] Optionally, the visualization representation includes a distribution annular graph, in which each sector corresponds to a hair follicle type, the color of the annular region of each sector is uniquely associated with the corresponding hair follicle type, and the size of each annular region is determined by the distribution percentage of that hair follicle type.
[0023] Optionally, calculating the number and distribution percentage of each hair follicle type based on the correction value of the hair follicle type includes:
[0024] Calculate the sum of the original number and the corresponding correction value for each hair follicle type to determine the number of each hair follicle type;
[0025] The total number of hair follicles is determined based on the number of each hair follicle type.
[0026] The distribution percentage of each hair follicle type is determined based on the total number of hair follicles and the number of each hair follicle type.
[0027] Optionally, the visualized chart data includes a surgical progress bar, and the method further includes:
[0028] The percentage of surgical progress is calculated based on the total number of hair follicles and the target number of follicles to be extracted.
[0029] The surgical progress ring bar is updated based on the obtained surgical progress percentage, wherein the percentage of surgical progress is the ratio of the arc length of the fill color in the surgical progress ring bar to the entire ring circumference.
[0030] According to another aspect of this application, a hair follicle data processing apparatus is also provided, the apparatus comprising:
[0031] One or more processors; and a memory storing computer-readable instructions that, when executed, cause the processors to perform operations as described above.
[0032] According to another aspect of this application, a computer-readable medium is also provided, having stored thereon computer instructions that can be executed by a processor to implement the methods described above.
[0033] Compared to existing technologies, this application, in response to a user's modification of the total number of extracted hair follicles on the display interface, calculates the total difference value of the number of hair follicles and allocates it to the correction value of each hair follicle type; calculates the quantity and distribution percentage of each hair follicle type based on the correction value of each hair follicle type; and updates the visual chart data on the display interface in conjunction with the quantity and distribution percentage of each hair follicle type, wherein the visual chart data includes a visual representation for indicating the distribution percentage. This achieves a dynamic correlation between the total quantity and the subdivisions, automatically completes the breakdown of the total quantity and synchronizes the numerical updates of each hair follicle type, ensuring data consistency; and improves the efficiency of surgical operations by linking the real-time data updates of the interface. Attached Figure Description
[0034] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, the specific embodiments of this application will be described in detail below with reference to the accompanying drawings, wherein:
[0035] Figure 1 A schematic flowchart of a hair follicle data processing method according to one aspect of this application is shown.
[0036] Figure 2 A schematic diagram of the display interface is shown in one embodiment of this application;
[0037] Figure 3 This illustration shows a schematic diagram of the management system structure for a display interface application in one embodiment of this application;
[0038] Figure 4 This diagram illustrates a structural block diagram of a hair follicle data processing apparatus according to an embodiment of this application.
[0039] The same or similar reference numerals in the accompanying drawings represent the same or similar parts. Detailed Implementation
[0040] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, the specific embodiments of this application will be described in detail below with reference to the accompanying drawings.
[0041] Many specific details are set forth in the following description in order to provide a full understanding of this application. However, this application may also be implemented in other ways different from those described herein, and therefore this application is not limited to the specific embodiments disclosed below.
[0042] As indicated in this application and claims, unless the context clearly indicates otherwise, the words "a," "an," "an," and / or "the" are not specifically singular and may include plural forms. Generally speaking, the terms "comprising" and "including" only indicate the inclusion of explicitly identified steps and elements, which do not constitute an exclusive list, and the method or apparatus may also include other steps or elements.
[0043] Traditional hair transplant software requires adjusting the values of various hair follicles separately, necessitating repeated editing by the user. It also lacks the ability to directly modify the total amount and automatically distribute the transplanted hair follicles, and the front-end interface requires manual refreshing, failing to achieve automatic updates. To address these issues, this application proposes the following technical solution:
[0044] Figure 1 The diagram shows a flowchart of a hair follicle data processing method according to one aspect of this application, the method comprising: steps S11 to S13.
[0045] Step S11: In response to the user's modification operation on the display interface regarding the total number of extracted hair follicles, calculate the total difference value of the number of hair follicles and allocate it to the correction value of the hair follicle type.
[0046] The display interface is the front-end interface of the system that manages real-time data from hair transplant surgery. This interface includes multiple components that provide multi-dimensional visualization of relevant data during the hair transplant surgery. These components include a hair follicle grid data display component, a hair follicle distribution display component, and a hair follicle key parameter display component. The hair follicle grid data display component displays the hair follicle grid data, including the number of extracted hair follicles, the number of extractable hair follicles, hair follicle density, total number of extracted hair follicles, and extraction efficiency. The hair follicle distribution display component displays the proportion of different hair follicle types in a distribution pie chart. The hair follicle key parameter display component displays key hair follicle parameters, including hair follicle length, hair follicle angle, puncture depth, and corresponding surgical images.
[0047] The hair follicle grid data display component uses a grid-structured layout to present discrete statistical indicators by rows and columns, supporting vertical or horizontal comparison of data, such as comparing the number of extracted hair follicles with the total number of extracted hair follicles; thus facilitating data comparison and analysis and enabling medical staff to quickly obtain a global statistical view.
[0048] The hair follicle distribution display component includes a hair follicle distribution ring chart, which is used to show the number and distribution ratio of different hair follicle types. It intuitively displays different hair follicle types and real-time proportion data, reduces the cost of data understanding, avoids misleading judgment of hair follicle types, and assists in optimizing hair transplant plans, such as prioritizing the selection of a certain type of hair follicle for transplantation.
[0049] The hair follicle key parameter display component is used to display key parameters of the surgical operation, such as hair follicle length, hair follicle angle, puncture depth, and surgical images. The surgical images include surgical images of hair follicle extraction and real-time images during implantation, which allows for the location of specific operation sites and reduces operational errors.
[0050] The display interface also allows users to edit the displayed data, receive user edits on the total number of hair follicles extracted, generate modification instructions, and then execute the hair follicle allocation steps: calculate the baseline difference value, which is equal to the new total number of hair follicles extracted (newly modified by the user) minus the original total number of hair follicles extracted (before modification). The original total number of hair follicles extracted contains historical correction values, so the total difference value is equal to the baseline difference value plus the historical correction value, thus avoiding double-counting errors. The calculated total difference value is then allocated to the correction values for each hair follicle type, where the correction value refers to the adjustment amount for each hair follicle type (the value that needs to be adjusted).
[0051] Among them, hair follicle type is classified according to the number of hairs in the hair follicle unit (such as single F1, double F2, triple F3, quadruple F4), which can be obtained by visual algorithm to identify hairs.
[0052] Step S12: Calculate the number and distribution percentage of each hair follicle type based on the correction value of the hair follicle type.
[0053] After the hair follicle allocation step is completed, the hair follicle distribution update step is triggered. Based on the correction values obtained from the allocation step, the number and distribution percentage of each hair follicle type are calculated. The total number of hairs can be calculated based on the number of each hair follicle type, which is the sum of the products of the correction value of each hair follicle type and the corresponding number of hairs per hair follicle. The distribution percentage is the proportion of each hair follicle type in the total number of hair follicles, used to show the distribution of each hair follicle type.
[0054] Step S13: Update the visualization chart data on the display interface in conjunction with the number and distribution percentage of each hair follicle type, wherein the visualization chart data includes a visualization representation for representing the distribution percentage.
[0055] The associated data on the display interface is updated synchronously based on the updated data. This associated data is displayed as a visual chart, which includes a visual representation of the distribution percentage of each hair follicle type. The visual representation includes displaying the percentage in the desired graphic format and showing the quantity of each type.
[0056] In one embodiment of this application, the visualization representation includes a distribution annular graph, wherein each sector in the distribution annular graph corresponds to a hair follicle type, the color of the annular region of each sector is uniquely associated with the corresponding hair follicle type, and the size of each annular region is determined by the distribution percentage of that hair follicle type.
[0057] The distribution pie chart data is automatically generated based on percentage calculations and presented in a split design (with gaps between sectors) or a standard circular form. Colors are uniquely associated with hair follicle types; for example, color A represents hair follicle type F1. The size of the pie chart area maps the percentage of type distribution, thus directly solving the problem of the difficulty in intuitively understanding the changes in the proportion of hair follicle types in hair transplant surgery. This allows users to quickly distinguish different hair follicle types, improving the accuracy and efficiency of hair transplantation.
[0058] In one embodiment of this application, in step S11, the difference between the new total number of hair follicles extracted by the user and the original total number of hair follicles extracted is determined; a total difference value is determined based on the difference value and historical correction values; and the total difference value is allocated to the correction values of the hair follicle type through a polling allocation strategy.
[0059] The hair follicle allocation step includes a total difference value calculation step and a round-robin difference allocation step. The total difference value calculation step involves: calculating the total difference value based on the difference between the new total number of extracted hair follicles input by the user and the original total number of extracted hair follicles, combined with historical correction values. The total difference value is then allocated to the correction values of each hair follicle type one by one according to a round-robin allocation strategy, thereby modifying the number of hair follicles for each hair follicle type.
[0060] Following the above embodiment, the polling allocation strategy is as follows: the total difference value is polled and allocated to the hair follicle type in a preset order, and the process is repeated until the total difference value is completely allocated, thereby determining the correction value for each hair follicle type.
[0061] The initial temporary correction value for each hair follicle type is 0. Unit differences are then assigned to each hair follicle type in a polling manner according to a preset order until the total difference value is fully allocated. This yields the correction value for each hair follicle type after the polling and allocation. The preset order refers to the order in which the hair follicle types are assigned, which can be based on the sorting of the hair follicle types. For example, the order could be: Hair Follicle Type 1 → Type 2 → Type 3.
[0062] In one embodiment of this application, the hair follicle types include single hair follicles, double hair follicles, triple hair follicles, and quadruple hair follicles. During the polling and allocation, quadruple hair follicles in the hair follicle types are removed to determine the target hair follicle type to be allocated. The total difference value is then polled and allocated to the target hair follicle type in a preset order of increasing number of hair follicles, with a unit difference amount allocated accordingly.
[0063] Single-clove, double-clove, and triple-clove hair follicles are selected as target hair follicle types for allocation, while four-clove (F4) hair follicles are not included in the allocation. In real-world scenarios, F4 hair follicles are few in number and highly stable, requiring no frequent correction; their correction value can be kept at 0. Following a preset order F1→F2→F3, each iteration assigns one unit of difference to each of F1, F2, and F3, until all total differences are allocated.
[0064] The total difference value (remaining) is assigned to the target hair follicle type. Each assigned difference decreases the remaining value by 1 until remaining = 0. For example, if remaining = 5, the assignment results in F1=2, F2=2, and F3=1. During the polling process, a "rough allocation by proportion + remainder rotation" method is used. After one round of polling, if there are 2 remaining, in the second round, F1 is assigned first, and if any remainder remains, it is then assigned to F2. This even distribution strategy ensures a relatively balanced distribution of correction values from F1 to F3, avoiding over-correction of any single type.
[0065] The total number of hairs correction value is calculated based on the number of hairs corresponding to each type of hair follicle. By linking the number of hair follicles with the total number of hairs, the data standard is ensured to be consistent, supporting subsequent statistics and display.
[0066] In one embodiment of this application, in step S11, a temporary correction value for each hair follicle type is determined; the sign value of the total difference value is determined, wherein the sign value includes a positive value representing an increase in demand and a negative value representing a decrease in demand; the temporary correction value for each hair follicle type is adjusted according to the sign value; and it is verified whether the sum of the original quantity of each hair follicle type and the corresponding temporary correction value is a non-negative number. If both are non-negative, the temporary correction value is determined as the correction value for that hair follicle type.
[0067] The correction value refers to the adjustment amount for each hair follicle type. It can be represented by a signed integer value. A positive value indicates that the number of hair follicles of that type needs to be increased, while a negative value indicates that the number of hair follicles of that type needs to be decreased. The direction of allocation is matched according to the sign. If the number of hair follicles needs to be decreased, the sign is negative, and the temporary correction values of F1~F3 are negativeized to represent the decrease amount; if the sign is positive, the temporary correction values of F1~F3 are positiveized to represent the increase amount.
[0068] After the allocation is completed, check whether the number of each hair follicle type after the correction is negative. If it is, cancel the correction. If it is not, assign the temporary correction value to the corresponding correction value variable.
[0069] In one embodiment of this application, the method further includes: updating the total correction value and the total hair count correction value based on the correction value of each hair follicle type, wherein the total hair count correction value is the sum of the products of the correction value of each hair follicle type and the corresponding number of hairs per hair follicle.
[0070] Update the total hair count correction value. Since the number of hairs is different for each hair follicle type, F1=1, F2=2, F3=3, F4=4. The total hair count correction value = F1 correction value × 1 + F2 correction value × 2 + F3 correction value × 3 + F4 correction value × 4. This will update the relevant chart data on the interface accordingly.
[0071] In one embodiment of this application, in step S12, the sum of the original number and the corresponding correction value of each hair follicle type is calculated to determine the number of each hair follicle type; the total number of hair follicles is determined based on the number of each hair follicle type; and the distribution percentage of each hair follicle type is determined based on the total number of hair follicles and the number of each hair follicle type.
[0072] In actual business scenarios, when a user performs the current editing operation, specifically: the user corrects the current total number of extracted hair follicles due to reasons such as supplementing statistics or adjusting record values, for example, changing "total number of extracted hair follicles is 1000" to "total number of extracted hair follicles is 1050"; then the system responds to the current editing operation and executes the hair follicle allocation algorithm: calculates the total difference value (for example, 50), and distributes the total difference value of 50 in a round-robin fashion to the correction values of each hair follicle type (such as distributing it to F1~F3, while the correction value of F4 remains 0), updates the correction value, and synchronizes the total correction value and the total number of hair correction value at the same time; among which, when polling for allocation, the increment can adopt a round-robin discrete method or a method of "coarse division by proportion + remainder round-robin".
[0073] After the allocation algorithm is completed, the hair follicle distribution algorithm is triggered: the number of extracted hair follicles for each hair follicle type is updated based on the updated correction value. The current total is determined based on the updated number of extracted hair follicles for each hair follicle type, and the current total (total) is: total = F1×1 + F2×2 + F3×3 + F4×4. Then, the distribution percentage of each hair follicle type is calculated, automatically triggering the update of the distribution ring chart. The incremental correction triggers changes in the sector angles of the distribution ring chart, and it is redrawn based on the new percentages. The colors remain unchanged, but the proportions change, thus achieving dynamic binding for data visualization.
[0074] In one embodiment of this application, the visualized chart data includes a surgical progress ring bar, and the method further includes: calculating the surgical progress percentage based on the total number of hair follicles and the target number of extractions; updating the surgical progress ring bar based on the obtained surgical progress percentage, wherein the surgical progress percentage is the ratio of the arc length of the fill color in the surgical progress ring bar to the entire ring circumference.
[0075] The surgery duration is automatically timed from the moment the "Start Surgery" button is clicked on the hair transplant device's interface, and is pushed to the front-end display via WebSocket in the format "HH:MM:SS". The surgery duration is also paused on the display screen when the hair transplant device's interface is paused.
[0076] The surgery completion rate is the percentage of completion relative to the target extraction amount. It is calculated as a percentage based on the number of hair follicles extracted and the input target extraction amount. Surgery progress = (Number of hair follicles extracted / Target extraction amount) × 100, resulting in a progress value, such as 75%. When the relevant components in the display interface receive the progress value, they visually present it as a pie chart according to the pie chart rendering logic, such as... Figure 2 The rendering logic includes the progress ratio corresponding to the ring fill angle, color level, etc.
[0077] When the total number of hair follicles extracted changes, the latest progress value is obtained based on the new total number of hair follicles extracted and the target number of extractions. For example, if the latest progress value is 75%, the progress display component receives the latest surgical progress value and updates the visual presentation of the annular progress chart in real time according to the rendering logic of the annular chart. For example, the unfinished part is gray, and the part that has been completed by 75% is filled with the target color (such as red).
[0078] In one embodiment of this application, if the total number of hair follicles is greater than 0, the percentage of each hair follicle type is calculated and rounded to an integer, ensuring that the sum of the percentages is 100%. This can be achieved by first calculating the floating-point percentage for each hair follicle type, initially rounding and marking the items with numerical values. If the quantity of a certain type is greater than 0, it must be at least 1%. The rounded percentages are then adjusted to ensure the sum is 100%. The adjustment logic is as follows: calculate the difference between the current rounded sum and 100. If the difference is not 0, sort the items according to the magnitude of the error, prioritizing the adjustment of items with larger errors (increasing or decreasing by 1%), until the sum is 100. Thus, the hair follicle distribution algorithm not only calculates the quantity and percentage of each hair follicle type but also ensures the reasonableness of the percentages, i.e., non-negative numbers and a sum of 100%. After the hair follicle allocation algorithm is executed, the correction values for each hair follicle type change, and subsequently, the hair follicle distribution algorithm is called to recalculate the current number and percentage of hair follicles and update the chart.
[0079] The hair follicle data processing method described in this application can be applied to the display interface of a management system, specifically performing data processing on the visual display of the management system's display module, such as... Figure 3 As shown, the management system includes a data acquisition module 10, a processing module 20, a transmission module 30, and a display module 40. The data acquisition module 10 is used to collect the user's surgical-related data from the hair transplant surgery equipment in real time. The processing module 20 is used to determine the data to be displayed based on the surgical-related data, wherein the data to be displayed includes hair follicle grid data, hair follicle distribution data, and key hair follicle parameters. The transmission module 30 is used to encapsulate the data to be displayed and use an Nginx reverse proxy service to transmit the data to be displayed to the display module 40. The display module 40 is used to perform multi-component visualization based on the data to be displayed.
[0080] The backend data acquisition module 10 is used to acquire surgical data from the hair transplant surgery equipment in real time. This surgical data includes related data of the surgery, which is the raw operational data and may include data such as hair follicle-related data, operation time, and surgical images. The surgical images are images acquired by the data acquisition module 10 through a binocular camera during hair follicle extraction, and are used to assist in observing the hair follicle wounds before and after the puncture.
[0081] The processing module 20 and the data acquisition module 10 can be integrated into the same backend device. The processing module 20 processes the surgical-related data acquired by the data acquisition module 10 to determine the data to be displayed, i.e., the data to be displayed. This data includes hair follicle grid data, hair follicle distribution data, and key hair follicle parameters. Among them, the hair follicle grid data is hair follicle index data related to the surgery, used to assist doctors in accurately locating the surgery; the hair follicle distribution data is a statistical indicator generated based on the hair follicle grid data, such as the distribution of hair follicle types; and the key hair follicle parameters are indicators used to characterize the biological characteristics of hair follicles, such as hair diameter, hair follicle length, and hair follicle angle.
[0082] The transmission module 30 uses Nginx reverse proxy service to expose the static front-end and server as having the same domain path, reducing the complexity of cross-domain and security policies. HTTPS is handled at the edge, while the back-end internally uses plaintext or intranet, simplifying server certificate management. It can ensure load balancing, guaranteeing real-time performance and high availability in multi-back-end instance scenarios through round-robin or health queries. The management system in this application uses Nginx + WebSocket service. Based on the existing WebSocket protocol, a specific JSON data format is designed to encapsulate surgical data, and a disconnection reconnection mechanism (such as heartbeat detection and automatic reconnection) and data compression are implemented to optimize transmission efficiency. Using Nginx as a reverse proxy and WebSocket gateway improves the system's scalability and security.
[0083] The display module 40 can be installed on the front-end device. The display module 40 includes multiple visualization components for displaying surgical data in the form of charts and numbers. It receives the data to be displayed from the transmission module 30 and then performs visualization of multiple components.
[0084] In one embodiment of this application, the display module 40 includes a hair follicle grid data display component, a hair follicle distribution display component, and a hair follicle key parameter display component.
[0085] The hair follicle grid data display component uses a grid-structured layout to present discrete statistical indicators in rows and columns, supporting vertical or horizontal comparison of data, such as comparing the number of extracted hair follicles with the total number of extracted hair follicles; thus facilitating data comparison and analysis and enabling medical staff to quickly obtain a global statistical view.
[0086] The hair follicle distribution display component includes a hair follicle distribution ring chart, which is used to show the number and distribution ratio of different hair follicle types. It intuitively displays different hair follicle types and real-time proportion data, reduces the cost of data understanding, avoids misleading judgment of hair follicle types, and assists in optimizing hair transplant plans, such as prioritizing the selection of a certain type of hair follicle for transplantation.
[0087] The hair follicle key parameter display component is used to display key parameters of the surgical operation, such as hair follicle length, hair follicle angle, puncture depth, and surgical images. The surgical images include surgical images of hair follicle extraction and real-time images during implantation, which allows for the location of specific operation sites and reduces operational errors.
[0088] The display module 40 includes an editing dialog box, which is used to execute the above-mentioned hair follicle data processing method steps in response to the modification operation of the total number of extracted hair follicles. It can realize the real-time updating of relevant data on the display interface, and can directly judge the impact of the total adjustment on resource distribution and improve surgical efficiency.
[0089] Figure 4 This diagram illustrates a structural block diagram of a hair follicle data processing apparatus according to an embodiment of this application. (Reference) Figure 4 As shown, the hair follicle data processing device 400 may include an internal communication bus 401, a processor 402, a read-only memory (ROM) 403, a random access memory (RAM) 404, a communication port 405, and a hard disk 407. The internal communication bus 401 enables data communication between the components of the hair follicle data processing device 400. The processor 402 can perform judgments and issue prompts. In some embodiments, the processor 402 may consist of one or more processors.
[0090] The communication port 405 enables data transmission and communication between the hair follicle data processing device 400 and external input / output devices. In some embodiments, the hair follicle data processing device 400 can send and receive information and data from a network via the communication port 405. In some embodiments, the hair follicle data processing device 400 can transmit and communicate with external input / output devices via a wired connection through the input / output terminal 406.
[0091] The hair follicle data processing device 400 may also include different types of program storage units and data storage units, such as a hard disk 407, a read-only memory (ROM) 403, and a random access memory (RAM) 404, capable of storing various data files used for computer processing and / or communication, as well as possible program instructions executed by the processor 402. The processor 402 executes these instructions to implement the main part of the method. The results processed by the processor 402 are transmitted to an external output device via a communication port 405 and displayed on the user interface of the output device.
[0092] For example, the implementation process file of the hair follicle data processing device described above can be a computer program, stored in the hard disk 407, and can be loaded into the processor 402 for execution to implement the hair follicle data processing method of this application.
[0093] This application also provides a computer-readable storage medium having computer-readable instructions stored thereon, which can be executed by a processor to implement a hair follicle data processing method as described above.
[0094] When a method for processing hair follicle data is implemented as a computer program, it can also be stored as an article of manufacture in a computer-readable storage medium. For example, a computer-readable storage medium may include, but is not limited to, magnetic storage devices (e.g., hard disks, floppy disks, magnetic stripes), optical discs (e.g., compact discs (CDs), digital multifunction discs (DVDs)), smart cards, and flash memory devices (e.g., electrically erasable programmable read-only memory (EPROM), cards, sticks, key drives). Furthermore, the various storage media described herein can represent one or more devices and / or other machine-readable media for storing information. The term "machine-readable medium" may include, but is not limited to, wireless channels and various other media (and / or storage media) capable of storing, containing, and / or carrying code and / or instructions and / or data.
[0095] It should be understood that the embodiments described above are merely illustrative. The embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For hardware implementation, the processor may be implemented within one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), processors, controllers, microcontrollers, microprocessors, and / or other electronic units designed to perform the functions described herein, or combinations thereof.
[0096] Some aspects of this application can be executed entirely by hardware, entirely by software (including firmware, resident software, microcode, etc.), or by a combination of hardware and software. The aforementioned hardware or software may be referred to as a "data block," "module," "engine," "unit," "component," or "system." The processor may be one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DAPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), processors, controllers, microcontrollers, microprocessors, or combinations thereof. Furthermore, aspects of this application may manifest as computer products residing in one or more computer-readable media, including computer-readable program code. For example, computer-readable media may include, but are not limited to, magnetic storage devices (e.g., hard disks, floppy disks, magnetic tapes, etc.), optical discs (e.g., compressed CDs, digital multifunction DVDs, etc.), smart cards, and flash memory devices (e.g., cards, sticks, key drives, etc.).
[0097] A computer-readable medium may contain a propagated data signal containing computer program code, for example, on baseband or as part of a carrier wave. This propagated signal may take various forms, including electromagnetic, optical, and so on, or suitable combinations thereof. A computer-readable medium can be any computer-readable medium other than a computer-readable storage medium, which can be connected to an instruction execution system, apparatus, or device to enable communication, propagation, or transmission of a program for use. The program code located on the computer-readable medium can be propagated through any suitable medium, including radio, cable, fiber optic cable, radio frequency signals, or similar media, or any combination of the above media.
[0098] The basic concepts have been described above. Obviously, for those skilled in the art, the above disclosure is merely illustrative and does not constitute a limitation of this application. Although not explicitly stated herein, those skilled in the art may make various modifications, improvements, and corrections to this application. Such modifications, improvements, and corrections are suggested in this application, and therefore remain within the spirit and scope of the exemplary embodiments of this application.
[0099] Furthermore, this application uses specific terms to describe embodiments of the application. For example, "an embodiment," "one embodiment," and / or "some embodiments" refer to a particular feature, structure, or characteristic related to at least one embodiment of the application. Therefore, it should be emphasized and noted that "an embodiment," "one embodiment," or "an alternative embodiment" mentioned twice or more in different locations in this specification do not necessarily refer to the same embodiment. In addition, certain features, structures, or characteristics in one or more embodiments of the application can be appropriately combined.
[0100] In some embodiments, numbers describing the quantity of components and attributes are used. It should be understood that such numbers used in the description of embodiments are modified in some examples with the terms "approximately," "approximately," or "generally." Unless otherwise stated, "approximately," "approximately," or "generally" indicates that the numbers are allowed to vary by ±20%. Accordingly, in some embodiments, the numerical parameters used in the specification and claims are approximate values, which may be changed depending on the characteristics required by individual embodiments. In some embodiments, numerical parameters should take into account specified significant digits and employ a general method of digit reservation. Although the numerical ranges and parameters used to confirm their breadth of scope in some embodiments of this application are approximate values, in specific embodiments, such values are set as precisely as feasible.
Claims
1. A method for processing hair follicle data, characterized in that, The method includes: In response to the user's modification of the total number of hair follicles extracted on the display interface, the difference between the new total number of hair follicles extracted by the user and the original total number of hair follicles extracted is determined, so as to calculate the total difference value of the number of hair follicles. The display interface is the front-end display interface of the system for managing real-time data of hair transplant surgery. The total difference value is allocated to the correction value for each hair follicle type using a polling allocation strategy; The total correction value and the total hair count correction value are updated based on the correction values for each hair follicle type, wherein the total hair count correction value is the sum of the products of the correction value for each hair follicle type and the corresponding number of hairs per hair follicle. Calculate the quantity and distribution percentage of each hair follicle type based on the correction value of the hair follicle type; and The visualization chart data on the display interface is updated in conjunction with the number and distribution percentage of each hair follicle type, wherein the visualization chart data includes a visualization representation for representing the distribution percentage.
2. The method according to claim 1, characterized in that, The total difference in the number of hair follicles is calculated, including: The total difference value is determined based on the difference value and the historical correction value.
3. The method according to claim 1, characterized in that, The step of allocating the total difference value to the correction value for each hair follicle type using a polling allocation strategy includes: The total difference value is assigned to the hair follicle type in a preset order, and the cycle is repeated until the total difference value is completely assigned, thereby determining the correction value for each hair follicle type.
4. The method according to claim 3, characterized in that, The determination of correction values for each hair follicle type includes: Determine temporary correction values for each hair follicle type; Determine the sign value of the total difference, wherein the sign value includes a positive value representing an increase in demand and a negative value representing a decrease in demand; Adjust the temporary correction value for each hair follicle type according to the symbol value; and Verify whether the sum of the original number and the corresponding temporary correction value for each hair follicle type is non-negative. If both are non-negative, then determine the temporary correction value as the correction value for that hair follicle type.
5. The method according to claim 3, characterized in that, The hair follicle types include single-follicle, double-follicle, triple-follicle, and quadruple-follicle types. The step of allocating unit difference amounts to each hair follicle type according to a preset order based on the total difference value includes: Four hair follicles from the stated hair follicle type are removed to determine the target hair follicle type to be assigned; and The total difference value is assigned to the target hair follicle type in a round-robin fashion according to a preset order of increasing hair follicle count, and the unit difference amount is allocated accordingly.
6. The method according to claim 1, characterized in that, The visualization includes a distribution annular graph, in which each sector corresponds to a hair follicle type, the color of the annular region of each sector is uniquely associated with the corresponding hair follicle type, and the size of each annular region is determined by the distribution percentage of that hair follicle type.
7. The method according to claim 1, characterized in that, The calculation of the number and distribution percentage of each hair follicle type based on the correction value of the hair follicle type includes: Calculate the sum of the original number and the corresponding correction value for each hair follicle type to determine the number of each hair follicle type; The total number of hair follicles is determined based on the number of each hair follicle type; and The distribution percentage of each hair follicle type is determined based on the total number of hair follicles and the number of each hair follicle type.
8. The method according to claim 7, characterized in that, The visualized chart data includes a circular bar representing the surgical progress, and the method further includes: The percentage of surgical progress is calculated based on the total number of hair follicles and the target number of follicles extracted; and The surgical progress ring bar is updated based on the obtained surgical progress percentage, wherein the percentage of surgical progress is the ratio of the arc length of the fill color in the surgical progress ring bar to the entire ring circumference.
9. A device for processing hair follicle data, characterized in that, The device includes: One or more processors; and A memory storing computer-readable instructions, which, when executed, cause the processor to perform the operations of the method as described in any one of claims 1 to 8.
10. A computer-readable storage medium storing computer-readable instructions thereon, characterized in that, The computer-readable instructions can be executed by a processor to implement the method as described in any one of claims 1 to 8.