Embodiments of the present invention set forth a method to update an operation pathway for a robotic arm assembly in response to a movement of a patient. The method includes processing a two-dimensional image associated with a tag having a spatial relationship with the patient. A corresponding movement of the tag in response to the movement of the patient is determined based on the spatial relationship. The tag includes a first point and a second point and the two-dimensional image includes a first point image and a second point image. The method also includes associating the first point image with the first point and the second point image with the second point and updating the operation pathway based on a conversion matrix of the first point and the second point, and the first point image and the second point image.本發明之具體實施例闡述一種為回應病患之移動而更新機器人臂組件的手術途徑的方法。該方法包括處理與一標籤(與該病患具有一空間關係)相關聯的一二維影像。該標籤為回應該病患之移動之對應移動係基於該空間關係判定。該標籤包括一第一點及一第二點,並且該二維影像包括一第一點影像及一第二點影像。該方法也包括將第一點影像與該第一點相關聯,並且將該第二點影像與該第二點相關聯;以及基於該第一點和該第二點以及該第一點影像和該第二點影像之一換算矩陣,更新該手術途徑。